Date: Thu, 3 Mar 2022 11:22:34 GMT From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ace043e1a644 - main - www/persepolis: the port had been slightly improved (+) Message-ID: <202203031122.223BMYwL053314@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=ace043e1a64419eac4bf50459bf3852085df7362 commit ace043e1a64419eac4bf50459bf3852085df7362 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2022-03-03 11:21:34 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2022-03-03 11:21:34 +0000 www/persepolis: the port had been slightly improved (+) - Use `www/yt-dlp' as drop-in replacement for youtube-dl - Preserve remote modification time of downloaded files - Amend CATEGORIES and run-time dependencies while here --- www/persepolis/Makefile | 8 +++++++- .../patch-persepolis_scripts_video__finder__addlink.py | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/www/persepolis/Makefile b/www/persepolis/Makefile index b0ece16d2c01..e6587368f0cd 100644 --- a/www/persepolis/Makefile +++ b/www/persepolis/Makefile @@ -2,7 +2,7 @@ PORTNAME= persepolis PORTVERSION= 3.2.0 -CATEGORIES= www net ftp +CATEGORIES= www net ftp python MAINTAINER= danfe@FreeBSD.org COMMENT= Graphical download manager (GUI for Aria2) @@ -15,6 +15,7 @@ BUILD_DEPENDS= aria2c:www/aria2 ffmpeg:multimedia/ffmpeg \ ${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR} \ ${LOCALBASE}/share/sounds/freedesktop/stereo/complete.oga:audio/freedesktop-sound-theme RUN_DEPENDS:= ${BUILD_DEPENDS} \ + xdg-mime:devel/xdg-utils yt-dlp:www/yt-dlp \ ${PYTHON_PKGNAMEPREFIX}PyOgg>0:audio/py-pyogg@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} @@ -25,4 +26,9 @@ USE_PYQT= pyqt5 USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME}dm +# Preserve remote (as on server) modification time of downloaded files +post-patch: + @${REINPLACE_CMD} -e "/aria2c/s/--no-conf/&', '-R/" \ + ${WRKSRC}/persepolis/scripts/download.py + .include <bsd.port.mk> diff --git a/www/persepolis/files/patch-persepolis_scripts_video__finder__addlink.py b/www/persepolis/files/patch-persepolis_scripts_video__finder__addlink.py new file mode 100644 index 000000000000..f04d264c6e3c --- /dev/null +++ b/www/persepolis/files/patch-persepolis_scripts_video__finder__addlink.py @@ -0,0 +1,15 @@ +--- persepolis/scripts/video_finder_addlink.py.orig 2019-09-16 20:45:38 UTC ++++ persepolis/scripts/video_finder_addlink.py +@@ -24,9 +24,11 @@ from time import time, sleep + from functools import partial + from random import random + from copy import deepcopy +-import youtube_dl + import re + import os ++import sys ++sys.path.append('/usr/local/bin/yt-dlp') ++import yt_dlp as youtube_dl + + # write youtube_dl version in log + logger.sendToLog('youtube_dl version: '
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203031122.223BMYwL053314>