/[gentoo-x86]/app-office/libreoffice/libreoffice-3.6.9999.ebuild
Gentoo

Diff of /app-office/libreoffice/libreoffice-3.6.9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.33
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/Attic/libreoffice-3.6.9999.ebuild,v 1.12 2012/08/08 12:01:15 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/Attic/libreoffice-3.6.9999.ebuild,v 1.33 2012/11/23 18:46:09 scarabeus Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7KDE_REQUIRED="optional" 7KDE_REQUIRED="optional"
8QT_MINIMAL="4.7.4" 8QT_MINIMAL="4.7.4"
57 57
58# Really required addons 58# Really required addons
59# These are bundles that can't be removed for now due to huge patchsets. 59# These are bundles that can't be removed for now due to huge patchsets.
60# If you want them gone, patches are welcome. 60# If you want them gone, patches are welcome.
61ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" 61ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
62ADDONS_SRC+=" xmlsec? ( ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz )" # modifies source code 62ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
63ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" 63ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
64ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" 64ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )"
65ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it? 65ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
66ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
67ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
66ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable 68ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
67SRC_URI+=" ${ADDONS_SRC}" 69SRC_URI+=" ${ADDONS_SRC}"
68 70
69unset ADDONS_URI 71unset ADDONS_URI
70unset EXT_URI 72unset EXT_URI
71unset ADDONS_SRC 73unset ADDONS_SRC
72 74
73IUSE="binfilter binfilterdebug +branding +cups dbus eds gnome +graphite 75IUSE="binfilter binfilterdebug +branding +cups dbus eds gnome gstreamer +gtk
74gstreamer +gtk jemalloc kde mysql odk opengl postgres svg test +vba 76jemalloc kde mysql odk opengl postgres svg test +vba +webdav"
75+webdav +xmlsec"
76 77
77LO_EXTS="nlpsolver pdfimport presenter-console presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher" 78LO_EXTS="nlpsolver pdfimport presenter-console presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
78# Unpackaged separate extensions: 79# Unpackaged separate extensions:
79# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf? 80# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
80# hunart: only on ooo extensions -> fubared download path somewhere on sf 81# hunart: only on ooo extensions -> fubared download path somewhere on sf
89 90
90LICENSE="|| ( LGPL-3 MPL-1.1 )" 91LICENSE="|| ( LGPL-3 MPL-1.1 )"
91SLOT="0" 92SLOT="0"
92[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" 93[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
93 94
94NSS_DEPEND="
95 >=dev-libs/nspr-4.8.8
96 >=dev-libs/nss-3.12.9
97"
98COMMON_DEPEND=" 95COMMON_DEPEND="
99 app-arch/zip 96 app-arch/zip
100 app-arch/unzip 97 app-arch/unzip
101 >=app-text/hunspell-1.3.2-r3 98 >=app-text/hunspell-1.3.2-r3
102 app-text/mythes 99 app-text/mythes
103 >=app-text/libexttextcat-3.2 100 >=app-text/libexttextcat-3.2
104 app-text/libwpd:0.9[tools] 101 app-text/libwpd:0.9[tools]
105 app-text/libwpg:0.2 102 app-text/libwpg:0.2
106 >=app-text/libwps-0.2.2 103 >=app-text/libwps-0.2.2
107 >=dev-cpp/clucene-2.3.3.4-r2 104 >=dev-cpp/clucene-2.3.3.4-r2
108 >=dev-cpp/libcmis-0.2 105 >=dev-cpp/libcmis-0.2:0.2
109 dev-db/unixODBC 106 dev-db/unixODBC
110 dev-libs/expat 107 dev-libs/expat
111 >=dev-libs/glib-2.28 108 >=dev-libs/glib-2.28
112 >=dev-libs/hyphen-2.7.1 109 >=dev-libs/hyphen-2.7.1
113 >=dev-libs/icu-4.8.1.1 110 >=dev-libs/icu-4.8.1.1
111 >=dev-libs/nspr-4.8.8
112 >=dev-libs/nss-3.12.9
114 >=dev-lang/perl-5.0 113 >=dev-lang/perl-5.0
115 >=dev-libs/openssl-1.0.0d 114 >=dev-libs/openssl-1.0.0d
116 >=dev-libs/redland-1.0.14[ssl] 115 >=dev-libs/redland-1.0.14[ssl]
116 media-gfx/graphite2
117 >=media-libs/fontconfig-2.8.0 117 >=media-libs/fontconfig-2.8.0
118 media-libs/freetype:2 118 media-libs/freetype:2
119 media-libs/lcms:2 119 media-libs/lcms:2
120 >=media-libs/libpng-1.4 120 >=media-libs/libpng-1.4
121 >=media-libs/libcdr-0.0.5 121 >=media-libs/libcdr-0.0.5
134 gnome? ( gnome-base/gconf:2 ) 134 gnome? ( gnome-base/gconf:2 )
135 gtk? ( 135 gtk? (
136 x11-libs/gdk-pixbuf[X] 136 x11-libs/gdk-pixbuf[X]
137 >=x11-libs/gtk+-2.24:2 137 >=x11-libs/gtk+-2.24:2
138 ) 138 )
139 graphite? ( media-gfx/graphite2 )
140 gstreamer? ( 139 gstreamer? (
141 >=media-libs/gstreamer-0.10 140 >=media-libs/gstreamer-0.10:0.10
142 >=media-libs/gst-plugins-base-0.10 141 >=media-libs/gst-plugins-base-0.10:0.10
143 ) 142 )
144 jemalloc? ( dev-libs/jemalloc ) 143 jemalloc? ( dev-libs/jemalloc )
145 libreoffice_extensions_pdfimport? ( >=app-text/poppler-0.16[xpdf-headers,cxx] ) 144 libreoffice_extensions_pdfimport? ( >=app-text/poppler-0.16[xpdf-headers(+),cxx] )
146 libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 ) 145 libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
147 libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) 146 libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
148 libreoffice_extensions_wiki-publisher? ( 147 libreoffice_extensions_wiki-publisher? (
149 dev-java/commons-codec:0 148 dev-java/commons-codec:0
150 dev-java/commons-httpclient:3 149 dev-java/commons-httpclient:3
151 dev-java/commons-lang:2.1 150 dev-java/commons-lang:2.1
152 dev-java/commons-logging:0 151 dev-java/commons-logging:0
153 dev-java/tomcat-servlet-api:3.0 152 dev-java/tomcat-servlet-api:3.0
154 ) 153 )
155 mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) 154 mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
156 opengl? ( virtual/opengl ) 155 opengl? (
156 virtual/glu
157 virtual/opengl
158 )
157 postgres? ( >=dev-db/postgresql-base-8.4.0[kerberos] ) 159 postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
158 svg? ( gnome-base/librsvg ) 160 svg? ( gnome-base/librsvg )
159 webdav? ( net-libs/neon ) 161 webdav? ( net-libs/neon )
160 xmlsec? ( ${NSS_DEPEND} )
161" 162"
162 163
163RDEPEND="${COMMON_DEPEND} 164RDEPEND="${COMMON_DEPEND}
164 !app-office/libreoffice-bin 165 !app-office/libreoffice-bin
165 !app-office/libreoffice-bin-debug 166 !app-office/libreoffice-bin-debug
166 !app-office/openoffice-bin 167 !<app-openoffice/openoffice-bin-3.4.0-r1
167 !app-office/openoffice 168 !app-office/openoffice
168 media-fonts/libertine-ttf 169 media-fonts/libertine-ttf
169 media-fonts/liberation-fonts 170 media-fonts/liberation-fonts
170 media-fonts/urw-fonts 171 media-fonts/urw-fonts
171 java? ( >=virtual/jre-1.6 ) 172 java? ( >=virtual/jre-1.6 )
172" 173"
173 174
174PDEPEND=" 175PDEPEND="
175 >=app-office/libreoffice-l10n-3.6 176 =app-office/libreoffice-l10n-3.6*
176" 177"
177 178
178# FIXME: cppunit should be moved to test conditional 179# FIXME: cppunit should be moved to test conditional
179# after everything upstream is under gbuild 180# after everything upstream is under gbuild
180# as dmake execute tests right away 181# as dmake execute tests right away
203 x11-proto/xineramaproto 204 x11-proto/xineramaproto
204 x11-proto/xproto 205 x11-proto/xproto
205 java? ( 206 java? (
206 >=virtual/jdk-1.6 207 >=virtual/jdk-1.6
207 >=dev-java/ant-core-1.7 208 >=dev-java/ant-core-1.7
208 test? ( dev-java/junit:4 )
209 ) 209 )
210 odk? ( app-doc/doxygen )
210 test? ( dev-util/cppunit ) 211 test? ( dev-util/cppunit )
211" 212"
212 213
213PATCHES=( 214PATCHES=(
214 # not upstreamable stuff 215 # not upstreamable stuff
215 "${FILESDIR}/${PN}-3.6-system-pyuno.patch" 216 "${FILESDIR}/${PN}-3.6-system-pyuno.patch"
217 "${FILESDIR}/${PN}-3.6-separate-checks.patch"
216) 218)
217 219
218REQUIRED_USE=" 220REQUIRED_USE="
219 gnome? ( gtk ) 221 gnome? ( gtk )
220 eds? ( gnome ) 222 eds? ( gnome )
345 local internal_libs 347 local internal_libs
346 local lo_ext 348 local lo_ext
347 local ext_opts 349 local ext_opts
348 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") 350 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
349 351
352 # Workaround the boost header include issue for older gccs
353 if [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; then
354 append-cppflags -DBOOST_NO_0X_HDR_TYPEINDEX
355 append-cppflags -DBOOST_NO_CXX11_HDR_TYPEINDEX
356 fi
357
350 # recheck that there is some value in jobs 358 # recheck that there is some value in jobs
351 [[ -z ${jbs} ]] && jbs="1" 359 [[ -z ${jbs} ]] && jbs="1"
352 360
353 # sane: just sane.h header that is used for scan in writer, not 361 # sane: just sane.h header that is used for scan in writer, not
354 # linked or anything else, worthless to depend on 362 # linked or anything else, worthless to depend on
367 375
368 if use java; then 376 if use java; then
369 # hsqldb: system one is too new 377 # hsqldb: system one is too new
370 # saxon: system one does not work properly 378 # saxon: system one does not work properly
371 java_opts=" 379 java_opts="
380 --without-junit
372 --without-system-hsqldb 381 --without-system-hsqldb
373 --without-system-saxon 382 --without-system-saxon
374 --with-ant-home="${ANT_HOME}" 383 --with-ant-home="${ANT_HOME}"
375 --with-jdk-home=$(java-config --jdk-home 2>/dev/null) 384 --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
376 --with-java-target-version=$(java-pkg_get-target) 385 --with-java-target-version=$(java-pkg_get-target)
390 --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar) 399 --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
391 --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar) 400 --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
392 --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar) 401 --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
393 " 402 "
394 fi 403 fi
395
396 if use test; then
397 java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)"
398 else
399 java_opts+=" --without-junit"
400 fi
401 fi 404 fi
402 405
403 if use branding; then 406 if use branding; then
404 # hack... 407 # hack...
405 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die 408 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
406 fi 409 fi
407
408 # it's not entirely clear to me where the failure is, boost libreoffice gcc come to my mind
409 append-cppflags -DBOOST_NO_0X_HDR_TYPEINDEX
410 410
411 # system headers/libs/...: enforce using system packages 411 # system headers/libs/...: enforce using system packages
412 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster 412 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster
413 # --enable-cairo: ensure that cairo is always required 413 # --enable-cairo: ensure that cairo is always required
414 # --enable-*-link: link to the library rather than just dlopen on runtime 414 # --enable-*-link: link to the library rather than just dlopen on runtime
434 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ 434 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
435 --with-system-headers \ 435 --with-system-headers \
436 --with-system-libs \ 436 --with-system-libs \
437 --with-system-jars \ 437 --with-system-jars \
438 --with-system-dicts \ 438 --with-system-dicts \
439 --enable-graphite \
439 --enable-cairo-canvas \ 440 --enable-cairo-canvas \
440 --enable-largefile \ 441 --enable-largefile \
441 --enable-mergelibs \ 442 --enable-mergelibs \
442 --enable-python=system \ 443 --enable-python=system \
443 --enable-randr \ 444 --enable-randr \
444 --enable-randr-link \ 445 --enable-randr-link \
445 --enable-release-build \ 446 --enable-release-build \
446 --enable-unix-qstart-libpng \ 447 --enable-unix-qstart-libpng \
448 --enable-xmlsec \
447 --disable-ccache \ 449 --disable-ccache \
448 --disable-crashdump \ 450 --disable-crashdump \
449 --disable-dependency-tracking \ 451 --disable-dependency-tracking \
450 --disable-epm \ 452 --disable-epm \
451 --disable-fetch-external \ 453 --disable-fetch-external \
488 $(use_enable dbus) \ 490 $(use_enable dbus) \
489 $(use_enable eds evolution2) \ 491 $(use_enable eds evolution2) \
490 $(use_enable gnome gconf) \ 492 $(use_enable gnome gconf) \
491 $(use_enable gnome gio) \ 493 $(use_enable gnome gio) \
492 $(use_enable gnome lockdown) \ 494 $(use_enable gnome lockdown) \
493 $(use_enable graphite) \
494 $(use_enable gstreamer) \ 495 $(use_enable gstreamer) \
495 $(use_enable gtk) \ 496 $(use_enable gtk) \
496 $(use_enable kde kde4) \ 497 $(use_enable kde kde4) \
497 $(use_enable mysql ext-mysql-connector) \ 498 $(use_enable mysql ext-mysql-connector) \
498 $(use_enable odk) \ 499 $(use_enable odk) \
500 $(use_enable postgres postgresql-sdbc) \ 501 $(use_enable postgres postgresql-sdbc) \
501 $(use_enable svg librsvg system) \ 502 $(use_enable svg librsvg system) \
502 $(use_enable test linkoo) \ 503 $(use_enable test linkoo) \
503 $(use_enable vba) \ 504 $(use_enable vba) \
504 $(use_enable webdav neon) \ 505 $(use_enable webdav neon) \
505 $(use_enable xmlsec) \
506 $(use_with java) \ 506 $(use_with java) \
507 $(use_with mysql system-mysql-cppconn) \ 507 $(use_with mysql system-mysql-cppconn) \
508 $(use_with odk doxygen) \
508 ${internal_libs} \ 509 ${internal_libs} \
509 ${java_opts} \ 510 ${java_opts} \
510 ${ext_opts} 511 ${ext_opts}
511} 512}
512 513
552 # Hack for offlinehelp, this needs fixing upstream at some point. 553 # Hack for offlinehelp, this needs fixing upstream at some point.
553 # It is broken because we send --without-help 554 # It is broken because we send --without-help
554 # https://bugs.freedesktop.org/show_bug.cgi?id=46506 555 # https://bugs.freedesktop.org/show_bug.cgi?id=46506
555 insinto /usr/$(get_libdir)/libreoffice/help 556 insinto /usr/$(get_libdir)/libreoffice/help
556 doins xmlhelp/util/*.xsl 557 doins xmlhelp/util/*.xsl
558
559 # Remove desktop files for support to old installs that can't parse mime
560 rm -rf "${ED}"/usr/share/mimelnk/
557} 561}
558 562
559pkg_preinst() { 563pkg_preinst() {
560 # Cache updates - all handled by kde eclass for all environments 564 # Cache updates - all handled by kde eclass for all environments
561 kde4-base_pkg_preinst 565 kde4-base_pkg_preinst
566 570
567 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin 571 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
568 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin 572 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
569 573
570 use java || \ 574 use java || \
571 ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.' 575 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
572} 576}
573 577
574pkg_postrm() { 578pkg_postrm() {
575 kde4-base_pkg_postrm 579 kde4-base_pkg_postrm
576} 580}

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20