blob: f2dbaa25b30e33f96fcd4dbf8f6534c5a655fde3 (
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
55
56
57
58
59
60
|
# $FreeBSD$
PORTNAME= tortoisehg
PORTVERSION= 4.3.1
CATEGORIES= devel
MASTER_SITES= https://bitbucket.org/tortoisehg/targz/downloads/
#MASTER_SITES= http://cdn.bitbucket.org/tortoisehg/targz/downloads/
MAINTAINER= 6yearold@gmail.com
COMMENT= GUI for Mercurial VCS
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
RUN_DEPENDS= hg:devel/mercurial \
${PYTHON_PKGNAMEPREFIX}iniparse>=0.4:devel/py-iniparse \
pygmentize:textproc/py-pygments
OPTIONS_DEFINE= NAUTILUS NLS
NAUTILUS_DESC= Install TortoiseHG Nautilus extension
OPTIONS_SUB= yes
USES= pyqt:4 python:2.7
USE_PYQT= core gui network qscintilla2 xml
NLS_USES= gettext
INSTALLS_ICONS= yes
USE_PYTHON= distutils
NO_ARCH= yes
SUB_FILES= pkg-message
# Do not conflict with devel/mercurial, which also installs hgext3rd/__init__.py
EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/hgext3rd/__init__.py
post-patch:
@${REINPLACE_CMD} -e '/_path/ s|/usr|${PREFIX}|' ${WRKSRC}/${PYSETUP}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/contrib/tortoisehg.desktop
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/thg
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/
.include <bsd.port.mk>
|