devel/oci-cli: address the odd upstream naming of the tarball

PR:		283377
Approved by:	Alessandro Sagratini (maintainer)
This commit is contained in:
Koichiro Iwao 2024-12-19 17:35:30 +09:00
parent 144615400f
commit 67bfbfb425
2 changed files with 10 additions and 3 deletions

View File

@ -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>

View File

@ -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