mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
39bda9e434
- Change from PyQt 4 to 5 - Sort PLIST Changes: https://bitbucket.org/tortoisehg/thg/wiki/ReleaseNotes Differential Revision: https://reviews.freebsd.org/D13477 Submitted by: Gleb Popov <6yearold@gmail.com> (maintainer)
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tortoisehg
|
|
PORTVERSION= 4.4.1
|
|
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} \
|
|
pygmentize: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>
|