ports/124108: mail/claws-mail-{attach_warner, gtkhml2_viewer, notification, pdf_viewer, rssyl, vcalendar} add support for WITHOUT_NLS
Pawel Pekala
c0rn at o2.pl
Thu May 29 18:10:01 UTC 2008
>Number: 124108
>Category: ports
>Synopsis: mail/claws-mail-{attach_warner,gtkhml2_viewer,notification,pdf_viewer,rssyl,vcalendar} add support for WITHOUT_NLS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu May 29 18:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Pawel Pekala
>Release: FreeBSD 6.2-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD 6.2-RELEASE-p9 #0: Thu Nov 29 04:07:33 UTC 2007
root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
>Description:
- add support for WITHOUT_NLS knob
>How-To-Repeat:
>Fix:
--- claws-plugins.diff begins here ---
diff -urN /usr/ports/mail/claws-mail-attach_warner/Makefile claws-mail-attach_warner/Makefile
--- /usr/ports/mail/claws-mail-attach_warner/Makefile Sun Apr 20 10:11:50 2008
+++ claws-mail-attach_warner/Makefile Thu May 29 18:48:21 2008
@@ -19,7 +19,6 @@
RUN_DEPENDS= claws-mail>=3.4.0:${PORTSDIR}/mail/claws-mail
USE_GMAKE= yes
-USE_GETTEXT= yes
USE_ICONV= yes
USE_AUTOTOOLS= autoconf:261
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -27,5 +26,13 @@
CONFIGURE_ARGS= --with-iconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/mail/claws-mail-attach_warner/pkg-plist claws-mail-attach_warner/pkg-plist
--- /usr/ports/mail/claws-mail-attach_warner/pkg-plist Tue Apr 17 22:37:43 2007
+++ claws-mail-attach_warner/pkg-plist Thu May 29 19:49:24 2008
@@ -1,15 +1,15 @@
-lib/claws-mail/plugins/attachwarner.so
-lib/claws-mail/plugins/attachwarner.la
lib/claws-mail/plugins/attachwarner.a
-share/locale/cs/LC_MESSAGES/attachwarner.mo
-share/locale/sr/LC_MESSAGES/attachwarner.mo
-share/locale/de/LC_MESSAGES/attachwarner.mo
-share/locale/es/LC_MESSAGES/attachwarner.mo
-share/locale/fr/LC_MESSAGES/attachwarner.mo
-share/locale/hu/LC_MESSAGES/attachwarner.mo
-share/locale/it/LC_MESSAGES/attachwarner.mo
-share/locale/pt_BR/LC_MESSAGES/attachwarner.mo
-share/locale/ca/LC_MESSAGES/attachwarner.mo
-share/locale/fi/LC_MESSAGES/attachwarner.mo
-share/locale/pl/LC_MESSAGES/attachwarner.mo
-share/locale/sk/LC_MESSAGES/attachwarner.mo
+lib/claws-mail/plugins/attachwarner.la
+lib/claws-mail/plugins/attachwarner.so
+%%NLS%%share/locale/ca/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/de/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/es/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/it/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/attachwarner.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/attachwarner.mo
diff -urN /usr/ports/mail/claws-mail-gtkhtml2_viewer/Makefile claws-mail-gtkhtml2_viewer/Makefile
--- /usr/ports/mail/claws-mail-gtkhtml2_viewer/Makefile Sun Apr 20 10:11:50 2008
+++ claws-mail-gtkhtml2_viewer/Makefile Thu May 29 19:02:02 2008
@@ -22,27 +22,18 @@
USE_AUTOTOOLS= autoconf:261
USE_GNOME= libgtkhtml
USE_ICONV= yes
-USE_GETTEXT= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
-PLIST_FILES= lib/claws-mail/plugins/gtkhtml2_viewer.a \
- lib/claws-mail/plugins/gtkhtml2_viewer.la \
- lib/claws-mail/plugins/gtkhtml2_viewer.so \
- share/locale/de/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/fi/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/it/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/sk/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/sr/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/es/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/fr/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/pl/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/pt_BR/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/hu/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/ca/LC_MESSAGES/gtkhtml2_viewer.mo \
- share/locale/zh_CN/LC_MESSAGES/gtkhtml2_viewer.mo
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/mail/claws-mail-gtkhtml2_viewer/pkg-plist claws-mail-gtkhtml2_viewer/pkg-plist
--- /usr/ports/mail/claws-mail-gtkhtml2_viewer/pkg-plist Thu Jan 1 01:00:00 1970
+++ claws-mail-gtkhtml2_viewer/pkg-plist Thu May 29 19:00:54 2008
@@ -0,0 +1,15 @@
+lib/claws-mail/plugins/gtkhtml2_viewer.a
+lib/claws-mail/plugins/gtkhtml2_viewer.la
+lib/claws-mail/plugins/gtkhtml2_viewer.so
+%%NLS%%share/locale/ca/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/gtkhtml2_viewer.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gtkhtml2_viewer.mo
diff -urN /usr/ports/mail/claws-mail-notification/Makefile claws-mail-notification/Makefile
--- /usr/ports/mail/claws-mail-notification/Makefile Sun Apr 20 10:11:50 2008
+++ claws-mail-notification/Makefile Thu May 29 19:15:27 2008
@@ -27,16 +27,12 @@
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
-PLIST_FILES= lib/claws-mail/plugins/notification_plugin.a \
- lib/claws-mail/plugins/notification_plugin.la \
- lib/claws-mail/plugins/notification_plugin.so \
- share/locale/ca/LC_MESSAGES/notification_plugin.mo \
- share/locale/cs/LC_MESSAGES/notification_plugin.mo \
- share/locale/hu/LC_MESSAGES/notification_plugin.mo \
- share/locale/pt_BR/LC_MESSAGES/notification_plugin.mo \
- share/locale/zh_CN/LC_MESSAGES/notification_plugin.mo \
- share/locale/fi/LC_MESSAGES/notification_plugin.mo \
- share/locale/it/LC_MESSAGES/notification_plugin.mo \
- share/locale/fr/LC_MESSAGES/notification_plugin.mo
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/mail/claws-mail-notification/pkg-plist claws-mail-notification/pkg-plist
--- /usr/ports/mail/claws-mail-notification/pkg-plist Thu Jan 1 01:00:00 1970
+++ claws-mail-notification/pkg-plist Thu May 29 19:14:39 2008
@@ -0,0 +1,11 @@
+lib/claws-mail/plugins/notification_plugin.a
+lib/claws-mail/plugins/notification_plugin.la
+lib/claws-mail/plugins/notification_plugin.so
+%%NLS%%share/locale/ca/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/it/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/notification_plugin.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/notification_plugin.mo
diff -urN /usr/ports/mail/claws-mail-pdf_viewer/Makefile claws-mail-pdf_viewer/Makefile
--- /usr/ports/mail/claws-mail-pdf_viewer/Makefile Sun Apr 20 10:11:50 2008
+++ claws-mail-pdf_viewer/Makefile Thu May 29 19:22:13 2008
@@ -19,14 +19,21 @@
RUN_DEPENDS= claws-mail>=3.4.0:${PORTSDIR}/mail/claws-mail
USE_GMAKE= yes
-USE_GETTEXT= yes
USE_ICONV= yes
-USE_GHOSTSCRIPT= yes
+USE_GHOSTSCRIPT=yes
USE_AUTOTOOLS= autoconf:261
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-iconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/mail/claws-mail-pdf_viewer/pkg-plist claws-mail-pdf_viewer/pkg-plist
--- /usr/ports/mail/claws-mail-pdf_viewer/pkg-plist Sat Jul 7 19:22:41 2007
+++ claws-mail-pdf_viewer/pkg-plist Thu May 29 19:21:00 2008
@@ -1,14 +1,14 @@
lib/claws-mail/plugins/pdf_viewer.a
lib/claws-mail/plugins/pdf_viewer.la
lib/claws-mail/plugins/pdf_viewer.so
-share/locale/ca/LC_MESSAGES/pdf_viewer.mo
-share/locale/de/LC_MESSAGES/pdf_viewer.mo
-share/locale/es/LC_MESSAGES/pdf_viewer.mo
-share/locale/fi/LC_MESSAGES/pdf_viewer.mo
-share/locale/fr/LC_MESSAGES/pdf_viewer.mo
-share/locale/hu/LC_MESSAGES/pdf_viewer.mo
-share/locale/it/LC_MESSAGES/pdf_viewer.mo
-share/locale/pl/LC_MESSAGES/pdf_viewer.mo
-share/locale/pt_BR/LC_MESSAGES/pdf_viewer.mo
-share/locale/sk/LC_MESSAGES/pdf_viewer.mo
-share/locale/sr/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/de/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/es/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/it/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/pdf_viewer.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/pdf_viewer.mo
diff -urN /usr/ports/mail/claws-mail-rssyl/Makefile claws-mail-rssyl/Makefile
--- /usr/ports/mail/claws-mail-rssyl/Makefile Sun Apr 20 10:11:50 2008
+++ claws-mail-rssyl/Makefile Thu May 29 19:36:01 2008
@@ -20,12 +20,19 @@
RUN_DEPENDS= claws-mail>=3.4.0:${PORTSDIR}/mail/claws-mail
USE_AUTOTOOLS= autoconf:261
-USE_GETTEXT= yes
USE_ICONV= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/mail/claws-mail-rssyl/pkg-plist claws-mail-rssyl/pkg-plist
--- /usr/ports/mail/claws-mail-rssyl/pkg-plist Tue Apr 17 22:37:43 2007
+++ claws-mail-rssyl/pkg-plist Thu May 29 19:37:52 2008
@@ -1,17 +1,17 @@
lib/claws-mail/plugins/rssyl.a
lib/claws-mail/plugins/rssyl.la
lib/claws-mail/plugins/rssyl.so
-share/locale/de/LC_MESSAGES/rssyl.mo
-share/locale/es/LC_MESSAGES/rssyl.mo
-share/locale/fi/LC_MESSAGES/rssyl.mo
-share/locale/fr/LC_MESSAGES/rssyl.mo
-share/locale/it/LC_MESSAGES/rssyl.mo
-share/locale/pl/LC_MESSAGES/rssyl.mo
-share/locale/pt_BR/LC_MESSAGES/rssyl.mo
-share/locale/sk/LC_MESSAGES/rssyl.mo
-share/locale/sr/LC_MESSAGES/rssyl.mo
-share/locale/sv/LC_MESSAGES/rssyl.mo
-share/locale/zh_CN/LC_MESSAGES/rssyl.mo
-share/locale/hu/LC_MESSAGES/rssyl.mo
-share/locale/ca/LC_MESSAGES/rssyl.mo
-share/locale/cs/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/de/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/es/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/it/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/rssyl.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/rssyl.mo
diff -urN /usr/ports/mail/claws-mail-vcalendar/Makefile claws-mail-vcalendar/Makefile
--- /usr/ports/mail/claws-mail-vcalendar/Makefile Sun Apr 20 10:11:50 2008
+++ claws-mail-vcalendar/Makefile Thu May 29 19:41:37 2008
@@ -21,7 +21,6 @@
RUN_DEPENDS= claws-mail>=3.4.0:${PORTSDIR}/mail/claws-mail
USE_GMAKE= yes
-USE_GETTEXT= yes
USE_ICONV= yes
USE_AUTOTOOLS= autoconf:261
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -29,5 +28,13 @@
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/mail/claws-mail-vcalendar/pkg-plist claws-mail-vcalendar/pkg-plist
--- /usr/ports/mail/claws-mail-vcalendar/pkg-plist Sun Apr 20 10:11:50 2008
+++ claws-mail-vcalendar/pkg-plist Thu May 29 19:42:39 2008
@@ -3,18 +3,18 @@
lib/claws-mail/plugins/vcalendar.a
lib/claws-mail/plugins/vcalendar.la
lib/claws-mail/plugins/vcalendar.so
-share/locale/ca/LC_MESSAGES/vcalendar.mo
-share/locale/de/LC_MESSAGES/vcalendar.mo
-share/locale/es/LC_MESSAGES/vcalendar.mo
-share/locale/fi/LC_MESSAGES/vcalendar.mo
-share/locale/fr/LC_MESSAGES/vcalendar.mo
-share/locale/hu/LC_MESSAGES/vcalendar.mo
-share/locale/it/LC_MESSAGES/vcalendar.mo
-share/locale/pl/LC_MESSAGES/vcalendar.mo
-share/locale/pt_BR/LC_MESSAGES/vcalendar.mo
-share/locale/sk/LC_MESSAGES/vcalendar.mo
-share/locale/sr/LC_MESSAGES/vcalendar.mo
-share/locale/zh_CN/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/de/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/es/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/it/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/vcalendar.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/vcalendar.mo
@dirrmtry lib/claws-mail/plugins
@dirrmtry lib/claws-mail
@dirrmtry include/claws-mail/plugins/vcalendar
--- claws-plugins.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list