pkgsrc/devel/py-tortoisehg/Makefile
wiz 27356916be py-tortoisehg: update to 5.8.
Changes not found.
2021-05-20 09:32:37 +00:00

52 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.75 2021/05/20 09:32:37 wiz Exp $
DISTNAME= tortoisehg-5.8
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= https://www.mercurial-scm.org/release/tortoisehg/targz/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://tortoisehg.bitbucket.io/
COMMENT= GUI for Mercurial
LICENSE= gnu-gpl-v2
USE_TOOLS+= pax
REPLACE_PYTHON+= thg
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.3.4nb1<2:../../textproc/py-sphinx1
DEPENDS+= ${PYPKGPREFIX}-iniparse>=0.4:../../textproc/py-iniparse
DEPENDS+= ${PYPKGPREFIX}-mercurial>=5.0.0:../../devel/py-mercurial
thg_icon= /share/pixmaps/tortoisehg/icons/thg_logo.ico
SUBST_CLASSES+= df
SUBST_STAGE.df= post-configure
SUBST_MESSAGE.df= Fixing icon reference in desktop file
SUBST_FILES.df= contrib/thg.desktop
SUBST_SED.df= -e 's:thg_logo:${PREFIX}${thg_icon}:1'
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/doc/tortoisehg
PYTHON_SELF_CONFLICT= yes
PYTHON_VERSIONED_DEPENDENCIES= pygments
pre-build:
${RUN} cd ${WRKSRC}/doc && ${MAKE_PROGRAM} SPHINXBUILD=sphinx-build-${PYVERSSUFFIX} html
${RUN} rm ${WRKSRC}/doc/build/html/.buildinfo
# conflicts with mercurial
# https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/4629
${RM} ${WRKSRC}/hgext3rd/__init__.py
post-install:
${INSTALL_DATA} ${WRKSRC}/contrib/thg.desktop ${DESTDIR}${PREFIX}/share/applications/thg.desktop
${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/tortoisehg
cd ${WRKSRC}/doc/build && ${PAX} -pp -rw html ${DESTDIR}${PREFIX}/share/doc/tortoisehg
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/py-qt5-qscintilla/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"