blob: b80a46bcc91f562b7970dc1a3e449f4c69d12921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/enscript/enscript-1.6.4-r1.ebuild,v 1.2 2006/03/30 17:43:16 agriffis Exp $
inherit eutils
DESCRIPTION="powerful text-to-postscript converter"
SRC_URI="http://www.iki.fi/mtr/genscript/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/enscript/enscript.html"
KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls"
DEPEND="sys-devel/flex
sys-devel/bison
nls? ( sys-devel/gettext )"
RDEPEND="nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/enscript-1.6.3-security.patch
epatch ${FILESDIR}/enscript-1.6.3-language.patch
epatch ${FILESDIR}/enscript-catmur.patch
}
src_compile() {
unset CC
econf `use_enable nls` || die
emake || die
}
src_install() {
einstall || die
dodoc AUTHORS ChangeLog FAQ.html NEWS README* THANKS TODO
}
pkg_postinst() {
einfo "Now, customize /etc/enscript.cfg."
}
|