From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 15 15:10:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 19946F7C for ; Sat, 15 Dec 2012 15:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E520A8FC16 for ; Sat, 15 Dec 2012 15:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBFFA086025687 for ; Sat, 15 Dec 2012 15:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBFFA0LJ025683; Sat, 15 Dec 2012 15:10:00 GMT (envelope-from gnats) Resent-Date: Sat, 15 Dec 2012 15:10:00 GMT Resent-Message-Id: <201212151510.qBFFA0LJ025683@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Po-Chien Lin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68D38F65; Sat, 15 Dec 2012 15:08:55 +0000 (UTC) (envelope-from root@tbbs2.cs.nctu.edu.tw) Received: from tbbs2.cs.nctu.edu.tw (tbbs2.cs.nctu.edu.tw [140.113.17.227]) by mx1.freebsd.org (Postfix) with ESMTP id 00A4B8FC15; Sat, 15 Dec 2012 15:08:53 +0000 (UTC) Received: by tbbs2.cs.nctu.edu.tw (Postfix, from userid 0) id 5CA2CCF142; Sat, 15 Dec 2012 23:00:40 +0800 (CST) Message-Id: <20121215150040.5CA2CCF142@tbbs2.cs.nctu.edu.tw> Date: Sat, 15 Dec 2012 23:00:40 +0800 (CST) From: Po-Chien Lin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/174455: [PATCH] www/youtube_dl: update to 2012.12.11, convert to OptionsNG Cc: araujo@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 15:10:01 -0000 >Number: 174455 >Category: ports >Synopsis: [PATCH] www/youtube_dl: update to 2012.12.11, convert to OptionsNG >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Dec 15 15:10:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Po-Chien Lin >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD tbbs2.cs.nctu.edu.tw 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r244168: Thu Dec 13 14:40:38 CST >Description: - Update to 2012.12.11 - The author said they changed distribution method, "The new location of the binaries is https://github.com/rg3/youtube-dl/downloads, not the git repository.", so discard the use of USE_GITHUB. - Covert to OptionsNG. >How-To-Repeat: >Fix: --- youtube_dl-2012.12.11.patch begins here --- diff -ruN --exclude=CVS ../youtube_dl.orig/Makefile ./Makefile --- ../youtube_dl.orig/Makefile 2012-12-15 18:31:15.000000000 +0800 +++ ./Makefile 2012-12-15 22:45:49.000000000 +0800 @@ -1,12 +1,11 @@ # $FreeBSD: ports/www/youtube_dl/Makefile,v 1.66 2012/11/17 06:03:13 svnexp Exp $ PORTNAME= youtube_dl -PORTVERSION= 2012.09.27 +PORTVERSION= 2012.12.11 CATEGORIES= www -MASTER_SITES= GH \ - CRITICAL - -EXTRACT_SUFX= # empty +MASTER_SITES= https://cloud.github.com/downloads/rg3/youtube-dl/ \ + CRITICAL +DISTNAME= youtube-dl.${PORTVERSION} MAINTAINER= araujo@FreeBSD.org COMMENT= A program for downloading videos from YouTube.com @@ -16,24 +15,32 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip USE_PYTHON_RUN= 2.6-2.7 -ALL_TARGET= compile -USE_GITHUB= yes -GH_ACCOUNT= rg3 -GH_PROJECT= youtube-dl -GH_COMMIT= b5de8af +ALL_TARGET= youtube-dl + +OPTIONS_DEFINE= BASH RTMPDUMP FFMPEG +OPTIONS_DEFAULT=RTMPDUMP + +BASH_DESC= Install programmable completions for Bash +RTMPDUMP_DESC= Use RTMPDUMP to download rtmp video streams +FFMPEG_DESC= Use ffmpeg (required for audio conversion) PLIST_FILES= bin/youtube-dl +MAN1= youtube-dl.1 -OPTIONS= RTMPDUMP "Use RTMPDUMP to download rtmp video streams" on \ - FFMPEG "Use ffmpeg (required for audio conversion)" off +WRKSRC= ${WRKDIR}/youtube-dl .include -.if defined(WITH_RTMPDUMP) +.if ${PORT_OPTIONS:MRTMPDUMP} RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump .endif -.if defined(WITH_FFMPEG) +.if ${PORT_OPTIONS:MBASH} +ALL_TARGET+= youtube-dl.bash-completion +PLIST_FILES+= etc/bash_completion.d/youtube-dl.sh +.endif + +.if ${PORT_OPTIONS:MFFMPEG} # allow either multimedia/ffmpeg or multimedia/ffmpeg-devel . if exists(${LOCALBASE}/include/libavcodec/vda.h) RUN_DEPENDS+= ffprobe:${PORTSDIR}/multimedia/ffmpeg-devel @@ -44,8 +51,14 @@ do-install: @${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl + @${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${PREFIX}/man/man1 +.if ${PORT_OPTIONS:MBASH} + ${MKDIR} ${PREFIX}/etc/bash_completion.d + ${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \ + ${PREFIX}/etc/bash_completion.d/youtube-dl.sh +.endif -.if defined(WITH_FFMPEG) +.if ${PORT_OPTIONS:MFFMPEG} post-install: @${CAT} ${PKGMESSAGE} .endif diff -ruN --exclude=CVS ../youtube_dl.orig/distinfo ./distinfo --- ../youtube_dl.orig/distinfo 2012-12-15 18:31:15.000000000 +0800 +++ ./distinfo 2012-12-15 22:32:58.000000000 +0800 @@ -1,2 +1,2 @@ -SHA256 (youtube_dl-2012.09.27) = 45e88c1a5b81e633bddd43d5363e7ade92af2eeb534c37a5170f4b68d73605ea -SIZE (youtube_dl-2012.09.27) = 2874838 +SHA256 (youtube-dl.2012.12.11.tar.gz) = b6d259c60fefba76701ea0ea7b34c99169fc2644ce1d89ad10213a70d11ffb0f +SIZE (youtube-dl.2012.12.11.tar.gz) = 120301 --- youtube_dl-2012.12.11.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: