blob: ebaa3234456ed4b70c21afc181d21bba87634920 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2008 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-r4.ebuild,v 1.7 2008/11/15 18:44:05 dertobi123 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 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
SLOT="0"
LICENSE="GPL-2"
IUSE="nls ruby"
DEPEND="sys-devel/flex
sys-devel/bison
nls? ( sys-devel/gettext )"
RDEPEND="nls? ( virtual/libintl )"
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
epatch "${FILESDIR}"/enscript-1.6.4-ebuild.st.patch
epatch "${FILESDIR}"/enscript-1.6.4-config.patch
epatch "${FILESDIR}"/enscript-1.6.4-CVE-2008-3863-CVE-2008-4306.patch
use ruby && epatch "${FILESDIR}"/enscript-1.6.2-ruby.patch
}
src_compile() {
unset CC
econf $(use_enable nls)
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog NEWS README* THANKS TODO || die "dodoc failed"
insinto /usr/share/enscript/hl
doins "${FILESDIR}"/ebuild.st || die "doins ebuild.st failed"
if use ruby ; then
insinto /usr/share/enscript/hl
doins "${FILESDIR}"/ruby.st || die "doins ruby.st failed"
fi
}
pkg_postinst() {
elog "Now, customize /etc/enscript.cfg."
}
|