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

Contents of /app-office/libreoffice/libreoffice-4.0.5.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Oct 31 15:46:03 2013 UTC (13 months, 3 weeks ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump to 4.1.3.2 and cleanup older. Force due to unsynced cvs tree.

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 8EEE3BE8)

1 scarabeus 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.4 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.0.5.2.ebuild,v 1.3 2013/09/16 14:47:50 scarabeus Exp $
4 scarabeus 1.1
5     EAPI=5
6    
7     KDE_REQUIRED="optional"
8     QT_MINIMAL="4.7.4"
9     KDE_SCM="git"
10     CMAKE_REQUIRED="never"
11    
12     PYTHON_COMPAT=( python2_7 python3_3 )
13     PYTHON_REQ_USE="threads,xml"
14    
15     # experimental ; release ; old
16     # Usually the tarballs are moved a lot so this should make
17     # everyone happy.
18     DEV_URI="
19     http://dev-builds.libreoffice.org/pre-releases/src
20     http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
21     http://download.documentfoundation.org/libreoffice/old/${PV}/
22     "
23     EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
24     ADDONS_URI="http://dev-www.libreoffice.org/src/"
25    
26     BRANDING="${PN}-branding-gentoo-0.7.tar.xz"
27     # PATCHSET="${P}-patchset-01.tar.xz"
28    
29     [[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
30     inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
31     unset SCM_ECLASS
32    
33     DESCRIPTION="LibreOffice, a full office productivity suite."
34     HOMEPAGE="http://www.libreoffice.org"
35     SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
36     [[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
37    
38     # Help is used for the image generator
39     # We can also build translations and others if needed.
40     # Core must be first
41     MODULES="core help"
42     # Only release has the tarballs
43     if [[ ${PV} != *9999* ]]; then
44     for i in ${DEV_URI}; do
45     for mod in ${MODULES}; do
46     if [[ ${mod} == core ]]; then
47     # core is now packed without it in the name, git reponame stay
48     SRC_URI+=" ${i}/${P}.tar.xz"
49     else
50     SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
51     fi
52     done
53     unset mod
54     done
55     unset i
56     fi
57     unset DEV_URI
58    
59     # Really required addons
60     # These are bundles that can't be removed for now due to huge patchsets.
61     # If you want them gone, patches are welcome.
62     ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
63     ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
64     ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
65     ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
66     ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
67     ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
68     ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
69     SRC_URI+=" ${ADDONS_SRC}"
70    
71     unset ADDONS_URI
72     unset EXT_URI
73     unset ADDONS_SRC
74    
75     IUSE="bluetooth +branding +cups dbus debug eds gnome gstreamer +gtk
76     jemalloc kde mysql odk opengl postgres telepathy test +vba +webdav"
77    
78     LO_EXTS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
79     # Unpackaged separate extensions:
80     # diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
81     # hunart: only on ooo extensions -> fubared download path somewhere on sf
82     # numbertext, typo, validator, watch-window: ^^
83     # oooblogger: no homepage or anything
84     # Extensions that need extra work:
85     # report-builder: missing java packages
86     for lo_xt in ${LO_EXTS}; do
87     IUSE+=" libreoffice_extensions_${lo_xt}"
88     done
89     unset lo_xt
90    
91     LICENSE="|| ( LGPL-3 MPL-1.1 )"
92     SLOT="0"
93     [[ ${PV} == *9999* ]] || \
94     KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
95    
96     COMMON_DEPEND="
97     ${PYTHON_DEPS}
98     app-arch/zip
99     app-arch/unzip
100     >=app-text/hunspell-1.3.2-r3
101     app-text/mythes
102     >=app-text/libexttextcat-3.2
103     app-text/liblangtag
104     app-text/libmspub
105     app-text/libwpd:0.9[tools]
106     app-text/libwpg:0.2
107     >=app-text/libwps-0.2.2
108     >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
109     >=dev-cpp/clucene-2.3.3.4-r2
110     >=dev-cpp/libcmis-0.3.1:0.3
111     dev-db/unixODBC
112     >=dev-libs/boost-1.46:=
113     dev-libs/expat
114     >=dev-libs/hyphen-2.7.1
115     >=dev-libs/icu-4.8.1.1:=
116     =dev-libs/liborcus-0.3*
117     >=dev-libs/nspr-4.8.8
118     >=dev-libs/nss-3.12.9
119     >=dev-lang/perl-5.0
120     >=dev-libs/openssl-1.0.0d
121     >=dev-libs/redland-1.0.14[ssl]
122     media-gfx/graphite2
123     >=media-libs/fontconfig-2.8.0
124     media-libs/freetype:2
125     media-libs/lcms:2
126     >=media-libs/libpng-1.4
127     >=media-libs/libcdr-0.0.5
128     media-libs/libvisio
129     >=net-misc/curl-7.21.4
130     net-nds/openldap
131     sci-mathematics/lpsolve
132     virtual/jpeg:0
133     >=x11-libs/cairo-1.10.0[X]
134     x11-libs/libXinerama
135     x11-libs/libXrandr
136     x11-libs/libXrender
137     bluetooth? ( net-wireless/bluez )
138     cups? ( net-print/cups )
139     dbus? ( >=dev-libs/dbus-glib-0.92 )
140     eds? ( gnome-extra/evolution-data-server )
141     gnome? ( gnome-base/gconf:2 )
142     gtk? (
143     x11-libs/gdk-pixbuf[X]
144     >=x11-libs/gtk+-2.24:2
145     )
146     gstreamer? (
147     media-libs/gstreamer:1.0
148     media-libs/gst-plugins-base:1.0
149     )
150     jemalloc? ( dev-libs/jemalloc )
151     libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
152     libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
153     libreoffice_extensions_wiki-publisher? (
154     dev-java/commons-codec:0
155     dev-java/commons-httpclient:3
156     dev-java/commons-lang:2.1
157     dev-java/commons-logging:0
158     dev-java/tomcat-servlet-api:3.0
159     )
160     mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
161     opengl? (
162     virtual/glu
163     virtual/opengl
164     )
165     postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
166     telepathy? (
167     dev-libs/glib:2
168     >=net-libs/telepathy-glib-0.18.0
169     >=x11-libs/gtk+-2.24:2
170     )
171     webdav? ( net-libs/neon )
172     "
173    
174     RDEPEND="${COMMON_DEPEND}
175     !app-office/libreoffice-bin
176     !app-office/libreoffice-bin-debug
177     !<app-office/openoffice-bin-3.4.0-r1
178     !app-office/openoffice
179     media-fonts/libertine-ttf
180     media-fonts/liberation-fonts
181     media-fonts/urw-fonts
182     java? ( >=virtual/jre-1.6 )
183     "
184    
185     if [[ ${PV} != *9999* ]]; then
186     PDEPEND="~app-office/libreoffice-l10n-${PV}"
187     else
188     # Translations are not reliable on live ebuilds
189     # rather force people to use english only.
190     PDEPEND="!app-office/libreoffice-l10n"
191     fi
192    
193     # FIXME: cppunit should be moved to test conditional
194     # after everything upstream is under gbuild
195     # as dmake execute tests right away
196     DEPEND="${COMMON_DEPEND}
197     >=dev-libs/libxml2-2.7.8
198     dev-libs/libxslt
199     dev-perl/Archive-Zip
200     dev-util/cppunit
201     >=dev-util/gperf-3
202     dev-util/intltool
203     <dev-util/mdds-0.8.0
204     virtual/pkgconfig
205     net-misc/npapi-sdk
206     >=sys-apps/findutils-4.4.2
207     sys-devel/bison
208     sys-apps/coreutils
209     sys-devel/flex
210     sys-devel/gettext
211     >=sys-devel/make-3.82
212     sys-devel/ucpp
213     sys-libs/zlib
214     x11-libs/libXt
215     x11-libs/libXtst
216     x11-proto/randrproto
217     x11-proto/xextproto
218     x11-proto/xineramaproto
219     x11-proto/xproto
220     java? (
221     >=virtual/jdk-1.6
222     >=dev-java/ant-core-1.7
223     )
224     odk? ( app-doc/doxygen )
225     test? ( dev-util/cppunit )
226     "
227    
228     PATCHES=(
229     # not upstreamable stuff
230     "${FILESDIR}/${PN}-3.7-system-pyuno.patch"
231     "${FILESDIR}/${PN}-3.7-separate-checks.patch"
232     "${FILESDIR}/${PN}-4.1.0.4-neon-build.patch"
233     )
234    
235     REQUIRED_USE="
236     ${PYTHON_REQUIRED_USE}
237     bluetooth? ( dbus )
238     gnome? ( gtk )
239     eds? ( gnome )
240     telepathy? ( gtk )
241     libreoffice_extensions_nlpsolver? ( java )
242     libreoffice_extensions_scripting-beanshell? ( java )
243     libreoffice_extensions_scripting-javascript? ( java )
244     libreoffice_extensions_wiki-publisher? ( java )
245     "
246    
247     CHECKREQS_MEMORY="512M"
248     CHECKREQS_DISK_BUILD="6G"
249    
250     pkg_pretend() {
251     local pgslot
252    
253     if [[ ${MERGE_TYPE} != binary ]]; then
254     check-reqs_pkg_pretend
255    
256     if [[ $(gcc-major-version) -lt 4 ]] || \
257     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
258     ; then
259     eerror "Compilation with gcc older than 4.6 is not supported"
260     die "Too old gcc found."
261     fi
262     fi
263    
264     # ensure pg version
265     if use postgres && has_version dev-db/postgresql-base; then
266     pgslot=$(postgresql-config show)
267     if [[ ${pgslot//.} < 90 ]] ; then
268     eerror "PostgreSQL slot must be set to 9.0 or higher."
269     eerror " postgresql-config set 9.0"
270     die "PostgreSQL slot is not set to 9.0 or higher."
271     fi
272     fi
273     }
274    
275     pkg_setup() {
276     java-pkg-opt-2_pkg_setup
277     kde4-base_pkg_setup
278     python-single-r1_pkg_setup
279    
280     [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
281     }
282    
283     src_unpack() {
284     local mod mod2 dest tmplfile tmplname mypv
285    
286     [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
287     use branding && unpack "${BRANDING}"
288    
289     if [[ ${PV} != *9999* ]]; then
290     unpack "${P}.tar.xz"
291     for mod in ${MODULES}; do
292     [[ ${mod} == core ]] && continue
293     unpack "${PN}-${mod}-${PV}.tar.xz"
294     done
295     else
296     for mod in ${MODULES}; do
297     mypv=${PV/.9999}
298     [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
299     EGIT_PROJECT="${PN}/${mod}"
300     EGIT_SOURCEDIR="${WORKDIR}/${P}"
301     [[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
302     EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
303     EGIT_NOUNPACK="true"
304     git-2_src_unpack
305     if [[ ${mod} != core ]]; then
306     mod2=${mod}
307     # mapping does not match on help
308     [[ ${mod} == help ]] && mod2="helpcontent2"
309     mkdir -p "${S}/${mod2}/" || die
310     mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
311     rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
312     fi
313     done
314     unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
315     fi
316     }
317    
318     src_prepare() {
319     # fixed in master, flags order in bridges compilation
320     filter-flags -fomit-frame-pointer
321    
322     # optimization flags
323     export ARCH_FLAGS="${CXXFLAGS}"
324     export LINKFLAGSOPTIMIZE="${LDFLAGS}"
325     export GMAKE_OPTIONS="${MAKEOPTS}"
326     # System python 2.7 enablement:
327     export PYTHON="${PYTHON}"
328     export PYTHON_CFLAGS=$(python_get_CFLAGS)
329     export PYTHON_LIBS=$(python_get_LIBS)
330    
331     # patchset
332     if [[ -n ${PATCHSET} ]]; then
333     EPATCH_FORCE="yes" \
334     EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
335     EPATCH_SUFFIX="patch" \
336     epatch
337     fi
338    
339     base_src_prepare
340    
341     AT_M4DIR="m4"
342     eautoreconf
343     # hack in the autogen.sh
344     touch autogen.lastrun
345    
346     # system pyuno mess
347     sed \
348     -e "s:%eprefix%:${EPREFIX}:g" \
349     -e "s:%libdir%:$(get_libdir):g" \
350     -i pyuno/source/module/uno.py \
351     -i scripting/source/pyprov/officehelper.py || die
352    
353     if use branding; then
354     # hack...
355     mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
356     fi
357     }
358    
359     src_configure() {
360     local java_opts
361     local internal_libs
362     local lo_ext
363     local ext_opts
364     local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
365    
366     # recheck that there is some value in jobs
367     [[ -z ${jbs} ]] && jbs="1"
368    
369     # sane: just sane.h header that is used for scan in writer, not
370     # linked or anything else, worthless to depend on
371     # vigra: just uses templates from there
372     # it is serious pain in the ass for packaging
373     # should be replaced by boost::gil if someone interested
374     internal_libs+="
375     --without-system-sane
376     --without-system-vigra
377     "
378    
379     # libreoffice extensions handling
380     for lo_xt in ${LO_EXTS}; do
381     if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
382     ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
383     else
384     ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
385     fi
386     done
387    
388     if use java; then
389     # hsqldb: system one is too new
390     java_opts="
391     --without-junit
392     --without-system-hsqldb
393     --with-ant-home="${ANT_HOME}"
394     --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
395     --with-java-target-version=$(java-pkg_get-target)
396     --with-jvm-path="${EPREFIX}/usr/$(get_libdir)/"
397     "
398    
399     use libreoffice_extensions_scripting-beanshell && \
400     java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
401    
402     use libreoffice_extensions_scripting-javascript && \
403     java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
404    
405     if use libreoffice_extensions_wiki-publisher; then
406     java_opts+="
407     --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
408     --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
409     --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
410     --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
411     --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.jar)
412     "
413     fi
414     fi
415    
416     # system headers/libs/...: enforce using system packages
417     # --enable-unix-qstart-libpng: use libpng splashscreen that is faster
418     # --enable-cairo: ensure that cairo is always required
419     # --enable-graphite: disabling causes build breakages
420     # --enable-*-link: link to the library rather than just dlopen on runtime
421     # --enable-release-build: build the libreoffice as release
422     # --disable-fetch-external: prevent dowloading during compile phase
423     # --disable-gnome-vfs: old gnome virtual fs support
424     # --disable-kdeab: kde3 adressbook
425     # --disable-kde: kde3 support
426     # --disable-pch: precompiled headers cause build crashes
427     # --disable-rpath: relative runtime path is not desired
428     # --disable-systray: quickstarter does not actually work at all so do not
429     # promote it
430     # --disable-zenity: disable build icon
431     # --enable-extension-integration: enable any extension integration support
432     # --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
433     # --disable-ext-report-builder: too much java packages pulled in
434     econf \
435     --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
436     --with-system-headers \
437     --with-system-libs \
438     --with-system-jars \
439     --with-system-dicts \
440     --enable-cairo-canvas \
441     --enable-graphite \
442     --enable-largefile \
443     --enable-mergelibs \
444     --enable-python=system \
445     --enable-randr \
446     --enable-randr-link \
447     --enable-release-build \
448     --enable-unix-qstart-libpng \
449     --enable-hardlink-deliver \
450     --disable-ccache \
451     --disable-crashdump \
452     --disable-dependency-tracking \
453     --disable-epm \
454     --disable-fetch-external \
455     --disable-gnome-vfs \
456     --disable-gstreamer-0-10 \
457     --disable-ext-report-builder \
458     --disable-kdeab \
459     --disable-kde \
460     --disable-online-update \
461     --disable-pch \
462     --disable-rpath \
463     --disable-systray \
464     --disable-zenity \
465     --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
466     --with-build-version="Gentoo official package" \
467     --enable-extension-integration \
468     --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
469     --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
470     --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
471     --with-external-tar="${DISTDIR}" \
472     --with-lang="" \
473     --with-parallelism=${jbs} \
474     --with-system-ucpp \
475     --with-unix-wrapper=libreoffice \
476     --with-vendor="Gentoo Foundation" \
477     --with-x \
478     --without-afms \
479     --without-fonts \
480     --without-myspell-dicts \
481     --without-system-mozilla \
482     --without-help \
483     --with-helppack-integration \
484     --without-sun-templates \
485     $(use_enable bluetooth sdremote-bluetooth) \
486     $(use_enable cups) \
487     $(use_enable debug) \
488     $(use_enable dbus) \
489     $(use_enable eds evolution2) \
490     $(use_enable gnome gconf) \
491     $(use_enable gnome gio) \
492     $(use_enable gnome lockdown) \
493 scarabeus 1.2 $(use_enable gstreamer) \
494 scarabeus 1.1 $(use_enable gtk) \
495     $(use_enable kde kde4) \
496     $(use_enable mysql ext-mysql-connector) \
497     $(use_enable odk) \
498     $(use_enable opengl) \
499     $(use_enable postgres postgresql-sdbc) \
500     $(use_enable telepathy) \
501     $(use_enable test linkoo) \
502     $(use_enable vba) \
503     $(use_enable webdav neon) \
504     $(use_with java) \
505     $(use_with mysql system-mysql-cppconn) \
506     $(use_with odk doxygen) \
507     ${internal_libs} \
508     ${java_opts} \
509     ${ext_opts}
510     }
511    
512     src_compile() {
513     # hack for offlinehelp, this needs fixing upstream at some point
514     # it is broken because we send --without-help
515     # https://bugs.freedesktop.org/show_bug.cgi?id=46506
516     (
517     grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
518     source "${T}/config_host.mk" 2&> /dev/null
519    
520     local path="${SOLARVER}/${INPATH}/res/img"
521     mkdir -p "${path}" || die
522    
523     echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
524     perl "${S}/helpcontent2/helpers/create_ilst.pl" \
525     -dir=icon-themes/galaxy/res/helpimg \
526     > "${path}/helpimg.ilst"
527     [[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
528     )
529    
530     # this is not a proper make script
531     make build || die
532     }
533    
534     src_test() {
535     make unitcheck || die
536     make slowcheck || die
537     }
538    
539     src_install() {
540     # This is not Makefile so no buildserver
541     make DESTDIR="${D}" distro-pack-install -o build -o check || die
542    
543     # Fix bash completion placement
544     newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
545     rm -rf "${ED}"/etc/
546    
547     if use branding; then
548     insinto /usr/$(get_libdir)/${PN}/program
549     newins "${WORKDIR}/branding-sofficerc" sofficerc
550     fi
551    
552     # symlink the nsplugin to proper location
553 scarabeus 1.3 # use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
554 scarabeus 1.1
555     # Hack for offlinehelp, this needs fixing upstream at some point.
556     # It is broken because we send --without-help
557     # https://bugs.freedesktop.org/show_bug.cgi?id=46506
558     insinto /usr/$(get_libdir)/libreoffice/help
559     doins xmlhelp/util/*.xsl
560    
561     # Remove desktop files for support to old installs that can't parse mime
562     rm -rf "${ED}"/usr/share/mimelnk/
563     }
564    
565     pkg_preinst() {
566     # Cache updates - all handled by kde eclass for all environments
567     kde4-base_pkg_preinst
568     }
569    
570     pkg_postinst() {
571     kde4-base_pkg_postinst
572    
573     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
574     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
575    
576     use java || \
577     ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
578     }
579    
580     pkg_postrm() {
581     kde4-base_pkg_postrm
582     }

  ViewVC Help
Powered by ViewVC 1.1.20