mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-12 08:08:56 +02:00
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41919 Signed-off-by: Sam James <sam@gentoo.org>
43 lines
868 B
Bash
43 lines
868 B
Bash
# Copyright 2021-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="SANE backend for AirScan (eSCL) and WSD document scanners"
|
|
HOMEPAGE="https://github.com/alexpevzner/sane-airscan"
|
|
SRC_URI="https://github.com/alexpevzner/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~x86"
|
|
|
|
DEPEND="
|
|
net-dns/avahi
|
|
net-libs/gnutls
|
|
dev-libs/libxml2:=
|
|
media-libs/libjpeg-turbo
|
|
media-libs/libpng
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
media-gfx/sane-backends
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-0.99.27-makefile-fixes.patch"
|
|
"${FILESDIR}/${PN}-0.99.27-c99-fixes.patch"
|
|
)
|
|
|
|
src_compile() {
|
|
emake \
|
|
CFLAGS="${CFLAGS}" \
|
|
CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}" \
|
|
CC="$(tc-getCC)" \
|
|
AR="$(tc-getAR)"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" COMPRESS= STRIP= install
|
|
}
|