Fri Dec 2 15:41:30 2022 UTC ()
py-tortoisehg: switch to latest py-qt5

This adds support for python 3.11.


(wiz)
diff -r1.89 -r1.90 pkgsrc/devel/py-tortoisehg/Makefile

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

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