commit:     7fd978cff360ecbb979996d078e2c299ad2dcb74
Author:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Wed Jan  8 03:46:07 2025 +0000
Commit:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
CommitDate: Wed Jan  8 04:12:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7fd978cf

media-gfx/airsane: new package, add 0.4.3

AirSane is SANE frontend that publishes SANE scanners to MacOS,
Android, and Windows via Apple AirScan/eSCL. Do not confuse this
package with media-gfx/sane-airscan or the eSCL backend - those
are eSCL clients. This package creates an eSCL server to
export local legacy scanners to the network via the AirScan/eSCL
protocol.

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

 media-gfx/airsane/Manifest             |  1 +
 media-gfx/airsane/airsane-0.4.3.ebuild | 45 ++++++++++++++++++++++++++++++++++
 media-gfx/airsane/metadata.xml         | 11 +++++++++
 3 files changed, 57 insertions(+)

diff --git a/media-gfx/airsane/Manifest b/media-gfx/airsane/Manifest
new file mode 100644
index 000000000..a81a9e732
--- /dev/null
+++ b/media-gfx/airsane/Manifest
@@ -0,0 +1 @@
+DIST airsane-0.4.3.tar.gz 126172 BLAKE2B 
0f8bcebd1a918e7fe300cbaab96488dd8c0ce8b3e6b00520d18b793a45b9c3d42c9ab6de13ffc5bcaef6371d03cee51e2a2701b25e27b3af48c7b59358b76576
 SHA512 
aab6aef342866d97abb8c6280a1490f4e83a2b2664ab6cf3d00fa1d838b2aa3594d8d4e76e3e7b3b21a955523dedbc616cea9d87724ad6660cb166b33ce06eeb

diff --git a/media-gfx/airsane/airsane-0.4.3.ebuild 
b/media-gfx/airsane/airsane-0.4.3.ebuild
new file mode 100644
index 000000000..1257bfc18
--- /dev/null
+++ b/media-gfx/airsane/airsane-0.4.3.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
+}

diff --git a/media-gfx/airsane/metadata.xml b/media-gfx/airsane/metadata.xml
new file mode 100644
index 000000000..d2f0e5e66
--- /dev/null
+++ b/media-gfx/airsane/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Christopher Byrne</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">SimulPiscator/AirSane</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to