2014-06-23 12:50:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2014/06/23 10:50:43 rodent Exp $
|
2014-01-31 12:23:13 +01:00
|
|
|
|
|
|
|
DISTNAME= unittest2py3k-0.5.1
|
|
|
|
# to match python-2.x name
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py3k//}
|
2014-06-23 12:50:43 +02:00
|
|
|
PKGREVISION= 1
|
2014-01-31 12:23:13 +01:00
|
|
|
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}
|
2014-06-23 12:50:43 +02:00
|
|
|
${RM} ${DESTDIR}${PREFIX}/bin/unit2
|
|
|
|
${MV} ${DESTDIR}${PREFIX}/bin/unit2.py \
|
|
|
|
${DESTDIR}${PREFIX}/bin/unit2-${PYVERSSUFFIX}.py
|
2014-01-31 12:23:13 +01:00
|
|
|
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|