blob: 62eeacf23150e8338aa1eb2f94a48697529bec55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= hgview
PORTVERSION= 1.6.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= LOGILAB
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast Mercurial log navigator written in pyqt4
RUN_DEPENDS= hg:${PORTSDIR}/devel/mercurial \
${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_SITELIBDIR}/PyQt4/Qsci.so:${PORTSDIR}/devel/py-qt4-qscintilla2 \
${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py:${PORTSDIR}/lang/py-mx-base \
${PYTHON_SITELIBDIR}/docutils/__init__.py:${PORTSDIR}/textproc/py-docutils
BUILD_DEPENDS= hg:${PORTSDIR}/devel/mercurial \
pyrcc4:${PORTSDIR}/textproc/py-qt4-xml \
xmlto:${PORTSDIR}/textproc/xmlto \
asciidoc:${PORTSDIR}/textproc/asciidoc
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USES= gmake
PORTDOCS= *
MAN1= hgview.1
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${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
@${REINPLACE_CMD} -e 's|'make'|'${GMAKE}'|' ${WRKSRC}/setup.py
@${REINPLACE_CMD} \
-e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
${WRKSRC}/setup.py
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
|