pkgsrc/devel/py-unittest2py3k/Makefile
rodent edcd9b0286 Use ALTERNATIVES. Remove bin/unit2, since it's not different fundamentally
than unit2-${PYVERSSUFFIX}. Move bin/unit2.py so it doesn't conflict with
the py2k version of this package. Bump PKGREVISION. OK'd by wiz@.
2014-06-23 10:50:43 +00:00

29 lines
911 B
Makefile

# $NetBSD: Makefile,v 1.2 2014/06/23 10:50:43 rodent Exp $
DISTNAME= unittest2py3k-0.5.1
# to match python-2.x name
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py3k//}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://pypi.python.org/packages/source/u/unittest2py3k/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pypi.python.org/pypi/unittest2py3k
COMMENT= Unittest features for Python 2.7 (Python 3.x version)
LICENSE= original-bsd
PYTHON_VERSIONS_INCOMPATIBLE= 26 27
DOCDIR= share/doc/${PKGBASE}
INSTALLATION_DIRS+= ${DOCDIR}
PLIST_SUBST+= DOCDIR=${DOCDIR}
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
post-install:
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/${DOCDIR}
${RM} ${DESTDIR}${PREFIX}/bin/unit2
${MV} ${DESTDIR}${PREFIX}/bin/unit2.py \
${DESTDIR}${PREFIX}/bin/unit2-${PYVERSSUFFIX}.py
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"