pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/biology/nut Update to 10.1:
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ac55cca23e1
branches: trunk
changeset: 479475:3ac55cca23e1
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Aug 15 12:06:34 2004 +0000
description:
Update to 10.1:
10.1:
This release adds a fix for zero values that display as no data.
10.0:
This release updates the USDA Nutrient Database to version SR17, and allows
current NUT installations to have their existing meal records reinterpreted
with the new database.
9.20:
This release optimizes the new code of the last release, the focus of which
was distinguishing no data from zero in the USDA database.
9.19:
The program now distinguishes between zero values and no data in the USDA
database, and uses this information to produce a new screen that lists foods
high in some nutrient while minimizing some other nutrient.
9.18:
This release contains revisions to the polyunsaturated fatty acid reference
values and how they scale up as fats increase and carbs decrease.
9.17:
This release provides what may be more reasonable or optimal default settings
for fat percentages when the user sets the program for low carb.
9.16:
This release contains bugfixes for a segmentation fault which occurred when
entering a control-D and a monounsaturated fat reference value that was too
high.
9.15:
This release makes serving sizes more consistent among food groups. It adds
functions to change the default serving size, and to sort foods by nutrients
per serving.
9.14:
This release adds support for an optional database subdirectory, allowing the
user to easily maintain multiple databases, for multiple family members, for
instance. It also adds display of non-fiber carbohydrate grams ("net carbs")
on the main analysis screen.
9.13:
The program now allows commercial foods that have a nutrition label and an
ordered ingredients statement to be added to the food database. An
approximation to a food's recipe is found that best fits the criteria and the
recipe is analyzed to provide information about the additional nutrients not
stated on the nutrition label.
9.12:
[unknown]
diffstat:
biology/nut/Makefile | 5 ++-
biology/nut/PLIST | 5 ++-
biology/nut/distinfo | 8 +++---
biology/nut/patches/patch-ab | 47 +++++++++++++++++++++++--------------------
4 files changed, 35 insertions(+), 30 deletions(-)
diffs (105 lines):
diff -r b0b6e8ee0615 -r 3ac55cca23e1 biology/nut/Makefile
--- a/biology/nut/Makefile Sun Aug 15 11:27:01 2004 +0000
+++ b/biology/nut/Makefile Sun Aug 15 12:06:34 2004 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.11 2004/08/14 15:51:37 snj Exp $
+# $NetBSD: Makefile,v 1.12 2004/08/15 12:06:34 wiz Exp $
-DISTNAME= nut-9.11
+DISTNAME= nut-10.1
CATEGORIES= biology
MASTER_SITES= http://www.lafn.org/~av832/
+EXTRACT_SUFX= .tar.bz2
MAINTAINER= root%garbled.net@localhost
HOMEPAGE= http://www.lafn.org/~av832/
diff -r b0b6e8ee0615 -r 3ac55cca23e1 biology/nut/PLIST
--- a/biology/nut/PLIST Sun Aug 15 11:27:01 2004 +0000
+++ b/biology/nut/PLIST Sun Aug 15 12:06:34 2004 +0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.3 2003/08/11 07:26:00 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2004/08/15 12:06:34 wiz Exp $
bin/nut
man/man1/nut.1
share/nut/FOOD_DES.txt
share/nut/NUT_DATA.txt
+share/nut/WEIGHT.lib
share/nut/WEIGHT.txt
-share/nut/sr16.nut
+share/nut/sr17.nut
@dirrm share/nut
diff -r b0b6e8ee0615 -r 3ac55cca23e1 biology/nut/distinfo
--- a/biology/nut/distinfo Sun Aug 15 11:27:01 2004 +0000
+++ b/biology/nut/distinfo Sun Aug 15 12:06:34 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2004/03/10 18:37:48 wiz Exp $
+$NetBSD: distinfo,v 1.9 2004/08/15 12:06:34 wiz Exp $
-SHA1 (nut-9.11.tar.gz) = 3279b552b1284febf2c724ce62d589caaeaae6dd
-Size (nut-9.11.tar.gz) = 903657 bytes
-SHA1 (patch-ab) = 1046ccc0a5a9759453e502717fe1ab6daba06459
+SHA1 (nut-10.1.tar.bz2) = e7cee292aad8d97fcc008a3ece10790a64bb0398
+Size (nut-10.1.tar.bz2) = 813239 bytes
+SHA1 (patch-ab) = 1ce697145adea9501e3818798c10a42486d7c5d2
SHA1 (patch-ac) = 525d65d517f637ed908d1df95672d34713dcf2bd
diff -r b0b6e8ee0615 -r 3ac55cca23e1 biology/nut/patches/patch-ab
--- a/biology/nut/patches/patch-ab Sun Aug 15 11:27:01 2004 +0000
+++ b/biology/nut/patches/patch-ab Sun Aug 15 12:06:34 2004 +0000
@@ -1,32 +1,35 @@
-$NetBSD: patch-ab,v 1.4 2004/03/10 18:37:48 wiz Exp $
+$NetBSD: patch-ab,v 1.5 2004/08/15 12:06:34 wiz Exp $
---- db.c.orig 2004-02-15 22:36:00.000000000 +0100
+--- db.c.orig 2004-08-07 05:03:16.000000000 +0200
+++ db.c
-@@ -23,11 +23,12 @@
- #include "meal.h"
- #include "options.h"
- #include "util.h"
--#ifndef DOS
-+#ifdef DOS
- #include <tgmath.h>
- #else
- #include <math.h>
- #endif
+@@ -29,6 +29,7 @@
+ #include <string.h>
+ #include <sys/stat.h>
+ #include <ctype.h>
+#include <errno.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-@@ -691,7 +692,13 @@ void make_filenames(void)
- sprintf(versionfile,"%s/%s","NUTDB",versionfile1);
+
+ #ifndef NUTDIR
+ char nutdir1[]=".nutdb";
+@@ -739,9 +740,22 @@ strcpy(subuser,sub);
+ sprintf(versionfile,"%s/%s/%s","NUTDB",subuser,versionfile1);
#else
sprintf(nutdir,"%s/%s",getenv("HOME"),nutdir1);
-mkdir (nutdir, 0700 );
+if (mkdir(nutdir, S_IRWXU|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) != 0) {
-+ if (errno != EEXIST) {
-+ printf("Cannot create %s/%s: %s\n", getenv("HOME"), nutdir1,
-+ strerror(errno));
-+ exit(1);
-+ }
++ if (errno != EEXIST) {
++ printf("Cannot create %s: %s\n", nutdir,
++ strerror(errno));
++ exit(1);
++ }
++}
+ sprintf(nutdirsubuser,"%s/%s/%s",getenv("HOME"),nutdir1,subuser);
+ mkdir (nutdirsubuser, 0700 );
++if (mkdir(nutdirsubuser, S_IRWXU|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) != 0) {
++ if (errno != EEXIST) {
++ printf("Cannot create %s: %s\n", nutdirsubuser,
++ strerror(errno));
++ exit(1);
++ }
+}
sprintf(USDAjoined,"%s/%s",FOODDIR,USDAjoined1);
sprintf(globalFOOD,"%s/%s",FOODDIR,globalFOOD1);
Home |
Main Index |
Thread Index |
Old Index