Sat Apr 27 16:33:08 2024 UTC (15d)
py-tortoisehg: switch to qt6.

With help from adam@, thanks!


(wiz)
diff -r1.98 -r1.99 pkgsrc/devel/py-tortoisehg/Makefile

cvs diff -r1.98 -r1.99 pkgsrc/devel/py-tortoisehg/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-tortoisehg/Makefile 2024/02/19 12:47:39 1.98
+++ pkgsrc/devel/py-tortoisehg/Makefile 2024/04/27 16:33:08 1.99
@@ -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
3DISTNAME= tortoisehg-6.6.3 3DISTNAME= tortoisehg-6.6.3
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5PKGREVISION= 1
6MASTER_SITES= https://www.mercurial-scm.org/release/tortoisehg/targz/ 6CATEGORIES= devel python
7 7MASTER_SITES= https://www.mercurial-scm.org/release/tortoisehg/targz/
8MAINTAINER= pkgsrc-users@NetBSD.org 8
9HOMEPAGE= https://tortoisehg.bitbucket.io/ 9MAINTAINER= pkgsrc-users@NetBSD.org
10COMMENT= GUI for Mercurial 10HOMEPAGE= https://tortoisehg.bitbucket.io/
11LICENSE= gnu-gpl-v2 11COMMENT= GUI for Mercurial
 12LICENSE= gnu-gpl-v2
12 13
13TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx>=7.0.0:../../textproc/py-sphinx 14TOOL_DEPENDS+= ${PYPKGPREFIX}-sphinx>=7.0.0:../../textproc/py-sphinx
14DEPENDS+= ${PYPKGPREFIX}-iniparse>=0.4:../../textproc/py-iniparse 15DEPENDS+= ${PYPKGPREFIX}-iniparse>=0.4:../../textproc/py-iniparse
15DEPENDS+= ${PYPKGPREFIX}-mercurial>=5.0.0:../../devel/py-mercurial 16DEPENDS+= ${PYPKGPREFIX}-mercurial>=5.0.0:../../devel/py-mercurial
16DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments 17DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
17DEPENDS+= ${PYPKGPREFIX}-qt5-qscintilla-[0-9]*:../../x11/py-qt5-qscintilla 18DEPENDS+= ${PYPKGPREFIX}-qt6-qscintilla-[0-9]*:../../x11/py-qt6-qscintilla
18DEPENDS+= ${PYPKGPREFIX}-sip-qt5-[0-9]*:../../x11/py-sip-qt5 19DEPENDS+= ${PYPKGPREFIX}-sip-qt6-[0-9]*:../../x11/py-sip-qt6
19 20
20USE_TOOLS+= pax 21USE_TOOLS+= pax
 22MAKE_ENV+= THG_QT_API=PyQt6
21 23
22REPLACE_PYTHON+= thg 24REPLACE_PYTHON+= thg
23 25
24thg_icon= /share/pixmaps/tortoisehg/icons/thg_logo.ico 26thg_icon= /share/pixmaps/tortoisehg/icons/thg_logo.ico
25SUBST_CLASSES+= df 27SUBST_CLASSES+= df
26SUBST_STAGE.df= post-configure 28SUBST_STAGE.df= post-configure
27SUBST_MESSAGE.df= Fixing icon reference in desktop file 29SUBST_MESSAGE.df= Fixing icon reference in desktop file
28SUBST_FILES.df= contrib/thg.desktop 30SUBST_FILES.df= contrib/thg.desktop
29SUBST_SED.df= -e 's:thg_logo:${PREFIX}${thg_icon}:1' 31SUBST_SED.df= -e 's:thg_logo:${PREFIX}${thg_icon}:1'
30 32
31INSTALLATION_DIRS+= share/applications 33INSTALLATION_DIRS+= share/applications
32INSTALLATION_DIRS+= share/doc/tortoisehg 34INSTALLATION_DIRS+= share/doc/tortoisehg
33 35
34PYTHON_SELF_CONFLICT= yes 36PYTHON_SELF_CONFLICT= yes
35 37
36PYTHON_VERSIONS_INCOMPATIBLE= 27 38 38PYTHON_VERSIONS_INCOMPATIBLE= 27 38
37 39
38pre-build: 40pre-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
45post-install: 47post-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"