commit:     1ee4df9ccebf93a6661260d843e45500e87b824a
Author:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Fri Jan 23 23:56:20 2026 +0000
Commit:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
CommitDate: Fri Jan 23 23:56:20 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ee4df9c

media-gfx/airsane: add 0.4.7

Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>

 media-gfx/airsane/Manifest             |  1 +
 media-gfx/airsane/airsane-0.4.7.ebuild | 45 ++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/media-gfx/airsane/Manifest b/media-gfx/airsane/Manifest
index 9cf61f9e79..dc8c4ac280 100644
--- a/media-gfx/airsane/Manifest
+++ b/media-gfx/airsane/Manifest
@@ -1 +1,2 @@
 DIST airsane-0.4.6.tar.gz 128030 BLAKE2B 
c8dc3c150846c77b4ff442fda1e80ce89f565389538fbce6917d615972ef63d2df62f8b28dae15b95c0206f598b0e27209563b0baee11e420048bd37ce6304f8
 SHA512 
986dfc9ea2ffc3bfc9fe4a10ae8920c98c16155754db524d48983107d8f271ba3a77d8f44df636cd059e4bb6b4102c0683eb4222c859d663c0d951c7f39d9bb4
+DIST airsane-0.4.7.tar.gz 128039 BLAKE2B 
01249ed319314cf14cd34da926ae48ec307e43f7e74336914d5ed94b03ef3d1553a3a6a92fdbc47db5aec3c61d4f5b228b6d454a8f56ca90fd2997392eb05b68
 SHA512 
f9f45f42a3999b0d57d6a222c33ff7fef59cd1a1350cdab1814c30302c5ed68f0f8b4e90f10d3ac35a82497d0a27fb81a6b1d418d811a1674bf2867d92fcf2e2

diff --git a/media-gfx/airsane/airsane-0.4.7.ebuild 
b/media-gfx/airsane/airsane-0.4.7.ebuild
new file mode 100644
index 0000000000..1257bfc18a
--- /dev/null
+++ b/media-gfx/airsane/airsane-0.4.7.ebuild
@@ -0,0 +1,45 @@
+# 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"
+
+# License of the package.  This must match the name of file(s) in the
+# licenses/ directory.  For complex license combination see the developer
+# docs on gentoo.org for details.
+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_unpack() {
+       unpack ${P}.tar.gz
+       mv "AirSane-${PV}" "${P}" || die
+}
+
+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
+}

Reply via email to