Diff libcupsfilters-2.1.1-r1 with a libcupsfilters-2.2.1

/usr/portage/net-print/libcupsfilters/libcupsfilters-2.2.1.ebuild 2026-09-28 20:03:05.813772463 +0300
5 5

  
6 6
inherit libtool
7 7

  
8
MY_PV=${PV/_beta/b}
9
MY_P=${PN}-${MY_PV}
10

  
8 11
DESCRIPTION="library for developing printing features, split out of cups-filters"
9 12
HOMEPAGE="https://github.com/OpenPrinting/libcupsfilters"
10
SRC_URI="https://github.com/OpenPrinting/libcupsfilters/releases/download/${PV/_beta/b}/${P/_beta/b}.tar.xz"
11
S="${WORKDIR}"/${P/_beta/b}
13

  
14
if [[ ${PV} == 9999 ]] ; then
15
	EGIT_REPO_URI="https://github.com/OpenPrinting/libcupsfilters"
16
	inherit autotools git-r3
17
else
18
	SRC_URI="https://github.com/OpenPrinting/libcupsfilters/releases/download/${MY_PV}/${MY_P}.tar.xz"
19
	S="${WORKDIR}"/${MY_P}
20

  
21
	KEYWORDS="~amd64 ~arm ~x86"
22
fi
12 23

  
13 24
LICENSE="Apache-2.0"
14 25
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
16
IUSE="dbus exif jpeg pdf +poppler +postscript png test tiff"
26
IUSE="dbus exif fontconfig jpeg jpegxl pdf +postscript png test tiff"
17 27
RESTRICT="!test? ( test )"
18 28

  
19 29
RDEPEND="
20
	>=app-text/qpdf-8.3.0:=
21
	media-libs/fontconfig
30
	>=app-text/pdfio-1.6.4
31
	app-text/poppler[utils]
22 32
	media-libs/lcms:2
23
	>=net-print/cups-2
33
	>=net-print/cups-2.2.2
24 34
	!<net-print/cups-filters-2.0.0
25 35

  
26 36
	exif? ( media-libs/libexif )
27 37
	dbus? ( sys-apps/dbus )
38
	fontconfig? ( >=media-libs/fontconfig-2.0.0 )
28 39
	jpeg? ( media-libs/libjpeg-turbo:= )
29
	pdf? ( app-text/mupdf )
40
	jpegxl? ( >=media-libs/libjxl-0.7.0:= )
41
	pdf? ( >=app-text/mupdf-1.15:= )
30 42
	postscript? ( app-text/ghostscript-gpl[cups] )
31
	poppler? ( >=app-text/poppler-0.32:=[cxx] )
32 43
	png? ( media-libs/libpng:= )
33 44
	tiff? ( media-libs/tiff:= )
34 45
"
......
39 50
	test? ( media-fonts/dejavu )
40 51
"
41 52

  
42
PATCHES=(
43
	"${FILESDIR}"/${P}-CVE-2025-57812.patch
44
	"${FILESDIR}"/${P}-CVE-2025-64503.patch
45
)
46

  
47 53
src_prepare() {
48 54
	default
49 55

  
50
	# respect --as-needed
51
	elibtoolize
56
	if [[ ${PV} == 9999 ]] ; then
57
		eautoreconf
58
	else
59
		# respect --as-needed
60
		elibtoolize
61
	fi
52 62
}
53 63

  
54 64
src_configure() {
......
56 66
		--enable-imagefilters
57 67
		--localstatedir="${EPREFIX}"/var
58 68
		--with-cups-rundir="${EPREFIX}"/run/cups
59

  
60 69
		$(use_enable exif)
61 70
		$(use_enable dbus)
62
		$(use_enable poppler)
63 71
		$(use_enable postscript ghostscript)
64 72
		$(use_enable pdf mutool)
73
		$(use_with fontconfig)
65 74
		$(use_with jpeg)
75
		$(use_with jpegxl)
66 76
		$(use_with png)
67 77
		$(use_with tiff)
68 78
	)
......
70 80
	econf "${myeconfargs[@]}"
71 81
}
72 82

  
83
src_test() {
84
	# Don't try to use ASAN which will fail under sandbox
85
	local -x SAN_FLAGS=" "
86

  
87
	default
88
}
89

  
73 90
src_install() {
74 91
	default
75 92
	find "${ED}" -name '*.la' -delete || die
Thank you!