pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/filesystems/py-fuse-bindings Fix installation with pyt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/168f349311cf
branches:  trunk
changeset: 543987:168f349311cf
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jun 30 15:44:40 2008 +0000

description:
Fix installation with python-2.5, using the appropriate infrastructure
(following some hints by joerg@).
Add missing files to PLIST.
Mark as user-destdir ready.
Bump PKGREVISION.

diffstat:

 filesystems/py-fuse-bindings/Makefile |  22 ++++++++++++----------
 filesystems/py-fuse-bindings/PLIST    |   6 +++++-
 2 files changed, 17 insertions(+), 11 deletions(-)

diffs (67 lines):

diff -r b2245d1d9542 -r 168f349311cf filesystems/py-fuse-bindings/Makefile
--- a/filesystems/py-fuse-bindings/Makefile     Mon Jun 30 13:41:05 2008 +0000
+++ b/filesystems/py-fuse-bindings/Makefile     Mon Jun 30 15:44:40 2008 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/05/04 19:51:52 agc Exp $
+# $NetBSD: Makefile,v 1.2 2008/06/30 15:44:40 wiz Exp $
 #
 
 DISTNAME=              fuse-python-0.2pre1-20060720
 PKGNAME=               ${PYPKGPREFIX}-fuse-bindings-0.2pre1
+PKGREVISION=           1
 CATEGORIES=            filesystems python
 MASTER_SITES=          http://bsd.cenkes.org/myports/
 EXTRACT_SUFX=          .tar.bz2
@@ -11,20 +12,21 @@
 HOMEPAGE=              http://bsd.cenkes.org/myports/
 COMMENT=               Python bindings for FUSE and refuse
 
-PYSETUP=               setup.py
-PLIST_SUBST+=          PYSITELIB=${PYSITELIB:Q}
+PYDISTUTILSPKG=                yes
+PY_PATCHLIST=          yes
 USE_TOOLS+=            pkg-config
+PKG_DESTDIR_SUPPORT=   user-destdir
 
-do-build:
-       cd ${WRKSRC} && ${PYTHONBIN} ${PYSETUP} build
+INSTALLATION_DIRS=     share/examples/fuse-python
 
-do-install:
-       cd ${WRKSRC} && ${PYTHONBIN} ${PYSETUP} install
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fuse-python
-       ${INSTALL_SCRIPT} ${WRKSRC}/example/hello.py ${PREFIX}/share/examples/fuse-python/
-       ${INSTALL_SCRIPT} ${WRKSRC}/example/xmp.py ${PREFIX}/share/examples/fuse-python/
+post-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/example/hello.py \
+               ${DESTDIR}${PREFIX}/share/examples/fuse-python/
+       ${INSTALL_SCRIPT} ${WRKSRC}/example/xmp.py \
+               ${DESTDIR}${PREFIX}/share/examples/fuse-python/
 
 .include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
 
 .include "../../mk/fuse.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b2245d1d9542 -r 168f349311cf filesystems/py-fuse-bindings/PLIST
--- a/filesystems/py-fuse-bindings/PLIST        Mon Jun 30 13:41:05 2008 +0000
+++ b/filesystems/py-fuse-bindings/PLIST        Mon Jun 30 15:44:40 2008 +0000
@@ -1,13 +1,17 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/04 19:51:52 agc Exp $
+@comment $NetBSD: PLIST,v 1.2 2008/06/30 15:44:41 wiz Exp $
 ${PYSITELIB}/fuse.py
 ${PYSITELIB}/fuse.pyc
+${PYSITELIB}/fuse.pyo
 ${PYSITELIB}/fuseparts/__init__.py
 ${PYSITELIB}/fuseparts/__init__.pyc
+${PYSITELIB}/fuseparts/__init__.pyo
 ${PYSITELIB}/fuseparts/_fusemodule.so
 ${PYSITELIB}/fuseparts/setcompatwrap.py
 ${PYSITELIB}/fuseparts/setcompatwrap.pyc
+${PYSITELIB}/fuseparts/setcompatwrap.pyo
 ${PYSITELIB}/fuseparts/subbedopts.py
 ${PYSITELIB}/fuseparts/subbedopts.pyc
+${PYSITELIB}/fuseparts/subbedopts.pyo
 share/examples/fuse-python/hello.py
 share/examples/fuse-python/xmp.py
 @dirrm share/examples/fuse-python



Home | Main Index | Thread Index | Old Index