Update to youtube-dl-2012.09.27: unbreak after recent YouTube changes

OK sthen@, pirofti@ (maintainer)
This commit is contained in:
dcoppa 2012-10-01 08:57:12 +00:00
parent ab29be00f1
commit b94b9f9c1f
5 changed files with 54 additions and 30 deletions

View File

@ -1,11 +1,10 @@
# $OpenBSD: Makefile,v 1.29 2012/03/07 22:00:07 dcoppa Exp $
# $OpenBSD: Makefile,v 1.30 2012/10/01 08:57:12 dcoppa Exp $
COMMENT = command-line program to download videos from YouTube.com
V = 2012.02.27
DISTNAME = youtube-dl-${V}
WRKDIST = ${WRKDIR}/youtube-dl
DIST_SUBDIR = youtube-dl
MODPY_EGG_VERSION = 2012.09.27
DISTNAME = youtube-dl-${MODPY_EGG_VERSION}
CATEGORIES = www
HOMEPAGE = http://rg3.github.com/youtube-dl/
@ -19,27 +18,18 @@ PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://spacehopper.org/mirrors/
#MASTER_SITES = http://bitbucket.org/rg3/youtube-dl/get/
EXTRACT_ONLY =
EXTRACT_SUFX =
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
MODPY_BADEGGS = youtube-dl
NO_REGRESS = Yes
PKG_ARCH = *
do-extract:
mkdir ${WRKDIST}
cp ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKDIST}/youtube-dl
do-build:
sed '1s,.*,#!${MODPY_BIN},' ${WRKBUILD}/youtube-dl \
>${WRKBUILD}/youtube-dl.new
mv ${WRKBUILD}/youtube-dl.new ${WRKBUILD}/youtube-dl
do-install:
${INSTALL_SCRIPT} ${WRKBUILD}/youtube-dl ${PREFIX}/bin
pre-configure:
@cp ${FILESDIR}/setup.py ${WRKSRC}/
.include <bsd.port.mk>

View File

@ -1,5 +1,2 @@
MD5 (youtube-dl/youtube-dl-2012.02.27) = vS8dsvPtr8vyB/q4BdNuIw==
RMD160 (youtube-dl/youtube-dl-2012.02.27) = TFxHeLi/CyitVwzkapeMN2jT0kw=
SHA1 (youtube-dl/youtube-dl-2012.02.27) = X564nZVnDI91J8yehMjLCicHUmM=
SHA256 (youtube-dl/youtube-dl-2012.02.27) = mBRqUQ/tPTmjSmhuEQDW3076K5ueGUZJ5hWvwf9kaDQ=
SIZE (youtube-dl/youtube-dl-2012.02.27) = 159848
SHA256 (youtube-dl-2012.09.27.tar.gz) = pNpWrYLiAEkIHVIA54CCqzEBh2lxYGYRBFPFIlNWZZg=
SIZE (youtube-dl-2012.09.27.tar.gz) = 38920

View File

@ -0,0 +1,18 @@
# $OpenBSD: setup.py,v 1.1 2012/10/01 08:57:12 dcoppa Exp $
from youtube_dl import __version__
from setuptools import setup
setup(
name = 'youtube-dl',
version = __version__,
description = 'YouTube downloader',
url = 'http://rg3.github.com/youtube-dl/',
author = 'Ricardo Garcia',
author_email = 'public@rg3.name',
keywords = ['YouTube', 'downloader'],
license = 'Public Domain',
packages = ['youtube_dl'],
entry_points = {'console_scripts': ['youtube-dl = youtube_dl:main']}
)

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-youtube-dl,v 1.9 2012/03/07 22:00:07 dcoppa Exp $
--- youtube-dl.orig Wed Mar 7 14:51:21 2012
+++ youtube-dl Wed Mar 7 14:52:02 2012
@@ -899,7 +899,7 @@ class FileDownloader(object):
$OpenBSD: patch-youtube_dl_FileDownloader_py,v 1.1 2012/10/01 08:57:12 dcoppa Exp $
--- youtube_dl/FileDownloader.py.orig Sat Sep 29 18:31:36 2012
+++ youtube_dl/FileDownloader.py Sat Sep 29 18:31:44 2012
@@ -511,7 +511,7 @@ class FileDownloader(object):
# Download using rtmpdump. rtmpdump returns exit code 2 when
# the connection was interrumpted and resuming appears to be
# possible. This is part of rtmpdump's normal usage, AFAIK.

View File

@ -1,2 +1,21 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/26 19:30:51 pirofti Exp $
@comment $OpenBSD: PLIST,v 1.2 2012/10/01 08:57:12 dcoppa Exp $
bin/youtube-dl
lib/python${MODPY_VERSION}/site-packages/youtube_dl/
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/youtube_dl/FileDownloader.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/FileDownloader.pyc
lib/python${MODPY_VERSION}/site-packages/youtube_dl/InfoExtractors.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/InfoExtractors.pyc
lib/python${MODPY_VERSION}/site-packages/youtube_dl/PostProcessor.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/PostProcessor.pyc
lib/python${MODPY_VERSION}/site-packages/youtube_dl/__init__.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/youtube_dl/__main__.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/__main__.pyc
lib/python${MODPY_VERSION}/site-packages/youtube_dl/utils.py
lib/python${MODPY_VERSION}/site-packages/youtube_dl/utils.pyc