pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-fastavro: add ALTERNATIVES



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Sat Jun 29 13:06:46 2024 -0600
Changeset:	a73ccea4af684568c8ad4a5642ff4a4c1281a4b7

Modified Files:
	py-fastavro/Makefile
	py-fastavro/PLIST
Added Files:
	py-fastavro/ALTERNATIVES

Log Message:
py-fastavro: add ALTERNATIVES

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a73ccea4af684568c8ad4a5642ff4a4c1281a4b7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-fastavro/ALTERNATIVES | 1 +
 py-fastavro/Makefile     | 3 +++
 py-fastavro/PLIST        | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-fastavro/ALTERNATIVES b/py-fastavro/ALTERNATIVES
new file mode 100644
index 0000000000..e1159a8876
--- /dev/null
+++ b/py-fastavro/ALTERNATIVES
@@ -0,0 +1 @@
+bin/fastavro @PREFIX@/bin/fastavro-@PYVERSSUFFIX@
diff --git a/py-fastavro/Makefile b/py-fastavro/Makefile
index db4954ba86..13ad009357 100644
--- a/py-fastavro/Makefile
+++ b/py-fastavro/Makefile
@@ -3,6 +3,7 @@
 VERS=		1.9.4
 DISTNAME=	fastavro-${VERS}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=f/fastavro/}
 
@@ -13,6 +14,8 @@ LICENSE=	mit
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && ${MV} fastavro fastavro-${PYVERSSUFFIX}
 #TEST_DEPENDS+=	${PYPKGPREFIX}-test>=0:../../devel/py-test
 #TEST_DEPENDS+=	${PYPKGPREFIX}-flake8>=0:../../devel/py-flake8
 #TEST_DEPENDS+=	${PYPKGPREFIX}-check-manifest>=0:../../wip/py-check-manifest
diff --git a/py-fastavro/PLIST b/py-fastavro/PLIST
index 4dcf59c076..2cfc9449b1 100644
--- a/py-fastavro/PLIST
+++ b/py-fastavro/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/fastavro
+bin/fastavro-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt


Home | Main Index | Thread Index | Old Index