Index: head/multimedia/mps-youtube/Makefile =================================================================== --- head/multimedia/mps-youtube/Makefile (revision 390692) +++ head/multimedia/mps-youtube/Makefile (revision 390693) @@ -1,45 +1,48 @@ # Created by: Nicola Vitale # $FreeBSD$ PORTNAME= mps-youtube -PORTVERSION= 0.2.3 +PORTVERSION= 0.2.5 PORTREVISION= 0 CATEGORIES= multimedia MASTER_SITES= CHEESESHOP +DISTFILES= ${PORTNAME}-${PORTVERSION}-2.tar.gz MAINTAINER= nivit@FreeBSD.org COMMENT= Terminal based YouTube jukebox with playlist management LICENSE= GPLv3 RUN_DEPENDS= ca_root_nss>=3.17.3:${PORTSDIR}/security/ca_root_nss \ - ${PYTHON_PKGNAMEPREFIX}pafy>=0.3.72:${PORTSDIR}/www/py-pafy + ${PYTHON_PKGNAMEPREFIX}pafy>=0.3.74:${PORTSDIR}/www/py-pafy CONVERTER_DESC= Converter to MP3 and other formats FFMPEG_RUN_DEPENDS= ffmpeg>=2.3.6:${PORTSDIR}/multimedia/ffmpeg LIBAV_DESC= Realtime audio/video conversion library LIBAV_RUN_DEPENDS= libav>=11.2:${PORTSDIR}/multimedia/libav MPLAYER_RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer MPV_DESC= Free and open-source general-purpose video player MPV_RUN_DEPENDS= mpv:${PORTSDIR}/multimedia/mpv OPTIONS_DEFAULT= MPV OPTIONS_RADIO= CONVERTER OPTIONS_RADIO_CONVERTER= FFMPEG LIBAV OPTIONS_SINGLE= PLAYER OPTIONS_SINGLE_PLAYER= MPLAYER MPV PLAYER_DESC= Video player +PLIST_FILES= bin/${PORTNAME} -USES= python +SUB_FILES= ${PORTNAME} + +USES= python:3.2+ USE_PYTHON= autoplist distutils -post-patch: - @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},1' \ - ${WRKSRC}/mps_youtube/main.py +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME} .include Index: head/multimedia/mps-youtube/distinfo =================================================================== --- head/multimedia/mps-youtube/distinfo (revision 390692) +++ head/multimedia/mps-youtube/distinfo (revision 390693) @@ -1,2 +1,2 @@ -SHA256 (mps-youtube-0.2.3.tar.gz) = 7a0d0f6df4793d8ebf49cf323426ec802cf4f6013078513e09fc0c790e96867c -SIZE (mps-youtube-0.2.3.tar.gz) = 47439 +SHA256 (mps-youtube-0.2.5-2.tar.gz) = 13ff7a5748174a40c64429a2a59de7a058efdd35c58683f30c694725a02474ef +SIZE (mps-youtube-0.2.5-2.tar.gz) = 54835 Index: head/multimedia/mps-youtube/files/patch-mps__youtube_main.py =================================================================== --- head/multimedia/mps-youtube/files/patch-mps__youtube_main.py (revision 390692) +++ head/multimedia/mps-youtube/files/patch-mps__youtube_main.py (nonexistent) @@ -1,13 +0,0 @@ ---- mps_youtube/main.py.orig 2015-01-25 16:46:50 UTC -+++ mps_youtube/main.py -@@ -856,6 +856,10 @@ def init(): - init_cache() - init_transcode() - -+ # see https://github.com/np1/mps-youtube/issues/179 -+ if 34015728 <= sys.hexversion and not 'SSL_CERT_FILE' in os.environ: -+ os.environ['SSL_CERT_FILE'] = '%%LOCALBASE%%/share/certs/ca-root-nss.crt' -+ - # set player to mpv or mplayer if found, otherwise unset - E = os.path.exists - suffix = ".exe" if mswin else "" Property changes on: head/multimedia/mps-youtube/files/patch-mps__youtube_main.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/multimedia/mps-youtube/files/mps-youtube.in =================================================================== --- head/multimedia/mps-youtube/files/mps-youtube.in (nonexistent) +++ head/multimedia/mps-youtube/files/mps-youtube.in (revision 390693) @@ -0,0 +1,4 @@ +#!/bin/sh +SSL_CERT_FILE='/etc/ssl/cert.pem' +export SSL_CERT_FILE +exec mpsyt ${1+"$@"} Property changes on: head/multimedia/mps-youtube/files/mps-youtube.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/mps-youtube/files/patch-setup.py =================================================================== --- head/multimedia/mps-youtube/files/patch-setup.py (nonexistent) +++ head/multimedia/mps-youtube/files/patch-setup.py (revision 390693) @@ -0,0 +1,13 @@ +--- setup.py.orig 2015-06-27 09:00:49 UTC ++++ setup.py +@@ -55,8 +55,8 @@ options = dict( + long_description=open("README.rst").read() + ) + +-if sys.platform.startswith('linux'): +- # Install desktop file. Required for mpris on Ubuntu ++if sys.platform.startswith(('freebsd', 'linux')): ++ # Install desktop file. Required for mpris on FreeBSD and Ubuntu + options['data_files'] = [('share/applications/', ['mps-youtube.desktop'])] + + try: Property changes on: head/multimedia/mps-youtube/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property