You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-print/pup/pup-1.1-r1.ebuild

41 lines
943 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/pup/pup-1.1-r1.ebuild,v 1.4 2012/04/07 12:03:17 maekke Exp $
EAPI="2"
inherit eutils
MY_P=${P/-/_}
DESCRIPTION="Printer Utility Program, setup & maintenance for certain Lexmark & HP printers"
HOMEPAGE="http://pup.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}_src.tar.gz
http://alfter.us/files/${P}-manpage-install.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
DEPEND="x11-libs/gtk+:1
sys-libs/zlib
dev-libs/glib:1"
RDEPEND="${DEPEND}"
IUSE=""
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch ${DISTDIR}/"${P}"-manpage-install.patch.gz
sed -i -e "/^CC/s: =.*$: = $(tc-getCC) ${CFLAGS} ${LDFLAGS}:" \
Makefile || die "sed failed"
}
src_compile() {
emake || die "emake failed"
}
src_install() {
dodir /usr/share/man/man1
emake DESTDIR="${D}" install || die
}