pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
python/wheel.mk: add WHEEL_INFODIR variable and PLIST magic for it
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <tk%giga.or.at@localhost>
Pushed By: wiz
Date: Fri Dec 17 21:10:57 2021 +0100
Changeset: 6fa5a4647d0abbca85ec6311aca0de4f3efa053f
Modified Files:
py-flit_core/PLIST
python/wheel.mk
Log Message:
python/wheel.mk: add WHEEL_INFODIR variable and PLIST magic for it
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6fa5a4647d0abbca85ec6311aca0de4f3efa053f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-flit_core/PLIST | 12 ++++++------
python/wheel.mk | 7 ++++++-
2 files changed, 12 insertions(+), 7 deletions(-)
diffs:
diff --git a/py-flit_core/PLIST b/py-flit_core/PLIST
index 2ad0f7c447..6bbcf22282 100644
--- a/py-flit_core/PLIST
+++ b/py-flit_core/PLIST
@@ -1,10 +1,10 @@
@comment $NetBSD$
-${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/INSTALLER
-${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/METADATA
-${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/RECORD
-${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/REQUESTED
-${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/WHEEL
-${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
${PYSITELIB}/flit_core/__init__.py
${PYSITELIB}/flit_core/__init__.pyc
${PYSITELIB}/flit_core/build_thyself.py
diff --git a/python/wheel.mk b/python/wheel.mk
index 69f3107c9b..f088889a41 100644
--- a/python/wheel.mk
+++ b/python/wheel.mk
@@ -49,7 +49,12 @@ do-build:
.endif
-PLIST_SUBST+= PYSITELIB=${PYSITELIB}
+WHEEL_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g}
+_WHEEL_INFODIR= ${WHEEL_NAME}.dist-info
+PLIST_SUBST+= PYSITELIB=${PYSITELIB}
+PLIST_SUBST+= WHEEL_INFODIR=${_WHEEL_INFODIR}
+
+PRINT_PLIST_AWK+= { gsub(/${_WHEEL_INFODIR:S,.,\.,g}/, "$${WHEEL_INFODIR}") }
INSTALL_ENV+= PIP_NO_CACHEDIR=1
Home |
Main Index |
Thread Index |
Old Index