ports/63426: Update port: sysutils/di: di-3.10 - disk information utility
Brad Lanam
bll at gentoo.com
Fri Feb 27 19:40:09 UTC 2004
The following reply was made to PR ports/63426; it has been noted by GNATS.
From: Brad Lanam <bll at gentoo.com>
To: freebsd-gnats-submit at FreeBSD.org
Cc:
Subject: Re: ports/63426: Update port: sysutils/di: di-3.10 - disk information utility
Date: Fri, 27 Feb 2004 11:31:52 -0800
Diff as requested.
--- /tmp/fbsd-Makefile.txt Fri Feb 27 11:23:09 2004
+++ Makefile Thu Feb 26 14:20:38 2004
@@ -1,19 +1,20 @@
-# New ports collection makefile for: di
-# Date created: 31 August 2002
-# Whom: Brad Lanam <bll at gentoo.com>
+# New ports collection makefile for: di
+# Date created: 31 August 2002
+# Whom: Brad Lanam <bll at gentoo.com>
#
-# $FreeBSD: /repoman/r/pcvs/ports/sysutils/di/Makefile,v 1.4 2003/09/29 23:29:21 edwin Exp $
+# $FreeBSD$
#
PORTNAME= di
-PORTVERSION= 3.9
+PORTVERSION= 3.10
CATEGORIES= sysutils
MASTER_SITES= http://www.gentoo.com/di/
+BUILD_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext
+COMMENT= Disk Information Utility
MAINTAINER= bll at gentoo.com
-COMMENT= A disk information utility
-HAS_CONFIGURE= yes
+HAS_CONFIGURE= no
MAN1= di.1
.include <bsd.port.pre.mk>
@@ -21,16 +22,35 @@
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>
--- /tmp/fbsd-pkg-plist.txt Fri Feb 27 11:25:32 2004
+++ pkg-plist Thu Feb 26 14:20:48 2004
@@ -1,2 +1,8 @@
bin/di
bin/mi
+share/locale/de_DE/LC_MESSAGES/di.mo
+share/locale/en_US/LC_MESSAGES/di.mo
+ at dirrm share/locale/en_US/LC_MESSAGES
+ at dirrm share/locale/de_DE/LC_MESSAGES
+ at dirrm share/locale/en_US
+ at dirrm share/locale/de_DE
More information about the freebsd-ports-bugs
mailing list