Update nut to 13.2. Should close PR 34466. Pkgsrc changes: Add DESTDIR support. Recent changes (cannot available changes from 10.18 to 12.6 anymore). 13.2: This release makes minor changes to the analysis reset and food suggestion functions. 13.1: This release changes some fatty acid defaults to allow more saturated fat when eating low-carb, and to raise the maximum amount of long-chain Omega-3. 13.0: This release introduces the new USDA Nutrient Database SR20 and allows current NUT installations to have their existing meal records reinterpreted with the new database. 12.7: This release uses a new food name abbreviation algorithm so that food names are more informative and less cryptic.diff -r1.1 -r1.2 pkgsrc/biology/nut/DESCR
(obache)
@@ -1,3 +1,3 @@ | @@ -1,3 +1,3 @@ | |||
1 | Nut allows you to record what you eat and analyze your meals for nutrient | 1 | Nut allows you to record what you eat and analyze your meals for nutrient | |
2 | composition. The database included is the USDA Nutrient Database for | 2 | composition. The database included is the USDA Nutrient Database for | |
3 | Standard Reference, Release 12, which contains 5,976 foods. | 3 | Standard Reference, Release 20. |
@@ -1,24 +1,29 @@ | @@ -1,24 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.24 2008/01/19 09:16:19 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.25 2008/01/30 05:43:55 obache Exp $ | |
2 | 2 | |||
3 | DISTNAME= nut-10.18 | 3 | DISTNAME= nut-13.2 | |
4 | PKGREVISION= 1 | |||
5 | CATEGORIES= biology | 4 | CATEGORIES= biology | |
6 | MASTER_SITES= # ${MASTER_SITE_SOURCEFORGE:=nut/} | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nut/} | |
7 | EXTRACT_SUFX= .tar.bz2 | |||
8 | 6 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://nut.sourceforge.net/ | 8 | HOMEPAGE= http://nut.sourceforge.net/ | |
11 | COMMENT= Record what you eat and analyze your meals | 9 | COMMENT= Record what you eat and analyze your meals | |
12 | 10 | |||
11 | PKG_DESTDIR_SUPPORT= user-destdir | |||
12 | ||||
13 | BUILD_TARGET= nut | 13 | BUILD_TARGET= nut | |
14 | USE_TOOLS+= gmake | 14 | USE_TOOLS+= gmake | |
15 | 15 | |||
16 | SUBST_CLASSES+= path | |||
17 | SUBST_STAGE.path= pre-build | |||
18 | SUBST_FILES.path= Makefile | |||
19 | SUBST_SED.path= -e 's|/usr/local/lib|${PREFIX}/share|g' | |||
20 | ||||
16 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | 21 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | |
17 | 22 | |||
18 | do-install: | 23 | do-install: | |
19 | ${INSTALL_PROGRAM} ${WRKSRC}/nut ${PREFIX}/bin | 24 | ${INSTALL_PROGRAM} ${WRKSRC}/nut ${DESTDIR}${PREFIX}/bin | |
20 | ${INSTALL_DATA_DIR} ${PREFIX}/share/nut | 25 | ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/nut | |
21 | ${INSTALL_DATA} ${WRKSRC}/raw.data/* ${PREFIX}/share/nut | 26 | ${INSTALL_DATA} ${WRKSRC}/raw.data/* ${DESTDIR}${PREFIX}/share/nut | |
22 | ${INSTALL_MAN} ${WRKSRC}/nut.1 ${PREFIX}/${PKGMANDIR}/man1 | 27 | ${INSTALL_MAN} ${WRKSRC}/nut.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
23 | 28 | |||
24 | .include "../../mk/bsd.pkg.mk" | 29 | .include "../../mk/bsd.pkg.mk" |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2004/08/15 12:06:34 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2008/01/30 05:43:55 obache Exp $ | |
2 | bin/nut | 2 | bin/nut | |
3 | man/man1/nut.1 | 3 | man/man1/nut.1 | |
4 | share/nut/FOOD_DES.txt | 4 | share/nut/FOOD_DES.txt | |
5 | share/nut/NUT_DATA.txt | 5 | share/nut/NUT_DATA.txt | |
6 | share/nut/WEIGHT.lib | 6 | share/nut/WEIGHT.lib | |
7 | share/nut/WEIGHT.txt | 7 | share/nut/WEIGHT.txt | |
8 | share/nut/sr17.nut | 8 | share/nut/sr20.nut | |
9 | @dirrm share/nut | 9 | @dirrm share/nut |
@@ -1,7 +1,6 @@ | @@ -1,7 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.14 2005/04/19 10:45:19 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.15 2008/01/30 05:43:55 obache Exp $ | |
2 | 2 | |||
3 | SHA1 (nut-10.18.tar.bz2) = b136a1842858016430bc59831ea02869ce221479 | 3 | SHA1 (nut-13.2.tar.gz) = cdefbe18338ae7e0c62d8d91bf2296bdb9235876 | |
4 | RMD160 (nut-10.18.tar.bz2) = dce992a2b635f63f7f971d505ea4bff6a8d9b46d | 4 | RMD160 (nut-13.2.tar.gz) = a6aab1fd776c7763f0529b71fdcd7f1d736f5ab1 | |
5 | Size (nut-10.18.tar.bz2) = 815615 bytes | 5 | Size (nut-13.2.tar.gz) = 1183222 bytes | |
6 | SHA1 (patch-ab) = 53e11acf560f0ecc457c249d6c2e564ae38af9bb | 6 | SHA1 (patch-ab) = 023e7cbe6f06507ee303b56e85f48354855661a3 | |
7 | SHA1 (patch-ac) = 01862c0437c26787667b78124858b90b75b98e94 |
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | $NetBSD: patch-ab,v 1.6 2005/04/19 10:45:19 wiz Exp $ | 1 | $NetBSD: patch-ab,v 1.7 2008/01/30 05:43:55 obache Exp $ | |
2 | 2 | |||
3 | --- db.c.orig 2005-04-16 18:08:41.000000000 +0200 | 3 | --- db.c.orig 2007-12-29 07:45:33.000000000 +0000 | |
4 | +++ db.c | 4 | +++ db.c | |
5 | @@ -28,6 +28,7 @@ | 5 | @@ -28,6 +28,7 @@ | |
6 | #include <string.h> | 6 | #include <string.h> | |
7 | #include <sys/stat.h> | 7 | #include <sys/stat.h> | |
8 | #include <ctype.h> | 8 | #include <ctype.h> | |
9 | +#include <errno.h> | 9 | +#include <errno.h> | |
10 | 10 | |||
11 | #ifndef NUTDIR | 11 | #ifndef NUTDIR | |
12 | char nutdir1[]=".nutdb"; | 12 | char nutdir1[]=".nutdb"; | |
13 | @@ -881,9 +882,22 @@ strcpy(subuser,sub); | 13 | @@ -892,9 +893,22 @@ strcpy(subuser,sub); | |
14 | sprintf(versionfile,"%s/%s/%s","NUTDB",subuser,versionfile1); | 14 | sprintf(versionfile,"%s/%s/%s","NUTDB",subuser,versionfile1); | |
15 | #else | 15 | #else | |
16 | sprintf(nutdir,"%s/%s",getenv("HOME"),nutdir1); | 16 | sprintf(nutdir,"%s/%s",getenv("HOME"),nutdir1); | |
17 | -mkdir (nutdir, 0700 ); | 17 | -mkdir (nutdir, 0700 ); | |
18 | +if (mkdir(nutdir, S_IRWXU|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) != 0) { | 18 | +if (mkdir(nutdir, S_IRWXU|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) != 0) { | |
19 | + if (errno != EEXIST) { | 19 | + if (errno != EEXIST) { | |
20 | + printf("Cannot create %s: %s\n", nutdir, | 20 | + printf("Cannot create %s: %s\n", nutdir, | |
21 | + strerror(errno)); | 21 | + strerror(errno)); | |
22 | + exit(1); | 22 | + exit(1); | |
23 | + } | 23 | + } | |
24 | +} | 24 | +} | |
25 | sprintf(nutdirsubuser,"%s/%s/%s",getenv("HOME"),nutdir1,subuser); | 25 | sprintf(nutdirsubuser,"%s/%s/%s",getenv("HOME"),nutdir1,subuser); | |
26 | mkdir (nutdirsubuser, 0700 ); | 26 | mkdir (nutdirsubuser, 0700 ); |