From d377c2771b738069a77518d7201b5d66e72d2bc3 Mon Sep 17 00:00:00 2001
From: ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Mon, 16 Oct 2006 01:21:01 +0000
Subject: - Make xulrunner the default gecko

git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7804 df743ca5-7f9a-e211-a948-0013205c9059
---
 x11-toolkits/py-gnome-extras/Makefile              | 60 +++++++++++++++++++++
 x11-toolkits/py-gnome-extras/distinfo              |  3 ++
 x11-toolkits/py-gnome-extras/files/patch-configure | 10 ++++
 x11-toolkits/py-gnome-extras/pkg-descr             | 10 ++++
 x11-toolkits/py-gnome-extras/pkg-plist             | 61 ++++++++++++++++++++++
 5 files changed, 144 insertions(+)
 create mode 100644 x11-toolkits/py-gnome-extras/Makefile
 create mode 100644 x11-toolkits/py-gnome-extras/distinfo
 create mode 100644 x11-toolkits/py-gnome-extras/files/patch-configure
 create mode 100644 x11-toolkits/py-gnome-extras/pkg-descr
 create mode 100644 x11-toolkits/py-gnome-extras/pkg-plist

(limited to 'x11-toolkits')

diff --git a/x11-toolkits/py-gnome-extras/Makefile b/x11-toolkits/py-gnome-extras/Makefile
new file mode 100644
index 000000000..fd2c45e8b
--- /dev/null
+++ b/x11-toolkits/py-gnome-extras/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for:	py-gnome-extras
+# Date created:				22 November 2005
+# Whom:					Koop Mast <kwm@FreeBSD.org>
+#
+# $FreeBSD$
+#    $MCom: ports/x11-toolkits/py-gnome-extras/Makefile,v 1.36 2006/03/12 23:45:37 marcus Exp $
+#
+
+PORTNAME=	gnome
+PORTVERSION=	2.14.2
+PORTREVISION=	2
+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=	xulrunner firefox seamonkey mozilla
+USE_BZIP2=	yes
+USE_GMAKE=	yes
+USE_PYTHON=	yes
+USE_GNOME=	gnomehack libgtkhtml pygnome2 libgda2
+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}
+.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..e446130b9
--- /dev/null
+++ b/x11-toolkits/py-gnome-extras/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/gnome-python-extras-2.14.2.tar.bz2) = 039e1300368df17de9867685e9705091
+SHA256 (gnome2/gnome-python-extras-2.14.2.tar.bz2) = fcecd0098431c0baca72cc762560b15f330275727df4fd4157606a90252bae29
+SIZE (gnome2/gnome-python-extras-2.14.2.tar.bz2) = 351780
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..6e14c25af
--- /dev/null
+++ b/x11-toolkits/py-gnome-extras/files/patch-configure
@@ -0,0 +1,10 @@
+--- configure.orig	Tue Jul 11 11:39:00 2006
++++ configure	Tue Jul 11 11:43:03 2006
+@@ -20762,6 +20762,7 @@ case $mozpackage in
+      xulrunner) mozpackage_required_version=1.8 ;;
+      firefox) mozpackage_required_version=1.0 ;;
+      mozilla) mozpackage_required_version=1.2b ;;
++     seamonkey) mozpackage_required_version=1.2b ;;
+      *) { { 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;}
+    { (exit 1); exit 1; }; }
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..6dacdc1b1
--- /dev/null
+++ b/x11-toolkits/py-gnome-extras/pkg-plist
@@ -0,0 +1,61 @@
+include/pygda-1.2/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-1.2.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_test.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/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/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-1.2
-- 
cgit v1.2.3