From nobody Thu Sep 05 06:19:34 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wzq2Z6JYkz5VH1H; Thu, 05 Sep 2024 06:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wzq2Z3RG4z40py; Thu, 5 Sep 2024 06:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/TfI3bOUsg9n9wdZtj9LFAVbSvXya0hT2EV2ucC9JBI=; b=B4czHKmLpLdhRkEImH/hsSa76y2c8cxlyYIzlt+c7VDnNekRrmyLXhpWlsHwzk97k4kVY9 56l0ck0xy/JLyV7PYyu6Et68Jqb5cvc5ylT00bDeUH1/UJU0iLxvZFlmc/upfSyFSiJ9Zb YudpiQVt5JnwkxBNe3jpqwLlT3gJOcDxTRM8VxF6OGTz8c9NfaKCzUVNoAqGvPpx8yGk+O SBQFgpgNxlecG52bl2QJ1RHGguhyBWaKNddVrCLVGxvQ0dpPY+DRAnVyrauYY2k4WABNfV uvW/PBIRQ6gWmhUyeJkOYDsNPGsbipw8GnpWIkKs6IKVgLDUVmc+yc7MaSy71g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725517174; a=rsa-sha256; cv=none; b=GZleBPFWPhMxdNcZr4IugQucHQY+nc65LtzfsZsS3oN2uGGmdDxAd/2mJL391APA/lmCU5 3p5ygsf/hBp4NWc2CDX1ndNmiBpPzAf3RlSepCNrVWJbQL5s8/yL1s1yYURWiN739H3oqz PiCllaJJ/IjYPh8JMMMKMHOXC9yJxLC/G3G1pSyBYya7/VzfoQ+igLyBPzLaCcLoMMmIE/ nmPgOHRdSS59q027WDOwE6IWBN9vzwJ+tXJu0RpPse/Kz7Ina9PPDelDLlsHndyymTj3X4 nsKDdrkmakcmjuvmSlnyumQOmnPZqUVCZxzc+cTzOBP602/KWhuLRPSmP8kQFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725517174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/TfI3bOUsg9n9wdZtj9LFAVbSvXya0hT2EV2ucC9JBI=; b=E8kgZDlZXpsrKIRcdPQJZEN8yLkGdt/gCkoLwLZHG3j/LaJxP1sKuykdqXbcFXE2abQG1H K76BFB2jmj6ZOljtmAgJxjboD/jrg+QvDaqA/UWeipzrvOQEDIoHGD0gk61diRVMvlNfrs 8it0jTw7Ce178LUsgMbbllOiNYByCxBSR4k1SuqXsi+iqT7pZIullipZfYHZNWn4Rj7m8M KdlNOH6P9L7z/zWHg2H1IxcIiE8Dqkd+RyvXYbw73/Qr0nUOCcSxJ+9Fm8SfbUEFUn8Uo3 CtsWyhSkIQGVgpByVH3A0zOKaWncxyVuiJclXiU99jVtUvcNhy/WnrQwxTG+iw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wzq2Z338Zzx25; Thu, 5 Sep 2024 06:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4856JYCw091746; Thu, 5 Sep 2024 06:19:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4856JYD0091743; Thu, 5 Sep 2024 06:19:34 GMT (envelope-from git) Date: Thu, 5 Sep 2024 06:19:34 GMT Message-Id: <202409050619.4856JYD0091743@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 1bbf7597b204 - main - graphics/py-rawpy: Add py-rawpy 0.22.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1bbf7597b2045c454183ab555b4d3db601fe21d7 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1bbf7597b2045c454183ab555b4d3db601fe21d7 commit 1bbf7597b2045c454183ab555b4d3db601fe21d7 Author: Po-Chuan Hsieh AuthorDate: 2024-09-05 05:14:07 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-05 06:11:20 +0000 graphics/py-rawpy: Add py-rawpy 0.22.0 rawpy is an easy-to-use Python wrapper for the LibRaw library. It also contains some extra functionality for finding and repairing hot/dead pixels. --- graphics/Makefile | 1 + graphics/py-rawpy/Makefile | 29 +++++++++++++++++++++++++++++ graphics/py-rawpy/distinfo | 3 +++ graphics/py-rawpy/files/patch-setup.py | 9 +++++++++ graphics/py-rawpy/pkg-descr | 2 ++ 5 files changed, 44 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index e3e9ead3e7f4..82e21992a16e 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -988,6 +988,7 @@ SUBDIR += py-rasterio SUBDIR += py-rasterstats SUBDIR += py-rawkit + SUBDIR += py-rawpy SUBDIR += py-rich-pixels SUBDIR += py-s2 SUBDIR += py-scikit-image diff --git a/graphics/py-rawpy/Makefile b/graphics/py-rawpy/Makefile new file mode 100644 index 000000000000..a7f495ca8303 --- /dev/null +++ b/graphics/py-rawpy/Makefile @@ -0,0 +1,29 @@ +PORTNAME= rawpy +PORTVERSION= 0.22.0 +DISTVERSIONPREFIX= v +CATEGORIES= graphics python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= RAW image processing for Python, a wrapper for libraw +WWW= https://github.com/letmaik/rawpy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libraw.so:graphics/libraw +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +USES= pkgconfig python +USE_PYTHON= autoplist concurrent cython pep517 + +USE_GITHUB= yes +GH_ACCOUNT= letmaik + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/graphics/py-rawpy/distinfo b/graphics/py-rawpy/distinfo new file mode 100644 index 000000000000..b1cd028c8953 --- /dev/null +++ b/graphics/py-rawpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724084484 +SHA256 (letmaik-rawpy-v0.22.0_GH0.tar.gz) = f63e84e7f583714f87c0e59dc1b1609e459432bc9d46980d6dd8e6cd75adc591 +SIZE (letmaik-rawpy-v0.22.0_GH0.tar.gz) = 67450919 diff --git a/graphics/py-rawpy/files/patch-setup.py b/graphics/py-rawpy/files/patch-setup.py new file mode 100644 index 000000000000..f3927aab23c0 --- /dev/null +++ b/graphics/py-rawpy/files/patch-setup.py @@ -0,0 +1,9 @@ +--- setup.py.orig 2024-06-22 08:25:57 UTC ++++ setup.py +@@ -308,5 +308,5 @@ setup( + packages = find_packages(), + ext_modules = extensions, + package_data = package_data, +- install_requires=['numpy >= 2.0'] ++ install_requires=['numpy'] + ) diff --git a/graphics/py-rawpy/pkg-descr b/graphics/py-rawpy/pkg-descr new file mode 100644 index 000000000000..fcef79ea2ee7 --- /dev/null +++ b/graphics/py-rawpy/pkg-descr @@ -0,0 +1,2 @@ +rawpy is an easy-to-use Python wrapper for the LibRaw library. It also contains +some extra functionality for finding and repairing hot/dead pixels.