pkgsrc/devel/py-gflags/Makefile
bsiegert 9f76c05cac Fix installation of the gflags2man script.
- install with a name that contains the Python version
- add alternatives file
- correctly mark script executable
- bump revision.
2018-05-31 20:07:00 +00:00

25 lines
810 B
Makefile

# $NetBSD: Makefile,v 1.9 2018/05/31 20:07:00 bsiegert Exp $
DISTNAME= python-gflags-3.1.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//}
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-gflags/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/google/python-gflags
COMMENT= Python equivalent of gflags, a commandline flag implementation
LICENSE= modified-bsd
REPLACE_PYTHON+= *.py
PYDISTUTILSPKG= yes
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/gflags2man.py ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py
${CHMOD} +x ${DESTDIR}${PREFIX}/bin/gflags2man${PYVERSSUFFIX}.py
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"