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