Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.2.0.ebuild,v 1.29 2010/11/07 19:45:55 anarchy Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.2.0.ebuild,v 1.29 2010/11/07 19:45:55 anarchy Exp $ |
4 |
|
4 |
|
5 |
WANT_AUTOMAKE="1.9" |
5 |
WANT_AUTOMAKE="1.9" |
6 |
EAPI="2" |
6 |
EAPI="3" |
7 |
KDE_REQUIRED="optional" |
7 |
KDE_REQUIRED="optional" |
8 |
CMAKE_REQUIRED="never" |
8 |
CMAKE_REQUIRED="never" |
9 |
PYTHON_DEPEND="2" |
9 |
PYTHON_DEPEND="2" |
Lines 63-69
HOMEPAGE="http://go-oo.org"
Link Here
|
63 |
|
63 |
|
64 |
LICENSE="LGPL-2" |
64 |
LICENSE="LGPL-2" |
65 |
SLOT="0" |
65 |
SLOT="0" |
66 |
KEYWORDS="amd64 ppc ~sparc x86" |
66 |
KEYWORDS="amd64 ppc ~sparc x86 ~amd64-linux ~x86-linux" |
67 |
|
67 |
|
68 |
COMMON_DEPEND="!app-office/openoffice-bin |
68 |
COMMON_DEPEND="!app-office/openoffice-bin |
69 |
x11-libs/libXaw |
69 |
x11-libs/libXaw |
Lines 228-233
src_prepare() {
Link Here
|
228 |
cp -f "${FILESDIR}/neon-remove-SSPI-support.diff" "${S}/patches/hotfixes" || die |
228 |
cp -f "${FILESDIR}/neon-remove-SSPI-support.diff" "${S}/patches/hotfixes" || die |
229 |
cp -f "${FILESDIR}/gcc45-buildfix.diff" "${S}/patches/hotfixes" || die |
229 |
cp -f "${FILESDIR}/gcc45-buildfix.diff" "${S}/patches/hotfixes" || die |
230 |
|
230 |
|
|
|
231 |
# Prefix patch |
232 |
epatch "${FILESDIR}/ooo-build-3.0.1.2-prefix.patch" |
233 |
|
231 |
#Use flag checks |
234 |
#Use flag checks |
232 |
if use java ; then |
235 |
if use java ; then |
233 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
236 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
Lines 320-325
src_configure() {
Link Here
|
320 |
|
323 |
|
321 |
cd "${S}" |
324 |
cd "${S}" |
322 |
./configure --with-distro="Gentoo" \ |
325 |
./configure --with-distro="Gentoo" \ |
|
|
326 |
--prefix="${EPREFIX}"/usr \ |
327 |
--sysconfdir="${EPREFIX}"/etc \ |
323 |
--with-arch="${ARCH}" \ |
328 |
--with-arch="${ARCH}" \ |
324 |
--with-srcdir="${DISTDIR}" \ |
329 |
--with-srcdir="${DISTDIR}" \ |
325 |
--with-lang="${LINGUAS_OOO}" \ |
330 |
--with-lang="${LINGUAS_OOO}" \ |
Lines 344-351
src_configure() {
Link Here
|
344 |
--enable-extensions \ |
349 |
--enable-extensions \ |
345 |
--with-system-libwpd \ |
350 |
--with-system-libwpd \ |
346 |
--with-system-libwpg \ |
351 |
--with-system-libwpg \ |
347 |
--mandir=/usr/share/man \ |
352 |
--mandir="${EPREFIX}"/usr/share/man \ |
348 |
--libdir=/usr/$(get_libdir) \ |
353 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
349 |
|| die "Configuration failed!" |
354 |
|| die "Configuration failed!" |
350 |
|
355 |
|
351 |
} |
356 |
} |
Lines 364-381
src_install() {
Link Here
|
364 |
make DESTDIR="${D}" install || die "Installation failed!" |
369 |
make DESTDIR="${D}" install || die "Installation failed!" |
365 |
|
370 |
|
366 |
# Fix the permissions for security reasons |
371 |
# Fix the permissions for security reasons |
367 |
chown -RP root:0 "${D}" |
372 |
chown -RP root:0 "${ED}" |
368 |
|
373 |
|
369 |
# record java libraries |
374 |
# record java libraries |
370 |
if use java; then |
375 |
if use java; then |
371 |
java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar |
376 |
java-pkg_regjar "${ED}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar |
372 |
java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar |
377 |
java-pkg_regjar "${ED}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar |
373 |
fi |
378 |
fi |
374 |
|
379 |
|
375 |
# Upstream places the bash-completion module in /etc. Gentoo places them in |
380 |
# Upstream places the bash-completion module in /etc. Gentoo places them in |
376 |
# /usr/share/bash-completion. bug 226061 |
381 |
# /usr/share/bash-completion. bug 226061 |
377 |
dobashcompletion "${D}"/etc/bash_completion.d/ooffice.sh ooffice |
382 |
dobashcompletion "${ED}"/etc/bash_completion.d/ooffice.sh ooffice |
378 |
rm -rf "${D}"/etc/bash_completion.d/ || die "rm failed" |
383 |
rm -rf "${ED}"/etc/bash_completion.d/ || die "rm failed" |
379 |
|
384 |
|
380 |
} |
385 |
} |
381 |
|
386 |
|
Lines 385-394
pkg_postinst() {
Link Here
|
385 |
fdo-mime_mime_database_update |
390 |
fdo-mime_mime_database_update |
386 |
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst |
391 |
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst |
387 |
|
392 |
|
388 |
( [[ -x /sbin/chpax ]] || [[ -x /sbin/paxctl ]] ) && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && scanelf -Xzm /usr/$(get_libdir)/openoffice/program/soffice.bin |
393 |
( [[ -x /sbin/chpax ]] || [[ -x /sbin/paxctl ]] ) && [[ -e "${EPREFIX}"/usr/$(get_libdir)/openoffice/program/soffice.bin ]] && scanelf -Xzm "${EPREFIX}"/usr/$(get_libdir)/openoffice/program/soffice.bin |
389 |
|
394 |
|
390 |
# Add available & useful jars to openoffice classpath |
395 |
# Add available & useful jars to openoffice classpath |
391 |
use java && /usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
396 |
use java && ${EPREFIX}/usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
392 |
|
397 |
|
393 |
elog " Some aditional functionality can be installed via Extension Manager: " |
398 |
elog " Some aditional functionality can be installed via Extension Manager: " |
394 |
elog " *) PDF Import " |
399 |
elog " *) PDF Import " |