commit:     c85934fb07145906e3aa22cb7d67d71a8a721892
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 18 15:16:43 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 18 15:17:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c85934fb

net-print/libcupsfilters: add 2.1.0

Note that we'd already backported the CVE fixes.

Bug: https://bugs.gentoo.org/940313
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-print/libcupsfilters/Manifest                  |  1 +
 .../libcupsfilters/libcupsfilters-2.1.0.ebuild     | 71 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/net-print/libcupsfilters/Manifest 
b/net-print/libcupsfilters/Manifest
index 0ebcb3991370..b98b19704de4 100644
--- a/net-print/libcupsfilters/Manifest
+++ b/net-print/libcupsfilters/Manifest
@@ -1,2 +1,3 @@
 DIST libcupsfilters-2.0.0.tar.xz 1279856 BLAKE2B 
ce9d839bb700017c303c1301c7a97fd02e3657a908e685377be49557d995574a7fc5a31d4fcbda5eeb9ba2d3cd07858224540dbf0bc9fa078cfd25a58ee15a41
 SHA512 
279bff6dcfa76312b10dae97480914345defd90eab79c4716d4553870f73e0f9db404786fd7e2948a86ae5aedb10dca0c2984ccb4222acbd4e835cd572030d6a
+DIST libcupsfilters-2.1.0.tar.xz 1445276 BLAKE2B 
7b7355c71b086dacfeb54d5ef4dbbe84ce23c5f65c36a7ef90c3f3b0a0a7630babebfd0d025dba01ad005714d7811dacf9c1983995e930212aee12b737a45c6a
 SHA512 
2c15180a49f211215a13dac5b198a4f8d11fbc67c49d2112ec0c9a9cfd34f012867780bcf23dba81fae7bfaa7f05d4241b222dc6ad8dd83fc8ae29ce2869b235
 DIST libcupsfilters-2.1b1.tar.xz 1443976 BLAKE2B 
043174e47c6c5de5393cfb4d6f41e3839646932cff42cf677319b2ea22fe8408fbf1d1edfb3b99c1d2c36916a92993069a40ed5f75552d47d88300e283b6aa84
 SHA512 
5b0cd2472f54188dda13b091f82b257ba926e12065c225ddbde9cab97597baa6d855f09d7352b7d7ee4af8416fc9c3ddb3c75e0c6a0a201b366d047abe47ecef

diff --git a/net-print/libcupsfilters/libcupsfilters-2.1.0.ebuild 
b/net-print/libcupsfilters/libcupsfilters-2.1.0.ebuild
new file mode 100644
index 000000000000..0aadbdaf7957
--- /dev/null
+++ b/net-print/libcupsfilters/libcupsfilters-2.1.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit libtool
+
+DESCRIPTION="library for developing printing features, split out of 
cups-filters"
+HOMEPAGE="https://github.com/OpenPrinting/libcupsfilters";
+SRC_URI="https://github.com/OpenPrinting/libcupsfilters/releases/download/${PV/_beta/b}/${P/_beta/b}.tar.xz";
+S="${WORKDIR}"/${P/_beta/b}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="dbus exif jpeg pdf +poppler +postscript png test tiff"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=app-text/qpdf-8.3.0:=
+       media-libs/fontconfig
+       media-libs/lcms:2
+       >=net-print/cups-2
+       !<net-print/cups-filters-2.0.0
+
+       exif? ( media-libs/libexif )
+       dbus? ( sys-apps/dbus )
+       jpeg? ( media-libs/libjpeg-turbo:= )
+       pdf? ( app-text/mupdf )
+       postscript? ( app-text/ghostscript-gpl[cups] )
+       poppler? ( >=app-text/poppler-0.32:=[cxx] )
+       png? ( media-libs/libpng:= )
+       tiff? ( media-libs/tiff:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       >=sys-devel/gettext-0.18.3
+       virtual/pkgconfig
+       test? ( media-fonts/dejavu )
+"
+
+src_prepare() {
+       default
+
+       # respect --as-needed
+       elibtoolize
+}
+
+src_configure() {
+       local myeconfargs=(
+               --enable-imagefilters
+               --localstatedir="${EPREFIX}"/var
+               --with-cups-rundir="${EPREFIX}"/run/cups
+
+               $(use_enable exif)
+               $(use_enable dbus)
+               $(use_enable poppler)
+               $(use_enable postscript ghostscript)
+               $(use_enable pdf mutool)
+               $(use_with jpeg)
+               $(use_with png)
+               $(use_with tiff)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to