File:  [cvs.NetBSD.org] / pkgsrc / editors / zim / Makefile
Revision 1.31: download - view: text, annotated - select for diffs
Tue Jul 3 05:03:15 2018 UTC (6 years, 5 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, HEAD
extend PYTHON_VERSIONS_ for Python 3.7

# $NetBSD: Makefile,v 1.31 2018/07/03 05:03:15 adam Exp $

DISTNAME=	zim-0.59
PKGREVISION=	14
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	editors
MASTER_SITES=	http://zim-wiki.org/downloads/

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	http://zim-wiki.org/
COMMENT=	Zim brings the concept of a wiki to your desktop
LICENSE=	gnu-gpl-v2

DEPENDS+=	${PYPKGPREFIX}-xdg-[0-9]*:../../devel/py-xdg
DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
DEPENDS+=	${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
DEPENDS+=	xdg-utils-[0-9]*:../../misc/xdg-utils

USE_LANGUAGES=	# none

REPLACE_PYTHON=	${WRKSRC}/zim.py
PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # py-gtk2

SUBST_CLASSES+=		data-path
SUBST_STAGE.data-path=	pre-configure
SUBST_FILES.data-path=	zim/config.py
SUBST_SED.data-path=	-e 's,/usr/local/share/,${PREFIX}/share/,'

SUBST_CLASSES+=			fix-python
SUBST_STAGE.fix-python=		pre-configure
SUBST_MESSAGE.fix-python=	Fixing dynamic python
SUBST_FILES.fix-python+=	zim/_lib/xdot.py
SUBST_FILES.fix-python+=	zim/_version.py
SUBST_FILES.fix-python+=	zim/inc/xdot.py
SUBST_SED.fix-python+=		-e 's,/usr/bin/env python,${PYTHONBIN},'

SUBST_CLASSES+=			man-path
SUBST_STAGE.man-path=		pre-configure
SUBST_FILES.man-path+=		setup.py
SUBST_SED.man-path=		-e s,share/man/man1,${PKGMANDIR}/man1,

.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>