Use egg.mk, not distutils.mk. This package can use either setuptools (egg.mk) or distutils (distutils.mk), but it prefers setuptools and thus should be built with our egg.mk support. Adjust PLIST for egg.mk (different) variables and drop eggfile conditionalization, as eggs always have egg-info directories. Thanks to dholland@ and obache@ for noticing/suggesting.diff -r1.6 -r1.7 pkgsrc/filesystems/py-fuse-bindings/Makefile
(gdt)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2011/12/16 01:07:23 gdt Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2011/12/16 12:51:56 gdt Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | VERSION= 0.2.1 | 4 | VERSION= 0.2.1 | |
5 | DISTNAME= fuse-python-${VERSION} | 5 | DISTNAME= fuse-python-${VERSION} | |
6 | PKGNAME= ${PYPKGPREFIX}-fuse-bindings-${VERSION} | 6 | PKGNAME= ${PYPKGPREFIX}-fuse-bindings-${VERSION} | |
7 | CATEGORIES= filesystems python | 7 | CATEGORIES= filesystems python | |
8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fuse/fuse-python}/ | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fuse/fuse-python}/ | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FusePython | 11 | HOMEPAGE= http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FusePython | |
12 | COMMENT= Python bindings for FUSE and refuse | 12 | COMMENT= Python bindings for FUSE and refuse | |
13 | LICENSE= gnu-lgpl-v2.1 | 13 | LICENSE= gnu-lgpl-v2.1 | |
14 | 14 | |||
@@ -16,17 +16,17 @@ EGG_NAME= fuse_python-${VERSION} | @@ -16,17 +16,17 @@ EGG_NAME= fuse_python-${VERSION} | |||
16 | PYDISTUTILSPKG= yes | 16 | PYDISTUTILSPKG= yes | |
17 | PY_PATCHLIST= yes | 17 | PY_PATCHLIST= yes | |
18 | USE_TOOLS+= pkg-config | 18 | USE_TOOLS+= pkg-config | |
19 | PKG_DESTDIR_SUPPORT= user-destdir | 19 | PKG_DESTDIR_SUPPORT= user-destdir | |
20 | 20 | |||
21 | INSTALLATION_DIRS= share/examples/fuse-python | 21 | INSTALLATION_DIRS= share/examples/fuse-python | |
22 | 22 | |||
23 | post-install: | 23 | post-install: | |
24 | ${INSTALL_SCRIPT} ${WRKSRC}/example/hello.py \ | 24 | ${INSTALL_SCRIPT} ${WRKSRC}/example/hello.py \ | |
25 | ${DESTDIR}${PREFIX}/share/examples/fuse-python/ | 25 | ${DESTDIR}${PREFIX}/share/examples/fuse-python/ | |
26 | ${INSTALL_SCRIPT} ${WRKSRC}/example/xmp.py \ | 26 | ${INSTALL_SCRIPT} ${WRKSRC}/example/xmp.py \ | |
27 | ${DESTDIR}${PREFIX}/share/examples/fuse-python/ | 27 | ${DESTDIR}${PREFIX}/share/examples/fuse-python/ | |
28 | 28 | |||
29 | .include "../../lang/python/distutils.mk" | 29 | .include "../../lang/python/egg.mk" | |
30 | 30 | |||
31 | .include "../../mk/fuse.buildlink3.mk" | 31 | .include "../../mk/fuse.buildlink3.mk" | |
32 | .include "../../mk/bsd.pkg.mk" | 32 | .include "../../mk/bsd.pkg.mk" |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.6 2011/12/16 01:10:29 gdt Exp $ | 1 | @comment $NetBSD: PLIST,v 1.7 2011/12/16 12:51:56 gdt Exp $ | |
2 | ${PYSITELIB}/fuse.py | 2 | ${PYSITELIB}/fuse.py | |
3 | ${PYSITELIB}/fuse.pyc | 3 | ${PYSITELIB}/fuse.pyc | |
4 | ${PYSITELIB}/fuse.pyo | 4 | ${PYSITELIB}/fuse.pyo | |
5 | ${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}/PKG-INFO | 5 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
6 | ${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}/SOURCES.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
7 | ${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}/dependency_links.txt | 7 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
8 | ${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}/top_level.txt | 8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
9 | ${PYSITELIB}/fuseparts/__init__.py | 9 | ${PYSITELIB}/fuseparts/__init__.py | |
10 | ${PYSITELIB}/fuseparts/__init__.pyc | 10 | ${PYSITELIB}/fuseparts/__init__.pyc | |
11 | ${PYSITELIB}/fuseparts/__init__.pyo | 11 | ${PYSITELIB}/fuseparts/__init__.pyo | |
12 | ${PYSITELIB}/fuseparts/_fusemodule.so | 12 | ${PYSITELIB}/fuseparts/_fusemodule.so | |
13 | ${PYSITELIB}/fuseparts/setcompatwrap.py | 13 | ${PYSITELIB}/fuseparts/setcompatwrap.py | |
14 | ${PYSITELIB}/fuseparts/setcompatwrap.pyc | 14 | ${PYSITELIB}/fuseparts/setcompatwrap.pyc | |
15 | ${PYSITELIB}/fuseparts/setcompatwrap.pyo | 15 | ${PYSITELIB}/fuseparts/setcompatwrap.pyo | |
16 | ${PYSITELIB}/fuseparts/subbedopts.py | 16 | ${PYSITELIB}/fuseparts/subbedopts.py | |
17 | ${PYSITELIB}/fuseparts/subbedopts.pyc | 17 | ${PYSITELIB}/fuseparts/subbedopts.pyc | |
18 | ${PYSITELIB}/fuseparts/subbedopts.pyo | 18 | ${PYSITELIB}/fuseparts/subbedopts.pyo | |
19 | share/examples/fuse-python/hello.py | 19 | share/examples/fuse-python/hello.py | |
20 | share/examples/fuse-python/xmp.py | 20 | share/examples/fuse-python/xmp.py |