# Copyright 1999-2011 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.1 2011/03/12 12:17:27 phajdan.jr Exp $ EAPI="3" inherit eutils DESCRIPTION="Support for printing to ZjStream-based printers" HOMEPAGE="http://foo2zjs.rkkda.com/" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="" RESTRICT="bindist" RDEPEND="net-print/cups net-print/foomatic-db-engine net-print/foomatic-filters sys-fs/udev" DEPEND="${RDEPEND} app-arch/unzip net-misc/wget sys-devel/bc" S="${WORKDIR}/${PN}" src_unpack() { einfo "Fetching ${PN} tarball" wget "http://foo2zjs.rkkda.com/${PN}.tar.gz" || die tar zxf "${WORKDIR}/${PN}.tar.gz" || die cd "${S}" || die einfo "Fetching additional files (firmware, etc)" emake getweb || die # Display wget output, downloading takes some time. sed -e '/^WGETOPTS/s/-q//g' -i getweb || die ./getweb all || die } src_prepare() { # Prevent an access violation, do not create symlinks on live file system # during installation. sed -e 's/ install-filter / /g' -i Makefile || die } src_install() { emake DESTDIR="${D}" install || die }