From tkato432@yahoo.com  Fri Oct 14 18:44:31 2011
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EDEEA1065676
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2011 18:43:59 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa102lp.auone-net.jp (msa102lp.auone-net.jp [222.3.140.165])
	by mx1.freebsd.org (Postfix) with ESMTP id BC4148FC1B
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2011 18:43:59 +0000 (UTC)
Received: from msa102lp.auone-net.jp (MSA102lp [172.27.12.180])
	by msa102lp.auone-net.jp (au one net msa) with ESMTP id 6FE3378260
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 15 Oct 2011 03:34:14 +0900 (JST)
Received: from localhost.localdomain (ZT046175.ppp.dion.ne.jp [59.128.46.175])
	by msa102lp.auone-net.jp (au one net msa) with ESMTP id 47C024AC036
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 15 Oct 2011 03:34:11 +0900 (JST)
Message-Id: <20111015025843.0efe0ff9.tkato432@yahoo.com>
Date: Sat, 15 Oct 2011 02:58:43 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: misc/nut to 17.0

>Number:         161605
>Category:       ports
>Synopsis:       Update port: misc/nut to 17.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    zi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 18:50:11 UTC 2011
>Closed-Date:    Sat Oct 15 14:27:20 UTC 2011
>Last-Modified:  Sat Oct 15 14:30:10 UTC 2011
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 17.0

Remove file:
files/extra-patch-Makefile

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/misc/nut/Makefile misc/nut/Makefile
--- /usr/ports/misc/nut/Makefile	2011-08-02 16:13:37.000000000 +0900
+++ misc/nut/Makefile	2011-09-30 23:10:58.000000000 +0900
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	nut
-PORTVERSION=	16.13
+PORTVERSION=	17.0
 CATEGORIES=	misc
 MASTER_SITES=	SF
 PKGNAMEPREFIX=	health-
@@ -14,8 +14,8 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Nutrition software to record what you eat
 
-LICENSE=	GPLv2 GPLv3
-LICENSE_COMB=	dual
+LICENSE=	GPLv2 # (or later)
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 OPTIONS=	GUI "Build FLTK-based GUI" off
 
@@ -28,16 +28,15 @@
 PORTDOCS=	CREDITS README nut.html
 PLIST_FILES=	bin/${PORTNAME} %%DATADIR%%/FOOD_DES.txt \
 		%%DATADIR%%/NUT_DATA.txt %%DATADIR%%/WEIGHT.lib \
-		%%DATADIR%%/WEIGHT.txt %%DATADIR%%/sr23.nut
+		%%DATADIR%%/WEIGHT.txt %%DATADIR%%/sr24.nut
 PLIST_DIRS=	%%DATADIR%%
 
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_GUI)
 LIB_DEPENDS+=	fltk.1:${PORTSDIR}/x11-toolkits/fltk
+MAKE_ENV+=	HAVE_FLTK=1 FLTK_NUT="fltk/Nut"
 PLIST_FILES+=	bin/Nut
-.else
-EXTRA_PATCHES=	${FILESDIR}/extra-patch-Makefile
 .endif
 
 post-patch:
@@ -46,7 +45,10 @@
 		 s|^CC =|CC ?=| ; \
 		 s|^CXX =|CXX ?=| ; \
 		 s|^CFLAGS :=|CFLAGS +=| ; \
-		 s| -O | |'
+		 s| -O | | ; \
+		 s|^HAVE_FLTK =|#HAVE_FLTK =| ; \
+		 s|^FLTK_NUT =|#FLTK_NUT =| ; \
+		 s|ldstaticflags|ldflags|'
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff -urN /usr/ports/misc/nut/distinfo misc/nut/distinfo
--- /usr/ports/misc/nut/distinfo	2011-08-02 16:13:37.000000000 +0900
+++ misc/nut/distinfo	2011-09-30 22:42:40.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (nut-16.13.tar.gz) = 86491bae45d75a670f719db7d7053f1d2f18bd0eb171630728ac4d2b183e36d6
-SIZE (nut-16.13.tar.gz) = 1258796
+SHA256 (nut-17.0.tar.gz) = d5241a4b5bbfca622ace4b6643f31ee3455139fe7df5b2536ca20991445578ef
+SIZE (nut-17.0.tar.gz) = 1316791
diff -urN /usr/ports/misc/nut/files/extra-patch-Makefile misc/nut/files/extra-patch-Makefile
--- /usr/ports/misc/nut/files/extra-patch-Makefile	2011-08-02 01:41:20.000000000 +0900
+++ misc/nut/files/extra-patch-Makefile	1970-01-01 09:00:00.000000000 +0900
@@ -1,17 +0,0 @@
---- ./Makefile.orig	2011-07-28 20:48:34.000000000 -0400
-+++ ./Makefile	2011-07-28 20:49:01.000000000 -0400
-@@ -8,14 +8,8 @@
- EXECUTABLE := nut
- LIBS := -lm
- 
--FLTK_CONFIG := $(shell fltk-config --version 2>/dev/null)
--ifeq ($(FLTK_CONFIG),)
- HAVE_FLTK = 0
- FLTK_NUT =
--else
--HAVE_FLTK = 1
--FLTK_NUT = fltk/Nut
--endif
- 
- OS := $(shell uname -s)
- ifeq ($(OS),HP-UX)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->zi 
Responsible-Changed-By: zi 
Responsible-Changed-When: Sat Oct 15 12:10:10 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161605 
State-Changed-From-To: open->closed 
State-Changed-By: zi 
State-Changed-When: Sat Oct 15 14:27:20 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161605 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/161605: commit references a PR
Date: Sat, 15 Oct 2011 14:27:19 +0000 (UTC)

 zi          2011-10-15 14:27:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     misc/nut             Makefile distinfo 
   Removed files:
     misc/nut/files       extra-patch-Makefile 
   Log:
   - Update to version 17.0
   
   PR:             ports/161605
   Submitted by:   KATO Tsuguru <tkato432@yahoo.com>
   
   Revision  Changes    Path
   1.98      +9 -7      ports/misc/nut/Makefile
   1.87      +2 -2      ports/misc/nut/distinfo
   1.2       +0 -17     ports/misc/nut/files/extra-patch-Makefile (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
