blob: 8019d14e0e4668038f0dd902eee8124b5d23eedf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: Makefile,v 1.6 2012/04/08 19:08:55 wiz Exp $
#
DISTNAME= zim-0.54
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
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
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= # none
REPLACE_PYTHON= ${WRKSRC}/zim.py
PYDISTUTILSPKG= YES
DEPENDS+= ${PYPKGPREFIX}-gobject-[0-9]*:../../devel/py-gobject
DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
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
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/pyversion.mk"
.if ${PYPKGPREFIX} == "py25"
DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson
.endif
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|