On Mon, Feb 17, 2020 at 05:26:53PM +0000, Stuart Henderson wrote:

Hello Stuart,

> Please use MODULES=lang/python, and (from memory but I think it's right -
> check in python.port.mk if it doesn't work)
> MODPY_VERSION=${MODPY_DEFAULT_VERSION_3}, MODPY_BUILDDEP=No,
> MODPY_RUNDEP=No, TEST_DEPENDS=${MODPY_RUN_DEPENDS} and in the do-test target
> use ${MODPY_BIN} instead of python3.

That recipe almost works -- I also needed to override do-install to prevent
modpy running setup.py in that part of things. Easily fixed. Update
attached -- thanks for the pointer!


Laurie


Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/supuner/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile    12 Jul 2019 20:49:52 -0000      1.3
+++ Makefile    17 Feb 2020 17:45:45 -0000
@@ -1,8 +1,8 @@
 # $OpenBSD: Makefile,v 1.3 2019/07/12 20:49:52 sthen Exp $
 
-COMMENT =              SUPress command stdout / stderr UNless ERror
+COMMENT =              SUPress stdout / stderr UNless ERror
 
-DISTNAME =             supuner-0.1
+DISTNAME =             supuner-0.2
 CATEGORIES =           sysutils
 
 HOMEPAGE =             http://tratt.net/laurie/src/supuner/
@@ -14,7 +14,21 @@
 
 MASTER_SITES =         ${HOMEPAGE}releases/
 
-NO_TEST =              Yes
+EXTRACT_SUFX =         .tgz
+
+MODULES =              lang/python
+
 NO_BUILD =             Yes
+
+MODPY_VERSION =        ${MODPY_DEFAULT_VERSION_3}
+MODPY_BUILDDEP =       No
+MODPY_RUNDEP =         No
+TEST_DEPENDS =         ${MODPY_RUN_DEPENDS}
+
+do-install:
+       cd ${WRKSRC} && ${MAKE} install
+
+do-test:
+       cd ${WRKSRC} && ${MODPY_BIN} test.py
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/supuner/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo    18 Jan 2015 03:15:15 -0000      1.2
+++ distinfo    17 Feb 2020 17:45:45 -0000
@@ -1,2 +1,2 @@
-SHA256 (supuner-0.1.tar.gz) = UU2b2SLASobZ0Kdfz9CPPLdexpo7i2gM4B2oLvvGH+E=
-SIZE (supuner-0.1.tar.gz) = 3248
+SHA256 (supuner-0.2.tgz) = epGiDXtIOFv20SY07Z5P9AWWnWUWsP5e9yfHD2irnFE=
+SIZE (supuner-0.2.tgz) = 4057
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/sysutils/supuner/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 DESCR
--- pkg/DESCR   4 Jul 2011 20:04:54 -0000       1.1.1.1
+++ pkg/DESCR   17 Feb 2020 17:45:45 -0000
@@ -1,3 +1,4 @@
-supuner executes a command and manipulates its stderr and stdout,
-allowing the user control over when they are displayed and / or
-outputted.
+supuner (SUPpress UNless ERror) executes a command and manipulates its stderr
+and stdout. By default, it captures both stderr and stdout and only outputs
+their combined value to stdout if the command fails. supuner is useful for
+"chatty" commands whose output is only relevant if the command fails.
Laurie

Reply via email to