Update to 15.7.

From Daniel Dickman.
ok jasper@
This commit is contained in:
merdely 2010-08-18 03:00:40 +00:00
parent 9a2b2a14b2
commit 3d8057d2a8
6 changed files with 46 additions and 47 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.22 2010/07/24 15:35:40 naddy Exp $
# $OpenBSD: Makefile,v 1.23 2010/08/18 03:00:40 merdely Exp $
COMMENT= record and analyze your meals for nutrient composition
DISTNAME= nut-14.4
PKGNAME= nutdb-14.4
REVISION= 0
V= 15.7
DISTNAME= nut-${V}
PKGNAME= nutdb-${V}
CATEGORIES= biology
HOMEPAGE= http://nut.sourceforge.net/
@ -23,4 +23,10 @@ ALL_TARGET= nut
USE_GMAKE= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nut ${PREFIX}/bin/nutdb
${INSTALL_MAN} ${WRKSRC}/nut.1 ${PREFIX}/man/man1/nutdb.1
${INSTALL_DATA_DIR} ${PREFIX}/lib/nutdb
${INSTALL_DATA} ${WRKSRC}/raw.data/* ${PREFIX}/lib/nutdb
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (nut-14.4.tar.gz) = uTiau0fXzCW/WPnQ/+XG3w==
RMD160 (nut-14.4.tar.gz) = YMLtii/HsePsio2AGKlDWo+Q8hk=
SHA1 (nut-14.4.tar.gz) = FI4g3fxg1/yIBQQdaPLlMpfntNw=
SHA256 (nut-14.4.tar.gz) = IFWVtEjjtwD1KefES014OGm8rDy1W0NuyzQc5u4pEPM=
SIZE (nut-14.4.tar.gz) = 1161076
MD5 (nut-15.7.tar.gz) = jt+8n7lct18dKM1shjcY8A==
RMD160 (nut-15.7.tar.gz) = RnN+VYjU2Z1QKeWmBn28CTie5eY=
SHA1 (nut-15.7.tar.gz) = fSB0uO2JH0LD9YszctLI78bk1CM=
SHA256 (nut-15.7.tar.gz) = 51eNWFwdYrZuXM9cZIJgll85ci0VnXGuCX4g55EGTPg=
SIZE (nut-15.7.tar.gz) = 1193423

View File

@ -1,25 +1,18 @@
$OpenBSD: patch-Makefile,v 1.7 2010/05/22 08:06:33 jasper Exp $
--- Makefile.orig Sat May 22 10:06:07 2010
+++ Makefile Sat May 22 10:06:10 2010
@@ -1,9 +1,9 @@
objects := $(patsubst %.c,%.o,$(wildcard *.c))
$OpenBSD: patch-Makefile,v 1.8 2010/08/18 03:00:40 merdely Exp $
--- Makefile.orig Thu Jul 1 21:56:42 2010
+++ Makefile Thu Jul 15 14:14:29 2010
@@ -1,11 +1,11 @@
NUTDIR := \".nutdb\"
-FOODDIR := \"/usr/local/lib/nut\"
+FOODDIR := \"${PREFIX}/lib/nutdb\"
EXECUTABLE := nut
LIBS := -lm
-CFLAGS= -Os -s -Wall -DNUTDIR=\".nutdb\" -DFOODDIR=\"/usr/local/lib/nut\" -ansi -pedantic
+CFLAGS+= -Wall -pedantic -ansi -DNUTDIR=\".nutdb\" -DFOODDIR=\"$(PREFIX)/lib/nutdb\"
-CFLAGS := -Wall -O2 -s -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR)
+CFLAGS := -Wall -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR)
nut: $(objects)
- $(CC) ${CFLAGS} -o nut $(LDFLAGS) $(objects) -lm
+ $(CC) ${CFLAGS} -o nut $(objects) -lm
-CXXFLAGS := -Wall -O2 -s
+CXXFLAGS := -Wall
deps:
makedepend *.c
@@ -11,4 +11,8 @@ deps:
clean:
rm -f *.o nut preprocess/*.o preprocess/dbjw
-# DO NOT DELETE
+install:
+ mkdir $(PREFIX)/lib/nutdb/
+ ${BSD_INSTALL_PROGRAM} nut $(PREFIX)/bin/nutdb
+ ${BSD_INSTALL_MAN} nut.1 $(PREFIX)/man/man1/nutdb.1
+ ${BSD_INSTALL_DATA} raw.data/* $(PREFIX)/lib/nutdb/
SOURCE := $(wildcard *.c) $(wildcard *.cc)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cc,%.o,$(SOURCE)))

View File

@ -1,5 +1,5 @@
--- nut.1.orig Sat Apr 11 15:24:19 2009
+++ nut.1 Sun May 31 10:11:16 2009
--- nut.1.orig Tue Jul 6 21:54:19 2010
+++ nut.1 Thu Jul 15 13:41:01 2010
@@ -1,17 +1,17 @@
-.\" manual page [] for nut
+.\" manual page [] for nutdb
@ -8,8 +8,8 @@
.\" LP paragraph
.\" IP indented paragraph
.\" TP hanging label
-.TH "nut" "1" "2009.04.12" "" ""
+.TH "nutdb" "1" "2009.04.12" "" ""
-.TH "nut" "1" "2010.05.17" "" ""
+.TH "nutdb" "1" "2010.05.17" "" ""
.SH "NAME"
-.B nut \- analyze meals with the USDA Nutrient Database
+.B nutdb \- analyze meals with the USDA Nutrient Database
@ -22,7 +22,7 @@
+.B NUTDB
allows you to record what you eat and analyze your meals for nutrient
composition. The database included is the
USDA Nutrient Database for Standard Reference, Release 21.
USDA Nutrient Database for Standard Reference, Release 22.
@@ -39,7 +39,7 @@ You may add your own recipes to the database,
by creating them from the foods in the database.
You can also add foods from the information on commercial food labels. The program is completely menu\-driven and there are no commands to learn.
@ -32,7 +32,7 @@
can be called with an optional argument to specify a database subdirectory.
For example, if a user tracks meals for other family members, each person
can have his own database, and each database is entirely separate.
@@ -144,7 +144,7 @@ desired,
@@ -148,7 +148,7 @@ desired,
and provides an opportunity to adjust the weight of the servings to allow
for water gained or lost in preparation.
@ -41,7 +41,7 @@
with an ordered list of ingredients and a nutrition statement.
The new food will have additional nutrients that
were not on the nutrition statement, but that the database says are in the food.
@@ -168,10 +168,10 @@ the program are the USA standard 2000\-calorie Daily V
@@ -172,10 +172,10 @@ the program are the USA standard 2000\-calorie Daily V
customized options\-\-but users can always set the label's nutrient information in grams.
Only Daily Value nutrients greater than zero are considered as
constraints when
@ -55,7 +55,7 @@
that according
to the food database, there is no way to match the ingredients with the
constraints of the nutrition statement.
@@ -180,11 +180,11 @@ edit the
@@ -184,11 +184,11 @@ edit the
nutrient values.
Perhaps the food was so heavily fortified with vitamins
that the user waited until
@ -69,7 +69,7 @@
in the same manner as a recipe.
To modify the serving size of an existing food, the food is selected
@@ -272,7 +272,7 @@ non\-fiber carb as "." and fiber as ":".
@@ -312,7 +312,7 @@ non\-fiber carb as "." and fiber as ":".
.B Record 'The Usual'\-\-Customary Meals:
When
@ -78,10 +78,10 @@
asks what you are having, you can answer "the usual." Specifically,
this function allows you to record a customary meal,
and give it a name. Later, when
@@ -303,7 +303,7 @@ food.db Food database
meal.db Meal database
theusual.db Customary Meals database
@@ -345,7 +345,7 @@ theusual.db Customary Meals database
OPTIONS.txt Personal Options records
WLOG.txt Weight Log records
WLOG.old Last deleted Weight Log
-version NUT software version number
+version NUTDB software version number
menus.txt ASCII print file of meal database

View File

@ -1,4 +1,4 @@
NUTDB allows you to record what you eat and analyze your meals for
nutrient composition. The database included is the USDA Nutrient
Database for Standard Reference, Release 19, which contains 7,293 foods
and 140 nutrients.
Database for Standard Reference, Release 22, which contains 7,538
foods and 143 nutrients.

View File

@ -1,9 +1,9 @@
@comment $OpenBSD: PLIST,v 1.7 2008/10/24 12:25:29 jasper Exp $
@comment $OpenBSD: PLIST,v 1.8 2010/08/18 03:00:40 merdely Exp $
@bin bin/nutdb
lib/nutdb/
lib/nutdb/FOOD_DES.txt
lib/nutdb/NUT_DATA.txt
lib/nutdb/WEIGHT.lib
lib/nutdb/WEIGHT.txt
lib/nutdb/sr21.nut
lib/nutdb/sr22.nut
@man man/man1/nutdb.1