| 1 |
|
# Copyright 1999-2025 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
|
EAPI=7
|
| 5 |
|
|
|
4 |
EAPI=8
|
| 6 |
5 |
inherit autotools
|
| 7 |
6 |
|
| 8 |
7 |
DESCRIPTION="Ghostscript and cups printer drivers"
|
| 9 |
|
HOMEPAGE="http://gutenprint.sourceforge.net"
|
|
8 |
HOMEPAGE="https://gimp-print.sourceforge.io/"
|
| 10 |
9 |
|
| 11 |
10 |
MY_P="${P/_/-}"
|
| 12 |
|
S="${WORKDIR}/${MY_P}"
|
| 13 |
11 |
SRC_URI="https://downloads.sourceforge.net/gimp-print/${MY_P}.tar.xz"
|
|
12 |
S="${WORKDIR}/${MY_P}"
|
| 14 |
13 |
|
| 15 |
14 |
LICENSE="GPL-2"
|
| 16 |
15 |
SLOT="0"
|
| 17 |
|
KEYWORDS="~alpha amd64 arm ~hppa ppc ppc64 ~sparc x86"
|
|
16 |
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 ~sparc x86"
|
| 18 |
17 |
|
| 19 |
|
IUSE="cups gimp gtk nls readline ppds static-libs"
|
|
18 |
IUSE="cups nls readline ppds static-libs"
|
| 20 |
19 |
RESTRICT="test"
|
| 21 |
|
REQUIRED_USE="gimp? ( gtk )"
|
| 22 |
20 |
|
| 23 |
21 |
BDEPEND="
|
| 24 |
22 |
virtual/pkgconfig
|
| 25 |
23 |
nls? ( sys-devel/gettext )
|
| 26 |
24 |
"
|
| 27 |
25 |
|
| 28 |
|
# gimp restriction: https://sourceforge.net/p/gimp-print/bugs/725/
|
| 29 |
26 |
RDEPEND="
|
| 30 |
27 |
dev-lang/perl
|
| 31 |
28 |
cups? ( >=net-print/cups-1.1.14 )
|
| 32 |
|
gimp? (
|
| 33 |
|
media-gfx/gimp:0/2
|
| 34 |
|
x11-libs/gtk+:2
|
| 35 |
|
)
|
| 36 |
|
gtk? ( x11-libs/gtk+:2 )
|
| 37 |
29 |
readline? ( sys-libs/readline:0= )
|
| 38 |
30 |
"
|
| 39 |
31 |
DEPEND="${RDEPEND}"
|
| 40 |
32 |
|
| 41 |
33 |
DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} )
|
| 42 |
|
PATCHES=(
|
| 43 |
|
"${FILESDIR}"/${PN}-5.3.1-cflags.patch
|
| 44 |
|
"${FILESDIR}"/${P}-invalidint.patch
|
| 45 |
|
)
|
| 46 |
34 |
|
| 47 |
35 |
src_prepare() {
|
| 48 |
36 |
default
|
| ... | ... | |
| 55 |
43 |
local myeconfargs=(
|
| 56 |
44 |
--enable-test
|
| 57 |
45 |
--disable-translated-cups-ppds
|
| 58 |
|
$(use_enable gtk libgutenprintui2)
|
| 59 |
|
$(use_with gimp gimp2)
|
| 60 |
|
$(use_with gimp gimp2-as-gutenprint)
|
|
46 |
--disable-libgutenprintui2
|
|
47 |
--without-gimp2
|
|
48 |
--without-gimp2-as-gutenprint
|
| 61 |
49 |
$(use_with cups)
|
| 62 |
50 |
$(use_enable nls)
|
| 63 |
51 |
$(use_with readline)
|
| ... | ... | |
| 65 |
53 |
)
|
| 66 |
54 |
|
| 67 |
55 |
if use cups && use ppds; then
|
| 68 |
|
myeconfargs+=( --enable-cups-ppds --enable-cups-level3-ppds )
|
|
56 |
myeconfargs+=(
|
|
57 |
--enable-globalized-cups-ppds
|
|
58 |
--enable-cups-1_2-enhancements
|
|
59 |
--enable-cups-ppds
|
|
60 |
--enable-cups-level3-ppds
|
|
61 |
)
|
| 69 |
62 |
else
|
| 70 |
63 |
myeconfargs+=( --disable-cups-ppds )
|
| 71 |
64 |
fi
|