Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 59594
Collapse All | Expand All

(-)/usr/portage/app-text/acroread/acroread-5.09.ebuild (-12 / +18 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2004 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-text/acroread/acroread-5.09.ebuild,v 1.4 2004/08/13 10:16:28 plasmaroo Exp $
3
# $Header: $
4
4
5
inherit nsplugins eutils
5
inherit nsplugins eutils
6
6
Lines 9-19 Link Here
9
DESCRIPTION="Adobe's PDF reader"
9
DESCRIPTION="Adobe's PDF reader"
10
SRC_URI="ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/${MY_P}.tar.gz"
10
SRC_URI="ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/${MY_P}.tar.gz"
11
HOMEPAGE="http://www.adobe.com/products/acrobat/"
11
HOMEPAGE="http://www.adobe.com/products/acrobat/"
12
IUSE="cjk"
12
IUSE="cjk noplugin"
13
13
14
SLOT="0"
14
SLOT="0"
15
LICENSE="Adobe"
15
LICENSE="Adobe"
16
KEYWORDS="-* x86"
16
KEYWORDS="-* ~x86"
17
17
18
RESTRICT="nostrip"
18
RESTRICT="nostrip"
19
DEPEND="virtual/libc
19
DEPEND="virtual/libc
Lines 23-33 Link Here
23
INSTALLDIR=/opt/Acrobat5
23
INSTALLDIR=/opt/Acrobat5
24
24
25
pkg_setup() {
25
pkg_setup() {
26
26
	if [ ! `use noplugin` ]; then
27
	einfo
27
		einfo
28
	einfo "gtk2 USE flag can cause a slowdown in Mozilla's performance"
28
		einfo "gtk2 USE flag can cause a slowdown in Mozilla's performance"
29
	einfo "especially when using the acroread plugin to view a PDF file."
29
		einfo "especially when using the acroread plugin to view a PDF file."
30
	einfo
30
		einfo
31
	fi
31
}
32
}
32
33
33
src_compile() {
34
src_compile() {
Lines 44-50 Link Here
44
src_install() {
45
src_install() {
45
46
46
	dodir ${INSTALLDIR}
47
	dodir ${INSTALLDIR}
47
	for i in Browsers Reader Resource
48
	DIRS="Reader Resource"
49
	!(use noplugin) && DIRS="${DIRS} Browsers"
50
	for i in ${DIRS}
48
	do
51
	do
49
		if [ -d ${i} ] ; then
52
		if [ -d ${i} ] ; then
50
			chown -R --dereference root:root ${i}
53
			chown -R --dereference root:root ${i}
Lines 59-73 Link Here
59
	exeinto ${INSTALLDIR}
62
	exeinto ${INSTALLDIR}
60
	doexe acroread
63
	doexe acroread
61
	dodoc README LICREAD.TXT
64
	dodoc README LICREAD.TXT
62
	dodir /opt/netscape/plugins
65
63
	dosym ${INSTALLDIR}/Browsers/intellinux/nppdf.so /opt/netscape/plugins
66
	if [ ! `use noplugin` ]; then
67
		dodir /opt/netscape/plugins
68
		dosym ${INSTALLDIR}/Browsers/intellinux/nppdf.so /opt/netscape/plugins
69
		inst_plugin ${INSTALLDIR}/Browsers/intellinux/nppdf.so
70
	fi
64
71
65
	#dynamic environment by T.Henderson@cs.ucl.ac.uk (Tristan Henderson)
72
	#dynamic environment by T.Henderson@cs.ucl.ac.uk (Tristan Henderson)
66
	dodir /etc/env.d
73
	dodir /etc/env.d
67
	echo -e "PATH=${INSTALLDIR}\nROOTPATH=${INSTALLDIR}" > \
74
	echo -e "PATH=${INSTALLDIR}\nROOTPATH=${INSTALLDIR}" > \
68
		${D}/etc/env.d/10acroread5
75
		${D}/etc/env.d/10acroread5
69
76
70
	inst_plugin ${INSTALLDIR}/Browsers/intellinux/nppdf.so
71
}
77
}
72
78
73
pkg_postinst () {
79
pkg_postinst () {

Return to bug 59594