aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/duff
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2011-05-10 17:52:57 +0800
committermartymac <martymac@FreeBSD.org>2011-05-10 17:52:57 +0800
commit572ffb28e1a892c4f9106313494cae1b6031faf8 (patch)
treec5afdf8dd1408962ec5023fc374f60530353a9e3 /sysutils/duff
parentba6c39f4a6625356771984f7d6bdf0b03e82863c (diff)
downloadfreebsd-ports-gnome-572ffb28e1a892c4f9106313494cae1b6031faf8.tar.gz
freebsd-ports-gnome-572ffb28e1a892c4f9106313494cae1b6031faf8.tar.zst
freebsd-ports-gnome-572ffb28e1a892c4f9106313494cae1b6031faf8.zip
- Update to 0.5 [1]
- Improve PORTDOCS handling [2] PR: ports/156388 [1] Submitted by: Jason E. Hale <bsdkaffee@gmail.com> (maintainer) [1] Approved by: maintainer timeout (22 days) [2]
Diffstat (limited to 'sysutils/duff')
-rw-r--r--sysutils/duff/Makefile28
-rw-r--r--sysutils/duff/distinfo4
-rw-r--r--sysutils/duff/pkg-plist11
3 files changed, 36 insertions, 7 deletions
diff --git a/sysutils/duff/Makefile b/sysutils/duff/Makefile
index 76ccd83952e9..f315b670b272 100644
--- a/sysutils/duff/Makefile
+++ b/sysutils/duff/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= duff
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= sysutils
MASTER_SITES= SF
@@ -17,12 +17,30 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
+
MAN1= duff.1
-PLIST_FILES= bin/duff \
- share/duff/join-duplicates.sh
-PLIST_DIRS= share/duff
+
+OPTIONS= NLS "Native Language Support" on
+
+PORTDOCS= README.SHA
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB= NLS="@comment "
+.endif
post-patch:
- ${CHMOD} +x ${WRKSRC}/install-sh
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} '/^install-data-am:/s/install-dist_docDATA//' \
+ ${WRKSRC}/Makefile.in
+.endif
.include <bsd.port.mk>
diff --git a/sysutils/duff/distinfo b/sysutils/duff/distinfo
index 8d1e7efc8949..e9a9906a9487 100644
--- a/sysutils/duff/distinfo
+++ b/sysutils/duff/distinfo
@@ -1,2 +1,2 @@
-SHA256 (duff-0.4.tar.bz2) = 3d23e92b7467e4006a536d49b053b1c6ebc8cb3aff584c86d8561855841f4ac4
-SIZE (duff-0.4.tar.bz2) = 76582
+SHA256 (duff-0.5.tar.bz2) = 9e30f84d3d02bdaceb2a901db538906e66c227f80e3651b08bfad8c0f452ee5d
+SIZE (duff-0.5.tar.bz2) = 168991
diff --git a/sysutils/duff/pkg-plist b/sysutils/duff/pkg-plist
new file mode 100644
index 000000000000..7b174dba922c
--- /dev/null
+++ b/sysutils/duff/pkg-plist
@@ -0,0 +1,11 @@
+bin/duff
+share/duff/join-duplicates.sh
+%%NLS%%share/locale/en/LC_MESSAGES/duff.mo
+%%NLS%%share/locale/en@boldquot/LC_MESSAGES/duff.mo
+%%NLS%%share/locale/en@quot/LC_MESSAGES/duff.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/duff.mo
+%%NLS%%@dirrmtry share/locale/en@quot/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/en@quot
+%%NLS%%@dirrmtry share/locale/en@boldquot/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/en@boldquot
+@dirrm share/duff