pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-pypi-cli



Module Name:    pkgsrc
Committed By:   mef
Date:           Fri Feb 23 11:37:59 UTC 2024

Modified Files:
        pkgsrc/devel/py-pypi-cli: Makefile PLIST

Log Message:
(devel/py-pypi-cli) Partly modified from Adam suggestion, tks


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-pypi-cli/Makefile \
    pkgsrc/devel/py-pypi-cli/PLIST

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

Modified files:

Index: pkgsrc/devel/py-pypi-cli/Makefile
diff -u pkgsrc/devel/py-pypi-cli/Makefile:1.1 pkgsrc/devel/py-pypi-cli/Makefile:1.2
--- pkgsrc/devel/py-pypi-cli/Makefile:1.1       Fri Feb 23 10:39:02 2024
+++ pkgsrc/devel/py-pypi-cli/Makefile   Fri Feb 23 11:37:58 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2024/02/23 10:39:02 mef Exp $
+# $NetBSD: Makefile,v 1.2 2024/02/23 11:37:58 mef Exp $
 
 DISTNAME=      pypi-cli-0.4.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    devel
+CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pypi-cli/}
 
 MAINTAINER=    kamelderouiche%yahoo.com@localhost
@@ -15,6 +15,18 @@ DEPENDS+=    ${PYPKGPREFIX}-requests>=2.5.0
 DEPENDS+=      ${PYPKGPREFIX}-dateutil>=2.4.0:../../time/py-dateutil
 
 USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-.include "../../lang/python/egg.mk"
+# 1) use wheel.mk (needs appropriate TOOL_DEPENDS)
+# 2) add "python" to CATEGORIES
+# 3) add PYTHON_VERSIONS_INCOMPATIBLE=27
+# 4) bin/pypi should be named pypi-${PYVERSSUFFIX}
+# 5) add ALTERNATIVE
+
+post-install:
+       (cd ${DESTDIR}${PREFIX};\
+       ${MV} bin/pypi bin/pypi-${PYVERSSUFFIX} \
+       )
+
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-pypi-cli/PLIST
diff -u pkgsrc/devel/py-pypi-cli/PLIST:1.1 pkgsrc/devel/py-pypi-cli/PLIST:1.2
--- pkgsrc/devel/py-pypi-cli/PLIST:1.1  Fri Feb 23 10:39:02 2024
+++ pkgsrc/devel/py-pypi-cli/PLIST      Fri Feb 23 11:37:58 2024
@@ -1,12 +1,12 @@
-@comment $NetBSD: PLIST,v 1.1 2024/02/23 10:39:02 mef Exp $
-bin/pypi
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2024/02/23 11:37:58 mef Exp $
+bin/pypi-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS.rst
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/pypi_cli.py
 ${PYSITELIB}/pypi_cli.pyc
 ${PYSITELIB}/pypi_cli.pyo



Home | Main Index | Thread Index | Old Index