freebsd-ports/devel/hgview/Makefile
Tobias C. Berner 4c7d30bb70 Switch ports to use USE_PYQT=<foo> instead of using RUN_- and BUILD_DEPENDS
pyqt.mk provides USE_PYQT=<list> to depend on its components. Convert the ports
not yet using it to it.

Reviewed by:	rakuco, mat
Approved by:	rakuco (mentor)
Differential Revision:	https://reviews.freebsd.org/D9261
2017-02-04 13:37:15 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= hgview
PORTVERSION= 1.9.0
CATEGORIES= devel
MASTER_SITES= CHEESESHOP \
http://download.logilab.org/pub/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast Mercurial log navigator written in pyqt4
LICENSE= GPLv2
RUN_DEPENDS= hg:devel/mercurial \
${PYTHON_PKGNAMEPREFIX}mx-base>0:lang/py-mx-base \
${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils
BUILD_DEPENDS= hg:devel/mercurial \
pyrcc4:textproc/py-qt4-xml \
xmlto:textproc/xmlto \
asciidoc:textproc/asciidoc
NO_ARCH= yes
USES= gmake pyqt:4 python:2
USE_PYQT= gui_run qscintilla2_run
USE_PYTHON= distutils
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|path/to.*hgview.py|${PYTHON_SITELIBDIR}/hgext/hgview.py|' \
${WRKSRC}/README
@${REINPLACE_CMD} -e 's|'make'|'${MAKE_CMD}'|' ${WRKSRC}/setup.py
@${REINPLACE_CMD} \
-e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
${WRKSRC}/setup.py
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>