|
|
# Copyright 1999-2005 Gentoo Foundation | # Copyright 1999-2005 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/media-fonts/acroread-asianfonts/acroread-asianfonts-20020815.ebuild,v 1.7 2005/03/16 20:00:53 luckyduck Exp $ |
# $Header: $ |
| |
DESCRIPTION="Asian Font Packs for Acrobat Reader 5.0" |
|
HOMEPAGE="http://www.adobe.com/prodindex/acrobat/readstep.html" |
|
BASE_URI="ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/" | BASE_URI="ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/" |
| |
|
DESCRIPTION="Asian font packs for Adobe Acrobat Reader" |
|
HOMEPAGE="http://www.adobe.com/products/acrobat/acrrasianfontpack.html" |
SRC_URI="${BASE_URI}/chsfont.tar.gz | SRC_URI="${BASE_URI}/chsfont.tar.gz |
${BASE_URI}/chtfont.tar.gz | ${BASE_URI}/chtfont.tar.gz |
${BASE_URI}/jpnfont.tar.gz | ${BASE_URI}/jpnfont.tar.gz |
${BASE_URI}/korfont.tar.gz" | ${BASE_URI}/korfont.tar.gz" |
|
SLOT="7" |
SLOT="0" |
|
LICENSE="Adobe" | LICENSE="Adobe" |
KEYWORDS="x86 amd64" | KEYWORDS="x86 amd64" |
IUSE="" | IUSE="" |
|
DEPEND="" |
| |
DEPEND="virtual/libc |
INSTALLDIR="/opt/Acrobat${SLOT}/Resource" |
app-text/acroread" |
INST_LANG="CHS CHT JPN KOR" #This should probably be user configurable |
S="${WORKDIR}" |
|
| |
INSTALLDIR="/opt/Acrobat5/Resource/Font" |
src_unpack() { |
|
unpack ${A} |
|
mv -f */* . &>/dev/null # FIXME: Ugly! |
|
rm -rf ???KIT &>/dev/null |
|
} |
| |
src_install() { | src_install() { |
dodir ${INSTALLDIR} |
cd ${WORKDIR} |
for tarfile in `ls *KIT/*.TAR` ; do |
dodir ${INSTALLDIR}/Font |
tar -xvf ${tarfile} --no-same-owner -C ${D}/${INSTALLDIR} || die |
for lang in ${INST_LANG} |
|
do |
|
einfo "Installing ${lang} pack ..." |
|
tar xf "LANG${lang}.TAR" --no-same-owner -C ${D}/${INSTALLDIR}/Font |
done | done |
chown -R --dereference root:root ${D}/${INSTALLDIR} |
|
|
dodir ${INSTALLDIR}/CMap |
|
einfo "Installing Asian CMaps ..." |
|
tar xf LANGCOM.TAR --no-same-owner -C ${D}/${INSTALLDIR}/CMap |
|
|
|
insinto ${INSTALLDIR} |
|
doins LICFONT.TXT # Is this needed? |
|
|
|
chown -R --dereference 0:0 ${D}/${INSTALLDIR} |
} | } |