blob: 4f7f15844cab0b8b9d9408602ef9c8ccfb3bda53 (
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
54
55
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Apsfilter Prints So Fine, It Leads To Extraordinary Results"
HOMEPAGE="http://www.apsfilter.org"
SRC_URI="http://www.apsfilter.org/download/${P}.tar.bz2"
S="${WORKDIR}/${PN}"
KEYWORDS="~alpha ~amd64 ppc sparc x86"
IUSE="cups"
SLOT="0"
LICENSE="GPL-2"
RDEPEND="
app-text/ghostscript-gpl
>=app-text/psutils-1.17
>=app-text/a2ps-4.13b-r4
net-print/cups
virtual/awk
virtual/imagemagick-tools
virtual/mta"
DEPEND="${RDEPEND}"
src_configure() {
local myconf=
# assume that lprng is installed if cups isn't USEd
if use cups ; then
myconf="--with-printcap=/etc/cups/printcap --with-spooldir=/var/spool/cups"
else
myconf="--with-printcap=/etc/lprng/printcap"
fi
# econf doesn't work here :(
./configure \
--prefix="${EPREFIX}/usr" \
--mandir=/usr/share/man \
--docdir=/usr/share/doc/${PF} \
--sysconfdir=/etc \
"${myconf} ${EXTRA_ECONF}" \
|| die
}
src_install() {
emake DESTDIR="${ED}" install
dosym ../share/apsfilter/SETUP /usr/bin/apsfilter
if use cups ; then
dosym ../cups/printcap /etc/printcap
else
dosym ../lprng/printcap /etc/printcap
fi
}
|