Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.2.1-r1.ebuild,v 1.4 2010/11/17 14:40:23 maekke Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.2.1-r1.ebuild,v 1.4 2010/11/17 14:40:23 maekke 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 227-232
src_prepare() {
Link Here
|
227 |
cp -f "${FILESDIR}/neon-remove-SSPI-support.diff" "${S}/patches/hotfixes" || die |
227 |
cp -f "${FILESDIR}/neon-remove-SSPI-support.diff" "${S}/patches/hotfixes" || die |
228 |
cp -f "${FILESDIR}/libX11-fix.diff" "${S}/patches/hotfixes" || die |
228 |
cp -f "${FILESDIR}/libX11-fix.diff" "${S}/patches/hotfixes" || die |
229 |
|
229 |
|
|
|
230 |
# Prefix patch |
231 |
epatch "${FILESDIR}/ooo-build-3.0.1.2-prefix.patch" |
232 |
|
230 |
#Use flag checks |
233 |
#Use flag checks |
231 |
if use java ; then |
234 |
if use java ; then |
232 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
235 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
Lines 319-324
src_configure() {
Link Here
|
319 |
|
322 |
|
320 |
cd "${S}" |
323 |
cd "${S}" |
321 |
./configure --with-distro="Gentoo" \ |
324 |
./configure --with-distro="Gentoo" \ |
|
|
325 |
--prefix="${EPREFIX}"/usr \ |
326 |
--sysconfdir="${EPREFIX}"/etc \ |
322 |
--with-arch="${ARCH}" \ |
327 |
--with-arch="${ARCH}" \ |
323 |
--with-srcdir="${DISTDIR}" \ |
328 |
--with-srcdir="${DISTDIR}" \ |
324 |
--with-lang="${LINGUAS_OOO}" \ |
329 |
--with-lang="${LINGUAS_OOO}" \ |
Lines 343-350
src_configure() {
Link Here
|
343 |
--enable-extensions \ |
348 |
--enable-extensions \ |
344 |
--with-system-libwpd \ |
349 |
--with-system-libwpd \ |
345 |
--with-system-libwpg \ |
350 |
--with-system-libwpg \ |
346 |
--mandir=/usr/share/man \ |
351 |
--mandir="${EPREFIX}"/usr/share/man \ |
347 |
--libdir=/usr/$(get_libdir) \ |
352 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
348 |
|| die "Configuration failed!" |
353 |
|| die "Configuration failed!" |
349 |
|
354 |
|
350 |
} |
355 |
} |
Lines 363-380
src_install() {
Link Here
|
363 |
make DESTDIR="${D}" install || die "Installation failed!" |
368 |
make DESTDIR="${D}" install || die "Installation failed!" |
364 |
|
369 |
|
365 |
# Fix the permissions for security reasons |
370 |
# Fix the permissions for security reasons |
366 |
chown -RP root:0 "${D}" |
371 |
chown -RP root:0 "${ED}" |
367 |
|
372 |
|
368 |
# record java libraries |
373 |
# record java libraries |
369 |
if use java; then |
374 |
if use java; then |
370 |
java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar |
375 |
java-pkg_regjar "${ED}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar |
371 |
java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar |
376 |
java-pkg_regjar "${ED}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar |
372 |
fi |
377 |
fi |
373 |
|
378 |
|
374 |
# Upstream places the bash-completion module in /etc. Gentoo places them in |
379 |
# Upstream places the bash-completion module in /etc. Gentoo places them in |
375 |
# /usr/share/bash-completion. bug 226061 |
380 |
# /usr/share/bash-completion. bug 226061 |
376 |
dobashcompletion "${D}"/etc/bash_completion.d/ooffice.sh ooffice |
381 |
dobashcompletion "${ED}"/etc/bash_completion.d/ooffice.sh ooffice |
377 |
rm -rf "${D}"/etc/bash_completion.d/ || die "rm failed" |
382 |
rm -rf "${ED}"/etc/bash_completion.d/ || die "rm failed" |
378 |
|
383 |
|
379 |
} |
384 |
} |
380 |
|
385 |
|
Lines 384-393
pkg_postinst() {
Link Here
|
384 |
fdo-mime_mime_database_update |
389 |
fdo-mime_mime_database_update |
385 |
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst |
390 |
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst |
386 |
|
391 |
|
387 |
( [[ -x /sbin/chpax ]] || [[ -x /sbin/paxctl ]] ) && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && scanelf -Xzm /usr/$(get_libdir)/openoffice/program/soffice.bin |
392 |
( [[ -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 |
388 |
|
393 |
|
389 |
# Add available & useful jars to openoffice classpath |
394 |
# Add available & useful jars to openoffice classpath |
390 |
use java && /usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
395 |
use java && ${EPREFIX}/usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
391 |
|
396 |
|
392 |
elog " Some aditional functionality can be installed via Extension Manager: " |
397 |
elog " Some aditional functionality can be installed via Extension Manager: " |
393 |
elog " *) PDF Import " |
398 |
elog " *) PDF Import " |