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