pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-websocket-client py-websocket-client: pkgsrc fixes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/906187b84f9a
branches:  trunk
changeset: 370064:906187b84f9a
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 11 06:35:50 2017 +0000

description:
py-websocket-client: pkgsrc fixes

Sorted PLIST
Added ALTERNATIVES
Removed underscore (_) from PKGNAME

diffstat:

 www/py-websocket-client/ALTERNATIVES |    1 +
 www/py-websocket-client/Makefile     |    9 ++-
 www/py-websocket-client/PLIST        |  106 +++++++++++++++++-----------------
 3 files changed, 61 insertions(+), 55 deletions(-)

diffs (144 lines):

diff -r ae8c3ceae776 -r 906187b84f9a www/py-websocket-client/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-websocket-client/ALTERNATIVES      Wed Oct 11 06:35:50 2017 +0000
@@ -0,0 +1,1 @@
+bin/wsdump @PREFIX@/bin/wsdump@PYVERSSUFFIX@
diff -r ae8c3ceae776 -r 906187b84f9a www/py-websocket-client/Makefile
--- a/www/py-websocket-client/Makefile  Tue Oct 10 21:24:06 2017 +0000
+++ b/www/py-websocket-client/Makefile  Wed Oct 11 06:35:50 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2017/10/07 17:24:03 maya Exp $
+# $NetBSD: Makefile,v 1.2 2017/10/11 06:35:50 adam Exp $
 
 DISTNAME=      websocket_client-0.44.0
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/websocket-client/}
 
@@ -14,5 +14,10 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 
+USE_LANGUAGES=         # none
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} wsdump.py wsdump${PYVERSSUFFIX} || ${TRUE}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ae8c3ceae776 -r 906187b84f9a www/py-websocket-client/PLIST
--- a/www/py-websocket-client/PLIST     Tue Oct 10 21:24:06 2017 +0000
+++ b/www/py-websocket-client/PLIST     Wed Oct 11 06:35:50 2017 +0000
@@ -1,58 +1,58 @@
-@comment $NetBSD: PLIST,v 1.1 2017/10/07 17:24:03 maya Exp $
-bin/wsdump.py
-${PYSITELIB}/websocket/__init__.py
-${PYSITELIB}/websocket/__init__.pyo
-${PYSITELIB}/websocket/__init__.pyc
-${PYSITELIB}/websocket/_abnf.pyo
-${PYSITELIB}/websocket/_abnf.pyc
-${PYSITELIB}/websocket/_app.pyo
-${PYSITELIB}/websocket/_app.pyc
-${PYSITELIB}/websocket/_cookiejar.pyo
-${PYSITELIB}/websocket/_cookiejar.pyc
-${PYSITELIB}/websocket/_core.pyo
-${PYSITELIB}/websocket/_core.pyc
-${PYSITELIB}/websocket/_exceptions.pyo
-${PYSITELIB}/websocket/_exceptions.pyc
-${PYSITELIB}/websocket/_handshake.pyo
-${PYSITELIB}/websocket/_handshake.pyc
-${PYSITELIB}/websocket/_http.pyo
-${PYSITELIB}/websocket/_http.pyc
-${PYSITELIB}/websocket/_logging.pyo
-${PYSITELIB}/websocket/_logging.pyc
-${PYSITELIB}/websocket/_socket.pyo
-${PYSITELIB}/websocket/_socket.pyc
-${PYSITELIB}/websocket/_ssl_compat.pyo
-${PYSITELIB}/websocket/_ssl_compat.pyc
-${PYSITELIB}/websocket/_url.pyo
-${PYSITELIB}/websocket/_url.pyc
-${PYSITELIB}/websocket/_utils.pyo
-${PYSITELIB}/websocket/_utils.pyc
-${PYSITELIB}/websocket/_abnf.py
-${PYSITELIB}/websocket/_app.py
-${PYSITELIB}/websocket/_cookiejar.py
-${PYSITELIB}/websocket/_core.py
-${PYSITELIB}/websocket/_exceptions.py
-${PYSITELIB}/websocket/_handshake.py
-${PYSITELIB}/websocket/_http.py
-${PYSITELIB}/websocket/_logging.py
-${PYSITELIB}/websocket/_socket.py
-${PYSITELIB}/websocket/_ssl_compat.py
-${PYSITELIB}/websocket/_url.py
-${PYSITELIB}/websocket/_utils.py
-${PYSITELIB}/websocket/cacert.pem
-${PYSITELIB}/websocket/tests/__init__.py
-${PYSITELIB}/websocket/tests/__init__.pyo
-${PYSITELIB}/websocket/tests/__init__.pyc
-${PYSITELIB}/websocket/tests/test_cookiejar.pyo
-${PYSITELIB}/websocket/tests/test_cookiejar.pyc
-${PYSITELIB}/websocket/tests/test_websocket.pyo
-${PYSITELIB}/websocket/tests/test_websocket.pyc
-${PYSITELIB}/websocket/tests/data/header01.txt
-${PYSITELIB}/websocket/tests/data/header02.txt
-${PYSITELIB}/websocket/tests/test_cookiejar.py
-${PYSITELIB}/websocket/tests/test_websocket.py
+@comment $NetBSD: PLIST,v 1.2 2017/10/11 06:35:50 adam Exp $
+bin/wsdump${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/websocket/__init__.py
+${PYSITELIB}/websocket/__init__.pyc
+${PYSITELIB}/websocket/__init__.pyo
+${PYSITELIB}/websocket/_abnf.py
+${PYSITELIB}/websocket/_abnf.pyc
+${PYSITELIB}/websocket/_abnf.pyo
+${PYSITELIB}/websocket/_app.py
+${PYSITELIB}/websocket/_app.pyc
+${PYSITELIB}/websocket/_app.pyo
+${PYSITELIB}/websocket/_cookiejar.py
+${PYSITELIB}/websocket/_cookiejar.pyc
+${PYSITELIB}/websocket/_cookiejar.pyo
+${PYSITELIB}/websocket/_core.py
+${PYSITELIB}/websocket/_core.pyc
+${PYSITELIB}/websocket/_core.pyo
+${PYSITELIB}/websocket/_exceptions.py
+${PYSITELIB}/websocket/_exceptions.pyc
+${PYSITELIB}/websocket/_exceptions.pyo
+${PYSITELIB}/websocket/_handshake.py
+${PYSITELIB}/websocket/_handshake.pyc
+${PYSITELIB}/websocket/_handshake.pyo
+${PYSITELIB}/websocket/_http.py
+${PYSITELIB}/websocket/_http.pyc
+${PYSITELIB}/websocket/_http.pyo
+${PYSITELIB}/websocket/_logging.py
+${PYSITELIB}/websocket/_logging.pyc
+${PYSITELIB}/websocket/_logging.pyo
+${PYSITELIB}/websocket/_socket.py
+${PYSITELIB}/websocket/_socket.pyc
+${PYSITELIB}/websocket/_socket.pyo
+${PYSITELIB}/websocket/_ssl_compat.py
+${PYSITELIB}/websocket/_ssl_compat.pyc
+${PYSITELIB}/websocket/_ssl_compat.pyo
+${PYSITELIB}/websocket/_url.py
+${PYSITELIB}/websocket/_url.pyc
+${PYSITELIB}/websocket/_url.pyo
+${PYSITELIB}/websocket/_utils.py
+${PYSITELIB}/websocket/_utils.pyc
+${PYSITELIB}/websocket/_utils.pyo
+${PYSITELIB}/websocket/cacert.pem
+${PYSITELIB}/websocket/tests/__init__.py
+${PYSITELIB}/websocket/tests/__init__.pyc
+${PYSITELIB}/websocket/tests/__init__.pyo
+${PYSITELIB}/websocket/tests/data/header01.txt
+${PYSITELIB}/websocket/tests/data/header02.txt
+${PYSITELIB}/websocket/tests/test_cookiejar.py
+${PYSITELIB}/websocket/tests/test_cookiejar.pyc
+${PYSITELIB}/websocket/tests/test_cookiejar.pyo
+${PYSITELIB}/websocket/tests/test_websocket.py
+${PYSITELIB}/websocket/tests/test_websocket.pyc
+${PYSITELIB}/websocket/tests/test_websocket.pyo



Home | Main Index | Thread Index | Old Index