|
|
# Distributed under the terms of the GNU General Public License v2 | # 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 $ | # $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/} | S=${WORKDIR}/${P/b/} |
DESCRIPTION="Any to PostScript filter" | 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/" | HOMEPAGE="http://www-inf.enst.fr/~demaille/a2ps/" |
| |
SLOT="0" | SLOT="0" |
LICENSE="GPL-2" | LICENSE="GPL-2" |
KEYWORDS="x86 ppc sparc alpha" | KEYWORDS="x86 ppc sparc alpha" |
IUSE="nls tetex" |
IUSE="nls tetex cjk" |
| |
DEPEND=">=app-text/ghostscript-6.23 | DEPEND=">=app-text/ghostscript-6.23 |
>=app-text/psutils-1.17 | >=app-text/psutils-1.17 |
|
|
if use alpha; then | if use alpha; then |
gnuconfig_update || die "gnuconfig_update failed" | gnuconfig_update || die "gnuconfig_update failed" |
fi | fi |
|
xpatch $PATCHES | die |
} | } |
| |
src_compile() { | src_compile() { |
|
|
lispdir=${D}/usr/share/emacs/site-lisp \ | lispdir=${D}/usr/share/emacs/site-lisp \ |
|| die "einstall failed" | || die "einstall failed" |
| |
|
sed -i -e "s,${D},,g" "${D}/etc/a2ps/a2ps.cfg" |
dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README THANKS TODO | dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README THANKS TODO |
} | } |