git: 67bfbfb425d7 - main - devel/oci-cli: address the odd upstream naming of the tarball
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Dec 2024 09:02:55 UTC
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=67bfbfb425d7ae1bb4febb9bdc5260775fc12517
commit 67bfbfb425d7ae1bb4febb9bdc5260775fc12517
Author: Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2024-12-19 08:35:30 +0000
Commit: Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-12-19 08:59:12 +0000
devel/oci-cli: address the odd upstream naming of the tarball
PR: 283377
Approved by: Alessandro Sagratini (maintainer)
---
devel/oci-cli/Makefile | 7 +++++++
devel/oci-cli/distinfo | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/devel/oci-cli/Makefile b/devel/oci-cli/Makefile
index 9816d8c27513..1ae27019552b 100644
--- a/devel/oci-cli/Makefile
+++ b/devel/oci-cli/Makefile
@@ -1,5 +1,7 @@
PORTNAME= oci-cli
DISTVERSION= 3.51.0
+# See below comment for WRKSRC
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
CATEGORIES= devel
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -34,6 +36,11 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>=1.0.0:devel/py-arrow@${PY_FLAVOR} \
USES= python:3.8-3.11
USE_PYTHON= autoplist concurrent cryptography pep517
+# upstream uses underscore for the tarball name, but uses hyphen for
+# the directory name inside the tarball.
+# e.g. oci_cli-3.51.0.tar.gz vs oci-cli-3.51.0
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+
NO_ARCH= yes
.include <bsd.port.mk>
diff --git a/devel/oci-cli/distinfo b/devel/oci-cli/distinfo
index 26d08e6ec539..6bb20642f362 100644
--- a/devel/oci-cli/distinfo
+++ b/devel/oci-cli/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1734424153
-SHA256 (oci-cli-3.51.0.tar.gz) = 2c63aed7a738e891bf69612409ed5742e03ee06503e1d3399e44a9dee0c636bb
-SIZE (oci-cli-3.51.0.tar.gz) = 18282957
+TIMESTAMP = 1734595983
+SHA256 (oci_cli-3.51.0.tar.gz) = 2c63aed7a738e891bf69612409ed5742e03ee06503e1d3399e44a9dee0c636bb
+SIZE (oci_cli-3.51.0.tar.gz) = 18282957