aboutsummaryrefslogtreecommitdiff
path: root/editors/gobby
diff options
context:
space:
mode:
authorPhilippe Audeoud <jadawin@FreeBSD.org>2010-11-11 20:28:53 +0000
committerPhilippe Audeoud <jadawin@FreeBSD.org>2010-11-11 20:28:53 +0000
commit8673f1d6b6f3ba4357a2dbe6331816d135a1bc0a (patch)
tree28c81f6f2c40a69497492fb29c16417458bed243 /editors/gobby
parent0bae218f1d78810aa8a078f1c18a42a987f42819 (diff)
downloadports-8673f1d6b6f3ba4357a2dbe6331816d135a1bc0a.tar.gz
ports-8673f1d6b6f3ba4357a2dbe6331816d135a1bc0a.zip
- Respect NLS OPTIONS
- Bump PORTREVISION - Submitter is now maintainer PR: ports/152139 Submitted by: Sofian Brabez <sbrabez AT gmail.com>
Notes
Notes: svn path=/head/; revision=264417
Diffstat (limited to 'editors/gobby')
-rw-r--r--editors/gobby/Makefile20
-rw-r--r--editors/gobby/distinfo1
-rw-r--r--editors/gobby/pkg-plist58
3 files changed, 55 insertions, 24 deletions
diff --git a/editors/gobby/Makefile b/editors/gobby/Makefile
index 216740f9c47c..e541c73bbb57 100644
--- a/editors/gobby/Makefile
+++ b/editors/gobby/Makefile
@@ -7,11 +7,11 @@
PORTNAME= gobby
PORTVERSION= 0.4.12
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= editors
MASTER_SITES= http://releases.0x539.de/gobby/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sbrabez@gmail.com
COMMENT= A free collaborative editor
LIB_DEPENDS= obby-0.4.1:${PORTSDIR}/devel/obby \
@@ -19,9 +19,10 @@ LIB_DEPENDS= obby-0.4.1:${PORTSDIR}/devel/obby \
xml++-2.6.2:${PORTSDIR}/textproc/libxml++26 \
gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
-OPTIONS= GTKSPELL "Enable GtkSpell support" off
+OPTIONS= GTKSPELL "Enable GtkSpell support" off \
+ NLS "Enable Native Language support" off
-USE_GNOME= gnomehack gtksourceview2
+USE_GNOME= gnomehack gtksourceview2 intltool
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
@@ -38,4 +39,15 @@ CONFIGURE_ARGS+=--with-gtkspell
CONFIGURE_ARGS+=--without-gtkspell
.endif
+.if !defined(WITHOUT_NLS)
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lintl"
+CONFIGURE_ARGS+= --enable-nls
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
.include <bsd.port.post.mk>
diff --git a/editors/gobby/distinfo b/editors/gobby/distinfo
index 9222a5e5e43d..efda81390414 100644
--- a/editors/gobby/distinfo
+++ b/editors/gobby/distinfo
@@ -1,3 +1,2 @@
-MD5 (gobby-0.4.12.tar.gz) = 835cc48f5177196e4a18610c2cb013bf
SHA256 (gobby-0.4.12.tar.gz) = 7b9f6e9aa79bb8f95d71e36efd90979b6905bee65162278c1b733e356949a579
SIZE (gobby-0.4.12.tar.gz) = 464464
diff --git a/editors/gobby/pkg-plist b/editors/gobby/pkg-plist
index f1a34e2ecb3f..bfe6f3323708 100644
--- a/editors/gobby/pkg-plist
+++ b/editors/gobby/pkg-plist
@@ -1,3 +1,4 @@
+@comment $FreeBSD$
bin/gobby
%%DATADIR%%/icons/HighContrastLargePrint/48x48/actions/chat.png
%%DATADIR%%/icons/HighContrastLargePrint/48x48/actions/document-list.png
@@ -23,25 +24,44 @@ share/icons/HighContrastLargePrintInverse/48x48/apps/gobby.png
share/icons/HighContrastLargePrintInverse/scalable/apps/gobby.svg
share/icons/hicolor/48x48/apps/gobby.png
share/icons/hicolor/scalable/apps/gobby.svg
-share/locale/ca/LC_MESSAGES/gobby.mo
-share/locale/cs/LC_MESSAGES/gobby.mo
-share/locale/de/LC_MESSAGES/gobby.mo
-share/locale/el/LC_MESSAGES/gobby.mo
-share/locale/en_GB/LC_MESSAGES/gobby.mo
-share/locale/es/LC_MESSAGES/gobby.mo
-share/locale/fr/LC_MESSAGES/gobby.mo
-share/locale/he/LC_MESSAGES/gobby.mo
-share/locale/it/LC_MESSAGES/gobby.mo
-share/locale/ja/LC_MESSAGES/gobby.mo
-share/locale/ko/LC_MESSAGES/gobby.mo
-share/locale/nl/LC_MESSAGES/gobby.mo
-share/locale/pl/LC_MESSAGES/gobby.mo
-share/locale/pt/LC_MESSAGES/gobby.mo
-share/locale/pt_BR/LC_MESSAGES/gobby.mo
-share/locale/ru/LC_MESSAGES/gobby.mo
-share/locale/sv/LC_MESSAGES/gobby.mo
-share/locale/uk/LC_MESSAGES/gobby.mo
-share/locale/zh_CN/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/el/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/he/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/gobby.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gobby.mo
+@dirrmtry share/locale/zh_CN/LC_MESSAGES
+@dirrmtry share/locale/uk/LC_MESSAGES
+@dirrmtry share/locale/sv/LC_MESSAGES
+@dirrmtry share/locale/ru/LC_MESSAGES
+@dirrmtry share/locale/pt_BR/LC_MESSAGES
+@dirrmtry share/locale/pt/LC_MESSAGES
+@dirrmtry share/locale/pl/LC_MESSAGES
+@dirrmtry share/locale/nl/LC_MESSAGES
+@dirrmtry share/locale/ko/LC_MESSAGES
+@dirrmtry share/locale/ja/LC_MESSAGES
+@dirrmtry share/locale/it/LC_MESSAGES
+@dirrmtry share/locale/he/LC_MESSAGES
+@dirrmtry share/locale/fr/LC_MESSAGES
+@dirrmtry share/locale/es/LC_MESSAGES
+@dirrmtry share/locale/en_GB/LC_MESSAGES
+@dirrmtry share/locale/el/LC_MESSAGES
+@dirrmtry share/locale/de/LC_MESSAGES
+@dirrmtry share/locale/cs/LC_MESSAGES
+@dirrmtry share/locale/ca/LC_MESSAGES
@dirrmtry share/icons/HighContrastLargePrintInverse/scalable/apps
@dirrmtry share/icons/HighContrastLargePrintInverse/scalable
@dirrmtry share/icons/HighContrastLargePrintInverse/48x48/apps