pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/py-alembic py-alembic: use PYVERSSUFFIX and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/61bf877cd2f8
branches:  trunk
changeset: 374215:61bf877cd2f8
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Jan 18 09:18:06 2018 +0000

description:
py-alembic: use PYVERSSUFFIX and ALTERNATIVES

diffstat:

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

diffs (39 lines):

diff -r 2a36238b1f4a -r 61bf877cd2f8 databases/py-alembic/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-alembic/ALTERNATIVES Thu Jan 18 09:18:06 2018 +0000
@@ -0,0 +1,1 @@
+bin/alembic @PREFIX@/bin/alembic@PYVERSSUFFIX@
diff -r 2a36238b1f4a -r 61bf877cd2f8 databases/py-alembic/Makefile
--- a/databases/py-alembic/Makefile     Thu Jan 18 09:17:26 2018 +0000
+++ b/databases/py-alembic/Makefile     Thu Jan 18 09:18:06 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2018/01/17 11:55:35 adam Exp $
+# $NetBSD: Makefile,v 1.4 2018/01/18 09:18:06 adam Exp $
 
 DISTNAME=      alembic-0.9.7
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/alembic/}
 
@@ -19,6 +20,9 @@
 
 USE_LANGUAGES= # none
 
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} alembic alembic${PYVERSSUFFIX} || ${TRUE}
+
 do-test:
        cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
 
diff -r 2a36238b1f4a -r 61bf877cd2f8 databases/py-alembic/PLIST
--- a/databases/py-alembic/PLIST        Thu Jan 18 09:17:26 2018 +0000
+++ b/databases/py-alembic/PLIST        Thu Jan 18 09:18:06 2018 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2017/09/17 04:00:15 minskim Exp $
-bin/alembic
+@comment $NetBSD: PLIST,v 1.2 2018/01/18 09:18:06 adam Exp $
+bin/alembic${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt



Home | Main Index | Thread Index | Old Index