9f76c05cac
- install with a name that contains the Python version - add alternatives file - correctly mark script executable - bump revision.
25 lines
810 B
Makefile
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"
|