| @@ -1,54 +1,54 @@ | | | @@ -1,54 +1,54 @@ |
1 | # $NetBSD: Makefile,v 1.89 2022/11/25 13:31:34 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.90 2022/12/02 15:41:30 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= tortoisehg-6.2.3 | | 3 | DISTNAME= tortoisehg-6.2.3 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= devel python | | 6 | CATEGORIES= devel python |
7 | MASTER_SITES= https://www.mercurial-scm.org/release/tortoisehg/targz/ | | 7 | MASTER_SITES= https://www.mercurial-scm.org/release/tortoisehg/targz/ |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://tortoisehg.bitbucket.io/ | | 10 | HOMEPAGE= https://tortoisehg.bitbucket.io/ |
11 | COMMENT= GUI for Mercurial | | 11 | COMMENT= GUI for Mercurial |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
13 | | | 13 | |
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx>=5.3.0:../../textproc/py-sphinx | | 14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx>=5.3.0:../../textproc/py-sphinx |
15 | DEPENDS+= ${PYPKGPREFIX}-iniparse>=0.4:../../textproc/py-iniparse | | 15 | DEPENDS+= ${PYPKGPREFIX}-iniparse>=0.4:../../textproc/py-iniparse |
16 | DEPENDS+= ${PYPKGPREFIX}-mercurial>=5.0.0:../../devel/py-mercurial | | 16 | DEPENDS+= ${PYPKGPREFIX}-mercurial>=5.0.0:../../devel/py-mercurial |
17 | DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments | | 17 | DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments |
| | | 18 | DEPENDS+= ${PYPKGPREFIX}-qt5-qscintilla-[0-9]*:../../x11/py-qt5-qscintilla |
| | | 19 | DEPENDS+= ${PYPKGPREFIX}-sip-qt5-[0-9]*:../../x11/py-sip-qt5 |
18 | | | 20 | |
19 | USE_TOOLS+= pax | | 21 | USE_TOOLS+= pax |
20 | | | 22 | |
21 | REPLACE_PYTHON+= thg | | 23 | REPLACE_PYTHON+= thg |
22 | | | 24 | |
23 | thg_icon= /share/pixmaps/tortoisehg/icons/thg_logo.ico | | 25 | thg_icon= /share/pixmaps/tortoisehg/icons/thg_logo.ico |
24 | SUBST_CLASSES+= df | | 26 | SUBST_CLASSES+= df |
25 | SUBST_STAGE.df= post-configure | | 27 | SUBST_STAGE.df= post-configure |
26 | SUBST_MESSAGE.df= Fixing icon reference in desktop file | | 28 | SUBST_MESSAGE.df= Fixing icon reference in desktop file |
27 | SUBST_FILES.df= contrib/thg.desktop | | 29 | SUBST_FILES.df= contrib/thg.desktop |
28 | SUBST_SED.df= -e 's:thg_logo:${PREFIX}${thg_icon}:1' | | 30 | SUBST_SED.df= -e 's:thg_logo:${PREFIX}${thg_icon}:1' |
29 | | | 31 | |
30 | INSTALLATION_DIRS+= share/applications | | 32 | INSTALLATION_DIRS+= share/applications |
31 | INSTALLATION_DIRS+= share/doc/tortoisehg | | 33 | INSTALLATION_DIRS+= share/doc/tortoisehg |
32 | | | 34 | |
33 | PYTHON_SELF_CONFLICT= yes | | 35 | PYTHON_SELF_CONFLICT= yes |
34 | | | 36 | |
35 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 37 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
36 | PYTHON_VERSIONS_INCOMPATIBLE+= 311 # py-sip via py-qt5-qscintilla | | | |
37 | | | 38 | |
38 | pre-build: | | 39 | pre-build: |
39 | ${RUN} cd ${WRKSRC}/doc && ${MAKE_PROGRAM} SPHINXBUILD=sphinx-build-${PYVERSSUFFIX} html | | 40 | ${RUN} cd ${WRKSRC}/doc && ${MAKE_PROGRAM} SPHINXBUILD=sphinx-build-${PYVERSSUFFIX} html |
40 | ${RUN} rm ${WRKSRC}/doc/build/html/.buildinfo | | 41 | ${RUN} rm ${WRKSRC}/doc/build/html/.buildinfo |
41 | # conflicts with mercurial | | 42 | # conflicts with mercurial |
42 | # https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/4629 | | 43 | # https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/4629 |
43 | ${RM} ${WRKSRC}/hgext3rd/__init__.py | | 44 | ${RM} ${WRKSRC}/hgext3rd/__init__.py |
44 | | | 45 | |
45 | post-install: | | 46 | post-install: |
46 | ${INSTALL_DATA} ${WRKSRC}/contrib/thg.desktop ${DESTDIR}${PREFIX}/share/applications/thg.desktop | | 47 | ${INSTALL_DATA} ${WRKSRC}/contrib/thg.desktop ${DESTDIR}${PREFIX}/share/applications/thg.desktop |
47 | ${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/tortoisehg | | 48 | ${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/tortoisehg |
48 | cd ${WRKSRC}/doc/build && ${PAX} -pp -rw html ${DESTDIR}${PREFIX}/share/doc/tortoisehg | | 49 | cd ${WRKSRC}/doc/build && ${PAX} -pp -rw html ${DESTDIR}${PREFIX}/share/doc/tortoisehg |
49 | | | 50 | |
50 | .include "../../lang/python/application.mk" | | 51 | .include "../../lang/python/application.mk" |
51 | .include "../../lang/python/egg.mk" | | 52 | .include "../../lang/python/egg.mk" |
52 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 53 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
53 | .include "../../x11/py-qt5-qscintilla/buildlink3.mk" | | | |
54 | .include "../../mk/bsd.pkg.mk" | | 54 | .include "../../mk/bsd.pkg.mk" |