mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Update to 2013.11.06
- Update MASTER_SITES - Remove leading indefinite article from COMMENT - Convert to new options helper - Support STAGEDIR - Update pkg-message after multimedia/ffmpeg-devel removal - Update WWW PR: ports/183103 Submitted by: sunpoet (myself) Approved by: maintainer (timeout, 18 days)
This commit is contained in:
parent
6a48508e9e
commit
ea5e988ef0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333037
5 changed files with 26 additions and 43 deletions
|
@ -1,15 +1,13 @@
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= youtube_dl
|
PORTNAME= youtube_dl
|
||||||
PORTVERSION= 2013.09.24.2
|
PORTVERSION= 2013.11.06
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://youtube-dl.org/downloads/${PORTVERSION}/ \
|
MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/
|
||||||
http://ftp.de.netbsd.org/pub/unix/Linux/MIRROR.gentoo/distfiles/
|
|
||||||
DISTNAME= youtube-dl-${PORTVERSION}
|
DISTNAME= youtube-dl-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= araujo@FreeBSD.org
|
MAINTAINER= araujo@FreeBSD.org
|
||||||
COMMENT= A program for downloading videos from YouTube.com
|
COMMENT= Program for downloading videos from YouTube.com
|
||||||
|
|
||||||
LICENSE= UNLICENSE
|
LICENSE= UNLICENSE
|
||||||
LICENSE_NAME= The Unlicense
|
LICENSE_NAME= The Unlicense
|
||||||
|
@ -32,36 +30,23 @@ PLIST_FILES= bin/youtube-dl \
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/youtube-dl
|
WRKSRC= ${WRKDIR}/youtube-dl
|
||||||
|
|
||||||
|
BASH_PLIST_FILES= etc/bash_completion.d/youtube-dl.sh
|
||||||
|
FFMPEG_RUN_DEPENDS= ${LOCALBASE}/bin/ffprobe:${PORTSDIR}/multimedia/ffmpeg
|
||||||
|
RTMPDUMP_RUN_DEPENDS= ${LOCALBASE}/bin/rtmpdump:${PORTSDIR}/multimedia/rtmpdump
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MRTMPDUMP}
|
|
||||||
RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MBASH}
|
|
||||||
PLIST_FILES+= etc/bash_completion.d/youtube-dl.sh
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MFFMPEG}
|
|
||||||
RUN_DEPENDS+= ffprobe:${PORTSDIR}/multimedia/ffmpeg
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@# remove tarball provided version, build our own
|
@# remove tarball provided version, build our own
|
||||||
@${RM} -f ${WRKSRC}/youtube-dl
|
@${RM} -f ${WRKSRC}/youtube-dl
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${STAGEDIR}${PREFIX}/bin/youtube-dl
|
${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${STAGEDIR}${PREFIX}/bin/youtube-dl
|
||||||
@${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${STAGEDIR}${PREFIX}/man/man1
|
${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${STAGEDIR}${PREFIX}/man/man1/
|
||||||
.if ${PORT_OPTIONS:MBASH}
|
.if ${PORT_OPTIONS:MBASH}
|
||||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
||||||
${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \
|
${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \
|
||||||
${STAGEDIR}${PREFIX}/etc/bash_completion.d/youtube-dl.sh
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d/youtube-dl.sh
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MFFMPEG}
|
|
||||||
post-install:
|
|
||||||
@${CAT} ${PKGMESSAGE}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (youtube-dl-2013.09.24.2.tar.gz) = 0ff095bd09f30c7c77758f6a74feaf163b88b06eefed5b865caedcf4623f7708
|
SHA256 (youtube-dl-2013.11.06.tar.gz) = 2cc981d150757272e5d739a098cbdd3165bdbad64832854e955e3ac918aa6631
|
||||||
SIZE (youtube-dl-2013.09.24.2.tar.gz) = 392769
|
SIZE (youtube-dl-2013.11.06.tar.gz) = 452887
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
--- Makefile 2013-07-02 05:35:23.000000000 +0000
|
--- Makefile.orig 2013-10-17 06:55:06.000000000 +0800
|
||||||
+++ Makefile.new 2013-06-14 23:10:06.000000000 +0000
|
+++ Makefile 2013-10-26 18:28:59.588795031 +0800
|
||||||
@@ -9,19 +9,9 @@
|
@@ -10,17 +10,7 @@
|
||||||
PREFIX=/usr/local
|
|
||||||
BINDIR=$(PREFIX)/bin
|
BINDIR=$(PREFIX)/bin
|
||||||
MANDIR=$(PREFIX)/man
|
MANDIR=$(PREFIX)/man
|
||||||
+SYSCONFDIR=/etc
|
|
||||||
PYTHON=/usr/bin/env python
|
PYTHON=/usr/bin/env python
|
||||||
|
-
|
||||||
-# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
|
-# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
|
||||||
-ifeq ($(PREFIX),/usr)
|
-ifeq ($(PREFIX),/usr)
|
||||||
- SYSCONFDIR=/etc
|
- SYSCONFDIR=/etc
|
||||||
|
@ -17,7 +15,7 @@
|
||||||
- SYSCONFDIR=$(PREFIX)/etc
|
- SYSCONFDIR=$(PREFIX)/etc
|
||||||
- endif
|
- endif
|
||||||
-endif
|
-endif
|
||||||
-
|
+SYSCONFDIR=/etc
|
||||||
|
|
||||||
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
|
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
|
||||||
install -d $(DESTDIR)$(BINDIR)
|
install -d $(DESTDIR)$(BINDIR)
|
||||||
install -m 755 youtube-dl $(DESTDIR)$(BINDIR)
|
|
||||||
|
|
|
@ -2,4 +2,4 @@ youtube-dl is a small command-line program for downloading videos
|
||||||
from YouTube.com, metacafe.com, google video, photobucket videos,
|
from YouTube.com, metacafe.com, google video, photobucket videos,
|
||||||
yahoo videos, dailymotion and others
|
yahoo videos, dailymotion and others
|
||||||
|
|
||||||
WWW: http://rg3.github.com/youtube-dl/
|
WWW: http://rg3.github.io/youtube-dl/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
If you want to use mp3 audio conversion please make sure multimedia/ffmpeg or
|
If you want to use mp3 audio conversion please make sure multimedia/ffmpeg is
|
||||||
multimedia/ffmpeg-devel is built with the "LAME" option enabled.
|
built with the "LAME" option enabled.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue