blob: 953a3ddd4ae1bf18720ff57ab7d908103e108f95 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="A suite of standard drivers, a PPD file compiler, and other utilities to develop printer drivers for CUPS and other printing environments."
HOMEPAGE="http://www.cups.org/ddk/index.php"
SRC_URI="http://jdettner.free.fr/gentoo/cupsddk/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="net-print/cups"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
cd "${S}"
# fix prestripped binaries, nuke SVN dirs
sed -i -e "/INSTALL_BIN/s/-s//" Makedefs.in || die "sed failed"
find . -type d -name '.svn' -print0 | xargs -0 rm -rf
}
src_compile() {
econf BUILDROOT="${D}" \
--with-docdir=/usr/share/doc/${PF} \
|| die "econf failed"
emake BUILDROOT="${D}" || die "emake failed"
}
src_install() {
emake BUILDROOT="${D}" install || die "emake install failed"
keepdir /usr/share/cups/drv
# FIXME!!! This thing would collide with a directory installed by cups
# no idea why is it installed there
mv ${D}/usr/libexec/cups/driver ${D}/usr/bin/cupsddk-driver
rm -f LICENSE.* doc/Makefile
dodoc *.txt
dohtml -r doc/*
}
pkg_postinst() {
elog "*** FIXME!!! ***"
elog "The included driver binary has been installed as /usr/bin/cupsddk-driver"
elog "to prevent collision with a directory installed by cups"
elog "*** FIXME!!! ***"
}
|