blob: a4e468fb9bb3eb15afe245abe49346d70e13ad64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-5.06.ebuild,v 1.4 2002/10/17 14:31:19 aliz Exp $
MY_P=linux-${PV/./}
S=${WORKDIR}
DESCRIPTION="Adobe's PDF reader"
SRC_URI="ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/${MY_P}.tar.gz"
HOMEPAGE="http://www.adobe.com/products/acrobat/"
IUSE="mozilla"
DEPEND="virtual/glibc"
SLOT="0"
LICENSE="Adobe"
KEYWORDS="x86 -ppc"
INSTALLDIR=/opt/Acrobat5
src_compile () {
tar xvf LINUXRDR.TAR
tar xvf COMMON.TAR
sed -e "s:REPLACE_ME:${INSTALLDIR}/Reader:" \
bin/acroread.sh > acroread
}
src_install () {
dodir ${INSTALLDIR}
for i in Browsers Reader Resource
do
chown -R root.root ${i}
cp -a ${i} ${D}${INSTALLDIR}
done
exeinto ${INSTALLDIR}
doexe acroread
dodoc README LICREAD.TXT
dodir /opt/netscape/plugins
dosym ${INSTALLDIR}/Browsers/intellinux/nppdf.so /opt/netscape/plugins
#dynamic environment by T.Henderson@cs.ucl.ac.uk (Tristan Henderson)
dodir /etc/env.d
echo -e "PATH=${INSTALLDIR}\nROOTPATH=${INSTALLDIR}" > \
${D}/etc/env.d/10acroread5
#mozilla compatibility contributed by m3thos@netcabo.pt(Miguel Sousa Filipe)
use mozilla && ( \
dodir /usr/lib/mozilla/plugins
dosym \
${INSTALLDIR}/Browsers/intellinux/nppdf.so \
/usr/lib/mozilla/plugins/nppdf.so
)
}
|