Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.2.0.ebuild,v 1.19 2010/04/07 04:22:12 darkside Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.2.0.ebuild,v 1.19 2010/04/07 04:22:12 darkside 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="false" |
8 |
CMAKE_REQUIRED="false" |
9 |
|
9 |
|
Lines 61-67
HOMEPAGE="http://go-oo.org"
Link Here
|
61 |
|
61 |
|
62 |
LICENSE="LGPL-2" |
62 |
LICENSE="LGPL-2" |
63 |
SLOT="0" |
63 |
SLOT="0" |
64 |
KEYWORDS="amd64 ~ppc ~sparc x86" |
64 |
KEYWORDS="amd64 ~ppc ~sparc x86 ~amd64-linux ~x86-linux" |
65 |
|
65 |
|
66 |
COMMON_DEPEND="!app-office/openoffice-bin |
66 |
COMMON_DEPEND="!app-office/openoffice-bin |
67 |
x11-libs/libXaw |
67 |
x11-libs/libXaw |
Lines 224-229
src_prepare() {
Link Here
|
224 |
cp -f "${FILESDIR}/npwrap-fix-nogtk.diff" "${S}/patches/hotfixes" || die |
224 |
cp -f "${FILESDIR}/npwrap-fix-nogtk.diff" "${S}/patches/hotfixes" || die |
225 |
cp -f "${FILESDIR}/neon-remove-SSPI-support.diff" "${S}/patches/hotfixes" || die |
225 |
cp -f "${FILESDIR}/neon-remove-SSPI-support.diff" "${S}/patches/hotfixes" || die |
226 |
|
226 |
|
|
|
227 |
# Prefix patch |
228 |
epatch "${FILESDIR}/ooo-build-3.0.1.2-prefix.patch" |
229 |
|
227 |
#Use flag checks |
230 |
#Use flag checks |
228 |
if use java ; then |
231 |
if use java ; then |
229 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
232 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
Lines 316-321
src_configure() {
Link Here
|
316 |
|
319 |
|
317 |
cd "${S}" |
320 |
cd "${S}" |
318 |
./configure --with-distro="Gentoo" \ |
321 |
./configure --with-distro="Gentoo" \ |
|
|
322 |
--prefix="${EPREFIX}"/usr \ |
323 |
--sysconfdir="${EPREFIX}"/etc \ |
319 |
--with-arch="${ARCH}" \ |
324 |
--with-arch="${ARCH}" \ |
320 |
--with-srcdir="${DISTDIR}" \ |
325 |
--with-srcdir="${DISTDIR}" \ |
321 |
--with-lang="${LINGUAS_OOO}" \ |
326 |
--with-lang="${LINGUAS_OOO}" \ |
Lines 340-347
src_configure() {
Link Here
|
340 |
--enable-extensions \ |
345 |
--enable-extensions \ |
341 |
--with-system-libwpd \ |
346 |
--with-system-libwpd \ |
342 |
--with-system-libwpg \ |
347 |
--with-system-libwpg \ |
343 |
--mandir=/usr/share/man \ |
348 |
--mandir="${EPREFIX}"/usr/share/man \ |
344 |
--libdir=/usr/$(get_libdir) \ |
349 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
345 |
|| die "Configuration failed!" |
350 |
|| die "Configuration failed!" |
346 |
|
351 |
|
347 |
} |
352 |
} |
Lines 360-377
src_install() {
Link Here
|
360 |
make DESTDIR="${D}" install || die "Installation failed!" |
365 |
make DESTDIR="${D}" install || die "Installation failed!" |
361 |
|
366 |
|
362 |
# Fix the permissions for security reasons |
367 |
# Fix the permissions for security reasons |
363 |
chown -RP root:0 "${D}" |
368 |
use prefix || chown -RP root:0 "${ED}" |
364 |
|
369 |
|
365 |
# record java libraries |
370 |
# record java libraries |
366 |
if use java; then |
371 |
if use java; then |
367 |
java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar |
372 |
java-pkg_regjar "${ED}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar |
368 |
java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar |
373 |
java-pkg_regjar "${ED}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar |
369 |
fi |
374 |
fi |
370 |
|
375 |
|
371 |
# Upstream places the bash-completion module in /etc. Gentoo places them in |
376 |
# Upstream places the bash-completion module in /etc. Gentoo places them in |
372 |
# /usr/share/bash-completion. bug 226061 |
377 |
# /usr/share/bash-completion. bug 226061 |
373 |
dobashcompletion "${D}"/etc/bash_completion.d/ooffice.sh ooffice |
378 |
dobashcompletion "${ED}"/etc/bash_completion.d/ooffice.sh ooffice |
374 |
rm -rf "${D}"/etc/bash_completion.d/ || die "rm failed" |
379 |
rm -rf "${ED}"/etc/bash_completion.d/ || die "rm failed" |
375 |
|
380 |
|
376 |
} |
381 |
} |
377 |
|
382 |
|
Lines 381-390
pkg_postinst() {
Link Here
|
381 |
fdo-mime_mime_database_update |
386 |
fdo-mime_mime_database_update |
382 |
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst |
387 |
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst |
383 |
|
388 |
|
384 |
( [[ -x /sbin/chpax ]] || [[ -x /sbin/paxctl ]] ) && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && scanelf -Xzm /usr/$(get_libdir)/openoffice/program/soffice.bin |
389 |
# does this make sense for Prefix? |
|
|
390 |
[[ -x ${EPREFIX}/sbin/chpax || -x ${EPREFIX}/sbin/paxctl ]] && [[ -e ${EPREFIX}/usr/$(get_libdir)/openoffice/program/soffice.bin ]] && scanelf -Xzm "${EPREFIX}"/usr/$(get_libdir)/openoffice/program/soffice.bin |
385 |
|
391 |
|
386 |
# Add available & useful jars to openoffice classpath |
392 |
# Add available & useful jars to openoffice classpath |
387 |
use java && /usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
393 |
use java && "${EPREFIX}"/usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
388 |
|
394 |
|
389 |
elog " Some aditional functionality can be installed via Extension Manager: " |
395 |
elog " Some aditional functionality can be installed via Extension Manager: " |
390 |
elog " *) PDF Import " |
396 |
elog " *) PDF Import " |