1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/devel/tortoisehg/Makefile
Gleb Popov 3c62cbe46b devel/tortoisehg: Update to 4.6.
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D15820
2018-06-15 19:46:58 +00:00

60 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= tortoisehg
DISTVERSION= 4.6
CATEGORIES= devel
MASTER_SITES= https://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@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${FLAVOR}
OPTIONS_DEFINE= NAUTILUS NLS
NAUTILUS_DESC= Install TortoiseHG Nautilus extension
OPTIONS_SUB= yes
USES= pyqt:5 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>