Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-print/pnm2ppa: pnm2ppa-1.12.ebuild
Date: Sat, 18 Jul 2009 18:08:37
Message-Id: E1MSEKp-0006wW-Mg@stork.gentoo.org
1 ssuominen 09/07/18 18:08:35
2
3 Modified: pnm2ppa-1.12.ebuild
4 Log:
5 QA
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.13 net-print/pnm2ppa/pnm2ppa-1.12.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild?rev=1.13&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild?rev=1.13&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild?r1=1.12&r2=1.13
14
15 Index: pnm2ppa-1.12.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild,v
18 retrieving revision 1.12
19 retrieving revision 1.13
20 diff -u -r1.12 -r1.13
21 --- pnm2ppa-1.12.ebuild 8 Aug 2004 00:29:38 -0000 1.12
22 +++ pnm2ppa-1.12.ebuild 18 Jul 2009 18:08:35 -0000 1.13
23 @@ -1,111 +1,87 @@
24 -# Copyright 1999-2004 Gentoo Foundation
25 +# Copyright 1999-2009 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild,v 1.12 2004/08/08 00:29:38 slarti Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-print/pnm2ppa/pnm2ppa-1.12.ebuild,v 1.13 2009/07/18 18:08:35 ssuominen Exp $
29
30 -# Note: this also d/ls the hp-ppa-howto and installs it under /usr/share/doc/${P}
31 -
32 -SRC_URI="mirror://sourceforge/pnm2ppa/${P}.tar.gz
33 - mirror://sourceforge/pnm2ppa/howto.tgz"
34 +inherit flag-o-matic toolchain-funcs
35
36 +DESCRIPTION="Print driver for Hp Deskjet 710, 712, 720, 722, 820, 1000 series"
37 HOMEPAGE="http://pnm2ppa.sourceforge.net"
38 -KEYWORDS="x86 ~amd64"
39 +SRC_URI="mirror://sourceforge/pnm2ppa/${P}.tar.gz"
40 +
41 +KEYWORDS="~amd64 x86"
42 SLOT="0"
43 -DESCRIPTION="Print driver for Hp Deskjet 710, 712, 720, 722, 820, 1000 series"
44 LICENSE="GPL-2"
45 -IUSE="gtk ncurses"
46 -
47 -# note: this doesn't depend on virtual/lpr, because it can work on its own,
48 -# just without queuing etc. since it's not just a driver but a standalone
49 -# executable.
50 -DEPEND="gtk? ( x11-libs/gtk+ )
51 - ncurses? ( sys-libs/ncurses )"
52 +IUSE=""
53
54 +RDEPEND="sys-libs/ncurses"
55 RDEPEND="${DEPEND}
56 app-text/enscript
57 dev-util/dialog"
58
59 src_unpack() {
60 - unpack ${P}.tar.gz
61 - cd ${S}
62 - unpack howto.tgz
63 -
64 - patch -l -p0 < ${FILESDIR}/${PF}-gentoo.diff
65 + unpack ${A}
66 + cd "${S}"
67 + epatch "${FILESDIR}"/${P}-gentoo.diff
68 }
69
70 src_compile() {
71 - export CFLAGS="-DNDEBUG ${CFLAGS}"
72 + append-flags -DNDEBUG
73
74 - emake CFLAGS="${CFLAGS} -DLANG_EN" || die
75 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -DLANG_EN" \
76 + || die "emake failed"
77
78 - cd ${S}/ppa_protocol
79 - emake CFLAGS="${CFLAGS}" || die
80 + cd ppa_protocol
81 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
82 }
83
84 src_install () {
85 - dodir /usr/bin
86 - dodir /etc
87 - dodir /usr/share/man/man1
88 -
89 - make \
90 - BINDIR=${D}/usr/bin \
91 - CONFDIR=${D}/etc \
92 - MANDIR=${D}/usr/share/man/man1 \
93 - install || die
94 + dodir /etc /usr/{bin,share/man/man1}
95
96 - exeinto /usr/bin
97 - doexe utils/Linux/detect_ppa utils/Linux/test_ppa
98 + emake BINDIR="${D}/usr/bin" CONFDIR="${D}/etc" \
99 + MANDIR="${D}/usr/share/man/man1" install \
100 + || die "emake install failed"
101
102 - insinto /usr/share/pnm2ppa/lpd
103 - doins ${S}/lpd/*
104 - exeinto /usr/share/pnm2ppa/lpd
105 - doexe ${S}/lpd/lpdsetup
106 -
107 - insinto /usr/share/pnm2ppa/pdq
108 - doins ${S}/pdq/*
109 + dobin utils/Linux/detect_ppa utils/Linux/test_ppa || die "dobin failed"
110
111 - # Interfaces for configuration of integration with lpd
112 - # These are not installed because we do not assume that
113 - # lpd, ncurses, gtk, but the sources are provided. Thus,
114 - # if the headers were found they would have been built.
115 + insinto /usr/share/pnm2ppa
116 + doins -r lpd pdq || die "doins failed"
117 + exeinto /usr/share/pnm2ppa/lpd
118 + doexe lpd/lpdsetup || die "doexe failed"
119
120 exeinto /usr/share/pnm2ppa/sample_scripts
121 - doexe ${S}/sample_scripts/*
122 + doexe sample_scripts/* || die "doexe failed"
123
124 - cd ${S}/pdq
125 + cd "${S}"/pdq
126 exeinto /etc/pdq/drivers/ghostscript
127 - doexe gs-pnm2ppa
128 + doexe gs-pnm2ppa || die "doexe failed"
129 exeinto /etc/pdq/interfaces
130 - doexe dummy
131 -
132 - # possibly not needed
133 - #rm ${D}/etc/printcap.*
134 -
135 - cd ${S}/docs/en
136 - dodoc CALIBRATION*txt COLOR*txt PPA*txt RELEASE*
137 - dodoc CREDITS INSTALL LICENSE README TODO
138 -
139 - cd sgml
140 - insinto /usr/share/doc/${P}
141 - doins *.sgml
142 + doexe dummy || die "doexe failed"
143
144 - cd ${S}
145 - dohtml -r .
146 + cd "${S}"/docs/en
147 + dodoc CALIBRATION*txt COLOR*txt PPA*txt RELEASE* CREDITS README \
148 + TODO || die "dodoc failed"
149 +
150 + cd "${S}"/docs/en/sgml
151 + insinto /usr/share/doc/${PF}
152 + doins *.sgml || die "doins failed"
153
154 + cd "${S}"
155 + dohtml -r . || die "dohtml failed"
156 }
157
158 pkg_postinst() {
159 - einfo "Now, you *must* edit /etc/pnm2ppa.conf and choose (at least)"
160 - einfo "your printer model and papersize."
161 - einfo ""
162 - einfo "Run calibrate_ppa to calibrate color offsets."
163 - einfo ""
164 - einfo "Read the docs in /usr/share/pnm2ppa/ to configure the printer,"
165 - einfo "configure lpr substitutes, cups, pdq, networking etc."
166 - einfo ""
167 - einfo "Note that lpr and pdq drivers *have* been installed, but if your"
168 - einfo "config file management has /etc blocked (the default), they have"
169 - einfo "been installed under different filenames. Read the appropriate"
170 - einfo "Gentoo documentation for more info."
171 - einfo ""
172 - einfo "Note: lpr has been configured for default papersize letter"
173 + elog "Now, you *must* edit /etc/pnm2ppa.conf and choose (at least)"
174 + elog "your printer model and papersize."
175 + echo ""
176 + elog "Run calibrate_ppa to calibrate color offsets."
177 + echo ""
178 + elog "Read the docs in /usr/share/pnm2ppa/ to configure the printer,"
179 + elog "configure lpr substitutes, cups, pdq, networking etc."
180 + echo ""
181 + elog "Note that lpr and pdq drivers *have* been installed, but if your"
182 + elog "config file management has /etc blocked (the default), they have"
183 + elog "been installed under different filenames. Read the appropriate"
184 + elog "Gentoo documentation for more info."
185 + echo ""
186 + elog "Note: lpr has been configured for default papersize letter"
187 }