diff options
Diffstat (limited to 'app-text/enscript/enscript-1.6.5.ebuild')
-rw-r--r-- | app-text/enscript/enscript-1.6.5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-text/enscript/enscript-1.6.5.ebuild b/app-text/enscript/enscript-1.6.5.ebuild new file mode 100644 index 000000000000..f25637c1ae28 --- /dev/null +++ b/app-text/enscript/enscript-1.6.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/enscript/enscript-1.6.5.ebuild,v 1.1 2010/01/26 05:08:23 jer Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="powerful text-to-postscript converter" +SRC_URI="mirror://gnu/${PN}/${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-3" +IUSE="nls ruby" + +DEPEND=" + sys-devel/flex + sys-devel/bison + nls? ( sys-devel/gettext ) +" +RDEPEND="nls? ( virtual/libintl )" + +src_prepare() { + epatch "${FILESDIR}"/enscript-1.6.3-language.patch + epatch "${FILESDIR}"/enscript-1.6.4-ebuild.st.patch + use ruby && epatch "${FILESDIR}"/enscript-1.6.2-ruby.patch +} + +src_configure() { + econf $(use_enable nls) +} + +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." +} |