From nobody Thu Mar 03 11:22:34 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A0DAA19F060B; Thu, 3 Mar 2022 11:22:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K8T9Q4B2jz4nNk; Thu, 3 Mar 2022 11:22:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646306554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PIS5x8vwOj9zX9XDKTSPSjPGU3BknrXdZzBmNa8LRXk=; b=t2Y5XXUTbnyNc+WMWOGFl0UMrjEbKYTSzMllYNRpSFgi5CAtxm2PQHQNyOB6VoJcHYoQVk q6SrUfxit/3misV25Nfe+DWTvl0BjuLN9Cq+WkOS1y8kOzLyXrL4lmo5bUiwFdXLF+jcTl Z5xZeiGoCZewxYmOusZQLnNC/mvDPjHxnuEbp6HMUdDypPxoqtWy9Xp0ZJZpmb1MowBUz/ hfo5/WYCsIoEAiFcqBmSBCVPDW7PuR3oEjbCEYKJ/VX0HKx1zxqFb8yKz1DdFOKOSykCvA hUMvDNct9MUz0HX2RN7jPCiGBJzaObJdvzmMk2ViZqsF3fLtj6fZA2M3v9Q21g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7075616FE4; Thu, 3 Mar 2022 11:22:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 223BMY2g053315; Thu, 3 Mar 2022 11:22:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 223BMYwL053314; Thu, 3 Mar 2022 11:22:34 GMT (envelope-from git) Date: Thu, 3 Mar 2022 11:22:34 GMT Message-Id: <202203031122.223BMYwL053314@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: ace043e1a644 - main - www/persepolis: the port had been slightly improved (+) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ace043e1a64419eac4bf50459bf3852085df7362 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646306554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PIS5x8vwOj9zX9XDKTSPSjPGU3BknrXdZzBmNa8LRXk=; b=J5FzysQIvrCL2y2zAeVCMRk4g7W7pW+RoLG1etGR6fFw8CTOQzblb68emu4DkDhOvDKrcV rWHY/JXyKX0wrBLWW3r5z+ljfxt3pFow5hWMQk/W5+Bw6y1p6ZeAY+fT+lvDDcevCWCvFm wKKpGebmMWXnZatlXInTrmFEf7QhaAVSx92meYbzJcAgBFeHX4zct9iZJwaxLKKSanc4ob HWW4QNIhvGibHbH8lR7LDZiNi9giOPhkPKmCp3+kz4GuJiUW4GSaqjeyphzwVD+Qn7YQx9 36JEOSA1Cj+eskboNCzCnNHdiurJvQl5tRbcJ+5y0ivxiYQ5tePa1ssIqEhg/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646306554; a=rsa-sha256; cv=none; b=AufDGKuomKl95NaVtu3WbDZMu8uU2u0yLyuBY+C0fiol4PS3bwCvLrNUctPGFQbR0Xxtta g0nk/xBHoYDZ49qBgGBCK+CBiCzPDKrwn5hiTN9JQYDrBwBl8H5bLdnxKNFCOphoq6KSmy ZYNUsjjBJIT5s9M1ZjKfpo0rh4EgEHLXtBbhzcRfvC523iG0YZxdaCLBKS1B5cUf8kzvMf NNS+4rvFLQP7O15/e0CNqCuEBpZkkH41y9JGriCDuOn42/YvIX007Sb/Im1IjYu/hX/SUx HmqifNlPNB1BO+xvi75GW6I4KssM3d/8e4f1a1DT+vmyIna0tsE6DBy5AlQV9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=ace043e1a64419eac4bf50459bf3852085df7362 commit ace043e1a64419eac4bf50459bf3852085df7362 Author: Alexey Dokuchaev AuthorDate: 2022-03-03 11:21:34 +0000 Commit: Alexey Dokuchaev 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 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: '