# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit latex-package DESCRIPTION="Unicode support for latex" HOMEPAGE="http://www.unruh.de/DniQ/latex/unicode/unicode.tgz" SRC_URI=" http://www.unruh.de/DniQ/latex/unicode/unicode.tgz http://www.unicode.org/Public/UNIDATA/UnicodeData.txt " LICENSE="latex" SLOT="0" KEYWORDS="~x86" IUSE="cjk" DEPEND="virtual/tetex dev-lang/perl" RDEPEND="virtual/tetex" S="${WORKDIR}/ucs" src_unpack() { unpack unicode.tgz cp ${DISTDIR}/UnicodeData.txt ${S} } src_compile() { local myconf use cjk || myconf="${myconf} --exclude cjkbg5,cjkgb,cjkjis,cjkhangul" perl makeunidef.pl -t data -v --nocomments config/* || die } src_install() { dest=${TEXMF}/tex/latex/${PN} dodir ${dest}/data insinto ${dest}/data doins data/* insinto ${dest} doins *.sty *.def dodoc FAQ INSTALL LICENSE VERSION README ucs.ps.gz languages.ps.gz }