pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-distro py-distro: cleanup



details:   https://anonhg.NetBSD.org/pkgsrc/rev/abdfefb3f807
branches:  trunk
changeset: 415090:abdfefb3f807
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 02 10:04:59 2019 +0000

description:
py-distro: cleanup

diffstat:

 devel/py-distro/ALTERNATIVES |  1 +
 devel/py-distro/Makefile     |  9 ++++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r f5765173b055 -r abdfefb3f807 devel/py-distro/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-distro/ALTERNATIVES      Wed Oct 02 10:04:59 2019 +0000
@@ -0,0 +1,1 @@
+bin/distro @PREFIX@/bin/distro-@PYVERSSUFFIX@
diff -r f5765173b055 -r abdfefb3f807 devel/py-distro/Makefile
--- a/devel/py-distro/Makefile  Wed Oct 02 09:12:55 2019 +0000
+++ b/devel/py-distro/Makefile  Wed Oct 02 10:04:59 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2019/10/01 13:22:55 triaxx Exp $
+# $NetBSD: Makefile,v 1.2 2019/10/02 10:04:59 adam Exp $
 
 DISTNAME=      distro-1.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    devel
+CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/distro/}
 
 MAINTAINER=    root%zta.lk@localhost
@@ -10,8 +10,11 @@
 COMMENT=       OS platform information API
 LICENSE=       apache-2.0
 
+USE_LANGUAGES= # none
+
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${MV} distro distro-${PYVERSSUFFIX}
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} distro distro-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index