pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/py-metakit Add current distfile location to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01ed0e3ef9b1
branches:  trunk
changeset: 508236:01ed0e3ef9b1
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Feb 16 18:13:48 2006 +0000

description:
Add current distfile location to MASTER_SITES.
Install .pyc file too. Bump PKGREVISION.

diffstat:

 databases/py-metakit/Makefile |  17 +++++++++++++----
 databases/py-metakit/PLIST    |   3 ++-
 2 files changed, 15 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r e4bbdfbffc43 -r 01ed0e3ef9b1 databases/py-metakit/Makefile
--- a/databases/py-metakit/Makefile     Thu Feb 16 18:13:13 2006 +0000
+++ b/databases/py-metakit/Makefile     Thu Feb 16 18:13:48 2006 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: Makefile,v 1.15 2006/02/05 23:08:36 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2006/02/16 18:13:48 wiz Exp $
 #
 
 DISTNAME=      metakit-2.4.9.3
-PKGNAME=       ${PYPKGPREFIX}-metakit-2.4.9.3
-PKGREVISION=   2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   3
 CATEGORIES=    databases python
-MASTER_SITES=  http://www.equi4.com/pub/mk/
+MASTER_SITES=  http://www.equi4.com/pub/mk/ \
+               http://www.equi4.com/pub/mk/older/
 
 MAINTAINER=    tech-pkg%NetBSD.org@localhost
 HOMEPAGE=      http://www.equi4.com/metakit/
@@ -24,6 +25,14 @@
 MAKE_ENV+=     PYINC=${LOCALBASE}/${PYINC} PYSITELIB=${LOCALBASE}/${PYSITELIB}
 PY_PATCHPLIST= yes
 
+PYCOMPILEALL=  ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py
+
+post-build:
+       cd ${WRKSRC}/../python && ${PYTHONBIN} ${PYCOMPILEALL} .
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/../python/metakit.pyc ${PREFIX}/${PYSITELIB}
+
 .include "../../databases/metakit-lib/buildlink3.mk"
 .include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e4bbdfbffc43 -r 01ed0e3ef9b1 databases/py-metakit/PLIST
--- a/databases/py-metakit/PLIST        Thu Feb 16 18:13:13 2006 +0000
+++ b/databases/py-metakit/PLIST        Thu Feb 16 18:13:48 2006 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/04 18:48:09 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2006/02/16 18:13:48 wiz Exp $
 ${PYSITELIB}/Mk4py.so
 ${PYSITELIB}/metakit.py
+${PYSITELIB}/metakit.pyc



Home | Main Index | Thread Index | Old Index