summaryrefslogtreecommitdiffstats
path: root/devel/py-gi/Makefile
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-06-07 16:51:00 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-06-07 16:51:00 +0800
commite4b2558926ba2e8d70a4d1a0cf2d6d720fa73fff (patch)
treeb9170df858c08dab2e373902af9722983bd3beb2 /devel/py-gi/Makefile
parentfae469be82c10d52aa10340ea870960e95412d7a (diff)
downloadmarcuscom-ports-e4b2558926ba2e8d70a4d1a0cf2d6d720fa73fff.tar.gz
marcuscom-ports-e4b2558926ba2e8d70a4d1a0cf2d6d720fa73fff.tar.zst
marcuscom-ports-e4b2558926ba2e8d70a4d1a0cf2d6d720fa73fff.zip
Add py-gi. Python GObject-Introspection bindings.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14204 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/py-gi/Makefile')
-rw-r--r--devel/py-gi/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/devel/py-gi/Makefile b/devel/py-gi/Makefile
new file mode 100644
index 000000000..96e106540
--- /dev/null
+++ b/devel/py-gi/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: py-gi
+# Date Created: 7 Juni 2010
+# Whom: Koop Mast <kwm@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= gi
+PORTVERSION= 0.6.0
+CATEGORIES= devel
+MASTER_SITES= GNOME
+MASTER_SITE_SUBDIR= sources/pygi/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pygi-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Python bindings based on GObject-Introspection
+
+BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
+ ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo \
+ ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject
+LIB_DEPENDS= ffi.5:${PORTSDIR}/devel/libffi
+RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
+ ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo \
+ ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject
+
+USE_BZIP2= yes
+#USE_GETTEXT= yes
+USE_GMAKE= yes
+USE_GNOME= gnomehack gnomehier intlhack gtk20
+GNU_CONFIGURE= yes
+USE_PYTHON= 2.5+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ ${CHMOD} +x ${WRKSRC}/install-sh
+
+#pre-install:
+# ${MKDIR} ${PYTHON_SITELIBDIR}/gtk-2.0/gi/repository
+
+.include <bsd.port.post.mk>