summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-24 06:31:41 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-24 06:31:41 +0000
commita1b25c66c275d2b6080189887b7235570ede3f78 (patch)
tree9a2484803e06c035f701c46b19eeac87f70d6717 /www
parentOnly try to access OSVERSION variable after <bsd.port.pre.mk> include (diff)
Add epiphany, a simple, lightweight, Mozilla-based browser for the GNOME 2
desktop. This port was based on work Submitted by: Maxime Romano <verbophobe@jewcrew.org>
Notes
Notes: svn path=/head/; revision=79573
Diffstat (limited to '')
-rw-r--r--www/Makefile1
-rw-r--r--www/epiphany/Makefile98
-rw-r--r--www/epiphany/distinfo1
-rw-r--r--www/epiphany/files/epiphany30
-rw-r--r--www/epiphany/files/patch-src_prefs-dialog.c17
-rw-r--r--www/epiphany/pkg-descr7
-rw-r--r--www/epiphany/pkg-plist114
7 files changed, 268 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index b883d3874267..eb399f75cc10 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -70,6 +70,7 @@
SUBDIR += emacs-w3m-emacs20
SUBDIR += emacs-w3m-xemacs21-mule
SUBDIR += encompass
+ SUBDIR += epiphany
SUBDIR += erwn
SUBDIR += evg
SUBDIR += fcgi
diff --git a/www/epiphany/Makefile b/www/epiphany/Makefile
new file mode 100644
index 000000000000..aced6b39a7b0
--- /dev/null
+++ b/www/epiphany/Makefile
@@ -0,0 +1,98 @@
+# Ports collection Makefile for: epiphany
+# Date created: 24 April 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= epiphany
+PORTVERSION= 0.5.0
+CATEGORIES= www gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.5
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= An extremely lightweight and simple web browser for GNOME 2
+
+BUILD_DEPENDS= ${X11BASE}/include/mozilla${HEADERS_SUFX}/gtkembedmoz/gtkmozembed.h:${PORTSDIR}/www/mozilla-headers${HEADERS_SUFX} \
+ ${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
+RUN_DEPENDS= ${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
+
+MOZ_CONFIGURE_ARGS= --with-mozilla-snapshot="1.3"
+
+MOZILLA= mozilla-gtk2
+HEADERS_SUFX=
+
+.if !defined(WITH_MOZILLA)
+MOZILLA= mozilla-gtk2
+HEADERS_SUFX=
+.else
+.if ${WITH_MOZILLA}=="mozilla-devel-gtk2"
+MOZILLA= ${WITH_MOZILLA}
+HEADERS_SUFX= -devel
+MOZ_CONFIGURE_ARGS= --with-mozilla-snapshot="1.4a"
+.else
+MOZILLA= mozilla-gtk2
+HEADERS_SUFX=
+.endif
+.endif
+
+USE_X_PREFIX= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomeprefix gnomehack libgnomeui
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla${HEADERS_SUFX}" \
+ --with-mozilla-libs="${X11BASE}/lib/${MOZILLA}" \
+ --enable-nautilus-view=no \
+ ${MOZ_CONFIGURE_ARGS}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
+ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+
+FLASHPLAYER= ${LOCALBASE}/lib/libflashplayer.so.1
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500000
+# Galeon does not build correctly in -CURRENT if -Werror is passed
+# to the compiler.
+NO_WERROR= yes
+.endif
+# allow build with more warnings enabled
+.if defined(NO_WERROR)
+CONFIGURE_ARGS+= --disable-werror
+.endif
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} " By default epiphany uses www/mozilla-gtk2 for html rendering, but you can"
+ @${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
+ @${ECHO_MSG}
+ @${ECHO_MSG} " mozilla-devel-gtk2 "
+ @${ECHO_MSG} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|mozilla-gtkmozembed|mozilla-gtkmozembed${HEADERS_SUFX}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
+ 's|-lpthread|${PTHREAD_LIBS}|g'
+ @${FIND} ${WRKSRC} -name "*.cpp" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|malloc\.h|stdlib.h|g'
+
+pre-install:
+ @-${X11BASE}/bin/gconftool-2 --shutdown
+
+post-install:
+ @${RM} -f ${PREFIX}/bin/epiphany
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g ; \
+ s|%%X11BASE%%|${X11BASE}|g ; \
+ s|%%MOZILLA%%|${MOZILLA}|g ; \
+ s|%%FLASHPLAYER%%|${FLASHPLAYER}|g' < ${FILESDIR}/epiphany \
+ > ${WRKSRC}/epiphany
+ @${INSTALL_SCRIPT} ${WRKSRC}/epiphany ${PREFIX}/bin/epiphany
+
+.include <bsd.port.post.mk>
diff --git a/www/epiphany/distinfo b/www/epiphany/distinfo
new file mode 100644
index 000000000000..9078bd8de892
--- /dev/null
+++ b/www/epiphany/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/epiphany-0.5.0.tar.gz) = db6ec52bf7b2bd863ceac7fde801cf5c
diff --git a/www/epiphany/files/epiphany b/www/epiphany/files/epiphany
new file mode 100644
index 000000000000..38f4b70bf621
--- /dev/null
+++ b/www/epiphany/files/epiphany
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+dist_bin=`dirname $0`
+
+if test -n "$MOZILLA_FIVE_HOME"; then
+ MOZILLA_HOME=$MOZILLA_FIVE_HOME
+elif [ -f %%X11BASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%X11BASE%%/lib/%%MOZILLA%%
+elif [ -f %%LOCALBASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+ MOZILLA_HOME=%%LOCALBASE%%/lib/%%MOZILLA%%
+else
+ echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
+ exit
+fi
+
+LD_LIBRARY_PATH=$MOZILLA_HOME:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH
+
+MOZILLA_FIVE_HOME=$MOZILLA_HOME
+export MOZILLA_FIVE_HOME
+
+MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins
+export MOZ_PLUGIN_PATH
+
+if [ -f %%FLASHPLAYER%% ]; then
+ LD_PRELOAD=%%FLASHPLAYER%%
+ export LD_PRELOAD
+fi
+
+exec %%PREFIX%%/bin/epiphany-bin "$@"
diff --git a/www/epiphany/files/patch-src_prefs-dialog.c b/www/epiphany/files/patch-src_prefs-dialog.c
new file mode 100644
index 000000000000..bda3a19144aa
--- /dev/null
+++ b/www/epiphany/files/patch-src_prefs-dialog.c
@@ -0,0 +1,17 @@
+--- src/prefs-dialog.c.orig Thu Apr 24 02:14:52 2003
++++ src/prefs-dialog.c Thu Apr 24 02:16:05 2003
+@@ -243,13 +243,13 @@
+ {
+ GError *err;
+ gint id;
+- err = NULL;
+ gchar *help_preferences[] = {
+ "ephy-preferences-appearance",
+ "ephy-preferences-general",
+ "ephy-preferences-ui",
+ "ephy-preferences-advanced"
+ };
++ err = NULL;
+
+ id = gtk_notebook_get_current_page (GTK_NOTEBOOK (pd->priv->notebook));
+
diff --git a/www/epiphany/pkg-descr b/www/epiphany/pkg-descr
new file mode 100644
index 000000000000..f24cd9a2e683
--- /dev/null
+++ b/www/epiphany/pkg-descr
@@ -0,0 +1,7 @@
+Epiphany, as it's manifesto states, is a web browser designed for the layman,
+by being consistent, lightweight and fast throughout all its operations.
+
+Originally forked from Galeon's (www/galeon2) source code, Epiphany looks to
+be a very promising browser indeed.
+
+WWW: http://epiphany.mozdev.org/
diff --git a/www/epiphany/pkg-plist b/www/epiphany/pkg-plist
new file mode 100644
index 000000000000..c527cee4a445
--- /dev/null
+++ b/www/epiphany/pkg-plist
@@ -0,0 +1,114 @@
+bin/epiphany
+bin/epiphany-bin
+etc/gconf/gconf.xml.defaults/apps/epiphany/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/directories/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/downloader/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/filtering/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/find/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/general/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/history/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/interface/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/network/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/print/%gconf.xml
+etc/gconf/gconf.xml.defaults/apps/epiphany/rendering/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/directories/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/downloader/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/filterin/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/filtering/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/find/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/general/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/history/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/interface/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/network/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/print/%gconf.xml
+etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/rendering/%gconf.xml
+etc/gconf/schemas/epiphany.schemas
+libdata/bonobo/servers/GNOME_Epiphany_Automation.server
+libdata/bonobo/servers/GNOME_Epiphany_NautilusView.server
+share/gnome/applications/bme.desktop
+share/gnome/applications/epiphany.desktop
+share/gnome/epiphany/art/epiphany-bookmark-page.png
+share/gnome/epiphany/art/epiphany-download.png
+share/gnome/epiphany/art/epiphany-entry.png
+share/gnome/epiphany/art/epiphany-fullscreen.png
+share/gnome/epiphany/art/epiphany-history.png
+share/gnome/epiphany/art/epiphany-new-tab.png
+share/gnome/epiphany/art/epiphany-secure.png
+share/gnome/epiphany/art/epiphany-send-link.png
+share/gnome/epiphany/art/epiphany-tab-loading.gif
+share/gnome/epiphany/art/epiphany-unsecure.png
+share/gnome/epiphany/art/epiphany-viewsource.png
+share/gnome/epiphany/art/epiphany.png
+share/gnome/epiphany/conspiracy.xhtml
+share/gnome/epiphany/default-prefs.js
+share/gnome/epiphany/epiphany-bookmark-editor-ui.xml
+share/gnome/epiphany/epiphany-toolbar-popup-ui.xml
+share/gnome/epiphany/epiphany-toolbar.xml
+share/gnome/epiphany/epiphany-ui.xml
+share/gnome/epiphany/epiphany.xhtml
+share/gnome/epiphany/glade/epiphany.glade
+share/gnome/epiphany/glade/prefs-dialog.glade
+share/gnome/epiphany/glade/print.glade
+share/gnome/epiphany/nautilus-epiphany-view.xml
+share/gnome/epiphany/starthere/index.xml
+share/gnome/epiphany/starthere/section.xsl
+share/gnome/epiphany/starthere/smartbookmarks.xml
+share/gnome/help/epiphany/C/epiphany.xml
+share/gnome/help/epiphany/C/figures/ephy-screenshot.png
+share/gnome/help/epiphany/C/legal.xml
+share/gnome/omf/epiphany/epiphany-C.omf
+@exec scrollkeeper-install -q %D/share/gnome/omf/epiphany/epiphany-C.omf 2>/dev/null || /usr/bin/true
+share/gnome/pixmaps/epiphany-bookmarks.png
+share/gnome/pixmaps/epiphany.png
+share/locale/am/LC_MESSAGES/epiphany-2.0.mo
+share/locale/ca/LC_MESSAGES/epiphany-2.0.mo
+share/locale/da/LC_MESSAGES/epiphany-2.0.mo
+share/locale/de/LC_MESSAGES/epiphany-2.0.mo
+share/locale/el/LC_MESSAGES/epiphany-2.0.mo
+share/locale/es/LC_MESSAGES/epiphany-2.0.mo
+share/locale/fr/LC_MESSAGES/epiphany-2.0.mo
+share/locale/hu/LC_MESSAGES/epiphany-2.0.mo
+share/locale/ja/LC_MESSAGES/epiphany-2.0.mo
+share/locale/ko/LC_MESSAGES/epiphany-2.0.mo
+share/locale/nl/LC_MESSAGES/epiphany-2.0.mo
+share/locale/no/LC_MESSAGES/epiphany-2.0.mo
+share/locale/pl/LC_MESSAGES/epiphany-2.0.mo
+share/locale/pt/LC_MESSAGES/epiphany-2.0.mo
+share/locale/pt_BR/LC_MESSAGES/epiphany-2.0.mo
+share/locale/ru/LC_MESSAGES/epiphany-2.0.mo
+share/locale/sv/LC_MESSAGES/epiphany-2.0.mo
+share/locale/tr/LC_MESSAGES/epiphany-2.0.mo
+share/locale/zh_TW/LC_MESSAGES/epiphany-2.0.mo
+@dirrm share/gnome/omf/epiphany
+@dirrm share/gnome/help/epiphany/C/figures
+@dirrm share/gnome/help/epiphany/C
+@dirrm share/gnome/help/epiphany
+@dirrm share/gnome/epiphany/starthere
+@dirrm share/gnome/epiphany/glade
+@dirrm share/gnome/epiphany/art
+@dirrm share/gnome/epiphany
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/rendering
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/print
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/network
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/interface
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/history
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/general
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/find
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/filtering
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/filterin
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/downloader
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany/directories
+@dirrm etc/gconf/gconf.xml.defaults/schemas/apps/epiphany
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/rendering
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/print
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/network
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/interface
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/history
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/general
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/find
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/filtering
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/downloader
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany/directories
+@dirrm etc/gconf/gconf.xml.defaults/apps/epiphany
+@unexec scrollkeeper-uninstall -q %D/share/gnome/omf/epiphany/epiphany-C.omf 2>/dev/null || /usr/bin/true