diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-10-21 22:16:43 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-10-21 22:16:43 +0800 |
commit | 2f114e3379b128ed5eebc0ec33148c567811d085 (patch) | |
tree | b505b9837d3fa1cc7399cfc2af2a3384004990db | |
parent | cfbcf2e1c882ba668bc8279cf17e8b86b934a9f7 (diff) | |
download | marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.tar marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.tar.gz marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.tar.bz2 marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.tar.lz marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.tar.xz marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.tar.zst marcuscom-ports-2f114e3379b128ed5eebc0ec33148c567811d085.zip |
Fix the build with gdl 2.24.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11719 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | x11-toolkits/py-gnome-extras/Makefile | 61 | ||||
-rw-r--r-- | x11-toolkits/py-gnome-extras/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/py-gnome-extras/files/patch-configure | 22 | ||||
-rw-r--r-- | x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.defs | 67 | ||||
-rw-r--r-- | x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.override | 10 | ||||
-rw-r--r-- | x11-toolkits/py-gnome-extras/pkg-descr | 10 | ||||
-rw-r--r-- | x11-toolkits/py-gnome-extras/pkg-plist | 68 |
7 files changed, 241 insertions, 0 deletions
diff --git a/x11-toolkits/py-gnome-extras/Makefile b/x11-toolkits/py-gnome-extras/Makefile new file mode 100644 index 000000000..a69b75886 --- /dev/null +++ b/x11-toolkits/py-gnome-extras/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: py-gnome-extras +# Date created: 22 November 2005 +# Whom: Koop Mast <kwm@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gnome +PORTVERSION= 2.19.1 +PORTREVISION= 5 +CATEGORIES= x11-toolkits python gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/gnome-python-extras/${PORTVERSION:C/..$//} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= -extras +DISTNAME= gnome-python-extras-${PORTVERSION} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A set of Python bindings for GNOME 2 + +LIB_DEPENDS= gtkspell.0:${PORTSDIR}/textproc/gtkspell \ + gksu1.2.0:${PORTSDIR}/sysutils/libgksu \ + gksuui1.0.1:${PORTSDIR}/sysutils/libgksuui \ + gdl-1.0:${PORTSDIR}/x11-toolkits/gdl + +USE_GECKO= firefox seamonkey xulrunner mozilla +USE_BZIP2= yes +USE_GMAKE= yes +USE_PYTHON= yes +USE_GNOME= gnomehack libgtkhtml pygnome2 libgda3 +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-gtkmozembed=${GECKO} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +EG_SRC_DIR= ${WRKSRC}/examples +EG_DST_DIR= ${PREFIX}/share/examples/py-gnome +.if !defined(NOPORTDOCS) +DOCSDIR= ${PREFIX}/share/doc/py-gnome-extras +.else +DOCSDIR= ${WRKSRC}/share/doc/py-gnome-extras +.endif + +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk" + +post-patch: + @${FIND} ${WRKSRC}/docs -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \ + -e 's|^HTML_DIR =.*|HTML_DIR = ${DOCSDIR}|g' + +.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} + ${CHMOD} -R go-w ${EG_DST_DIR} +.endif + +.include <bsd.port.post.mk> diff --git a/x11-toolkits/py-gnome-extras/distinfo b/x11-toolkits/py-gnome-extras/distinfo new file mode 100644 index 000000000..c16b77d8d --- /dev/null +++ b/x11-toolkits/py-gnome-extras/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/gnome-python-extras-2.19.1.tar.bz2) = 08896c63d71ce44d20fafbaf9c0edc78 +SHA256 (gnome2/gnome-python-extras-2.19.1.tar.bz2) = c5f74f4c46dbb379d119d6f74ca4a47653af251bea176dc7a0ecacccb88339f0 +SIZE (gnome2/gnome-python-extras-2.19.1.tar.bz2) = 361721 diff --git a/x11-toolkits/py-gnome-extras/files/patch-configure b/x11-toolkits/py-gnome-extras/files/patch-configure new file mode 100644 index 000000000..407ce7f17 --- /dev/null +++ b/x11-toolkits/py-gnome-extras/files/patch-configure @@ -0,0 +1,22 @@ +--- configure.orig Sun Feb 25 16:31:03 2007 ++++ configure Sat Jul 21 20:04:43 2007 +@@ -1550,7 +1550,7 @@ + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-tags[=TAGS] include additional configurations [automatic] +- --with-gtkmozembed=mozilla|firefox|xulrunner ++ --with-gtkmozembed=mozilla|firefox|xulrunner|seamonkey + package that provides libgtkmozembed + + Some influential environment variables: +@@ -22072,8 +22072,9 @@ + xulrunner) mozpackage_required_version=1.8 ;; + firefox) mozpackage_required_version=1.0 ;; + mozilla) mozpackage_required_version=1.2b ;; ++ seamonkey) mozpackage_required_version=1.1.3 ;; + *) { { echo "$as_me:$LINENO: error: --with-gtkmozembed argument must be either 'mozilla', 'firefox', or 'xulrunner'" >&5 +-echo "$as_me: error: --with-gtkmozembed argument must be either 'mozilla', 'firefox', or 'xulrunner'" >&2;} ++echo "$as_me: error: --with-gtkmozembed argument must be either 'mozilla', 'firefox', 'seamonkey' or 'xulrunner'" >&2;} + { (exit 1); exit 1; }; } + esac + diff --git a/x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.defs b/x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.defs new file mode 100644 index 000000000..b0b5dae62 --- /dev/null +++ b/x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.defs @@ -0,0 +1,67 @@ +--- gdl/gdl.defs.orig 2007-06-05 14:52:30.000000000 +0000 ++++ gdl/gdl.defs 2008-10-21 15:47:07.000000000 +0000 +@@ -81,17 +81,6 @@ + (gtype-id "GDL_TYPE_DOCK_TABLABEL") + ) + +-(ifdef HAVE_GDL_0_7 +- +-(define-object Icons +- (in-module "Gdl") +- (parent "GObject") +- (c-name "GdlIcons") +- (gtype-id "GDL_TYPE_ICONS") +-) +- +-) ; ifdef HAVE_GDL_0_7 +- + ;; Enumerations and flags ... + + (ifdef HAVE_GDL_0_7 +@@ -924,46 +913,3 @@ + (return-type "none") + ) + +-;; From gdl-icons.h +- +-(ifdef HAVE_GDL_0_7 +- +-(define-function gdl_icons_new +- (is-constructor-of "GdlIcons") +- (c-name "gdl_icons_new") +- (return-type "GdlIcons*") +- (parameters +- '("int" "icon_size") +- ) +-) +- +-(define-function gdl_icons_get_type +- (c-name "gdl_icons_get_type") +- (return-type "GType") +-) +- +-(define-method get_folder_icon +- (of-object "GdlIcons") +- (c-name "gdl_icons_get_folder_icon") +- (return-type "GdkPixbuf*") +-) +- +-(define-method get_uri_icon +- (of-object "GdlIcons") +- (c-name "gdl_icons_get_uri_icon") +- (return-type "GdkPixbuf*") +- (parameters +- '("const-char*" "uri") +- ) +-) +- +-(define-method get_mime_icon +- (of-object "GdlIcons") +- (c-name "gdl_icons_get_mime_icon") +- (return-type "GdkPixbuf*") +- (parameters +- '("const-char*" "mime_type") +- ) +-) +- +-) ; ifdef HAVE_GDL_0_7 diff --git a/x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.override b/x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.override new file mode 100644 index 000000000..16e67fe1e --- /dev/null +++ b/x11-toolkits/py-gnome-extras/files/patch-gdl_gdl.override @@ -0,0 +1,10 @@ +--- gdl/gdl.override.orig 2007-06-05 14:52:30.000000000 +0000 ++++ gdl/gdl.override 2008-10-21 15:47:07.000000000 +0000 +@@ -6,7 +6,6 @@ headers + #include <pygtk/pygtk.h> + #include <gdl/gdl-dock.h> + #include <gdl/libgdltypebuiltins.h> +-#include <gdl/gdl-icons.h> + #ifndef HAVE_GDL_0_7 + # include <gdl/gdl-dock-bar.h> + #endif diff --git a/x11-toolkits/py-gnome-extras/pkg-descr b/x11-toolkits/py-gnome-extras/pkg-descr new file mode 100644 index 000000000..422d464c6 --- /dev/null +++ b/x11-toolkits/py-gnome-extras/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-gnome-extras/pkg-plist b/x11-toolkits/py-gnome-extras/pkg-plist new file mode 100644 index 000000000..012275817 --- /dev/null +++ b/x11-toolkits/py-gnome-extras/pkg-plist @@ -0,0 +1,68 @@ +include/pygda-3.0/pygdavalue_conversions.h +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/__init__.py +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/__init__.pyc +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/__init__.pyo +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/recent.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/recent.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/trayicon.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/egg/trayicon.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gda.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gda.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gdl.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gdl.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/__init__.py +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/__init__.pyc +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/__init__.pyo +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/_gksu.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/_gksu.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/ui.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gksu/ui.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gtkhtml2.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gtkhtml2.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gtkmozembed.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gtkmozembed.so +%%PYTHON_SITELIBDIR%%/gtk-2.0/gtkspell.la +%%PYTHON_SITELIBDIR%%/gtk-2.0/gtkspell.so +libdata/pkgconfig/gnome-python-extras-2.0.pc +libdata/pkgconfig/pygda-3.0.pc +%%PORTDOCS%%%%DOCSDIR%%/pygtkmozembed/class-gtkmozembed.html +%%PORTDOCS%%%%DOCSDIR%%/pygtkmozembed/gtkmozembed-class-reference.html +%%PORTDOCS%%%%DOCSDIR%%/pygtkmozembed/index.html +%%PORTDOCS%%%%DOCSDIR%%/pygtkmozembed/index.sgml +%%PORTDOCS%%%%DOCSDIR%%/pygtkmozembed/pygtkmozembed.devhelp +%%PORTDOCS%%%%DOCSDIR%%/pygtkspell/class-gtkspell.html +%%PORTDOCS%%%%DOCSDIR%%/pygtkspell/gtkspell-class-reference.html +%%PORTDOCS%%%%DOCSDIR%%/pygtkspell/index.html +%%PORTDOCS%%%%DOCSDIR%%/pygtkspell/index.sgml +%%PORTDOCS%%%%DOCSDIR%%/pygtkspell/pygtkspell.devhelp +%%PORTDOCS%%share/examples/py-gnome/egg/recent/Bonobo_Sample_Hello.xml +%%PORTDOCS%%share/examples/py-gnome/egg/recent/bonobo-view.py +%%PORTDOCS%%share/examples/py-gnome/egg/recent/gtk-view.py +%%PORTDOCS%%share/examples/py-gnome/egg/recent/populate-recent.py +%%PORTDOCS%%share/examples/py-gnome/egg/trayicon.py +%%PORTDOCS%%share/examples/py-gnome/gdl/gdl_combo_button.py +%%PORTDOCS%%share/examples/py-gnome/gdl/gdl_dock.py +%%PORTDOCS%%share/examples/py-gnome/gdl/gdl_test.py +%%PORTDOCS%%share/examples/py-gnome/gksu2/simple.py +%%PORTDOCS%%share/examples/py-gnome/gtkhtml2/simple-browser.py +%%PORTDOCS%%share/examples/py-gnome/gtkspell/gtkspell.py +%%PORTDOCS%%share/examples/py-gnome/gtkspell/test.py +share/pygtk/2.0/argtypes/gda-arg-types.py +share/pygtk/2.0/argtypes/gda-arg-types.pyc +share/pygtk/2.0/argtypes/gda-arg-types.pyo +share/pygtk/2.0/defs/gda.defs +share/pygtk/2.0/defs/gtkhtml2.defs +share/pygtk/2.0/defs/gtkmozembed.defs +share/pygtk/2.0/defs/trayicon.defs +%%PORTDOCS%%@dirrm share/examples/py-gnome/gtkspell +%%PORTDOCS%%@dirrm share/examples/py-gnome/gtkhtml2 +%%PORTDOCS%%@dirrm share/examples/py-gnome/gksu2 +%%PORTDOCS%%@dirrm share/examples/py-gnome/gdl +%%PORTDOCS%%@dirrm share/examples/py-gnome/egg/recent +%%PORTDOCS%%@dirrm share/examples/py-gnome/egg +%%PORTDOCS%%@dirrm %%DOCSDIR%%/pygtkspell +%%PORTDOCS%%@dirrm %%DOCSDIR%%/pygtkmozembed +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gksu +@dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/egg +@dirrm include/pygda-3.0 |