diff options
| author | eroen | 2013-09-03 16:28:21 +0200 |
|---|---|---|
| committer | eroen | 2013-09-03 16:28:21 +0200 |
| commit | 95523bf3db3a5bdc50187fbb8cd497ea770e3a71 (patch) | |
| tree | 499d9b197c8c154a5fde75abac9d869648fc31dc /net-print/foo2zjs/foo2zjs-99999999.ebuild | |
| parent | f15e878ace71cc41b4d34c5b8c7a3d10b0e45520 (diff) | |
| download | eroen-overlay-95523bf3db3a5bdc50187fbb8cd497ea770e3a71.tar.gz eroen-overlay-95523bf3db3a5bdc50187fbb8cd497ea770e3a71.tar.bz2 eroen-overlay-95523bf3db3a5bdc50187fbb8cd497ea770e3a71.tar.xz | |
foo2zjs from gentoo
Diffstat (limited to 'net-print/foo2zjs/foo2zjs-99999999.ebuild')
| -rw-r--r-- | net-print/foo2zjs/foo2zjs-99999999.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/net-print/foo2zjs/foo2zjs-99999999.ebuild b/net-print/foo2zjs/foo2zjs-99999999.ebuild new file mode 100644 index 00000000..7b021eba --- /dev/null +++ b/net-print/foo2zjs/foo2zjs-99999999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/foo2zjs/foo2zjs-99999999.ebuild,v 1.10 2013/03/24 19:50:36 dilfridge Exp $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Support for printing to ZjStream-based printers" +HOMEPAGE="http://foo2zjs.rkkda.com/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="test" + +RESTRICT="bindist" + +RDEPEND="net-print/cups + net-print/foomatic-db-engine + net-print/foomatic-filters + virtual/udev" +DEPEND="${RDEPEND} + app-arch/unzip + app-editors/vim + net-misc/wget + sys-apps/ed + sys-devel/bc + test? ( sys-process/time )" + +S="${WORKDIR}/${PN}" + +src_unpack() { + einfo "Fetching ${PN} tarball" + wget "http://foo2zjs.rkkda.com/${PN}.tar.gz" + tar zxf "${WORKDIR}/${PN}.tar.gz" + + epatch "${FILESDIR}/${PN}-udev.patch" + epatch "${FILESDIR}/${PN}-usbbackend.patch" + + cd "${S}" + + einfo "Fetching additional files (firmware, etc)" + emake getweb + + # Display wget output, downloading takes some time. + sed -e '/^WGETOPTS/s/-q//g' -i getweb + + ./getweb all +} + +src_prepare() { + # Prevent an access violation. + sed -e "s~/etc~${D}/etc~g" -i Makefile + sed -e "s~/etc~${D}/etc~g" -i hplj1000 + + # Prevent an access violation, do not create symlinks on live file system + # during installation. + sed -e 's/ install-filter / /g' -i Makefile +} + +src_compile() { + MAKEOPTS=-j1 default +} + +src_install() { + # ppd files are installed automagically. We have to create a directory + # for them. + mkdir -p "${D}/usr/share/ppd" + + emake DESTDIR="${D}" -j1 install install-hotplug +} |
