summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-10-26 04:22:54 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-10-26 04:22:54 +0800
commita8f7349457465bcd04a272fb2a897496d3d51f3e (patch)
treea83c69ce8ca3b63ec60b48cc659bc47bb3bf6c39 /www
parentced0eb9498d89828e8da227ae32ed506fcae0351 (diff)
downloadmarcuscom-ports-a8f7349457465bcd04a272fb2a897496d3d51f3e.tar.gz
marcuscom-ports-a8f7349457465bcd04a272fb2a897496d3d51f3e.tar.zst
marcuscom-ports-a8f7349457465bcd04a272fb2a897496d3d51f3e.zip
Add an OPTION to enable spell checking by default.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13191 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www')
-rw-r--r--www/epiphany/Makefile11
-rw-r--r--www/epiphany/files/extra-patch-embed_ephy-embed-prefs.c12
2 files changed, 20 insertions, 3 deletions
diff --git a/www/epiphany/Makefile b/www/epiphany/Makefile
index 0f4b40632..808358887 100644
--- a/www/epiphany/Makefile
+++ b/www/epiphany/Makefile
@@ -3,12 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/www/epiphany/Makefile,v 1.212 2009/10/15 10:27:06 kwm Exp $
+# $MCom: ports/www/epiphany/Makefile,v 1.213 2009/10/18 19:40:57 kwm Exp $
#
PORTNAME= epiphany
PORTVERSION= 2.28.1
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= www gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@@ -48,7 +48,8 @@ PLIST_SUB+= EPHY_VERSION="${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}"
MAN1= epiphany.1
OPTIONS= NSS "Import passwords from 2.26 and older on first run" on \
- SEED "Enable seed support" off
+ SEED "Enable seed support" off \
+ SPELLCHECK "Enable spell checking by default" on
.if defined(PACKAGE_BUILDING)
.undef WITHOUT_GNOME
@@ -75,6 +76,10 @@ LIB_DEPENDS+= seed.0:${PORTSDIR}/devel/seed
CONFIGURE_ARGS+=--enable-seed
.endif
+.if defined(WITH_SPELLCHECK)
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-embed_ephy-embed-prefs.c
+.endif
+
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
's|-lpthread|${PTHREAD_LIBS}|g'
diff --git a/www/epiphany/files/extra-patch-embed_ephy-embed-prefs.c b/www/epiphany/files/extra-patch-embed_ephy-embed-prefs.c
new file mode 100644
index 000000000..f9fbb6a13
--- /dev/null
+++ b/www/epiphany/files/extra-patch-embed_ephy-embed-prefs.c
@@ -0,0 +1,12 @@
+--- embed/ephy-embed-prefs.c.orig 2009-10-25 16:18:24.000000000 -0400
++++ embed/ephy-embed-prefs.c 2009-10-25 16:19:05.000000000 -0400
+@@ -250,6 +250,9 @@ ephy_embed_prefs_init (void)
+ /* Hardcoded settings */
+ g_object_set (settings, "auto-shrink-images", FALSE, NULL);
+
++ /* Enable spell-check by default */
++ g_object_set (settings, "enable-spell-checking", TRUE, NULL);
++
+ /* Connections */
+ connections = g_malloc (sizeof (guint) * G_N_ELEMENTS (webkit_pref_entries));
+