summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11-toolkits/py-gnome2/Makefile54
-rw-r--r--x11-toolkits/py-gnome2/distinfo3
-rw-r--r--x11-toolkits/py-gnome2/files/patch-configure11
-rw-r--r--x11-toolkits/py-gnome2/files/patch-gnomevfs_Makefile.in11
-rw-r--r--x11-toolkits/py-gnome2/pkg-descr10
-rw-r--r--x11-toolkits/py-gnome2/pkg-plist81
6 files changed, 170 insertions, 0 deletions
diff --git a/x11-toolkits/py-gnome2/Makefile b/x11-toolkits/py-gnome2/Makefile
new file mode 100644
index 000000000..34edd0b4b
--- /dev/null
+++ b/x11-toolkits/py-gnome2/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: py-gnome
+# Date created: 09 February 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports-stable/x11-toolkits/py-gnome2/Makefile,v 1.2 2006/03/14 13:28:11 marcus Exp $
+#
+
+PORTNAME= gnome
+PORTVERSION= 2.15.1
+CATEGORIES= x11-toolkits python gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome-python/${PORTVERSION:C/..$//}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= gnome-python-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A set of Python bindings for GNOME 2
+
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/ORBit.so:${PORTSDIR}/devel/py-orbit2
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/ORBit.so:${PORTSDIR}/devel/py-orbit2
+
+LATEST_LINK= py-gnome2
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_PYTHON= yes
+USE_GNOME= gnomehack libgnomeui pygtk2
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+
+EG_SRC_DIR= ${WRKSRC}/examples
+EG_DST_DIR= ${PREFIX}/share/examples/py-gnome
+
+CONFLICTS= py*-gnome-1*
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|' \
+ ${WRKSRC}/gnomevfs/Makefile.in
+
+.if !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${EG_DST_DIR}
+ ${TAR} -C ${EG_SRC_DIR} -cf - . | ${TAR} -C ${EG_DST_DIR} -xf -
+ ${CHOWN} -R ${BINOWN}:${BINGRP} ${EG_DST_DIR}
+ ${FIND} ${EG_DST_DIR} -type d -print | ${XARGS} ${CHMOD} 0555
+ ${FIND} ${EG_DST_DIR} -type f -print | ${XARGS} ${CHMOD} 0444
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/py-gnome2/distinfo b/x11-toolkits/py-gnome2/distinfo
new file mode 100644
index 000000000..a4da98b3d
--- /dev/null
+++ b/x11-toolkits/py-gnome2/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/gnome-python-2.15.1.tar.bz2) = f55f0d8a5c66363d4d9893a6481b1b85
+SHA256 (gnome2/gnome-python-2.15.1.tar.bz2) = f284ab169decf199c99bcfc7d79ab087700501d0dd744597b480d0ca484d93eb
+SIZE (gnome2/gnome-python-2.15.1.tar.bz2) = 395235
diff --git a/x11-toolkits/py-gnome2/files/patch-configure b/x11-toolkits/py-gnome2/files/patch-configure
new file mode 100644
index 000000000..af6b9c5e0
--- /dev/null
+++ b/x11-toolkits/py-gnome2/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Tue Mar 14 08:23:11 2006
++++ configure Tue Mar 14 08:24:01 2006
+@@ -21329,7 +21329,7 @@ if $build_pyvfsmodule; then
+ echo "$as_me:$LINENO: checking for libraries required to embed python" >&5
+ echo $ECHO_N "checking for libraries required to embed python... $ECHO_C" >&6
+ py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+-PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
++PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION} ${PTHREAD_LIBS}"
+
+ save_LIBS="$LIBS"
+ LIBS="$LIBS $PYTHON_LIBS"
diff --git a/x11-toolkits/py-gnome2/files/patch-gnomevfs_Makefile.in b/x11-toolkits/py-gnome2/files/patch-gnomevfs_Makefile.in
new file mode 100644
index 000000000..40844f935
--- /dev/null
+++ b/x11-toolkits/py-gnome2/files/patch-gnomevfs_Makefile.in
@@ -0,0 +1,11 @@
+--- gnomevfs/Makefile.in.orig Sat Sep 3 15:51:39 2005
++++ gnomevfs/Makefile.in Sat Sep 3 15:52:19 2005
+@@ -276,7 +276,7 @@
+
+ gpincdir = $(includedir)/gnome-python-2.0
+ gpinc_HEADERS = pygnomevfs.h
+-vfsmethoddir = $(libdir)/gnome-vfs-2.0/modules
++vfsmethoddir = %%X11BASE%%/lib/gnome-vfs-2.0/modules
+ @BUILD_PYVFSMODULE_FALSE@vfsmethod_LTLIBRARIES =
+ @BUILD_PYVFSMODULE_TRUE@vfsmethod_LTLIBRARIES = libpythonmethod.la
+ libpythonmethod_la_CFLAGS = $(GNOME_VFS_MODULE_CFLAGS) -DGNOME_VFS_PYTHON_DIR="\"$(vfsmethoddir)\""
diff --git a/x11-toolkits/py-gnome2/pkg-descr b/x11-toolkits/py-gnome2/pkg-descr
new file mode 100644
index 000000000..422d464c6
--- /dev/null
+++ b/x11-toolkits/py-gnome2/pkg-descr
@@ -0,0 +1,10 @@
+Excerpt from the README:
+
+ PyGNOME -- Python bindings for GNOME 2
+ ======================================
+ Author: James Henstridge <james@daa.com.au>
+
+ This is a set of bindings for the GNOME 2 libraries for use with python.
+
+WWW: http://www.pygtk.org/
+-- Jacques Vidrine <nectar@FreeBSD.ORG>
diff --git a/x11-toolkits/py-gnome2/pkg-plist b/x11-toolkits/py-gnome2/pkg-plist
new file mode 100644
index 000000000..957118502
--- /dev/null
+++ b/x11-toolkits/py-gnome2/pkg-plist
@@ -0,0 +1,81 @@
+include/gnome-python-2.0/pygnomevfs.h
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/__init__.py
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/__init__.pyc
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/__init__.pyo
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/_bonobo.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/_bonobo.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/activation.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/activation.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/ui.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo/ui.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gconf.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gconf.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/__init__.py
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/__init__.pyc
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/__init__.pyo
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/_gnome.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/_gnome.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/canvas.py
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/canvas.pyc
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/canvas.pyo
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/ui.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/ui.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/vfs.py
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/vfs.pyc
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnome/vfs.pyo
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnomecanvas.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnomecanvas.so
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnomevfs.la
+%%PYTHON_SITELIBDIR%%/gtk-2.0/gnomevfs.so
+libdata/pkgconfig/gnome-python-2.0.pc
+%%PORTDOCS%%share/examples/py-gnome/bonobo/bonobo-application.py
+%%PORTDOCS%%share/examples/py-gnome/bonobo/bonoboui/Bonobo_Sample_Hello.xml
+%%PORTDOCS%%share/examples/py-gnome/bonobo/bonoboui/hello.py
+%%PORTDOCS%%share/examples/py-gnome/bonobo/echo/README
+%%PORTDOCS%%share/examples/py-gnome/bonobo/echo/echo-client.py
+%%PORTDOCS%%share/examples/py-gnome/bonobo/unknown.py
+%%PORTDOCS%%share/examples/py-gnome/canvas/canvas-curve.py
+%%PORTDOCS%%share/examples/py-gnome/canvas/canvas-example.py
+%%PORTDOCS%%share/examples/py-gnome/gconf/basic-gconf-app.py
+%%PORTDOCS%%share/examples/py-gnome/gconf/simple-controller.py
+%%PORTDOCS%%share/examples/py-gnome/gconf/simple-view.py
+%%PORTDOCS%%share/examples/py-gnome/popt/popt.py
+%%PORTDOCS%%share/examples/py-gnome/vfs/async-xfer.py
+%%PORTDOCS%%share/examples/py-gnome/vfs/async.py
+%%PORTDOCS%%share/examples/py-gnome/vfs/cancellation.py
+%%PORTDOCS%%share/examples/py-gnome/vfs/pygvfsmethod/README
+%%PORTDOCS%%share/examples/py-gnome/vfs/pygvfsmethod/pyfs.conf
+%%PORTDOCS%%share/examples/py-gnome/vfs/pygvfsmethod/pyfs.py
+%%PORTDOCS%%share/examples/py-gnome/vfs/shell.py
+%%PORTDOCS%%share/examples/py-gnome/vfs/sync-xfer.py
+share/pygtk/2.0/argtypes/bonobo-arg-types.py
+share/pygtk/2.0/argtypes/bonobo-arg-types.pyc
+share/pygtk/2.0/argtypes/bonobo-arg-types.pyo
+share/pygtk/2.0/argtypes/gconf-arg-types.py
+share/pygtk/2.0/argtypes/gconf-arg-types.pyc
+share/pygtk/2.0/argtypes/gconf-arg-types.pyo
+share/pygtk/2.0/defs/bonobo-types.defs
+share/pygtk/2.0/defs/bonobo.defs
+share/pygtk/2.0/defs/bonoboui-types.defs
+share/pygtk/2.0/defs/bonoboui.defs
+share/pygtk/2.0/defs/canvas.defs
+share/pygtk/2.0/defs/gconf.defs
+share/pygtk/2.0/defs/gnome-types.defs
+share/pygtk/2.0/defs/gnome.defs
+share/pygtk/2.0/defs/ui.defs
+@dirrm share/pygtk/2.0/argtypes
+%%PORTDOCS%%@dirrm share/examples/py-gnome/vfs/pygvfsmethod
+%%PORTDOCS%%@dirrm share/examples/py-gnome/vfs
+%%PORTDOCS%%@dirrm share/examples/py-gnome/popt
+%%PORTDOCS%%@dirrm share/examples/py-gnome/gconf
+%%PORTDOCS%%@dirrm share/examples/py-gnome/canvas
+%%PORTDOCS%%@dirrm share/examples/py-gnome/bonobo/echo
+%%PORTDOCS%%@dirrm share/examples/py-gnome/bonobo/bonoboui
+%%PORTDOCS%%@dirrm share/examples/py-gnome/bonobo
+%%PORTDOCS%%@dirrm share/examples/py-gnome
+@dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gnome
+@dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/bonobo
+@dirrm include/gnome-python-2.0
+@cwd %%X11BASE%%
+lib/gnome-vfs-2.0/modules/libpythonmethod.la
+lib/gnome-vfs-2.0/modules/libpythonmethod.so