summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2022-01-02 22:56:31 +0000
committerwiz <wiz@pkgsrc.org>2022-01-02 22:56:31 +0000
commit4dd3635b31bde41f81be235ecda3acc8ec19c835 (patch)
treeef0dd2cecf02b54db04af20f08bfe756c9c92b4a
parent367a5a808d06507c17d3701729f4818859d82272 (diff)
downloadpkgsrc-4dd3635b31bde41f81be235ecda3acc8ec19c835.tar.gz
py-curl: finish conversion to egg.mk
-rw-r--r--www/py-curl/Makefile9
-rw-r--r--www/py-curl/PLIST10
2 files changed, 12 insertions, 7 deletions
diff --git a/www/py-curl/Makefile b/www/py-curl/Makefile
index 61841126071..96ee20048dd 100644
--- a/www/py-curl/Makefile
+++ b/www/py-curl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2022/01/02 11:29:51 ryoon Exp $
+# $NetBSD: Makefile,v 1.79 2022/01/02 22:56:31 wiz Exp $
DISTNAME= pycurl-7.44.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -23,6 +23,11 @@ do-test:
BUILDLINK_API_DEPENDS.curl+= curl>=7.19.0
.include "../../www/curl/buildlink3.mk"
-.include "../../lang/python/distutils.mk"
+.include "../../lang/python/egg.mk"
+
+.if ${PYPKGPREFIX} == "py27"
+_PYSETUPTOOLSINSTALLARGS:= ${PYSETUPTOOLSINSTALLARGS:N--single-version-externally-managed}
+.endif
+
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-curl/PLIST b/www/py-curl/PLIST
index 442c598134f..b61769bf331 100644
--- a/www/py-curl/PLIST
+++ b/www/py-curl/PLIST
@@ -1,11 +1,11 @@
-@comment $NetBSD: PLIST,v 1.18 2022/01/02 11:29:51 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.19 2022/01/02 22:56:31 wiz Exp $
${PYSITELIB}/curl/__init__.py
${PYSITELIB}/curl/__init__.pyc
${PYSITELIB}/curl/__init__.pyo
-${PYSITELIB}/${EGG_FILE}/PKG-INFO
-${PYSITELIB}/${EGG_FILE}/SOURCES.txt
-${PYSITELIB}/${EGG_FILE}/dependency_links.txt
-${PYSITELIB}/${EGG_FILE}/top_level.txt
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/pycurl.so
share/doc/pycurl${PYVERSSUFFIX}/AUTHORS
share/doc/pycurl${PYVERSSUFFIX}/COPYING-LGPL