aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2010-08-02 03:32:14 +0800
committermezz <mezz@FreeBSD.org>2010-08-02 03:32:14 +0800
commit729dbda724a106a30df87533d433bf25ad2d36c4 (patch)
tree8467e3c81df1828c9bac1f7b7f04c411cadd7c4a /www
parentc72b25813861986571f4c2a6c96661beb3faa34a (diff)
downloadfreebsd-ports-gnome-729dbda724a106a30df87533d433bf25ad2d36c4.tar.gz
freebsd-ports-gnome-729dbda724a106a30df87533d433bf25ad2d36c4.tar.zst
freebsd-ports-gnome-729dbda724a106a30df87533d433bf25ad2d36c4.zip
-Add WITHOUT_NLS support. [1]
-Reduce the COMMENT to under 70 characters, silent the portlint. PR: ports/110533 [1] Submitted by: Helge Oldach <ports-neon-sitecopy-mar07@oldach.net> [1] Approved by: maintainer timeout (3 years, 19 Mar 2007) Reminded by: Helge Oldach <ports-neon-sitecopy-mar07@oldach.net>
Diffstat (limited to 'www')
-rw-r--r--www/sitecopy/Makefile15
-rw-r--r--www/sitecopy/pkg-plist16
2 files changed, 20 insertions, 11 deletions
diff --git a/www/sitecopy/Makefile b/www/sitecopy/Makefile
index 08cc3899ef80..e3d36bd26bf0 100644
--- a/www/sitecopy/Makefile
+++ b/www/sitecopy/Makefile
@@ -14,18 +14,27 @@ MASTER_SITES= http://www.manyfish.co.uk/${PORTNAME}/ \
MASTER_SITE_SUBDIR= distfiles
MAINTAINER= olgeni@FreeBSD.org
-COMMENT= Maintains remote websites, uses FTP or WebDAV to sync up with local copy
+COMMENT= Maintains remote websites, uses FTP or WebDAV to sync up w/ local copy
LIB_DEPENDS= neon.27:${PORTSDIR}/www/neon29
GNU_CONFIGURE= yes
CONFIGURE_ENV= CC="${CC} -I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib -lintl"
+ LIBS="${LIBS}"
+LIBS= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-neon --with-libxml2
-USE_GETTEXT= yes
USE_GNOME= libxml2
USE_GMAKE= yes
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+LIBS+= -lintl
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
.ifndef WITHOUT_SSL
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-ssl
diff --git a/www/sitecopy/pkg-plist b/www/sitecopy/pkg-plist
index fb7437e86169..e8810cac29a6 100644
--- a/www/sitecopy/pkg-plist
+++ b/www/sitecopy/pkg-plist
@@ -3,14 +3,14 @@ bin/sitecopy
%%DOCSDIR%%/README
%%DOCSDIR%%/THANKS
%%DOCSDIR%%/update.sh
-share/locale/cs/LC_MESSAGES/sitecopy.mo
-share/locale/de/LC_MESSAGES/sitecopy.mo
-share/locale/fr/LC_MESSAGES/sitecopy.mo
-share/locale/it/LC_MESSAGES/sitecopy.mo
-share/locale/ja/LC_MESSAGES/sitecopy.mo
-share/locale/nn/LC_MESSAGES/sitecopy.mo
-share/locale/ru/LC_MESSAGES/sitecopy.mo
-share/locale/tr/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/de/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/it/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/sitecopy.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/sitecopy.mo
%%DATADIR%%/changes.awk
%%DATADIR%%/examplerc
@dirrm %%DATADIR%%