diff --git a/devel/py-darcsver/Makefile b/devel/py-darcsver/Makefile index ef32a31d06cc..eb8505bafc7e 100644 --- a/devel/py-darcsver/Makefile +++ b/devel/py-darcsver/Makefile @@ -7,6 +7,7 @@ PORTNAME= darcsver PORTVERSION= 1.7.4 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -17,4 +18,13 @@ COMMENT= Generate a version number from darcs history USE_PYTHON= yes USE_PYDISTUTILS= easy_install +post-patch: + @${REINPLACE_CMD} -e 's#(doc_loc, data_fnames)##g' ${WRKSRC}/setup.py + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${CP} README.rst ${DOCSDIR}/ +.endif + .include diff --git a/devel/py-darcsver/pkg-plist b/devel/py-darcsver/pkg-plist index 02efe56f35dd..713725f8ecc0 100644 --- a/devel/py-darcsver/pkg-plist +++ b/devel/py-darcsver/pkg-plist @@ -29,12 +29,10 @@ bin/darcsver %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/scripts/darcsverscript.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/scripts/darcsverscript.pyc %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/scripts/darcsverscript.pyo -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share/doc/python-darcsver/README.rst +%%PORTDOCS%%%%DOCSDIR%%/README.rst @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/darcsver/test @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/darcsver @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/scripts -@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share/doc/python-darcsver -@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share/doc -@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/share @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%