blob: 2c28693775ec706f59652131a17b752225430dfe (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $FreeBSD$
PORTNAME= tortoisehg
DISTVERSION= 5.5.1
PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= arrowd@FreeBSD.org
COMMENT= GUI for Mercurial VCS
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
BUILD_DEPENDS= ${PY_MERCURIAL}
RUN_DEPENDS= ${PY_MERCURIAL} \
${PYTHON_PKGNAMEPREFIX}iniparse>=0.4:devel/py-iniparse@${PY_FLAVOR} \
${PY_PYGMENTS}
USES= pyqt:5 python
USE_PYQT= core gui network qscintilla2 xml
USE_PYTHON= distutils autoplist
USE_GITLAB= yes
GL_SITE= https://foss.heptapod.net
GL_ACCOUNT= mercurial/tortoisehg
GL_PROJECT= thg
GL_COMMIT= d72f36279016056b2cf5fa32857a48e1022841bd
OPTIONS_DEFINE= NAUTILUS NLS
NAUTILUS_DESC= Install TortoiseHG Nautilus extension
OPTIONS_SUB= yes
NLS_USES= gettext
NO_ARCH= yes
SUB_FILES= pkg-message
# Do not conflict with devel/mercurial, which also installs hgext3rd/__init__.py
EXTRACT_AFTER_ARGS= --exclude thg-${GL_COMMIT}-${GL_COMMIT}/hgext3rd/__init__.py
.include <bsd.port.pre.mk>
.if ${PYTHON_VER} != ${PYTHON_DEFAULT}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/contrib/tortoisehg.desktop
post-patch-NLS-on:
@${REINPLACE_CMD} -e 's/^%%NLS%%//' ${WRKSRC}/${PYSETUP}
post-patch-NLS-off:
@${REINPLACE_CMD} -e 's/^%%NLS%%/# /' ${WRKSRC}/${PYSETUP}
post-patch-NAUTILUS-on:
@${REINPLACE_CMD} -e 's/^%%NAUTILUS%%//' ${WRKSRC}/${PYSETUP}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/${PYSETUP}
post-patch-NAUTILUS-off:
@${REINPLACE_CMD} -e 's/^%%NAUTILUS%%/# /' ${WRKSRC}/${PYSETUP}
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/tortoisehg
${INSTALL_DATA} ${WRKSRC}/contrib/mergetools.rc ${STAGEDIR}${PREFIX}/share/tortoisehg/
${INSTALL_DATA} ${WRKSRC}/contrib/tortoisehg.desktop ${STAGEDIR}${PREFIX}/share/applications/
# workaround bug in python autoplist
@${REINPLACE_CMD} -e '/16x16$$/d' -e '/22x22$$/d' -e '/24x24$$/d' -e '/32x32$$/d' -e '/scalable$$/d' \
${_PYTHONPKGLIST}
.include <bsd.port.post.mk>
|