summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-04-13 12:03:06 +0000
committerobache <obache@pkgsrc.org>2010-04-13 12:03:06 +0000
commitf738b31689d19afeadf9188fd6e47846e33e3f5a (patch)
tree2f1589b8609db3465b3b126d01bf2a746155abd5
parentaedb2e929273333c012485c75330f5c86a9beaa0 (diff)
downloadpkgsrc-f738b31689d19afeadf9188fd6e47846e33e3f5a.tar.gz
* revert last PLIST change, it is not installed.
* convert custom SED target to SUBST, and move post-patch to pre-configure for easy to maintain patch. * replace shbang of codegen scripts. Bump PKGREVISION.
-rw-r--r--devel/py-gobject/Makefile27
-rw-r--r--devel/py-gobject/PLIST3
2 files changed, 22 insertions, 8 deletions
diff --git a/devel/py-gobject/Makefile b/devel/py-gobject/Makefile
index 4cd508d484e..9865fde73cf 100644
--- a/devel/py-gobject/Makefile
+++ b/devel/py-gobject/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2010/04/12 14:00:17 taca Exp $
+# $NetBSD: Makefile,v 1.25 2010/04/13 12:03:06 obache Exp $
#
PKGNAME= ${PYPKGPREFIX}-gobject-2.18.0
-PKGREVISION= 1
+PKGREVISION= 2
PKG_DESTDIR_SUPPORT= user-destdir
@@ -10,13 +10,28 @@ PKG_DESTDIR_SUPPORT= user-destdir
PYTHON_VERSIONS_ACCEPTED= 26 25
-post-patch:
- ${SED} "s|@PYGTKCODEGEN@|${PREFIX}/share/pygobject/2.0|" \
- <${WRKSRC}/dsextras.py >${WRKSRC}/dsextras.py.tmp \
- && ${MV} ${WRKSRC}/dsextras.py.tmp ${WRKSRC}/dsextras.py
+SUBST_CLASSES+= codegen
+SUBST_STAGE.codegen= pre-configure
+SUBST_FILES.codegen= dsextras.py
+SUBST_SED.codegen= -e "s|@PYGTKCODEGEN@|${PREFIX}/share/pygobject/2.0|"
+
+REPLACE_PYTHON+= codegen/code-coverage.py
+REPLACE_PYTHON+= codegen/codegen.py
+REPLACE_PYTHON+= codegen/createdefs.py
+REPLACE_PYTHON+= codegen/defsconvert.py
+REPLACE_PYTHON+= codegen/defsgen.py
+REPLACE_PYTHON+= codegen/docextract_to_xml.py
+REPLACE_PYTHON+= codegen/docgen.py
+REPLACE_PYTHON+= codegen/h2def.py
+REPLACE_PYTHON+= codegen/mergedefs.py
+REPLACE_PYTHON+= codegen/missingdefs.py
+REPLACE_PYTHON+= codegen/mkskel.py
+REPLACE_PYTHON+= codegen/scanvirtuals.py
+REPLACE_PYTHON+= codegen/scmexpr.py
BUILDLINK_API_DEPENDS.py-gobject-shared+= py-gobject-shared>=${PKGVERSION_NOREV}
+.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../devel/py-gobject-shared/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
diff --git a/devel/py-gobject/PLIST b/devel/py-gobject/PLIST
index 6b5b31f072c..4b1ebee6ff1 100644
--- a/devel/py-gobject/PLIST
+++ b/devel/py-gobject/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2010/04/12 14:00:17 taca Exp $
+@comment $NetBSD: PLIST,v 1.12 2010/04/13 12:03:06 obache Exp $
bin/pygobject-codegen-2.0
include/pygobject/bank.h
include/pygtk-2.0/pyglib.h
@@ -147,7 +147,6 @@ share/pygobject/2.0/codegen/reversewrapper.pyc
share/pygobject/2.0/codegen/reversewrapper.pyo
share/pygobject/2.0/codegen/scanvirtuals.py
share/pygobject/2.0/codegen/scmexpr.py
-share/pygobject/2.0/codegen/scmexpr.pyc
share/pygobject/2.0/defs/gappinfo.override
share/pygobject/2.0/defs/gapplaunchcontext.override
share/pygobject/2.0/defs/gbufferedinputstream.override