/[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.37
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.37 2012/12/18 15:20:31 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 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
87done 88done
88unset lo_xt 89unset lo_xt
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 ~arm ~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 gnome-base/librsvg
117 media-gfx/graphite2
117 >=media-libs/fontconfig-2.8.0 118 >=media-libs/fontconfig-2.8.0
118 media-libs/freetype:2 119 media-libs/freetype:2
119 media-libs/lcms:2 120 media-libs/lcms:2
120 >=media-libs/libpng-1.4 121 >=media-libs/libpng-1.4
121 >=media-libs/libcdr-0.0.5 122 >=media-libs/libcdr-0.0.5
134 gnome? ( gnome-base/gconf:2 ) 135 gnome? ( gnome-base/gconf:2 )
135 gtk? ( 136 gtk? (
136 x11-libs/gdk-pixbuf[X] 137 x11-libs/gdk-pixbuf[X]
137 >=x11-libs/gtk+-2.24:2 138 >=x11-libs/gtk+-2.24:2
138 ) 139 )
139 graphite? ( media-gfx/graphite2 )
140 gstreamer? ( 140 gstreamer? (
141 >=media-libs/gstreamer-0.10 141 >=media-libs/gstreamer-0.10:0.10
142 >=media-libs/gst-plugins-base-0.10 142 >=media-libs/gst-plugins-base-0.10:0.10
143 ) 143 )
144 jemalloc? ( dev-libs/jemalloc ) 144 jemalloc? ( dev-libs/jemalloc )
145 libreoffice_extensions_pdfimport? ( >=app-text/poppler-0.16[xpdf-headers,cxx] ) 145 libreoffice_extensions_pdfimport? ( >=app-text/poppler-0.16[xpdf-headers(+),cxx] )
146 libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 ) 146 libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
147 libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) 147 libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
148 libreoffice_extensions_wiki-publisher? ( 148 libreoffice_extensions_wiki-publisher? (
149 dev-java/commons-codec:0 149 dev-java/commons-codec:0
150 dev-java/commons-httpclient:3 150 dev-java/commons-httpclient:3
151 dev-java/commons-lang:2.1 151 dev-java/commons-lang:2.1
152 dev-java/commons-logging:0 152 dev-java/commons-logging:0
153 dev-java/tomcat-servlet-api:3.0 153 dev-java/tomcat-servlet-api:3.0
154 ) 154 )
155 mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) 155 mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
156 opengl? ( virtual/opengl ) 156 opengl? (
157 virtual/glu
158 virtual/opengl
159 )
157 postgres? ( >=dev-db/postgresql-base-8.4.0[kerberos] ) 160 postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
158 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-office/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 )
330 AT_M4DIR="m4" 332 AT_M4DIR="m4"
331 eautoreconf 333 eautoreconf
332 # hack in the autogen.sh 334 # hack in the autogen.sh
333 touch autogen.lastrun 335 touch autogen.lastrun
334 336
337 # mysql dmake build is MESSY at minimal
338 sed -i \
339 -e "s:/usr/lib/:/usr/$(get_libdir):g" \
340 mysqlc/source/makefile.mk || die
341
335 # system pyuno mess 342 # system pyuno mess
336 sed \ 343 sed \
337 -e "s:%eprefix%:${EPREFIX}:g" \ 344 -e "s:%eprefix%:${EPREFIX}:g" \
338 -e "s:%libdir%:$(get_libdir):g" \ 345 -e "s:%libdir%:$(get_libdir):g" \
339 -i pyuno/source/module/uno.py \ 346 -i pyuno/source/module/uno.py \
344 local java_opts 351 local java_opts
345 local internal_libs 352 local internal_libs
346 local lo_ext 353 local lo_ext
347 local ext_opts 354 local ext_opts
348 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") 355 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
356
357 # Workaround the boost header include issue for older gccs
358 if [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; then
359 append-cppflags -DBOOST_NO_0X_HDR_TYPEINDEX
360 append-cppflags -DBOOST_NO_CXX11_HDR_TYPEINDEX
361 fi
349 362
350 # recheck that there is some value in jobs 363 # recheck that there is some value in jobs
351 [[ -z ${jbs} ]] && jbs="1" 364 [[ -z ${jbs} ]] && jbs="1"
352 365
353 # sane: just sane.h header that is used for scan in writer, not 366 # sane: just sane.h header that is used for scan in writer, not
367 380
368 if use java; then 381 if use java; then
369 # hsqldb: system one is too new 382 # hsqldb: system one is too new
370 # saxon: system one does not work properly 383 # saxon: system one does not work properly
371 java_opts=" 384 java_opts="
385 --without-junit
372 --without-system-hsqldb 386 --without-system-hsqldb
373 --without-system-saxon 387 --without-system-saxon
374 --with-ant-home="${ANT_HOME}" 388 --with-ant-home="${ANT_HOME}"
375 --with-jdk-home=$(java-config --jdk-home 2>/dev/null) 389 --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
376 --with-java-target-version=$(java-pkg_get-target) 390 --with-java-target-version=$(java-pkg_get-target)
390 --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar) 404 --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) 405 --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) 406 --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
393 " 407 "
394 fi 408 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 409 fi
402 410
403 if use branding; then 411 if use branding; then
404 # hack... 412 # hack...
405 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die 413 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
406 fi 414 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 415
411 # system headers/libs/...: enforce using system packages 416 # system headers/libs/...: enforce using system packages
412 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster 417 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster
413 # --enable-cairo: ensure that cairo is always required 418 # --enable-cairo: ensure that cairo is always required
414 # --enable-*-link: link to the library rather than just dlopen on runtime 419 # --enable-*-link: link to the library rather than just dlopen on runtime
434 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ 439 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
435 --with-system-headers \ 440 --with-system-headers \
436 --with-system-libs \ 441 --with-system-libs \
437 --with-system-jars \ 442 --with-system-jars \
438 --with-system-dicts \ 443 --with-system-dicts \
444 --enable-graphite \
439 --enable-cairo-canvas \ 445 --enable-cairo-canvas \
440 --enable-largefile \ 446 --enable-largefile \
441 --enable-mergelibs \ 447 --enable-mergelibs \
442 --enable-python=system \ 448 --enable-python=system \
449 --enable-librsvg=system \
443 --enable-randr \ 450 --enable-randr \
444 --enable-randr-link \ 451 --enable-randr-link \
445 --enable-release-build \ 452 --enable-release-build \
446 --enable-unix-qstart-libpng \ 453 --enable-unix-qstart-libpng \
454 --enable-xmlsec \
447 --disable-ccache \ 455 --disable-ccache \
448 --disable-crashdump \ 456 --disable-crashdump \
449 --disable-dependency-tracking \ 457 --disable-dependency-tracking \
450 --disable-epm \ 458 --disable-epm \
451 --disable-fetch-external \ 459 --disable-fetch-external \
488 $(use_enable dbus) \ 496 $(use_enable dbus) \
489 $(use_enable eds evolution2) \ 497 $(use_enable eds evolution2) \
490 $(use_enable gnome gconf) \ 498 $(use_enable gnome gconf) \
491 $(use_enable gnome gio) \ 499 $(use_enable gnome gio) \
492 $(use_enable gnome lockdown) \ 500 $(use_enable gnome lockdown) \
493 $(use_enable graphite) \
494 $(use_enable gstreamer) \ 501 $(use_enable gstreamer) \
495 $(use_enable gtk) \ 502 $(use_enable gtk) \
496 $(use_enable kde kde4) \ 503 $(use_enable kde kde4) \
497 $(use_enable mysql ext-mysql-connector) \ 504 $(use_enable mysql ext-mysql-connector) \
498 $(use_enable odk) \ 505 $(use_enable odk) \
499 $(use_enable opengl) \ 506 $(use_enable opengl) \
500 $(use_enable postgres postgresql-sdbc) \ 507 $(use_enable postgres postgresql-sdbc) \
501 $(use_enable svg librsvg system) \
502 $(use_enable test linkoo) \ 508 $(use_enable test linkoo) \
503 $(use_enable vba) \ 509 $(use_enable vba) \
504 $(use_enable webdav neon) \ 510 $(use_enable webdav neon) \
505 $(use_enable xmlsec) \
506 $(use_with java) \ 511 $(use_with java) \
507 $(use_with mysql system-mysql-cppconn) \ 512 $(use_with mysql system-mysql-cppconn) \
513 $(use_with odk doxygen) \
508 ${internal_libs} \ 514 ${internal_libs} \
509 ${java_opts} \ 515 ${java_opts} \
510 ${ext_opts} 516 ${ext_opts}
511} 517}
512 518
552 # Hack for offlinehelp, this needs fixing upstream at some point. 558 # Hack for offlinehelp, this needs fixing upstream at some point.
553 # It is broken because we send --without-help 559 # It is broken because we send --without-help
554 # https://bugs.freedesktop.org/show_bug.cgi?id=46506 560 # https://bugs.freedesktop.org/show_bug.cgi?id=46506
555 insinto /usr/$(get_libdir)/libreoffice/help 561 insinto /usr/$(get_libdir)/libreoffice/help
556 doins xmlhelp/util/*.xsl 562 doins xmlhelp/util/*.xsl
563
564 # Remove desktop files for support to old installs that can't parse mime
565 rm -rf "${ED}"/usr/share/mimelnk/
557} 566}
558 567
559pkg_preinst() { 568pkg_preinst() {
560 # Cache updates - all handled by kde eclass for all environments 569 # Cache updates - all handled by kde eclass for all environments
561 kde4-base_pkg_preinst 570 kde4-base_pkg_preinst
566 575
567 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin 576 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
568 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin 577 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
569 578
570 use java || \ 579 use java || \
571 ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.' 580 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
572} 581}
573 582
574pkg_postrm() { 583pkg_postrm() {
575 kde4-base_pkg_postrm 584 kde4-base_pkg_postrm
576} 585}

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

  ViewVC Help
Powered by ViewVC 1.1.20