Remove .pyc file after extraction

This commit is contained in:
adam 2016-12-16 20:05:58 +00:00
parent cdc4e83ad5
commit d6dd2eb563

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.34 2016/12/15 11:04:10 adam Exp $
# $NetBSD: Makefile,v 1.35 2016/12/16 20:05:58 adam Exp $
DISTNAME= Sphinx-1.5.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
@ -32,6 +32,9 @@ USE_TOOLS+= makeinfo
do-test:
cd ${WRKSRC}/tests && ${PYTHONBIN} run.py
post-extract:
${RM} ${WRKSRC}/sphinx/locale/__init__.pyc
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/sphinx-apidoc ${DESTDIR}${PREFIX}/bin/sphinx-apidoc${PYVERSSUFFIX}
${MV} ${DESTDIR}${PREFIX}/bin/sphinx-autogen ${DESTDIR}${PREFIX}/bin/sphinx-autogen${PYVERSSUFFIX}