diff options
author | matusita <matusita@FreeBSD.org> | 2004-04-15 21:21:02 +0800 |
---|---|---|
committer | matusita <matusita@FreeBSD.org> | 2004-04-15 21:21:02 +0800 |
commit | f82fa393c50520838f76a38d154749a94b614de7 (patch) | |
tree | 116abac1c7c1ab010980bc3c89f5b4066ca7472e /net | |
parent | 874c49b36d675ccb4f03f6ea05ebc70b49195914 (diff) | |
download | freebsd-ports-graphics-f82fa393c50520838f76a38d154749a94b614de7.tar.gz freebsd-ports-graphics-f82fa393c50520838f76a38d154749a94b614de7.tar.zst freebsd-ports-graphics-f82fa393c50520838f76a38d154749a94b614de7.zip |
Cleanup.
- Fix pkg-plist, add missing files to the list (gimme a pointy hat to me...)
- Introduce INFO variable.
- Don't touch share/locale/ directory.
- Employ WITHOUT_NLS macro as other ports did.
Since pkg-plist is changed, bump PORTREVISION.
Submitted by: sf
Diffstat (limited to 'net')
-rw-r--r-- | net/jwhois/Makefile | 11 | ||||
-rw-r--r-- | net/jwhois/pkg-plist | 25 |
2 files changed, 21 insertions, 15 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile index 200307815f7..69729c5c213 100644 --- a/net/jwhois/Makefile +++ b/net/jwhois/Makefile @@ -7,7 +7,7 @@ PORTNAME= jwhois PORTVERSION= 3.2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= jwhois @@ -16,15 +16,22 @@ MAINTAINER= matusita@FreeBSD.org COMMENT=An improved WHOIS client capable of selecting server to query GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --localstatedir=${PREFIX}/var/jwhois USE_GETTEXT= yes USE_GMAKE= yes CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib" +CONFIGURE_ARGS= --localstatedir=${PREFIX}/var/jwhois +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB= NLS="@comment " +.else +PLIST_SUB= NLS="" +.endif INSTALL_TARGET= install-strip MANLANG= "" sv MAN1= jwhois.1 +INFO= jwhois post-install: ${MKDIR} ${PREFIX}/var/jwhois diff --git a/net/jwhois/pkg-plist b/net/jwhois/pkg-plist index e2e5fe804ee..7c77a4c73d7 100644 --- a/net/jwhois/pkg-plist +++ b/net/jwhois/pkg-plist @@ -2,19 +2,18 @@ bin/jwhois @unexec if cmp -s %D/etc/jwhois.conf %D/etc/jwhois.conf.sample; then rm -f %D/etc/jwhois.conf; fi etc/jwhois.conf.sample @exec if [ ! -f %B/jwhois.conf ]; then cp %B/%f %B/jwhois.conf; fi -@unexec install-info --delete %D/info/jwhois.info %D/info/dir -info/jwhois.info -@exec install-info %D/info/jwhois.info %D/info/dir -share/locale/es/LC_MESSAGES/jwhois.mo -share/locale/fr/LC_MESSAGES/jwhois.mo -share/locale/id/LC_MESSAGES/jwhois.mo -share/locale/ru/LC_MESSAGES/jwhois.mo -share/locale/sv/LC_MESSAGES/jwhois.mo -share/locale/tr/LC_MESSAGES/jwhois.mo -share/locale/zh_TW/LC_MESSAGES/jwhois.mo -@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true -@unexec rmdir %D/share/locale/* 2>/dev/null || true -@unexec rmdir %D/share/locale 2>/dev/null || true +%%NLS%%share/locale/es/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/fr/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/hu/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/id/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/it/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/nl/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/pl/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/ru/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/sv/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/tr/LC_MESSAGES/jwhois.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/jwhois.mo @exec mkdir -p %D/var/jwhois 2>/dev/null || true @unexec rm -f %D/var/jwhois/jwhois.db 2>/dev/null || true @unexec rmdir %D/var/jwhois 2>/dev/null || true |