/[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.31
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.31 2012/11/07 21:10:10 tetromino 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
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 test? ( dev-java/junit:4 )
209 ) 210 )
211 odk? ( app-doc/doxygen )
210 test? ( dev-util/cppunit ) 212 test? ( dev-util/cppunit )
211" 213"
212 214
213PATCHES=( 215PATCHES=(
214 # not upstreamable stuff 216 # not upstreamable stuff
215 "${FILESDIR}/${PN}-3.6-system-pyuno.patch" 217 "${FILESDIR}/${PN}-3.6-system-pyuno.patch"
218 "${FILESDIR}/${PN}-3.6-separate-checks.patch"
216) 219)
217 220
218REQUIRED_USE=" 221REQUIRED_USE="
219 gnome? ( gtk ) 222 gnome? ( gtk )
220 eds? ( gnome ) 223 eds? ( gnome )
345 local internal_libs 348 local internal_libs
346 local lo_ext 349 local lo_ext
347 local ext_opts 350 local ext_opts
348 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") 351 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
349 352
353 # Workaround the boost header include issue for older gccs
354 if [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; then
355 append-cppflags -DBOOST_NO_0X_HDR_TYPEINDEX
356 append-cppflags -DBOOST_NO_CXX11_HDR_TYPEINDEX
357 fi
358
350 # recheck that there is some value in jobs 359 # recheck that there is some value in jobs
351 [[ -z ${jbs} ]] && jbs="1" 360 [[ -z ${jbs} ]] && jbs="1"
352 361
353 # sane: just sane.h header that is used for scan in writer, not 362 # sane: just sane.h header that is used for scan in writer, not
354 # linked or anything else, worthless to depend on 363 # linked or anything else, worthless to depend on
402 411
403 if use branding; then 412 if use branding; then
404 # hack... 413 # hack...
405 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die 414 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
406 fi 415 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 416
411 # system headers/libs/...: enforce using system packages 417 # system headers/libs/...: enforce using system packages
412 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster 418 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster
413 # --enable-cairo: ensure that cairo is always required 419 # --enable-cairo: ensure that cairo is always required
414 # --enable-*-link: link to the library rather than just dlopen on runtime 420 # --enable-*-link: link to the library rather than just dlopen on runtime
434 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ 440 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
435 --with-system-headers \ 441 --with-system-headers \
436 --with-system-libs \ 442 --with-system-libs \
437 --with-system-jars \ 443 --with-system-jars \
438 --with-system-dicts \ 444 --with-system-dicts \
445 --enable-graphite \
439 --enable-cairo-canvas \ 446 --enable-cairo-canvas \
440 --enable-largefile \ 447 --enable-largefile \
441 --enable-mergelibs \ 448 --enable-mergelibs \
442 --enable-python=system \ 449 --enable-python=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) \
500 $(use_enable postgres postgresql-sdbc) \ 507 $(use_enable postgres postgresql-sdbc) \
501 $(use_enable svg librsvg system) \ 508 $(use_enable svg librsvg system) \
502 $(use_enable test linkoo) \ 509 $(use_enable test linkoo) \
503 $(use_enable vba) \ 510 $(use_enable vba) \
504 $(use_enable webdav neon) \ 511 $(use_enable webdav neon) \
505 $(use_enable xmlsec) \
506 $(use_with java) \ 512 $(use_with java) \
507 $(use_with mysql system-mysql-cppconn) \ 513 $(use_with mysql system-mysql-cppconn) \
514 $(use_with odk doxygen) \
508 ${internal_libs} \ 515 ${internal_libs} \
509 ${java_opts} \ 516 ${java_opts} \
510 ${ext_opts} 517 ${ext_opts}
511} 518}
512 519
552 # Hack for offlinehelp, this needs fixing upstream at some point. 559 # Hack for offlinehelp, this needs fixing upstream at some point.
553 # It is broken because we send --without-help 560 # It is broken because we send --without-help
554 # https://bugs.freedesktop.org/show_bug.cgi?id=46506 561 # https://bugs.freedesktop.org/show_bug.cgi?id=46506
555 insinto /usr/$(get_libdir)/libreoffice/help 562 insinto /usr/$(get_libdir)/libreoffice/help
556 doins xmlhelp/util/*.xsl 563 doins xmlhelp/util/*.xsl
564
565 # Remove desktop files for support to old installs that can't parse mime
566 rm -rf "${ED}"/usr/share/mimelnk/
557} 567}
558 568
559pkg_preinst() { 569pkg_preinst() {
560 # Cache updates - all handled by kde eclass for all environments 570 # Cache updates - all handled by kde eclass for all environments
561 kde4-base_pkg_preinst 571 kde4-base_pkg_preinst

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

  ViewVC Help
Powered by ViewVC 1.1.20