Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jul 2026 17:45:01 +0000
From:      Christoph Moench-Tegeder <cmt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e16d7a7b845b - main - graphics/py-sane: new port
Message-ID:  <6a47f51d.2383f.2a885dee@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by cmt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e16d7a7b845bc8d1c44d745f014be596ec2fd2bd

commit e16d7a7b845bc8d1c44d745f014be596ec2fd2bd
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2026-07-03 17:44:30 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2026-07-03 17:44:30 +0000

    graphics/py-sane: new port
    
    Python interface to the SANE scanner and frame grabber interface
    https://github.com/python-pillow/Sane
---
 graphics/Makefile                           |  1 +
 graphics/py-sane/Makefile                   | 30 +++++++++++++++++++++++++++++
 graphics/py-sane/distinfo                   |  3 +++
 graphics/py-sane/files/patch-pyproject.toml | 18 +++++++++++++++++
 graphics/py-sane/pkg-descr                  |  5 +++++
 graphics/py-sane/pkg-plist                  |  8 ++++++++
 6 files changed, 65 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index e8a2807ada7f..121237402be8 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -1055,6 +1055,7 @@
     SUBDIR += py-rich-pixels
     SUBDIR += py-rlpycairo
     SUBDIR += py-s2
+    SUBDIR += py-sane
     SUBDIR += py-scikit-image
     SUBDIR += py-seqdiag
     SUBDIR += py-simplejpeg
diff --git a/graphics/py-sane/Makefile b/graphics/py-sane/Makefile
new file mode 100644
index 000000000000..e91a73eb3df0
--- /dev/null
+++ b/graphics/py-sane/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	sane
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.9.2
+CATEGORIES=	graphics python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	cmt@FreeBSD.org
+COMMENT=	Python interface to the SANE scanner and frame grabber interface
+WWW=		https://github.com/python-pillow/Sane
+
+LICENSE=	MIT-CMU
+LICENSE_NAME=	CMU License
+LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE_PERMS=	auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+LIB_DEPENDS=	libsane.so:graphics/sane-backends
+
+USES=		localbase python
+USE_GITHUB=	yes
+GH_ACCOUNT=	python-pillow
+GH_PROJECT=	Sane
+USE_PYTHON=	pep517
+
+PLIST_SUB=	DISTVERSION=${DISTVERSION}
+
+INSTALL_TARGET=	install-strip
+
+.include <bsd.port.mk>
diff --git a/graphics/py-sane/distinfo b/graphics/py-sane/distinfo
new file mode 100644
index 000000000000..8fe370485fb4
--- /dev/null
+++ b/graphics/py-sane/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782064107
+SHA256 (python-pillow-Sane-v2.9.2_GH0.tar.gz) = 0863c0c4e935e6404d53317b74dfc3b58f7da14ffc97086327f1a51c7ab60062
+SIZE (python-pillow-Sane-v2.9.2_GH0.tar.gz) = 21040
diff --git a/graphics/py-sane/files/patch-pyproject.toml b/graphics/py-sane/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e2ca7165b8a2
--- /dev/null
+++ b/graphics/py-sane/files/patch-pyproject.toml
@@ -0,0 +1,18 @@
+diff --git pyproject.toml pyproject.toml
+index d24e941..67a1911 100644
+--- pyproject.toml
++++ pyproject.toml
+@@ -1,11 +1,11 @@
+ [build-system]
+ requires = [
+-  "setuptools>=67.8",
++  "setuptools>=63.0",
+ ]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
+-name = "python-sane"
++name = "sane"
+ version = "2.9.2"
+ description = "This is the python-sane package"
+ readme = "README.rst"
diff --git a/graphics/py-sane/pkg-descr b/graphics/py-sane/pkg-descr
new file mode 100644
index 000000000000..df9ba74e7b1f
--- /dev/null
+++ b/graphics/py-sane/pkg-descr
@@ -0,0 +1,5 @@
+Python SANE has been split from Python-Pillow as of version 2.7.0.
+
+The SANE module provides an interface to the SANE scanner and frame grabber
+interface for Linux. This module was contributed by Andrew Kuchling formerly
+maintained by Ralph Heinkel. It is currently maintained by Sandro Mani.
diff --git a/graphics/py-sane/pkg-plist b/graphics/py-sane/pkg-plist
new file mode 100644
index 000000000000..26122ad85e35
--- /dev/null
+++ b/graphics/py-sane/pkg-plist
@@ -0,0 +1,8 @@
+%%PYTHON_SITELIBDIR%%/__pycache__/sane%%PYTHON_TAG%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/__pycache__/sane%%PYTHON_TAG%%.pyc
+%%PYTHON_SITELIBDIR%%/_sane%%PYTHON_TAG%%.so
+%%PYTHON_SITELIBDIR%%/sane-%%DISTVERSION%%.dist-info/METADATA
+%%PYTHON_SITELIBDIR%%/sane-%%DISTVERSION%%.dist-info/RECORD
+%%PYTHON_SITELIBDIR%%/sane-%%DISTVERSION%%.dist-info/WHEEL
+%%PYTHON_SITELIBDIR%%/sane-%%DISTVERSION%%.dist-info/top_level.txt
+%%PYTHON_SITELIBDIR%%/sane.py


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a47f51d.2383f.2a885dee>