Install this version:
emerge -a =media-gfx/airsane-0.4.12
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-gfx/airsane-0.4.12
Or alternatively:
emerge --autounmask-write -a =media-gfx/airsane-0.4.12
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.4.12 | 8 | ~amd64 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Publish SANE scanners via Apple Airscan/eSCL"
HOMEPAGE="https://github.com/SimulPiscator/AirSane"
SRC_URI="https://github.com/SimulPiscator/AirSane/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/AirSane-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="media-gfx/sane-backends
media-libs/libpng
media-libs/libjpeg-turbo
net-dns/avahi
virtual/libusb:1"
RDEPEND="${DEPEND}"
src_prepare() {
cmake_src_prepare
# Upstream condtionally installs config files
sed -i "${S}/CMakeLists.txt" \
-e "s/\(.*\)NOT EXISTS \/etc\/airsane\/.*/\11)/g" \
|| die
# Gentoo uses the "scanner" group not "saned".
# Also remove 15 seocnd delay hack. Shouldn't be needed anymore:
# https://github.com/SimulPiscator/AirSane/issues/55
sed -i "${S}/systemd/airsaned.service.in" \
-e "s/\(Group=\)saned/\1scanner/" \
-e "/\/bin\/sleep/d" \
|| die
}
media-gfx/sane-backends media-libs/libpng media-libs/libjpeg-turbo net-dns/avahi virtual/libusb:1
media-gfx/sane-backends media-libs/libpng media-libs/libjpeg-turbo net-dns/avahi virtual/libusb:1
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | airsane-0.4.12.tar.gz | 128651 bytes | https://github.com/SimulPiscator/AirSane/archive/refs/tags/v0.4.12.tar.gz |