blob: 9025f12c83a1de7aeb044085b4d5c85af2c0f1eb (
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
|
# $NetBSD: Makefile,v 1.90 2022/12/02 15:41:30 wiz Exp $
DISTNAME= tortoisehg-6.2.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= https://www.mercurial-scm.org/release/tortoisehg/targz/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://tortoisehg.bitbucket.io/
COMMENT= GUI for Mercurial
LICENSE= gnu-gpl-v2
TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx>=5.3.0:../../textproc/py-sphinx
DEPENDS+= ${PYPKGPREFIX}-iniparse>=0.4:../../textproc/py-iniparse
DEPENDS+= ${PYPKGPREFIX}-mercurial>=5.0.0:../../devel/py-mercurial
DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
DEPENDS+= ${PYPKGPREFIX}-qt5-qscintilla-[0-9]*:../../x11/py-qt5-qscintilla
DEPENDS+= ${PYPKGPREFIX}-sip-qt5-[0-9]*:../../x11/py-sip-qt5
USE_TOOLS+= pax
REPLACE_PYTHON+= thg
thg_icon= /share/pixmaps/tortoisehg/icons/thg_logo.ico
SUBST_CLASSES+= df
SUBST_STAGE.df= post-configure
SUBST_MESSAGE.df= Fixing icon reference in desktop file
SUBST_FILES.df= contrib/thg.desktop
SUBST_SED.df= -e 's:thg_logo:${PREFIX}${thg_icon}:1'
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/doc/tortoisehg
PYTHON_SELF_CONFLICT= yes
PYTHON_VERSIONS_INCOMPATIBLE= 27
pre-build:
${RUN} cd ${WRKSRC}/doc && ${MAKE_PROGRAM} SPHINXBUILD=sphinx-build-${PYVERSSUFFIX} html
${RUN} rm ${WRKSRC}/doc/build/html/.buildinfo
# conflicts with mercurial
# https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/4629
${RM} ${WRKSRC}/hgext3rd/__init__.py
post-install:
${INSTALL_DATA} ${WRKSRC}/contrib/thg.desktop ${DESTDIR}${PREFIX}/share/applications/thg.desktop
${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/tortoisehg
cd ${WRKSRC}/doc/build && ${PAX} -pp -rw html ${DESTDIR}${PREFIX}/share/doc/tortoisehg
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|