Diff sane-backends-1.2.1 with a sane-backends-1.3.1-r1

/usr/portage/media-gfx/sane-backends/sane-backends-1.3.1-r1.ebuild 2025-02-03 17:39:34.126671555 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{10..12} )
6
PYTHON_COMPAT=( python3_{10..13} )
7 7

  
8 8
# python-any-r1 required for a script in backends/pixma/scripts/
9 9
inherit autotools flag-o-matic multilib-minimal optfeature python-any-r1 systemd toolchain-funcs udev
10 10

  
11 11
DESCRIPTION="Scanner Access Now Easy - Backends"
12 12
HOMEPAGE="http://www.sane-project.org/"
13
SRC_URI="https://gitlab.com/sane-project/backends/uploads/110fc43336d0fb5e514f1fdc7360dd87/${P}.tar.gz"
13
SRC_URI="https://gitlab.com/sane-project/backends/-/archive/${PV}/backends-${PV}.tar.bz2"
14
S="${WORKDIR}/backends-${PV}"
14 15

  
15 16
LICENSE="GPL-2 public-domain"
16 17
SLOT="0"
17
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
18
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
18 19

  
19 20
# gphoto and v4l are handled by their usual USE flags.
20 21
# The pint backend was disabled because I could not get it to compile.
......
110 111
	xerox_mfp
111 112
)
112 113

  
113
IUSE="gphoto2 snmp systemd threads usb v4l xinetd +zeroconf"
114
IUSE="gphoto2 snmp systemd threads +usb v4l xinetd +zeroconf"
114 115

  
115 116
for GBACKEND in ${IUSE_SANE_BACKENDS[@]}; do
116 117
	case ${GBACKEND} in
......
178 179
	"${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch
179 180
	"${FILESDIR}"/${PN}-1.0.27-disable-usb-tests.patch
180 181
	"${FILESDIR}"/${PN}-1.0.30-add_hpaio_epkowa_dll.conf.patch
181
	"${FILESDIR}"/${PN}-1.1.1-configure-clang16.patch
182 182
)
183 183

  
184
# ./configure checks to see if these are defined in sys/io.h,
185
# so if they're undefined... that's the point.
186
QA_CONFIG_IMPL_DECL_SKIP=( inb outb )
187

  
184 188
MULTILIB_CHOST_TOOLS=(
185 189
	/usr/bin/sane-config
186 190
)
......
188 192
src_prepare() {
189 193
	default
190 194

  
195
	echo "${PV}" > .tarball-version || die
191 196
	eautoreconf
192 197

  
193 198
	# Needed for udev rules generation/installation
......
197 202
src_configure() {
198 203
	# From Fedora
199 204
	append-flags -fno-strict-aliasing
205
	# bug #944286
206
	append-cflags -std=gnu17
207

  
200 208
	multilib-minimal_src_configure
201 209
}
202 210

  
......
242 250
		$(use_with zeroconf avahi)
243 251
	)
244 252

  
245
	ECONF_SOURCE="${S}" SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
246
		BACKENDS="${lbackends}" econf "${myconf[@]}"
253
	BACKENDS="${lbackends}" econf "${myconf[@]}"
247 254
}
248 255

  
249 256
multilib_src_compile() {
Thank you!