On Sat, 12 Aug 2017 14:42:41 -0400, Michael Reed <mich...@michaelreed.io> wrote:
> I figure at least one person would like to use this, so here's me > posting it again :) I just imported it with a couple of tweaks. For the next time please send a tgz that includes a directory so it's easier to clean the TMPDIR one may be working on after an initial look. Here's the diff I applied to the Makefile: --- Makefile.orig Sat Aug 12 15:20:21 2017 +++ Makefile Sat Aug 12 15:10:04 2017 @@ -5,8 +5,6 @@ COMMENT = tarsnap wrapper which automatically expires MODPY_EGG_VERSION = 0.4.0 DISTNAME = tarsnapper-${MODPY_EGG_VERSION} -MODPY_PI = Yes - CATEGORIES = sysutils MAINTAINER = Michael Reed <m.r...@excitingdomainname.com> @@ -16,16 +14,20 @@ PERMIT_PACKAGE_CDROM = Yes MODULES = lang/python +MODPY_PI = Yes +MODPY_SETUPTOOLS = Yes MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3} -RUN_DEPENDS += sysutils/tarsnap \ +RUN_DEPENDS = devel/py-dateutil${MODPY_FLAVOR} \ + devel/py-pexpect${MODPY_FLAVOR} \ textproc/py-yaml${MODPY_FLAVOR} \ - devel/py-dateutil${MODPY_FLAVOR} \ - devel/py-pexpect${MODPY_FLAVOR} + sysutils/tarsnap -#TODO: tests do not work: "ran 0 tests in 0.000 seconds" -TEST_DEPENDS += devel/py-nose${MODPY_FLAVOR} +TEST_DEPENDS = ${RUN_DEPENDS} \ + devel/py-nose${MODPY_FLAVOR} -MODPY_SETUPTOOLS = Yes +do-test: + cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX} .include <bsd.port.mk>