# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: system@gentoo.org # /space/gentoo/cvsroot/gentoo-x86/app-text/acroread/acroread-4.05-r4.ebuild,v 1.2 2002/04/27 08:20:10 seemant Exp MY_P=linux-505 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/" DEPEND="virtual/glibc" RDEPEND="virtual/x11" src_unpack() { unpack ${A} cd ${S} tar xvf LINUXRDR.TAR tar xvf COMMON.TAR } src_compile () { tar xvf LINUXRDR.TAR tar xvf COMMON.TAR sed -e "s:REPLACE_ME:/opt/Acrobat5/Reader:" \ bin/acroread.sh > acroread } src_install () { dodir /opt/Acrobat5 for i in Browsers Reader Resource do cp -a ${S}/${i} ${D}/opt/Acrobat5 done exeinto /opt/Acrobat5 doexe acroread dodoc README LICREAD.TXT into /opt/netscape/plugins dosym /opt/Acrobat5/Browsers/intellinux/nppdf.so /opt/netscape/plugins insinto /etc/env.d doins ${FILESDIR}/10acroread #mozilla compatibility contributed by m3thos@netcabo.pt(Miguel Sousa Filipe) if use mozilla; then into /usr/lib/mozilla/plugins dosym \ /opt/Acrobat5/Browsers/intellinux/nppdf.so \ /usr/lib/mozilla/plugins/nppdf.so fi }