1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

- Respect PORTDOCS and install doc into correct location

- Bump PORTREVISION

Reported by:	kevlo@
This commit is contained in:
Wen Heping 2012-03-08 12:43:02 +00:00
parent f6ab33b4ac
commit e2e3eed4de
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=292968
2 changed files with 12 additions and 4 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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%%