aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/xpad
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-04-17 07:13:51 +0800
committerjgh <jgh@FreeBSD.org>2013-04-17 07:13:51 +0800
commit7fd264c7f46e928a15ccd1f873a6f29026022a33 (patch)
tree2c694f9711b9ef992aadc9adbb5b717d8abd8030 /deskutils/xpad
parent4bdd08f5114a8e1b72dcf5dec95658a2ea12ed50 (diff)
downloadfreebsd-ports-gnome-7fd264c7f46e928a15ccd1f873a6f29026022a33.tar.gz
freebsd-ports-gnome-7fd264c7f46e928a15ccd1f873a6f29026022a33.tar.zst
freebsd-ports-gnome-7fd264c7f46e928a15ccd1f873a6f29026022a33.zip
- support handling of NLS while upstream works out issue
- bump portrevision Feature safe: yes
Diffstat (limited to 'deskutils/xpad')
-rw-r--r--deskutils/xpad/Makefile30
-rw-r--r--deskutils/xpad/pkg-plist48
2 files changed, 48 insertions, 30 deletions
diff --git a/deskutils/xpad/Makefile b/deskutils/xpad/Makefile
index 009e055e1d4e..9c0af12aaa7f 100644
--- a/deskutils/xpad/Makefile
+++ b/deskutils/xpad/Makefile
@@ -1,9 +1,9 @@
-# Created by: Guillaume Paquet <amyfoub@gmail.com>
+# Created by: Guillaume Paquet <amyfoub@gmail.com>
# $FreeBSD$
PORTNAME= xpad
PORTVERSION= 3.1
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= deskutils
MASTER_SITES= http://launchpad.net/xpad/stable/${PORTVERSION}/+download/
@@ -12,6 +12,8 @@ COMMENT= Virtual note-pad system for your X11 desktop
LICENSE= GPLv3
+OPTIONS_DEFINE= NLS
+
CONFLICTS_INSTALL= xpad-current-[0-9]*
FETCH_ARGS= "-pRr"
@@ -22,11 +24,27 @@ USE_GNOME= gtk20 gnomehier intltool
USE_PKGCONFIG= build
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
-CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-
-USE_GETTEXT= yes
MAN1= xpad.1
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+MAN1+= xpad.1
+
+post-patch-script:
+.if ! ${PORT_OPTIONS:MNLS}
+ @${REINPLACE_CMD} -e 's|SUBDIRS = autopackage doc src images po|SUBDIRS = autopackage doc src images|' \
+ ${WRKSRC}/Makefile.in
+.endif
+
.include <bsd.port.mk>
diff --git a/deskutils/xpad/pkg-plist b/deskutils/xpad/pkg-plist
index f0f01928a9cf..daccf3f68ee4 100644
--- a/deskutils/xpad/pkg-plist
+++ b/deskutils/xpad/pkg-plist
@@ -1,28 +1,28 @@
bin/xpad
share/applications/xpad.desktop
share/icons/hicolor/scalable/apps/xpad.svg
-share/locale/af/LC_MESSAGES/xpad.mo
-share/locale/bg/LC_MESSAGES/xpad.mo
-share/locale/cs/LC_MESSAGES/xpad.mo
-share/locale/da/LC_MESSAGES/xpad.mo
-share/locale/en_GB/LC_MESSAGES/xpad.mo
-share/locale/es/LC_MESSAGES/xpad.mo
-share/locale/fi/LC_MESSAGES/xpad.mo
-share/locale/fr/LC_MESSAGES/xpad.mo
-share/locale/ga/LC_MESSAGES/xpad.mo
-share/locale/hu/LC_MESSAGES/xpad.mo
-share/locale/it/LC_MESSAGES/xpad.mo
-share/locale/ja/LC_MESSAGES/xpad.mo
-share/locale/ko/LC_MESSAGES/xpad.mo
-share/locale/lv/LC_MESSAGES/xpad.mo
-share/locale/nl/LC_MESSAGES/xpad.mo
-share/locale/ro/LC_MESSAGES/xpad.mo
-share/locale/ru/LC_MESSAGES/xpad.mo
-share/locale/rw/LC_MESSAGES/xpad.mo
-share/locale/sv/LC_MESSAGES/xpad.mo
-share/locale/vi/LC_MESSAGES/xpad.mo
-share/locale/zh_CN/LC_MESSAGES/xpad.mo
-share/locale/zh_TW/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/af/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/da/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/es/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/it/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/rw/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/xpad.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/xpad.mo
@dirrmtry share/applications
-@dirrmtry share/locale/rw/LC_MESSAGES
-@dirrmtry share/locale/rw
+@dirrmtry %%NLS%%share/locale/rw/LC_MESSAGES
+@dirrmtry %%NLS%%share/locale/rw