aboutsummaryrefslogtreecommitdiff
path: root/sysutils/duff
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2011-05-10 09:52:57 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2011-05-10 09:52:57 +0000
commitda82c437983b9ea64732d3b487fa165631876015 (patch)
treec378a4c8a8db0624fa3f259f7920ca65306e0d17 /sysutils/duff
parentd6286bb75b7fcff28c89a14ed87e7d9f7e343a17 (diff)
downloadports-da82c437983b9ea64732d3b487fa165631876015.tar.gz
ports-da82c437983b9ea64732d3b487fa165631876015.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]
Notes
Notes: svn path=/head/; revision=273907
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