2013-07-12 17:01:45 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2008-11-21 14:46:17 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hgview
|
2012-09-28 14:59:45 +02:00
|
|
|
PORTVERSION= 1.6.2
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 2
|
2008-11-21 14:46:17 +01:00
|
|
|
CATEGORIES= devel
|
2009-08-31 20:37:02 +02:00
|
|
|
MASTER_SITES= LOGILAB
|
2008-11-21 14:46:17 +01:00
|
|
|
|
2013-09-18 19:25:46 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-12-15 17:22:17 +01:00
|
|
|
COMMENT= Fast Mercurial log navigator written in pyqt4
|
2009-06-17 19:20:43 +02:00
|
|
|
|
2015-03-31 00:48:43 +02:00
|
|
|
BROKEN= Logilab mirrors have gone
|
|
|
|
|
2009-06-17 19:20:43 +02:00
|
|
|
RUN_DEPENDS= hg:${PORTSDIR}/devel/mercurial \
|
2014-03-31 16:13:53 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}qt4-gui>0:${PORTSDIR}/x11-toolkits/py-qt4-gui \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}qt4-qscintilla2>0:${PORTSDIR}/devel/py-qt4-qscintilla2 \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}mx-base>0:${PORTSDIR}/lang/py-mx-base \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}docutils>0:${PORTSDIR}/textproc/py-docutils
|
2009-10-05 10:59:50 +02:00
|
|
|
BUILD_DEPENDS= hg:${PORTSDIR}/devel/mercurial \
|
2011-10-06 02:05:48 +02:00
|
|
|
pyrcc4:${PORTSDIR}/textproc/py-qt4-xml \
|
2009-10-05 10:59:50 +02:00
|
|
|
xmlto:${PORTSDIR}/textproc/xmlto \
|
|
|
|
asciidoc:${PORTSDIR}/textproc/asciidoc
|
2008-11-21 14:46:17 +01:00
|
|
|
|
2014-10-20 18:04:12 +02:00
|
|
|
USE_PYTHON= distutils
|
|
|
|
USES= gmake python
|
2009-06-17 19:20:43 +02:00
|
|
|
PORTDOCS= *
|
2008-11-21 14:46:17 +01:00
|
|
|
|
2014-02-21 14:36:12 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2008-11-21 14:46:17 +01:00
|
|
|
post-patch:
|
2009-06-17 19:20:43 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|share/python-support/mercurial-common|${PYTHON_SITELIBDIR:C,^${PYTHONBASE}/,,}|' \
|
|
|
|
${WRKSRC}/hgviewlib/__pkginfo__.py
|
|
|
|
@${FIND} ${WRKSRC} -name __pkginfo__.py | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|share/man|man|'
|
|
|
|
@${REINPLACE_CMD} -e 's|path/to.*hgview.py|${PYTHON_SITELIBDIR}/hgext/hgview.py|' \
|
|
|
|
${WRKSRC}/README
|
2014-06-25 07:35:31 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|'make'|'${MAKE_CMD}'|' ${WRKSRC}/setup.py
|
2013-12-15 17:22:17 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
|
|
|
|
${WRKSRC}/setup.py
|
2009-06-17 19:20:43 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-03-31 16:13:53 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2008-11-21 14:46:17 +01:00
|
|
|
|
2009-06-17 19:20:43 +02:00
|
|
|
.include <bsd.port.mk>
|