pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-cram



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Nov 12 15:55:31 UTC 2024

Modified Files:
        pkgsrc/devel/py-cram: Makefile

Log Message:
py-cram: fix PKGNAME, add missing tool dependency, some cleanups


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-cram/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-cram/Makefile
diff -u pkgsrc/devel/py-cram/Makefile:1.1 pkgsrc/devel/py-cram/Makefile:1.2
--- pkgsrc/devel/py-cram/Makefile:1.1   Tue Nov 12 15:45:45 2024
+++ pkgsrc/devel/py-cram/Makefile       Tue Nov 12 15:55:31 2024
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2024/11/12 15:45:45 riastradh Exp $
+# $NetBSD: Makefile,v 1.2 2024/11/12 15:55:31 wiz Exp $
 
 DISTNAME=      cram-0.7
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cram/}
 
@@ -9,11 +10,15 @@ HOMEPAGE=    https://pypi.org/project/cram/
 COMMENT=       Simple testing framework for command line applications
 LICENSE=       gnu-gpl-v2
 
-post-install:
-       cd ${DESTDIR:Q}${PREFIX:Q}/bin && ${MV} cram cram-${PYVERSSUFFIX}
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+
+# expects GNU patch(1) output
+TEST_DEPENDS+= patch>=0:../../devel/patch
 
-TEST_DEPENDS+= bash>=0:../../shells/bash
-TEST_DEPENDS+= patch>=0:../../devel/patch      # expects GNU patch(1) output
+USE_TOOLS+=    bash:test
+
+post-install:
+       cd ${DESTDIR:Q}${PREFIX:Q}/bin && ${MV} cram cram-${PYVERSSUFFIX} || ${TRUE}
 
 # /bin/bash is referenced via command line arguments and strings, not
 # in `#!' interpreter lines, so use SUBST instead of REPLACE_BASH.



Home | Main Index | Thread Index | Old Index