Don't depend on py-gobject and py-gtk2 directly, use the py-gtk2 buildlink3.mk. Use python/distutils.mk as it should. Use shared-mime-info/mimedb.mk as it should and remove file managed by shared-mime-info from PLIST. This makes zim not abort when started. Bump PKGREVISION.diff -r1.11 -r1.12 pkgsrc/editors/zim/Makefile
(bad)
@@ -1,47 +1,49 @@ | @@ -1,47 +1,49 @@ | |||
1 | # $NetBSD: Makefile,v 1.11 2013/01/26 13:39:37 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.12 2013/02/15 23:55:07 bad Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= zim-0.59 | 4 | DISTNAME= zim-0.59 | |
5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 5 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
6 | CATEGORIES= editors | 6 | CATEGORIES= editors | |
7 | MASTER_SITES= http://zim-wiki.org/downloads/ | 7 | MASTER_SITES= http://zim-wiki.org/downloads/ | |
8 | PKGREVISION= 1 | |||
8 | 9 | |||
9 | MAINTAINER= ryoon@NetBSD.org | 10 | MAINTAINER= ryoon@NetBSD.org | |
10 | HOMEPAGE= http://zim-wiki.org/ | 11 | HOMEPAGE= http://zim-wiki.org/ | |
11 | COMMENT= Zim brings the concept of a wiki to your desktop | 12 | COMMENT= Zim brings the concept of a wiki to your desktop | |
12 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
13 | 14 | |||
14 | USE_LANGUAGES= # none | 15 | USE_LANGUAGES= # none | |
15 | 16 | |||
16 | REPLACE_PYTHON= ${WRKSRC}/zim.py | 17 | REPLACE_PYTHON= ${WRKSRC}/zim.py | |
17 | PYDISTUTILSPKG= YES | 18 | PYDISTUTILSPKG= YES | |
18 | 19 | |||
19 | DEPENDS+= ${PYPKGPREFIX}-gobject-[0-9]*:../../devel/py-gobject | |||
20 | DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2 | |||
21 | DEPENDS+= ${PYPKGPREFIX}-xdg-[0-9]*:../../devel/py-xdg | 20 | DEPENDS+= ${PYPKGPREFIX}-xdg-[0-9]*:../../devel/py-xdg | |
22 | DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | 21 | DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | |
23 | DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree | 22 | DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree | |
24 | DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils | 23 | DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils | |
25 | 24 | |||
26 | SUBST_CLASSES+= data-path | 25 | SUBST_CLASSES+= data-path | |
27 | SUBST_STAGE.data-path= pre-configure | 26 | SUBST_STAGE.data-path= pre-configure | |
28 | SUBST_FILES.data-path= zim/config.py | 27 | SUBST_FILES.data-path= zim/config.py | |
29 | SUBST_SED.data-path= -e 's,/usr/local/share/,${PREFIX}/share/,' | 28 | SUBST_SED.data-path= -e 's,/usr/local/share/,${PREFIX}/share/,' | |
30 | 29 | |||
31 | SUBST_CLASSES+= fix-python | 30 | SUBST_CLASSES+= fix-python | |
32 | SUBST_STAGE.fix-python= pre-configure | 31 | SUBST_STAGE.fix-python= pre-configure | |
33 | SUBST_MESSAGE.fix-python= Fixing dynamic python | 32 | SUBST_MESSAGE.fix-python= Fixing dynamic python | |
34 | SUBST_FILES.fix-python+= zim/_lib/xdot.py | 33 | SUBST_FILES.fix-python+= zim/_lib/xdot.py | |
35 | SUBST_FILES.fix-python+= zim/_version.py | 34 | SUBST_FILES.fix-python+= zim/_version.py | |
36 | SUBST_FILES.fix-python+= zim/inc/xdot.py | 35 | SUBST_FILES.fix-python+= zim/inc/xdot.py | |
37 | SUBST_SED.fix-python+= -e 's,/usr/bin/env python,${PYTHONBIN},' | 36 | SUBST_SED.fix-python+= -e 's,/usr/bin/env python,${PYTHONBIN},' | |
38 | 37 | |||
39 | SUBST_CLASSES+= man-path | 38 | SUBST_CLASSES+= man-path | |
40 | SUBST_STAGE.man-path= pre-configure | 39 | SUBST_STAGE.man-path= pre-configure | |
41 | SUBST_FILES.man-path+= setup.py | 40 | SUBST_FILES.man-path+= setup.py | |
42 | SUBST_SED.man-path= -e s,share/man/man1,${PKGMANDIR}/man1, | 41 | SUBST_SED.man-path= -e s,share/man/man1,${PKGMANDIR}/man1, | |
43 | 42 | |||
44 | .include "../../lang/python/application.mk" | 43 | .include "../../lang/python/application.mk" | |
45 | .include "../../lang/python/extension.mk" | 44 | .include "../../lang/python/distutils.mk" | |
45 | .include "../../x11/py-gtk2/buildlink3.mk" | |||
46 | .include "../../databases/shared-mime-info/mimedb.mk" | |||
47 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | |||
46 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | 48 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |
47 | .include "../../mk/bsd.pkg.mk" | 49 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.6 2013/01/26 13:39:37 ryoon Exp $ | 1 | @comment $NetBSD: PLIST,v 1.7 2013/02/15 23:55:07 bad Exp $ | |
2 | bin/zim | 2 | bin/zim | |
3 | ${PYSITELIB}/zim/__init__.py | 3 | ${PYSITELIB}/zim/__init__.py | |
4 | ${PYSITELIB}/zim/__init__.pyc | 4 | ${PYSITELIB}/zim/__init__.pyc | |
5 | ${PYSITELIB}/zim/__init__.pyo | 5 | ${PYSITELIB}/zim/__init__.pyo | |
6 | ${PYSITELIB}/zim/_version.py | 6 | ${PYSITELIB}/zim/_version.py | |
7 | ${PYSITELIB}/zim/_version.pyc | 7 | ${PYSITELIB}/zim/_version.pyc | |
8 | ${PYSITELIB}/zim/_version.pyo | 8 | ${PYSITELIB}/zim/_version.pyo | |
9 | ${PYSITELIB}/zim/applications.py | 9 | ${PYSITELIB}/zim/applications.py | |
10 | ${PYSITELIB}/zim/applications.pyc | 10 | ${PYSITELIB}/zim/applications.pyc | |
11 | ${PYSITELIB}/zim/applications.pyo | 11 | ${PYSITELIB}/zim/applications.pyo | |
12 | ${PYSITELIB}/zim/async.py | 12 | ${PYSITELIB}/zim/async.py | |
13 | ${PYSITELIB}/zim/async.pyc | 13 | ${PYSITELIB}/zim/async.pyc | |
14 | ${PYSITELIB}/zim/async.pyo | 14 | ${PYSITELIB}/zim/async.pyo | |
@@ -285,42 +285,27 @@ share/locale/ja/LC_MESSAGES/zim.mo | @@ -285,42 +285,27 @@ share/locale/ja/LC_MESSAGES/zim.mo | |||
285 | share/locale/nl/LC_MESSAGES/zim.mo | 285 | share/locale/nl/LC_MESSAGES/zim.mo | |
286 | share/locale/pl/LC_MESSAGES/zim.mo | 286 | share/locale/pl/LC_MESSAGES/zim.mo | |
287 | share/locale/pt_BR/LC_MESSAGES/zim.mo | 287 | share/locale/pt_BR/LC_MESSAGES/zim.mo | |
288 | share/locale/ro/LC_MESSAGES/zim.mo | 288 | share/locale/ro/LC_MESSAGES/zim.mo | |
289 | share/locale/ru/LC_MESSAGES/zim.mo | 289 | share/locale/ru/LC_MESSAGES/zim.mo | |
290 | share/locale/sk/LC_MESSAGES/zim.mo | 290 | share/locale/sk/LC_MESSAGES/zim.mo | |
291 | share/locale/sl/LC_MESSAGES/zim.mo | 291 | share/locale/sl/LC_MESSAGES/zim.mo | |
292 | share/locale/sr/LC_MESSAGES/zim.mo | 292 | share/locale/sr/LC_MESSAGES/zim.mo | |
293 | share/locale/sv/LC_MESSAGES/zim.mo | 293 | share/locale/sv/LC_MESSAGES/zim.mo | |
294 | share/locale/tr/LC_MESSAGES/zim.mo | 294 | share/locale/tr/LC_MESSAGES/zim.mo | |
295 | share/locale/uk/LC_MESSAGES/zim.mo | 295 | share/locale/uk/LC_MESSAGES/zim.mo | |
296 | share/locale/zh_CN/LC_MESSAGES/zim.mo | 296 | share/locale/zh_CN/LC_MESSAGES/zim.mo | |
297 | share/locale/zh_TW/LC_MESSAGES/zim.mo | 297 | share/locale/zh_TW/LC_MESSAGES/zim.mo | |
298 | share/mime/XMLnamespaces | |||
299 | share/mime/aliases | |||
300 | share/mime/application/x-gjots.xml | |||
301 | share/mime/application/x-zim-notebook.xml | |||
302 | share/mime/generic-icons | |||
303 | share/mime/globs | |||
304 | share/mime/globs2 | |||
305 | share/mime/icons | |||
306 | share/mime/magic | |||
307 | share/mime/mime.cache | |||
308 | share/mime/packages/zim.xml | 298 | share/mime/packages/zim.xml | |
309 | share/mime/subclasses | |||
310 | share/mime/text/x-zim-wiki.xml | |||
311 | share/mime/treemagic | |||
312 | share/mime/types | |||
313 | share/mime/version | |||
314 | share/pixmaps/zim.png | 299 | share/pixmaps/zim.png | |
315 | share/zim/dates.list | 300 | share/zim/dates.list | |
316 | share/zim/globe.svg | 301 | share/zim/globe.svg | |
317 | share/zim/globe_banner.svg | 302 | share/zim/globe_banner.svg | |
318 | share/zim/globe_banner_small.png | 303 | share/zim/globe_banner_small.png | |
319 | share/zim/manual/About.txt | 304 | share/zim/manual/About.txt | |
320 | share/zim/manual/Bugs.txt | 305 | share/zim/manual/Bugs.txt | |
321 | share/zim/manual/FAQ.txt | 306 | share/zim/manual/FAQ.txt | |
322 | share/zim/manual/Help.txt | 307 | share/zim/manual/Help.txt | |
323 | share/zim/manual/Help/Attachments.txt | 308 | share/zim/manual/Help/Attachments.txt | |
324 | share/zim/manual/Help/Auto_Formatting.txt | 309 | share/zim/manual/Help/Auto_Formatting.txt | |
325 | share/zim/manual/Help/Check_Boxes.txt | 310 | share/zim/manual/Help/Check_Boxes.txt | |
326 | share/zim/manual/Help/Config_Files.txt | 311 | share/zim/manual/Help/Config_Files.txt |