Date: Sat, 27 Jun 2015 09:13:57 +0000 (UTC) From: Nicola Vitale <nivit@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390693 - in head/multimedia/mps-youtube: . files Message-ID: <201506270913.t5R9Dv3a038773@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nivit Date: Sat Jun 27 09:13:56 2015 New Revision: 390693 URL: https://svnweb.freebsd.org/changeset/ports/390693 Log: - Update to 0.2.5 - Change Python version to 3.2+ because Python 2 is no longer supported - Add a patch to setup.py to install .desktop file (required for MPRIS support) - Add a wrapper script to pass the environment variable SSL_CERT_FILE, otherwise any video search fails with <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> Relnotes: https://github.com/mps-youtube/mps-youtube/releases/tag/v0.2.5 Added: head/multimedia/mps-youtube/files/mps-youtube.in (contents, props changed) head/multimedia/mps-youtube/files/patch-setup.py (contents, props changed) Deleted: head/multimedia/mps-youtube/files/patch-mps__youtube_main.py Modified: head/multimedia/mps-youtube/Makefile head/multimedia/mps-youtube/distinfo Modified: head/multimedia/mps-youtube/Makefile ============================================================================== --- head/multimedia/mps-youtube/Makefile Sat Jun 27 08:30:16 2015 (r390692) +++ head/multimedia/mps-youtube/Makefile Sat Jun 27 09:13:56 2015 (r390693) @@ -2,10 +2,11 @@ # $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 @@ -13,7 +14,7 @@ COMMENT= Terminal based YouTube jukebox 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 @@ -34,12 +35,14 @@ 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 <bsd.port.mk> Modified: head/multimedia/mps-youtube/distinfo ============================================================================== --- head/multimedia/mps-youtube/distinfo Sat Jun 27 08:30:16 2015 (r390692) +++ head/multimedia/mps-youtube/distinfo Sat Jun 27 09:13:56 2015 (r390693) @@ -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 Added: head/multimedia/mps-youtube/files/mps-youtube.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/mps-youtube/files/mps-youtube.in Sat Jun 27 09:13:56 2015 (r390693) @@ -0,0 +1,4 @@ +#!/bin/sh +SSL_CERT_FILE='/etc/ssl/cert.pem' +export SSL_CERT_FILE +exec mpsyt ${1+"$@"} Added: head/multimedia/mps-youtube/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/mps-youtube/files/patch-setup.py Sat Jun 27 09:13:56 2015 (r390693) @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506270913.t5R9Dv3a038773>