From nemysis@gmx.ch  Thu May 30 21:51:32 2013
Return-Path: <nemysis@gmx.ch>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 5A05B573
	for <freebsd-gnats-submit@freebsd.org>; Thu, 30 May 2013 21:51:32 +0000 (UTC)
	(envelope-from nemysis@gmx.ch)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15])
	by mx1.freebsd.org (Postfix) with ESMTP id D7817C3B
	for <freebsd-gnats-submit@freebsd.org>; Thu, 30 May 2013 21:51:31 +0000 (UTC)
Received: from mailout-de.gmx.net ([10.1.76.29]) by mrigmx.server.lan
 (mrigmx001) with ESMTP (Nemesis) id 0MeNJB-1V4OJJ3Lbj-00QDUJ for
 <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 May 2013 23:51:30 +0200
Received: (qmail invoked by alias); 30 May 2013 21:51:29 -0000
Received: from 5-80.77-83.cust.bluewin.ch (EHLO something.email.com) [83.77.80.5]
  by mail.gmx.net (mp029) with SMTP; 30 May 2013 23:51:29 +0200
Received: by something.email.com (sSMTP sendmail emulation); Thu, 30 May 2013 23:51:29 +0200
Message-Id: <20130530215132.5A05B573@hub.freebsd.org>
Date: Thu, 30 May 2013 23:51:29 +0200
From: nemysis <nemysis@gmx.ch>
To: FreeBSD-gnats-submit@freebsd.org
Cc: jpaetzel@freebsd.org
Subject: [PATCH] multimedia/streamanalyze: Convert to OptionsNG
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         179133
>Category:       ports
>Synopsis:       [PATCH] multimedia/streamanalyze: Convert to OptionsNG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    beech
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 30 22:00:00 UTC 2013
>Closed-Date:    Sat Jun 08 02:34:47 UTC 2013
>Last-Modified:  Sat Jun 08 02:34:47 UTC 2013
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue Jan 29 15:02:50 EST 2013
>Description:

- Shorten header
- Convert to OptionsNG

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:

Build log

https://redports.org/buildarchive/20130530203101-42067/

>Fix:

--- streamanalyze-0.4_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/multimedia/streamanalyze/Makefile ./Makefile
--- /usr/ports/multimedia/streamanalyze/Makefile	2013-01-14 17:54:56.000000000 +0100
+++ ./Makefile	2013-05-30 23:49:02.000000000 +0200
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	streamanalyze
-# Date created:				2005-10-30
-# Whom:					Heiner Eichmann
-#
+# Created by: Heiner Eichmann
 # $FreeBSD: head/multimedia/streamanalyze/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	streamanalyze
 PORTVERSION=	0.4
@@ -14,22 +10,26 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Shrink-factor calculator for StreamDVD
 
-LIB_DEPENDS=	dvdread.4:${PORTSDIR}/multimedia/libdvdread
+LIB_DEPENDS=	dvdread:${PORTSDIR}/multimedia/libdvdread
 
 WRKSRC=		${WRKDIR}/StreamAnalyze
 
 PLIST_FILES=	bin/streamanalyze
+
 PORTDOCS=	README
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|gcc -g -Wall|${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e '/#include <getopt\.h>/ d' ${WRKSRC}/streamanalyze.c
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/streamanalyze ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
--- streamanalyze-0.4_4.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->beech 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu May 30 22:00:13 UTC 2013 
Responsible-Changed-Why:  
beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179133 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Jun 8 02:34:47 UTC 2013 
State-Changed-Why:  
optionsNG is completet, NLS and DOCS now global on and can be set over 
/etc/make.conf see ports/CHANGES. For the PORTDOCS* changes i suggest to 
wait of upstream update and fix it then. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179133 
>Unformatted:
