net-print/gutenprint: add 5.3.5

Also disable support for deprecated GTK+2 and Gimp versions as upstream
did not yet ported them to current ones.

Finally, follow more closely Debian and Fedora on their cups configure
options.

Closes: https://bugs.gentoo.org/965498
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2026-02-22 12:23:40 +01:00
parent 0c9749e923
commit f29cccce6a
2 changed files with 87 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST gutenprint-5.3.4.tar.xz 5341824 BLAKE2B 134e59c7dbf9c0ba95b91c717f1e6841f35520b55105feb1ba40b82785c825b8e2a2429990e78186a1455e5c6de9880f911438d514c53c56d05575dd4e2d68a4 SHA512 63de0b62edbe255a7efaaeab1dcd22577b7b46d7e0e48441b79977f19e76bf3862e4e8e18c55dd1f2e7392d555f9e8ee875ea53b90c689852d2343491a8fbcc8
DIST gutenprint-5.3.5.tar.xz 5667532 BLAKE2B 36cc9fff9bc15482e9f12b744c912055f6b0aad6f0105c145024461b67bc7a0f39fee093bb63b4bd2a06fd8dd46058f1508af2e1ff3c57eae62d0a16df3d3bf9 SHA512 18ac06e77fef012650515db0fa551f68c93941250e5f254d71381f20822d7682eae148142ad1bb650440c6b790f90daf9801b742f20dd081a05076d81275ba7c
@@ -0,0 +1,86 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Ghostscript and cups printer drivers"
HOMEPAGE="https://gimp-print.sourceforge.io/"
MY_P="${P/_/-}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://downloads.sourceforge.net/gimp-print/${MY_P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="cups nls readline ppds static-libs"
RESTRICT="test"
BDEPEND="
virtual/pkgconfig
nls? ( sys-devel/gettext )
"
RDEPEND="
dev-lang/perl
cups? ( >=net-print/cups-1.1.14 )
readline? ( sys-libs/readline:0= )
"
DEPEND="${RDEPEND}"
DOCS=( AUTHORS ChangeLog NEWS README doc/gutenprint-users-manual.{pdf,odt} )
src_prepare() {
default
# Needed for cflags patch
eautoreconf
}
src_configure() {
local myeconfargs=(
--enable-test
--disable-translated-cups-ppds
--disable-libgutenprintui2
--without-gimp2
--without-gimp2-as-gutenprint
$(use_with cups)
$(use_enable nls)
$(use_with readline)
$(use_enable static-libs static)
)
if use cups && use ppds; then
myeconfargs+=(
--enable-globalized-cups-ppds
--enable-cups-1_2-enhancements
--enable-cups-ppds
--enable-cups-level3-ppds
)
else
myeconfargs+=( --disable-cups-ppds )
fi
econf "${myeconfargs[@]}"
}
src_install() {
default
dodoc doc/FAQ.html
dodoc -r doc/gutenprintui2/html
rm -r "${ED}"/usr/share/gutenprint/doc || die
find "${ED}" -name '*.la' -delete || die
}
pkg_postinst() {
if [[ -x /usr/sbin/cups-genppdupdate ]]; then
elog "Updating installed printer ppd files"
elog $(/usr/sbin/cups-genppdupdate)
else
elog "You need to update installed ppds manually using cups-genppdupdate"
fi
}