From nobody@FreeBSD.org  Tue Mar 10 13:03:30 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 260C71065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Mar 2009 13:03:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 153AA8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Mar 2009 13:03:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2AD3TrU049352
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Mar 2009 13:03:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2AD3TZL049350;
	Tue, 10 Mar 2009 13:03:29 GMT
	(envelope-from nobody)
Message-Id: <200903101303.n2AD3TZL049350@www.freebsd.org>
Date: Tue, 10 Mar 2009 13:03:29 GMT
From: Toni Gundogdu <legatvs@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [MAINTAINER UPDATE] multimedia/cclive to 0.2.4
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132499
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] multimedia/cclive to 0.2.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 10 13:10:02 UTC 2009
>Closed-Date:    Sun Mar 22 14:49:00 UTC 2009
>Last-Modified:  Sun Mar 22 14:50:04 UTC 2009
>Originator:     Toni Gundogdu
>Release:        FreeBSD 7.1-RELEASE-p2
>Organization:
>Environment:
>Description:
* add OPTIONS
* bump to 0.2.4
* add WITH_TITLE
  - add Perl as BUILD and RUN dep when enabled
  - add p5-HTML-Parser as RUN dep when enabled
* add WITH_SIGWINCH
* update files/patch-Makefile

NOTE: Please see the WITH_TITLE ifdef block specifically. I wasn't sure if it is acceptable to add USE_PERL inside an ifdef block -- or if it is necessary at all since we add p5-HTML-Parser as a prerequisite anyway. 

Thanks.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN /usr/ports/multimedia/cclive/Makefile cclive/Makefile
--- /usr/ports/multimedia/cclive/Makefile	2009-02-20 22:02:41.000000000 +0200
+++ cclive/Makefile	2009-03-10 14:21:24.000000000 +0200
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	cclive
-PORTVERSION=	0.2.3
+PORTVERSION=	0.2.4
 CATEGORIES=	multimedia net
 MASTER_SITES=	GOOGLE_CODE
 
@@ -15,16 +15,32 @@
 
 LIB_DEPENDS=	curl.5:${PORTSDIR}/ftp/curl
 
-.if !defined(WITHOUT_MAN)
-MAKE_ENV=	WITH_MAN=yes
-MAN1=		cclive.1
-.endif
+OPTIONS=	TITLE 	 "Enable video title parsing (req. Perl)" off \
+		SIGWINCH "Enable SIGWINCH handling; resize progressbar" on \
+		MANPAGE	 "Install manual page" on
 
-MAKE_ENV+=	V=1
+MAKE_ENV=	V=1
 
 PLIST_FILES=	bin/cclive
 
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_TITLE)
+MAKE_ENV+=	WITH_PERL=yes
+USE_PERL5=	5.8.2+
+RUN_DEPENDS+=	p5-HTML-Parser>=3.59:${PORTSDIR}/www/p5-HTML-Parser
+.endif
+
+.if defined(WITH_MANPAGE)
+MAKE_ENV+=	WITH_MAN=yes
+MAN1=		cclive.1
+.endif
+
+.if defined(WITH_SIGWINCH)
+MAKE_ENV+=	WITH_SIGWINCH=yes
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN /usr/ports/multimedia/cclive/distinfo cclive/distinfo
--- /usr/ports/multimedia/cclive/distinfo	2009-02-20 22:02:42.000000000 +0200
+++ cclive/distinfo	2009-03-10 00:22:31.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (cclive-0.2.3.tar.bz2) = 340a3270080efdac4f6e67d1c1503247
-SHA256 (cclive-0.2.3.tar.bz2) = df3c8517cef5c8d16a4f4f5572ca572b169f5d321c1018692cdabd36737225b6
-SIZE (cclive-0.2.3.tar.bz2) = 37914
+MD5 (cclive-0.2.4.tar.bz2) = 4ff5c3f225a2a926fd621944190f3c2a
+SHA256 (cclive-0.2.4.tar.bz2) = e03331f5ebe0e5e9f098e1d47eb3829a4dbda179267b4ac2cf11bddb1c345cd0
+SIZE (cclive-0.2.4.tar.bz2) = 41099
diff -ruN /usr/ports/multimedia/cclive/files/patch-Makefile cclive/files/patch-Makefile
--- /usr/ports/multimedia/cclive/files/patch-Makefile	2009-02-16 01:52:28.000000000 +0200
+++ cclive/files/patch-Makefile	2009-03-10 01:15:44.000000000 +0200
@@ -1,6 +1,6 @@
---- Makefile.orig	2009-02-15 18:25:44.000000000 +0200
-+++ Makefile	2009-02-15 18:27:39.000000000 +0200
-@@ -1,30 +1,26 @@
+--- Makefile.orig	2009-03-10 01:13:54.000000000 +0200
++++ Makefile	2009-03-10 01:15:18.000000000 +0200
+@@ -1,23 +1,20 @@
  # GNU Makefile for cclive.
  
 -SHELL = /bin/sh
@@ -29,23 +29,24 @@
  UNAME       = uname
  AWK         = awk
  CURL_CONFIG = curl-config
- GENGETOPT   = gengetopt
+@@ -25,10 +22,6 @@
  POD2MAN     = pod2man
+ PERL        = perl
  
 -WITH_MAN        = yes
- WITH_SIGWINCH   = yes
- 
+-WITH_SIGWINCH   = yes
+-WITH_PERL       = no
+-
  ifndef V
-@@ -40,14 +36,12 @@
+ QUIET_CC        = @echo '  ' CC $@;
+ QUIET_LINK      = @echo '  ' LINK $@;
+@@ -42,11 +35,9 @@
  CURL_CFLAGS  := $(shell sh -c "$(CURL_CONFIG) --cflags")
  CURL_LDFLAGS := $(shell sh -c "$(CURL_CONFIG) --libs")
  
 -CFLAGS      = -g -Wall
  ALL_CFLAGS  = -D_GNU_SOURCE -DOSNAME=\"$(OS_NAME)\" -I. $(CFLAGS)
  ALL_CFLAGS += $(CURL_CFLAGS)
- ifeq ($(WITH_SIGWINCH),yes)
- ALL_CFLAGS += -DWITH_SIGWINCH
- endif
  
 -LDFLAGS     =
  ALL_LDFLAGS = $(LDFLAGS)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Tue Mar 10 15:11:18 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132499 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sun Mar 22 14:48:59 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/132499: commit references a PR
Date: Sun, 22 Mar 2009 14:49:06 +0000 (UTC)

 miwi        2009-03-22 14:48:52 UTC
 
   FreeBSD ports repository
 
   Modified files:
     multimedia/cclive    Makefile distinfo 
     multimedia/cclive/files patch-Makefile 
   Log:
   - Update to  0.2.4
   
   PR:             132499
   Submitted by:   Toni Gundogdu <legatvs@gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.4       +19 -7     ports/multimedia/cclive/Makefile
   1.4       +3 -3      ports/multimedia/cclive/distinfo
   1.3       +11 -10    ports/multimedia/cclive/files/patch-Makefile
 _______________________________________________
 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:
