]> git.sthu.org Git - shuber-gentoo-overlay.git/commitdiff
add app-office/libreoffice-bin
authorStefan Huber <shuber@sthu.org>
Mon, 23 Sep 2013 20:12:53 +0000 (22:12 +0200)
committerStefan Huber <shuber@sthu.org>
Mon, 23 Sep 2013 20:12:53 +0000 (22:12 +0200)
A copy from portage with more relaxed dependencies on boost.

app-office/libreoffice-bin/Manifest [new file with mode: 0644]
app-office/libreoffice-bin/files/50-libreoffice-bin [new file with mode: 0644]
app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild [new file with mode: 0644]

diff --git a/app-office/libreoffice-bin/Manifest b/app-office/libreoffice-bin/Manifest
new file mode 100644 (file)
index 0000000..496c7c7
--- /dev/null
@@ -0,0 +1,16 @@
+DIST amd64-bin-libreoffice-base-4.0.4.2.tar.xz 68176636 SHA256 53af3b3b7364e7af7cbb450624a39bec5135091634eb20d26cff11707bf16bb9 SHA512 ec6d5e3d3b52bd359f1f65c455a46948373699030b6368679145a5adf830c6fcce3fa7379780faeeee4c943738e43d1359940dfdee0753b3e5d6494de5c36c39 WHIRLPOOL f4208570557592d6d9add45297f0ab1a9c6907c2f57e767625c6d2ccc02687f2968259807fbcabd74eae36873c597eb086bc61474d27dea02ca682f84622d1ad
+DIST amd64-bin-libreoffice-base-java-4.0.4.2.tar.xz 71695008 SHA256 be9c2c19c0381a97b52ec1cfdd7677565996f0989b2e063b8f3cf60b9fcd897c SHA512 91a3625e5307a8958c9c25588300105aa43b69efbf3882f84ad6f1d99a867fb715df65657c2da657841dfbea81059fd1755dc39a604dc9a137fc3082800a48ca WHIRLPOOL 6efd4aab715389c9807027f9588ee702d326c3ebb3952402ed85515b0ccb56b3082c1c4536f18b9de982bb323a30023ae100f424b0aedb646f3a25bdb76f0a36
+DIST amd64-bin-libreoffice-gnome-4.0.4.2.tar.xz 68305864 SHA256 e2242b660701cb9de3fd663f154ae705f3cecc70b0a785dccbc0482652b2c861 SHA512 106a447b5caafca6f76e3c30f282a95a51d98b8cfa57591c684f0d76a4c3eae96630845117d80195eec97815aec24dc35464454050ee83c5af5034871446566f WHIRLPOOL f13a8c6ccc84e15485f6b061dfca3b88e0ed293c514da0600a415b0f70fd9e76a99a9a8f57c68b04831579585e4fe034618c0282e2d2079d0ae8a2f22c3c0a02
+DIST amd64-bin-libreoffice-gnome-java-4.0.4.2.tar.xz 71818144 SHA256 a2243af72e3538ea68ca57a192f35509098dde9c11af4baaf5a1380012c3c584 SHA512 0d8839b5342e58f20d58adf992da2e6d6ab59ecfb4d21f352d943b4fd2a66e6e92a556067192a6f4cb63508e598d51eeb84edd98c775abfa1a06d137a81e5062 WHIRLPOOL ddaf069b52e59150ab85c02d3b7736ae710f08bd37efb90bd327e6b85e22184594713448bb2e89f04b422700f97d4c036c0dd57d45bb50946f4228ff89a0277d
+DIST amd64-bin-libreoffice-kde-4.0.4.2.tar.xz 68206468 SHA256 e0878607cf36e8cdbd070a6755b84ba01c27a9f7ba66b2a2c379c3c1af524721 SHA512 4d2f3f029ec87276a2489e9e00a06d9c7dfca4f8b6333319aca663e6545fc962ddde5eb9b753a9a7dcd413790df064c552bec14af268f34d59e275a5b1f8e274 WHIRLPOOL ca052159d24c4aafcd87fe347e0dcc93d34e813e45a5ded0eb2d8b4eab781106b4ffb2ab6428ed5c50db71fe1e1852bc605fc32f2201fcf1e878dd142f87976d
+DIST amd64-bin-libreoffice-kde-java-4.0.4.2.tar.xz 71725180 SHA256 7759254be790135dc8d6cbb03296ace9e208c969004d5bb6ce3069842f7e7d3a SHA512 e8015b988fc21c82264175f2d8e09eda351e8f750b2ca60731114fbf15d83dd6cdbafda1169a0ba59d153927d496c1b6051085e5dd3f995c6a291ea2eaae686f WHIRLPOOL 2a00ba0e93bc700c1cac1660840dcc836e7135c6d120a0861ee223bc353634bf56c7f51a832ff4f6b86138e2e9ed85acaed6074bc4c87c2257d2f2d2e3e8026f
+DIST x86-bin-libreoffice-base-4.0.4.2.tar.xz 67099064 SHA256 e11495a6588c3ba8f25c89a4d6dce79e5a230a617a22d60e4fc549266315be3d SHA512 f587fd02c6c9733379c7b2e48a3704426eb4bb44b321ca866c74835f3d7f4132e4361a89c793321ccd00bbc8f9323817ebf05603c0111ff1c958d3ba8775fffc WHIRLPOOL 371de209e765841a24189a494a33b698c2fc5c37fe7a1aaaa9dcc3d89182e74548cc87838bd72142dd824dd15275c2d58c9e425b3287f19d0c3f9088f76e76d9
+DIST x86-bin-libreoffice-base-java-4.0.4.2.tar.xz 70622860 SHA256 feba2e04f80eeb842262bb4a72a2dc4425c0ffbebdd8230fa3986235780f41af SHA512 7df9b4aa64b040dbc54c9763720240b188aede8aba57eca767f96d8b280ea2c496293c9a9271beed3d22b8dfeab138e36eb6fd417abf4621d99ac4ee23263cb1 WHIRLPOOL 383c3cb46f915b1f7f86685e555a730a2f9c5337d6f849e79b7154769186aaa32ebb09ce1ca0a5231a07071b03defc9dd232f3f3e70bdec223e0ee6c568c0163
+DIST x86-bin-libreoffice-gnome-4.0.4.2.tar.xz 67230928 SHA256 f97a56782cd9602df863fd2eebd06eaf13b79a05e6c6b155571cc191d7f324d8 SHA512 1df5cebde905f60a6fc9b0d78d314325d6e3b7990f36861a74fbb531d261fd922006e8d04e2e247419df21a81c536eb40cd92d04028c967de4923c3ce52e6e3d WHIRLPOOL 701dcf7e4ed43f922986b569855cb3085eaba501fbbdb94d9bd4d6eef694d3c034d111f046d733f1bd1fc5b4f25405b1146aabd90bc3b77d9b20553b391eb904
+DIST x86-bin-libreoffice-gnome-java-4.0.4.2.tar.xz 70740904 SHA256 0bab833b7698c531901dff382a997ca50a9239418bf02822e21f9239acd6e304 SHA512 71453440b9852175964ebcc9f14e00bc2c31771bdac8471967d4d412b118db4cf1eddb68997bfee4356fc5319e06b66f08f7a804a25701e69c57f3dc8ccd4b2d WHIRLPOOL 11d4328c4ded4ccc72650bbd67461f42a920a86abb06ae3eed55a0f7a0da20053ae6673bfa698be286c5cb7cadb0bbb5b76b16d3128ec53512b6a9979893281c
+DIST x86-bin-libreoffice-kde-4.0.4.2.tar.xz 67144016 SHA256 9869dd633778218445a11efbdcd94aa28e8d0aff923370352d720f942ece929d SHA512 4ebef16308bfe505a1f986947adaf7dd6ad026bd52078e2ec02b79ab00ebb5fd7f521c39cd8d06b9f6a28f6745490d951567f7f9409b76e30b4df5bf181e9fa6 WHIRLPOOL 0ea9c634246aa0439ab18b55f922d78b80866d1d8db36ff4d66acdb48109c7a76c818b624958409462bdfbe0277c081eac50385c7783ba54c873d502be29a787
+DIST x86-bin-libreoffice-kde-java-4.0.4.2.tar.xz 70649076 SHA256 393483f5867935edcf3d12e5505d22a7a199cc8c103908ba61a4babd45a5e7af SHA512 298f6265089be935b66d688a22e158efa9b9731a7304e547f3f353347379fbf4ed3459c337fc8573726a721e9b11556fc3a9fc25e667e91e6fa26defed61fb4e WHIRLPOOL b0a5ebcc084f234256481c89ebb6b9b655f1ad707c97e3f709adfacac8024a2654e74e764d2a34fb2db21a67f0d044db101977cac7de45e4425b906f7119e5c8
+EBUILD libreoffice-bin-4.0.4.2.ebuild 4918 SHA256 2c08de522c1d04dc646f584afee81f4af2667ce49825170148a971653be196d8
+MISC ChangeLog 17429 SHA256 aec2c660243844a36d23d3bfd33244bedce45a288e119dee6bcf078478c5619b SHA512 2ef7043535cf81410f97b08eeb7f62315ab182670b4dc9c28e31a4c942de6f6bed34d503041ed7d8aa9620fe9870d784c6bfb10a2c2be6656f88d8c44ee39247 WHIRLPOOL efd82b3fbf86e220f0322e6cf80a9a3608086f5455d30e5016806d2edf2e6570c660c021bf3cd16d497d5590bd41d13206084f0cf26002180ee10dc128b49ea4
+MISC metadata.xml 409 SHA256 92a42f3ef25ede1bee68ec939cd4e0d88bbada54d90dab225f06bfc02b8bd498 SHA512 5a383da805155e80920620854f04e1bb9fcfe0764d0258ec95267c3229dae50cdb5f2cd83fbdc4cb7a856e079c696bb6f73d9aefec2fabef9317e391fd5db9ab WHIRLPOOL 158b0614005477cb448240a8f36e35fc8768c9ba0b83e71b1502dd1725fabafd4031d7c40a33030c683a14a38dad318f47db90712aab6d7ed4150fd26000193b
+AUX 50-libreoffice-bin 158 SHA256 6c6cebcce51b639545a42c0b9cc6268f0ce1e8bb9d7d22bb11e5ebd1448638e9 SHA512 2d1158f48ac80f9212578d020e5659e777ff494adc3abc94438cec6890b88741f92ea2ed3bb4585ffdabe531d55c6938ca9408e9ece5a438e67d480eb406ed50 WHIRLPOOL 47d4187edca8b343378a2f58e63b0c10cc11f11b21702064fe102003e2bb6eaf3de660128442238e1c040b97ccaa1ee45d8089713c3a62a1dacfe5a72f1c6ee2
diff --git a/app-office/libreoffice-bin/files/50-libreoffice-bin b/app-office/libreoffice-bin/files/50-libreoffice-bin
new file mode 100644 (file)
index 0000000..1c30771
--- /dev/null
@@ -0,0 +1,3 @@
+SEARCH_DIRS_MASK="@GENTOO_PORTAGE_EPREFIX@/usr/lib/libreoffice
+@GENTOO_PORTAGE_EPREFIX@/usr/lib32/libreoffice
+@GENTOO_PORTAGE_EPREFIX@/usr/lib64/libreoffice"
diff --git a/app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild b/app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild
new file mode 100644 (file)
index 0000000..fb710cd
--- /dev/null
@@ -0,0 +1,203 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild,v 1.6 2013/09/16 11:32:37 dilfridge Exp $
+
+EAPI=5
+
+KDE_REQUIRED="optional"
+CMAKE_REQUIRED="never"
+
+BASE_AMD64_URI="mirror://gentoo/amd64-bin-"
+BASE_X86_URI="mirror://gentoo/x86-bin-"
+
+PYTHON_COMPAT=( python2_7 python3_3 )
+PYTHON_REQ_USE="threads,xml"
+
+inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
+
+DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
+HOMEPAGE="http://www.libreoffice.org"
+SRC_URI_AMD64="
+       kde? (
+               !java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-${PVR}.tar.xz )
+               java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
+       )
+       gnome? (
+               !java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
+               java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
+       )
+       !kde? ( !gnome? (
+               !java? ( ${BASE_AMD64_URI}${PN/-bin}-base-${PVR}.tar.xz )
+               java? ( ${BASE_AMD64_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
+       ) )
+"
+SRC_URI_X86="
+       kde? (
+               !java? ( ${BASE_X86_URI}${PN/-bin}-kde-${PVR}.tar.xz )
+               java? ( ${BASE_X86_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
+       )
+       gnome? (
+               !java? ( ${BASE_X86_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
+               java? ( ${BASE_X86_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
+       )
+       !kde? ( !gnome? (
+               !java? ( ${BASE_X86_URI}${PN/-bin}-base-${PVR}.tar.xz )
+               java? ( ${BASE_X86_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
+       ) )
+"
+
+SRC_URI="
+       amd64? ( ${SRC_URI_AMD64} )
+       x86? ( ${SRC_URI_X86} )
+"
+
+IUSE="debug gnome java kde"
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+
+BIN_COMMON_DEPEND="
+       =app-text/libexttextcat-3.4*
+       app-text/poppler:0/35
+       >=dev-libs/boost-1.49
+       dev-libs/icu:0/51.1
+       =media-gfx/graphite2-1.2*
+       =media-libs/libpng-1.5*
+       >=sys-libs/glibc-2.15-r3
+       kde? ( >=kde-base/kdelibs-4.10.4:4 >=dev-qt/qtcore-4.8.4-r5:4 )
+       || ( <media-libs/libjpeg-turbo-1.3.0-r2 =media-libs/jpeg-8* )
+"
+
+# PLEASE place any restrictions that are specific to the binary builds
+# into the BIN_COMMON_DEPEND block above. 
+# All dependencies below this point should remain identical to those in 
+# the source ebuilds.
+
+COMMON_DEPEND="
+       ${BIN_COMMON_DEPEND}
+       ${PYTHON_DEPS}
+       app-arch/zip
+       app-arch/unzip
+       >=app-text/hunspell-1.3.2-r3
+       app-text/mythes
+       >=app-text/libexttextcat-3.2
+       app-text/liblangtag
+       app-text/libmspub
+       app-text/libwpd:0.9[tools]
+       app-text/libwpg:0.2
+       >=app-text/libwps-0.2.2
+       >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
+       >=dev-cpp/clucene-2.3.3.4-r2
+       >=dev-cpp/libcmis-0.3.1:0.3
+       dev-db/unixODBC
+       dev-libs/expat
+       >=dev-libs/hyphen-2.7.1
+       >=dev-libs/icu-4.8.1.1:=
+       =dev-libs/liborcus-0.3*
+       >=dev-libs/nspr-4.8.8
+       >=dev-libs/nss-3.12.9
+       >=dev-lang/perl-5.0
+       >=dev-libs/openssl-1.0.0d
+       >=dev-libs/redland-1.0.14[ssl]
+       media-gfx/graphite2
+       >=media-libs/fontconfig-2.8.0
+       media-libs/freetype:2
+       media-libs/lcms:2
+       >=media-libs/libpng-1.4
+       >=media-libs/libcdr-0.0.5
+       media-libs/libvisio
+       >=net-misc/curl-7.21.4
+       net-nds/openldap
+       sci-mathematics/lpsolve
+       virtual/jpeg
+       >=x11-libs/cairo-1.10.0[X]
+       x11-libs/libXinerama
+       x11-libs/libXrandr
+       x11-libs/libXrender
+       net-print/cups
+       >=dev-libs/dbus-glib-0.92
+       gnome? ( gnome-extra/evolution-data-server )
+       gnome? ( gnome-base/gconf:2 )
+       x11-libs/gdk-pixbuf[X]
+       >=x11-libs/gtk+-2.24:2
+       media-libs/gstreamer:1.0
+       media-libs/gst-plugins-base:1.0
+       virtual/glu
+       virtual/opengl
+       net-libs/neon
+"
+
+RDEPEND="${COMMON_DEPEND}
+       !app-office/libreoffice
+       !<app-office/openoffice-bin-3.4.0-r1
+       !app-office/openoffice
+       media-fonts/libertine-ttf
+       media-fonts/liberation-fonts
+       media-fonts/urw-fonts
+       java? ( >=virtual/jre-1.6 )
+"
+
+PDEPEND="
+       =app-office/libreoffice-l10n-4.0*
+"
+
+DEPEND=""
+
+# only one flavor at a time
+REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
+
+RESTRICT="test strip"
+
+S="${WORKDIR}"
+
+PYTHON_UPDATER_IGNORE="1"
+
+pkg_pretend() {
+       [[ $(gcc-major-version) -lt 4 ]] || \
+                       ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
+               && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
+}
+
+pkg_setup() {
+       kde4-base_pkg_setup
+}
+
+src_unpack() {
+       default
+}
+
+src_prepare() {
+       cp "${FILESDIR}"/50-${PN} "${T}"
+       eprefixify "${T}"/50-${PN}
+}
+
+src_configure() { :; }
+
+src_compile() { :; }
+
+src_install() {
+       dodir /usr
+       cp -aR "${S}"/usr/* "${ED}"/usr/
+
+       # prevent revdep-rebuild from attempting to rebuild all the time
+       insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
+}
+
+pkg_preinst() {
+       # Cache updates - all handled by kde eclass for all environments
+       kde4-base_pkg_preinst
+}
+
+pkg_postinst() {
+       kde4-base_pkg_postinst
+
+       pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
+       pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
+
+       use java || \
+               ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
+}
+
+pkg_postrm() {
+       kde4-base_pkg_postrm
+}