From 7e2def7f13f370d6ea949ed44cdd01fb67b217a6 Mon Sep 17 00:00:00 2001 From: ryoon Date: Sat, 20 Jul 2013 05:07:15 +0000 Subject: Update to 20130719 * Use tarball, and install man page and bash stuff. Changelog: unknown. --- net/youtube-dl/Makefile | 24 ++++++++---------------- net/youtube-dl/PLIST | 4 +++- net/youtube-dl/distinfo | 9 +++++---- net/youtube-dl/patches/patch-Makefile | 17 +++++++++++++++++ 4 files changed, 33 insertions(+), 21 deletions(-) create mode 100644 net/youtube-dl/patches/patch-Makefile (limited to 'net') diff --git a/net/youtube-dl/Makefile b/net/youtube-dl/Makefile index 9cee36bfcdf..ea3b496ec74 100644 --- a/net/youtube-dl/Makefile +++ b/net/youtube-dl/Makefile @@ -1,12 +1,10 @@ -# $NetBSD: Makefile,v 1.40 2013/06/09 01:52:47 ryoon Exp $ +# $NetBSD: Makefile,v 1.41 2013/07/20 05:07:15 ryoon Exp $ -VERSION_DATE= 2013.05.23 -DISTNAME= youtube-dl +VERSION_DATE= 2013.07.19 +DISTNAME= youtube-dl-${VERSION_DATE} PKGNAME= youtube-dl-${VERSION_DATE:S/.//g} CATEGORIES= net MASTER_SITES= http://youtube-dl.org/downloads/${VERSION_DATE}/ -EXTRACT_SUFX= # none -DIST_SUBDIR= ${PKGNAME_NOREV} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://rg3.github.com/youtube-dl/ @@ -15,21 +13,15 @@ LICENSE= public-domain USE_LANGUAGES= # none NO_BUILD= yes -WRKSRC= ${WRKDIR} +WRKSRC= ${WRKDIR}/youtube-dl +USE_TOOLS+= gmake -INSTALLATION_DIRS= bin +REPLACE_PYTHON= youtube-dl -REPLACE_PYTHON+= ${DISTNAME} +MAKE_FLAGS+= PREFIX=${PREFIX} \ + BASHCOMPDIR=${PREFIX}/share/bash-completion/completions .include "../../mk/bsd.prefs.mk" -# Force using "curl" for fetching the distribution file. It is only available -# over HTTPS and "curl" is the only fetch program which always supports HTTPS. -#FETCH_USING= curl - -do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} \ - ${DESTDIR}${PREFIX}/bin/youtube-dl - .include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/youtube-dl/PLIST b/net/youtube-dl/PLIST index 27d68253307..563ffd53704 100644 --- a/net/youtube-dl/PLIST +++ b/net/youtube-dl/PLIST @@ -1,2 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2007/09/05 21:14:30 wiz Exp $ +@comment $NetBSD: PLIST,v 1.2 2013/07/20 05:07:15 ryoon Exp $ bin/youtube-dl +man/man1/youtube-dl.1 +share/bash-completion/completions/youtube-dl diff --git a/net/youtube-dl/distinfo b/net/youtube-dl/distinfo index 1f05dfce6fc..79e633c15d7 100644 --- a/net/youtube-dl/distinfo +++ b/net/youtube-dl/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.31 2013/06/09 01:52:47 ryoon Exp $ +$NetBSD: distinfo,v 1.32 2013/07/20 05:07:15 ryoon Exp $ -SHA1 (youtube-dl-20130523/youtube-dl) = 5c800da45720b8db66e13ffd5a8b04ccd0ab51db -RMD160 (youtube-dl-20130523/youtube-dl) = b4b880411d96cb68eedd295f4a5d172946d62a49 -Size (youtube-dl-20130523/youtube-dl) = 72051 bytes +SHA1 (youtube-dl-2013.07.19.tar.gz) = 2585bb3b86060c7b748a05627ad4b0bed71b6728 +RMD160 (youtube-dl-2013.07.19.tar.gz) = faee7d3da687a579a08c0ffc3729dc6e1bc9b3d6 +Size (youtube-dl-2013.07.19.tar.gz) = 293354 bytes +SHA1 (patch-Makefile) = 84f9104c8202e7c4f9e58158e20887d45cb4664c diff --git a/net/youtube-dl/patches/patch-Makefile b/net/youtube-dl/patches/patch-Makefile new file mode 100644 index 00000000000..8ff086b3909 --- /dev/null +++ b/net/youtube-dl/patches/patch-Makefile @@ -0,0 +1,17 @@ +$NetBSD: patch-Makefile,v 1.1 2013/07/20 05:07:15 ryoon Exp $ + +* Fix bash-completion path. + +--- Makefile.orig 2013-07-02 05:35:23.000000000 +0000 ++++ Makefile +@@ -27,8 +27,8 @@ install: youtube-dl youtube-dl.1 youtube + install -m 755 youtube-dl $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(MANDIR)/man1 + install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1 +- install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d +- install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl ++ install -d $(DESTDIR)${BASHCOMPDIR} ++ install -m 644 youtube-dl.bash-completion $(DESTDIR)${BASHCOMPDIR}/youtube-dl + + test: + #nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test -- cgit v1.2.3