--- app-text/a2ps/a2ps-4.13b-r4.ebuild 2003-05-24 08:22:08.000000000 +0900 +++ app-text/a2ps/a2ps-4.13b-r4.ebuild 2003-07-11 14:47:57.000000000 +0900 @@ -2,17 +2,24 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-text/a2ps/a2ps-4.13b-r4.ebuild,v 1.11 2003/05/23 23:18:28 agriffis Exp $ -inherit gnuconfig +inherit gnuconfig eutils S=${WORKDIR}/${P/b/} DESCRIPTION="Any to PostScript filter" -SRC_URI="ftp://ftp.enst.fr/pub/unix/a2ps/${P}.tar.gz" +SRC_URI="ftp://ftp.enst.fr/pub/unix/a2ps/${P}.tar.gz + cjk? ( http://www.on.cs.keio.ac.jp/~yasu/linux/GNU/a2ps-4.13-ja_nls.patch ) " +PATCHES="${FILESDIR}/a2ps-stdout.diff" + +if use cjk; then + PATCHES="${PATCHES} ${DISTDIR}/a2ps-4.13-ja_nls.patch" +fi + HOMEPAGE="http://www-inf.enst.fr/~demaille/a2ps/" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc sparc alpha" -IUSE="nls tetex" +IUSE="nls tetex cjk" DEPEND=">=app-text/ghostscript-6.23 >=app-text/psutils-1.17 @@ -25,6 +32,7 @@ if use alpha; then gnuconfig_update || die "gnuconfig_update failed" fi + xpatch $PATCHES | die } src_compile() { @@ -40,5 +48,6 @@ lispdir=${D}/usr/share/emacs/site-lisp \ || die "einstall failed" + sed -i -e "s,${D},,g" "${D}/etc/a2ps/a2ps.cfg" dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README THANKS TODO }