pkgsrc-WIP-changes archive

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

py-maturin: Install maturin executable with PYVERSUFFIX appended



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Mon May 23 11:27:16 2022 -0700
Changeset:	4c1963f33d9988d0c28062598d8259c429acad09

Modified Files:
	py-maturin/Makefile
	py-maturin/PLIST

Log Message:
py-maturin: Install maturin executable with PYVERSUFFIX appended

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

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

diffstat:
 py-maturin/Makefile | 7 ++++++-
 py-maturin/PLIST    | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs:
diff --git a/py-maturin/Makefile b/py-maturin/Makefile
index 00eec9f74d..400781eece 100644
--- a/py-maturin/Makefile
+++ b/py-maturin/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	maturin-0.12.14
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=m/maturin/}
 
@@ -16,7 +17,11 @@ SUBST_CLASSES+=			fix-version
 SUBST_STAGE.fix-version=	pre-build
 SUBST_MESSAGE.fix-version=	Adding version to pyproject.toml
 SUBST_FILES.fix-version=	pyproject.toml
-SUBST_SED.fix-version=		-e 's|PKGSRC_VERSION|"'${PKGVERSION_NOREV}'"|' 
+SUBST_SED.fix-version=		-e 's|PKGSRC_VERSION|"'${PKGVERSION_NOREV}'"|'
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && \
+	${MV} maturin maturin-${PYVERSSUFFIX}
 
 .include "cargo-depends.mk"
 
diff --git a/py-maturin/PLIST b/py-maturin/PLIST
index 4f738a09b9..f1592846d1 100644
--- a/py-maturin/PLIST
+++ b/py-maturin/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/maturin
+bin/maturin-${PYVERSSUFFIX}
 ${PYSITELIB}/get_interpreter_metadata.py
 ${PYSITELIB}/get_interpreter_metadata.pyc
 ${PYSITELIB}/get_interpreter_metadata.pyo


Home | Main Index | Thread Index | Old Index