Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-autobahn py-autobahn: fix self-conflict with ot...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51fef6cb682a
branches:  trunk
changeset: 436337:51fef6cb682a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jul 31 19:52:00 2020 +0000

description:
py-autobahn: fix self-conflict with other python versions

Use the ALTERNATIVES framework.

>From Aleksej Lebedev on pkgsrc-users.

Bump PKGREVISION.

diffstat:

 www/py-autobahn/ALTERNATIVES |  1 +
 www/py-autobahn/Makefile     |  6 +++++-
 www/py-autobahn/PLIST        |  4 ++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 57ac55cf1f7a -r 51fef6cb682a www/py-autobahn/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-autobahn/ALTERNATIVES      Fri Jul 31 19:52:00 2020 +0000
@@ -0,0 +1,1 @@
+bin/wamp @PREFIX@/bin/wamp-@PYVERSSUFFIX@
diff -r 57ac55cf1f7a -r 51fef6cb682a www/py-autobahn/Makefile
--- a/www/py-autobahn/Makefile  Fri Jul 31 19:07:47 2020 +0000
+++ b/www/py-autobahn/Makefile  Fri Jul 31 19:52:00 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2020/01/23 14:33:18 adam Exp $
+# $NetBSD: Makefile,v 1.32 2020/07/31 19:52:00 wiz Exp $
 
 DISTNAME=      autobahn-20.1.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/autobahn/}
 
@@ -22,5 +23,8 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} wamp wamp-${PYVERSSUFFIX}
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 57ac55cf1f7a -r 51fef6cb682a www/py-autobahn/PLIST
--- a/www/py-autobahn/PLIST     Fri Jul 31 19:07:47 2020 +0000
+++ b/www/py-autobahn/PLIST     Fri Jul 31 19:52:00 2020 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.16 2020/01/23 14:33:18 adam Exp $
-bin/wamp
+@comment $NetBSD: PLIST,v 1.17 2020/07/31 19:52:00 wiz Exp $
+bin/wamp-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt



Home | Main Index | Thread Index | Old Index