diff options
Diffstat (limited to 'net-print/magicfilter/magicfilter-2.3h.ebuild')
-rw-r--r-- | net-print/magicfilter/magicfilter-2.3h.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/net-print/magicfilter/magicfilter-2.3h.ebuild b/net-print/magicfilter/magicfilter-2.3h.ebuild new file mode 100644 index 000000000000..a3a4874cdaf4 --- /dev/null +++ b/net-print/magicfilter/magicfilter-2.3h.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs + +MY_P=${PN}-2.3.h + +DESCRIPTION="Customizable, extensible automatic printer filter" +HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/magicfilter/" +SRC_URI="http://www.pell.portland.or.us/~orc/Code/magicfilter/${MY_P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="lprng-failsafe" + +DEPEND="app-text/ghostscript-gpl" +RDEPEND="${DEPEND} + lprng-failsafe? ( net-print/lprng )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-2.3d-glibc-2.10.patch \ + "${FILESDIR}"/${PN}-2.3h-configure.patch \ + "${FILESDIR}"/${PN}-2.3h-makefile.patch +} + +src_configure() { + local myconf + use lprng-failsafe && myconf="--with-lprng" + + tc-export CC + export AC_CPP_PROG="$(tc-getCPP)" + + ./configure.sh \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --filterdir=/usr/share/magicfilter/filters \ + ${myconf} || die +} |