blob: 41d22e12b21a2a04790595105a3e26a802595e03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/cupsddk/cupsddk-1.2.3.ebuild,v 1.8 2011/03/20 20:04:48 jlec Exp $
EAPI=1
inherit autotools eutils
DESCRIPTION="Drivers, PPD file compiler, and utilities to develop printer drivers for CUPS and other printing envs"
HOMEPAGE="http://www.cups.org/software.php#USING_DDK"
SRC_URI="ftp://ftp.easysw.com/pub/${PN}/${PV}/${P}-source.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="fltk"
DEPEND="
>=net-print/cups-1.2
fltk? ( x11-libs/fltk:1 )"
RDEPEND="${DEPEND}"
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
src_unpack() {
unpack ${A}
cd "${S}"
# disable prestripping of compiled binaries
sed -i -e "/INSTALL_BIN/s/-s//" Makedefs.in || die "sed failed"
# fix automagic fltk dependency
epatch "${FILESDIR}"/${P}-fltk-automagic.patch
eautoconf
}
src_compile() {
econf BUILDROOT="${D}" \
--with-docdir=/usr/share/doc/${PF} \
$(use_with fltk) \
|| die "econf failed"
emake BUILDROOT="${D}" || die "emake failed"
}
src_install() {
emake BUILDROOT="${D}" install || die "emake install failed"
keepdir /usr/share/cups/drv
rm -f LICENSE.* doc/Makefile
dodoc *.txt
dohtml -r doc/*
}
|