1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

multimedia/minitube: update to 3.5

A patch to update to 3.4.2 existed in PR #247246
This commit is contained in:
Fernando Apesteguía 2020-08-10 17:35:55 +00:00
parent dd6a8fe9f4
commit 5991ca35a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544633
6 changed files with 33 additions and 25 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= minitube
DISTVERSION= 2.9
PORTREVISION= 5
DISTVERSION= 3.5
CATEGORIES= multimedia www
MAINTAINER= ports@FreeBSD.org
@ -11,12 +10,19 @@ COMMENT= TV-like client for YouTube
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libmpv.so:multimedia/mpv
USES= compiler:c++11-lang gl qmake qt:5
USE_GITHUB= yes
GH_ACCOUNT= flaviotordini
GH_TUPLE= flaviotordini:http:92fd16a:http/lib/http \
flaviotordini:idle:6aa092d:idle/lib/idle \
flaviotordini:media:0d07cad:media/lib/media
USE_GL= gl
USE_QT= core dbus declarative gui network phonon4 script sql widgets \
buildtools_build imageformats_run sql-sqlite3_run
USE_QT= core dbus declarative gui network script sql widgets \
buildtools_build imageformats_run sql-sqlite3_run \
x11extras
QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE} \
DEFINES+=APP_GOOGLE_API_KEY="${MINITUBE_GOOGLE_API_KEY}"
@ -29,8 +35,6 @@ post-patch:
# Remove BOM
@${REINPLACE_CMD} -e '1 s|^.*/|/|g' \
${WRKSRC}/src/aggregatevideosource.cpp
@${REINPLACE_CMD} -e 's|/usr/include|/usr/local/include|g' \
${WRKSRC}/minitube.pro
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/include(locale\/locale.pri)/d' ${WRKSRC}/minitube.pro

View File

@ -1,3 +1,9 @@
TIMESTAMP = 1518753952
SHA256 (flaviotordini-minitube-2.9_GH0.tar.gz) = 0f51fb86d0fdfbcf00af142868ceeacb6c27eb8a1e36d856162e23d63e90eb07
SIZE (flaviotordini-minitube-2.9_GH0.tar.gz) = 1000060
TIMESTAMP = 1597081657
SHA256 (flaviotordini-minitube-3.5_GH0.tar.gz) = 1867e3f2132029dd48f293886f80eb029ae3bc970a6d70c67a170091678777c0
SIZE (flaviotordini-minitube-3.5_GH0.tar.gz) = 1256189
SHA256 (flaviotordini-http-92fd16a_GH0.tar.gz) = 3af66d8584766f65db697e55ace4b8667ecc918b72ae0ec3cf4d968c690f118d
SIZE (flaviotordini-http-92fd16a_GH0.tar.gz) = 10253
SHA256 (flaviotordini-idle-6aa092d_GH0.tar.gz) = 9aa3ac940f900d8b6924492905ff1351e9af6224fdcb2d1b6e5a55af920c81eb
SIZE (flaviotordini-idle-6aa092d_GH0.tar.gz) = 1675
SHA256 (flaviotordini-media-0d07cad_GH0.tar.gz) = 59500c9ddba3718c6d2c6385c3b40b07eaf0810131d22aac0f071790fcb30af5
SIZE (flaviotordini-media-0d07cad_GH0.tar.gz) = 24967

View File

@ -0,0 +1,11 @@
--- minitube.pro.orig 2020-08-10 17:56:42 UTC
+++ minitube.pro
@@ -43,6 +43,8 @@ include(lib/media/media.pri)
include(src/qtsingleapplication/qtsingleapplication.pri)
include(src/invidious/invidious.pri)
+INCLUDEPATH += $$PWD/src
+
HEADERS += src/video.h \
src/messagebar.h \
src/spacer.h \

View File

@ -1,11 +0,0 @@
--- src/ytregions.cpp.orig 2018-02-16 08:18:19 UTC
+++ src/ytregions.cpp
@@ -84,7 +84,7 @@ YTRegion YTRegions::r(const QString &nam
}
const YTRegion &YTRegions::localRegion() {
- static const YTRegion region = [] {
+ static const YTRegion region = []() -> const YTRegion { // workaround for https://github.com/flaviotordini/minitube/issues/99
QString country = QLocale::system().name().right(2);
for (const YTRegion &r : list()) {
if (r.id == country) return r;

View File

@ -17,11 +17,6 @@ To obtain a key:
4. If you are going to build minitube from ports, set
MINITUBE_GOOGLE_API_KEY=your_key in make.conf. If you use package
set GOOGLE_API_KEY environment variable to your key.
Make sure you also have a Phonon backend installed:
multimedia/phonon-gstreamer
-or-
multimedia/phonon-vlc
EOM
}
]

View File

@ -21,6 +21,7 @@ share/icons/hicolor/scalable/apps/minitube.svg
%%NLS%%%%DATADIR%%/locale/de_DE.qm
%%NLS%%%%DATADIR%%/locale/el.qm
%%NLS%%%%DATADIR%%/locale/en.qm
%%NLS%%%%DATADIR%%/locale/en_GB.qm
%%NLS%%%%DATADIR%%/locale/es.qm
%%NLS%%%%DATADIR%%/locale/es_AR.qm
%%NLS%%%%DATADIR%%/locale/es_ES.qm
@ -45,6 +46,7 @@ share/icons/hicolor/scalable/apps/minitube.svg
%%NLS%%%%DATADIR%%/locale/pl_PL.qm
%%NLS%%%%DATADIR%%/locale/pt.qm
%%NLS%%%%DATADIR%%/locale/pt_BR.qm
%%NLS%%%%DATADIR%%/locale/pt_PT.qm
%%NLS%%%%DATADIR%%/locale/ro.qm
%%NLS%%%%DATADIR%%/locale/ru.qm
%%NLS%%%%DATADIR%%/locale/sk.qm
@ -59,3 +61,4 @@ share/icons/hicolor/scalable/apps/minitube.svg
%%NLS%%%%DATADIR%%/locale/vi.qm
%%NLS%%%%DATADIR%%/locale/zh_CN.qm
%%NLS%%%%DATADIR%%/locale/zh_TW.qm
%%DATADIR%%/sounds/snapshot.wav