aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-02-28 12:31:52 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-02-28 12:31:52 +0000
commit9ee6157fc07c2ebec31bd37becf348cb00b04d48 (patch)
tree595b648c241cdff18506fd8c153ef81931c76ca0 /sysutils
parent57d057eabd96e7d036bb9eb6ad6f65251388e66f (diff)
downloadports-9ee6157fc07c2ebec31bd37becf348cb00b04d48.tar.gz
ports-9ee6157fc07c2ebec31bd37becf348cb00b04d48.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/di/Makefile28
-rw-r--r--sysutils/di/distinfo3
-rw-r--r--sysutils/di/pkg-plist2
3 files changed, 27 insertions, 6 deletions
diff --git a/sysutils/di/Makefile b/sysutils/di/Makefile
index f3ccb51f1a8a..8c9d1423f7c0 100644
--- a/sysutils/di/Makefile
+++ b/sysutils/di/Makefile
@@ -6,14 +6,13 @@
#
PORTNAME= di
-PORTVERSION= 3.9
+PORTVERSION= 3.10
CATEGORIES= sysutils
MASTER_SITES= http://www.gentoo.com/di/
MAINTAINER= bll@gentoo.com
-COMMENT= A disk information utility
+COMMENT= Disk Information Utility
-HAS_CONFIGURE= yes
MAN1= di.1
.include <bsd.port.pre.mk>
@@ -21,16 +20,35 @@ MAN1= di.1
do-configure:
(cd ${WRKSRC}; \
CC="$(CC)" CFLAGS="$(CFLAGS)" \
- LDFLAGS="$(LDFLAGS)" prefix="$(PREFIX)" ./Build config.h)
+ LDFLAGS="$(LDFLAGS)" prefix="$(PREFIX)" \
+ LOCALEDIR="$(PREFIX)/share/locale" \
+ ./Build config.h)
do-build:
(cd ${WRKSRC}; \
CC="$(CC)" CFLAGS="$(CFLAGS)" \
- LDFLAGS="$(LDFLAGS)" prefix="$(PREFIX)" ./Build)
+ LDFLAGS="$(LDFLAGS)" prefix="$(PREFIX)" \
+ LOCALEDIR="$(PREFIX)/share/locale" \
+ ./Build)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/di ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/mi ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/di.1 ${PREFIX}/man/man1
+ (cd ${WRKSRC}; \
+ CC="$(CC)" CFLAGS="$(CFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" prefix="$(PREFIX)" \
+ LOCALEDIR="$(PREFIX)/share/locale" \
+ ./Build build-po)
+ -(cd ${WRKSRC}/po;for i in *.po; do \
+ j=`echo $$i | $(SED) 's,\\.po$$,,'`; \
+ test -d ${PREFIX}/share/locale/$$j || \
+ mkdir ${PREFIX}/share/locale/$$j; \
+ test -d ${PREFIX}/share/locale/$$j/LC_MESSAGES || \
+ mkdir ${PREFIX}/share/locale/$$j/LC_MESSAGES; \
+ ${INSTALL_DATA} $$j.mo \
+ ${PREFIX}/share/locale/$$j/LC_MESSAGES/di.mo; \
+ $(RM) -f $$j.mo; \
+ done)
.include <bsd.port.post.mk>
diff --git a/sysutils/di/distinfo b/sysutils/di/distinfo
index 487e80076160..c2965ee7f844 100644
--- a/sysutils/di/distinfo
+++ b/sysutils/di/distinfo
@@ -1 +1,2 @@
-MD5 (di-3.9.tar.gz) = 59c840955175ffaf051417c5d0c702d3
+MD5 (di-3.10.tar.gz) = 25f92d2d2b4478178541cfaa5b5fc72b
+SIZE (di-3.10.tar.gz) = 108172
diff --git a/sysutils/di/pkg-plist b/sysutils/di/pkg-plist
index 6d9b314fda76..83abec797e03 100644
--- a/sysutils/di/pkg-plist
+++ b/sysutils/di/pkg-plist
@@ -1,2 +1,4 @@
bin/di
bin/mi
+share/locale/de_DE/LC_MESSAGES/di.mo
+share/locale/en_US/LC_MESSAGES/di.mo