summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-06-04 09:02:15 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-06-04 09:02:15 +0000
commit9c5cff670d20ed4153e579505184edfa4fc53ab9 (patch)
treec961ac6b97f94ac457cae3e72da013c50ce87703
parentUpdate net/packit (maintainer): 0.6.0 -> 0.6.0c (diff)
Update misc/nut (maintainer): 8.6 -> 8.7
Update misc/nut: 8.6 -> 8.7 Bug fixes PR: ports/52918 Submitted by: Kirill Ponomarew <ponomarew@oberon.net>
Notes
Notes: svn path=/head/; revision=82245
-rw-r--r--misc/nut/Makefile33
-rw-r--r--misc/nut/distinfo2
-rw-r--r--misc/nut/pkg-plist3
3 files changed, 27 insertions, 11 deletions
diff --git a/misc/nut/Makefile b/misc/nut/Makefile
index b6f18f1007aa..2616dc79fb9b 100644
--- a/misc/nut/Makefile
+++ b/misc/nut/Makefile
@@ -6,11 +6,10 @@
#
PORTNAME= nut
-PORTVERSION= 8.6
+PORTVERSION= 8.7
CATEGORIES= misc
MASTER_SITES= http://www.lafn.org/~av832/
PKGNAMEPREFIX= health-
-DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ponomarew@oberon.net
COMMENT= Nut is nutrition software to record what you eat
@@ -21,15 +20,29 @@ USE_GMAKE= yes
USE_REINPLACE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e \
+ 's|%%PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/nut ${PREFIX}/bin/
- ${MKDIR} ${PREFIX}/etc/nut
- ${INSTALL_DATA} ${WRKSRC}/raw.data/FOOD_DES.txt ${PREFIX}/etc/nut/
- ${INSTALL_DATA} ${WRKSRC}/raw.data/NUT_DATA.txt ${PREFIX}/etc/nut/
- ${INSTALL_DATA} ${WRKSRC}/raw.data/WEIGHT.txt ${PREFIX}/etc/nut/
- ${INSTALL_DATA} ${WRKSRC}/raw.data/sr15.nut ${PREFIX}/etc/nut/
- ${INSTALL_MAN} ${WRKSRC}/nut.1 ${PREFIX}/man/man1/
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${MKDIR} ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/raw.data/FOOD_DES.txt \
+ ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/raw.data/NUT_DATA.txt \
+ ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/raw.data/WEIGHT.txt \
+ ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/raw.data/sr15.nut \
+ ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_MAN} ${WRKSRC}/nut.1 ${PREFIX}/man/man1
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in README sr15_doc.htm
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/misc/nut/distinfo b/misc/nut/distinfo
index b773047fb884..831e6f648efc 100644
--- a/misc/nut/distinfo
+++ b/misc/nut/distinfo
@@ -1 +1 @@
-MD5 (nut-8.6.tar.gz) = 28fbebcd3162e37fc11fa60f8a579a00
+MD5 (nut-8.7.tar.gz) = 4a7a18d4bf52295dc6e1fbecd82f32e3
diff --git a/misc/nut/pkg-plist b/misc/nut/pkg-plist
index cd776366ce18..9263288d61a2 100644
--- a/misc/nut/pkg-plist
+++ b/misc/nut/pkg-plist
@@ -3,4 +3,7 @@ etc/nut/FOOD_DES.txt
etc/nut/NUT_DATA.txt
etc/nut/WEIGHT.txt
etc/nut/sr15.nut
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/sr15_doc.htm
@dirrm etc/nut
+%%PORTDOCS%%@dirrm %%DOCSDIR%%