diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-20 12:12:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-20 12:12:03 +0100 |
commit | d60aa36cd97fb2193f756b45820d7c073a49229d (patch) | |
tree | b5ae46dda53baf2afda4cd6b637f36cd3ac809e2 /media-video/smplayer | |
parent | fe0961fc9674dd24a017f474a34c1edbbd005965 (diff) |
gentoo auto-resync : 20:09:2024 - 12:12:03
Diffstat (limited to 'media-video/smplayer')
-rw-r--r-- | media-video/smplayer/Manifest | 6 | ||||
-rw-r--r-- | media-video/smplayer/files/smplayer-23.6.0-mpv-0.37-resume.patch | 15 | ||||
-rw-r--r-- | media-video/smplayer/metadata.xml | 1 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-23.6.0-r1.ebuild | 126 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-24.5.0.ebuild | 125 |
5 files changed, 272 insertions, 1 deletions
diff --git a/media-video/smplayer/Manifest b/media-video/smplayer/Manifest index 639ab327ae98..389a533cac47 100644 --- a/media-video/smplayer/Manifest +++ b/media-video/smplayer/Manifest @@ -3,6 +3,10 @@ AUX smplayer-16.4.0-zero-bidi.patch 489 BLAKE2B 50f535154f771e535c244aff2dbd27b6 AUX smplayer-17.1.0-advertisement_crap.patch 1982 BLAKE2B 22a5027e9d20dca47fed1176e13cd9f8f5c912f51352d07f8fc0dd1f0850dc241483e22524c9fab2b9e20e67d1527f391a791afa2ac96285c4a199801ab96b65 SHA512 7bc1a3e9fb916d3a7e0c4f9bba8bb2adb7a3822e34694f79501e228f700b27633cac2eba237ab4af221c50f07295ecab3093c2a7033578a3e0a91a1e6449570d AUX smplayer-18.2.0-jobserver.patch 423 BLAKE2B 04452fa5992dd2cef5be64dc9a9c78ca775336174dbef69e6054361173886be26d941cabfe2c5b486a05f2b3bee7029b439652d4dfb10e5651a7db68db8b70af SHA512 6bdb6d57be84c1d020c6f2e2f547eda9a0118bfcd0e4d2cdbb940501a0853ec388f359e04a52b8ff9c6c6b38d60f3837ed2c2e127a4df5bf79751486d9ed9ed6 AUX smplayer-18.3.0-disable-werror.patch 367 BLAKE2B 68b0f5b9cb34afb3843de4dd366a0a2e77eea881277d7b8a7928e851d2456f8fe5220ee50ae77296b622187758b7f6f3a4c298c0400becfee0d2fa074e7706e3 SHA512 b330aee54397a3fce5cda3a1244918351831ffe37cc7d45bcfa93384952bdce3166875afd5cd4bae9f1d6e83281b6b6bfc3ad777317a0b2c6c5dcc5593ddcb54 +AUX smplayer-23.6.0-mpv-0.37-resume.patch 524 BLAKE2B 03a63405a339e954b32ff9278cbdb7edbb16ac4c97b828d97e70d3ac1f8bdf6fabdd47e4efbe9b0e73be19550a5331ebac90ce51854e5d859db8dde734fa722d SHA512 17a0d9ac6211cbd9b56c8afd57a5bb22b2c1e8f883f569de5d55d1949b1aa1c486b241af68ac90f80eeb19ffa3706fba0906f415676c3433d61a340a30f3d55e DIST smplayer-23.6.0.tar.bz2 5164535 BLAKE2B 27200ad658a2acfc3c93c48ed59fca2333b5935d5b7e955cb12dd0c33566aaf0288c68081a68578904076e467bb3b39f9a5bb702d7ad8be0474aa400e40ce6e0 SHA512 097085ffae11b0d065f0822e36466f3e934d4484de29146deba66de14bfd4abcaa8dfd91aa5890921f336a99c3392650e932102812bf401a843d7a86dfc4996d +DIST smplayer-24.5.0.tar.bz2 5221961 BLAKE2B 6c088b87508ada09fb8712610da76403fbcc9f0d3f2ce1908d99560400aac8351b08453c77f2cf64f13625b09e4d748a7f0a64458e6429aeb29ce1ae49ebcaad SHA512 0de968babbb99a92ef2721d8b30d336433bb99745212da0d7dadec9ec389da0be6cdc5b461960662b4342f80ee6407a814bc6abc3372c07a75ee6804e705851e +EBUILD smplayer-23.6.0-r1.ebuild 2992 BLAKE2B 229266333ca3dba28582dc953fe3de4bdd397122fa243e70c292047df5486cb82cb96ebb6c1682a1c07e3bfd7fb260b0a888b761c52d9217daa4b784c7335149 SHA512 90e92f5cc66d488dc1259c1410200fd7c4e0a6a112cf8e336ed2438a2f431dd104f38cc757af0d4f563bc06253659eb5985e8b9c14caad2f239f34337c0efdae EBUILD smplayer-23.6.0.ebuild 2949 BLAKE2B 755329f4f39cbb197f0b649117711b993b7e47ac5f5984a15012dda4984f656b08af6c22b9a66faf606d102e1681a8073848189e89f2e13b0d6d00bcf9c33ea1 SHA512 0350083c5965481bfd220303f33ad4a3088e4ae16c510bd16ced76c046fd0d66c391325ec55481b9d9bbee4ed1cf87a5a80271135c1d7212b05a67eaa0184725 -MISC metadata.xml 348 BLAKE2B a067bafbbe7dcadc21c51f10caf242c344ffffd431e058cc2a3068c1431f25a631207e4de04c00b3a937d724f1d8b0798e2e84118221282267c909ee4a60a175 SHA512 1d45260220a3025faf008c7ba8199092a3ad22fbdc9e83f09fea1616c0403c419284e9d18da401ba2cba7b738d09d285387643a1e0d4034aadcde7c8587192e5 +EBUILD smplayer-24.5.0.ebuild 2933 BLAKE2B fb98aca286fc75482bd4ee8851f440047a7e9e02fdd5bd5083645df63f82329b1bdd0d5fd7e516c4079b2d9886d9bb46d9ca501a9311bb2ccb3787e56e3169bc SHA512 0688fc1f04cbc628bc86983823aa03482dd5e11d16afa28d1de06b600f9d89fe432000f1d5339c614bf0cde2540e0fd893f5da7d715ed9810cbd3b488d094254 +MISC metadata.xml 411 BLAKE2B 81e72a005d2f58e43de29d290792014d13c8c79ceffab567898d376cdd9fd36a14a88de9a6d9ca8fe9c323f20a3b74a655430557cb3e2ffc2c07354322dbcc36 SHA512 62f0495b08725281602dd806248170300e75c238a574006c11eaf0ac3171726b0efc88d4791510eb1db1da7d124d47e89914822534833e454f595e5298a341f3 diff --git a/media-video/smplayer/files/smplayer-23.6.0-mpv-0.37-resume.patch b/media-video/smplayer/files/smplayer-23.6.0-mpv-0.37-resume.patch new file mode 100644 index 000000000000..d2ff738e76d8 --- /dev/null +++ b/media-video/smplayer/files/smplayer-23.6.0-mpv-0.37-resume.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/919917#c2 +https://github.com/smplayer-dev/smplayer/issues/837 +--- a/src/mpvoptions.cpp ++++ b/src/mpvoptions.cpp +@@ -848,6 +848,10 @@ void MPVProcess::mute(bool b) { + + void MPVProcess::setPause(bool b) { + sendCommand(QString("set pause %1").arg(b ? "yes" : "no")); ++ ++ // Workaround for mpv 0.37, playback not resuming after pause ++ // It seems mpv reports the pause state in the status line with some delay ++ if (b) sendCommand("no-osd seek 0 relative exact"); + } + + void MPVProcess::frameStep() { diff --git a/media-video/smplayer/metadata.xml b/media-video/smplayer/metadata.xml index 9b4c43a953d1..e414faa507d5 100644 --- a/media-video/smplayer/metadata.xml +++ b/media-video/smplayer/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <upstream> <remote-id type="sourceforge">smplayer</remote-id> + <remote-id type="github">smplayer-dev/smplayer</remote-id> </upstream> </pkgmetadata> diff --git a/media-video/smplayer/smplayer-23.6.0-r1.ebuild b/media-video/smplayer/smplayer-23.6.0-r1.ebuild new file mode 100644 index 000000000000..6fdf99fb058f --- /dev/null +++ b/media-video/smplayer/smplayer-23.6.0-r1.ebuild @@ -0,0 +1,126 @@ +# Copyright 2007-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PLOCALES="am ar_SY ar bg ca cs da de el en_GB en en_US es et eu fa fi fr gl +he_IL hr hu id it ja ka ko ku lt mk ms_MY nl nn_NO pl pt_BR pt ro_RO ru_RU +sk sl_SI sq_AL sr sv th tr uk_UA uz vi_VN zh_CN zh_TW" +PLOCALE_BACKUP="en_US" + +inherit plocale qmake-utils toolchain-funcs xdg + +DESCRIPTION="Great Qt GUI front-end for mplayer/mpv" +HOMEPAGE="https://www.smplayer.info/" +SRC_URI="https://github.com/smplayer-dev/${PN}/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="GPL-2+ BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 x86 ~amd64-linux" +IUSE="bidi debug" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5= + dev-qt/qtnetwork:5[ssl] + dev-qt/qtsingleapplication[X,qt5(+)] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + sys-libs/zlib + x11-libs/libX11 +" +RDEPEND="${DEPEND} + || ( + media-video/mpv[libass(+),X] + media-video/mplayer[bidi?,libass,png,X] + ) +" +BDEPEND="dev-qt/linguist-tools:5" + +PATCHES=( + "${FILESDIR}/${PN}-14.9.0.6966-unbundle-qtsingleapplication.patch" # bug 487544 + "${FILESDIR}/${PN}-17.1.0-advertisement_crap.patch" + "${FILESDIR}/${PN}-18.2.0-jobserver.patch" + "${FILESDIR}/${PN}-18.3.0-disable-werror.patch" + "${FILESDIR}/${P}-mpv-0.37-resume.patch" +) + +src_prepare() { + use bidi || PATCHES+=( "${FILESDIR}"/${PN}-16.4.0-zero-bidi.patch ) + + default + + # Upstream Makefile sucks + sed -i -e "/^PREFIX=/ s:/usr/local:${EPREFIX}/usr:" \ + -e "/^DOC_PATH=/ s:packages/smplayer:${PF}:" \ + -e '/\.\/get_svn_revision\.sh/,+2c\ + cd src && $(DEFS) $(MAKE)' \ + Makefile || die + + # Turn off online update checker, bug #479902 + sed -e 's:DEFINES += UPDATE_CHECKER:#&:' \ + -e 's:DEFINES += CHECK_UPGRADED:#&:' \ + -i src/smplayer.pro || die + + # Turn off intrusive share widget + sed -e 's:DEFINES += SHARE_WIDGET:#&:' \ + -i src/smplayer.pro || die + + # Turn debug message flooding off + if ! use debug ; then + sed -e 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \ + -i src/smplayer.pro || die + fi + + # Commented out because it gives false positives + #plocale_find_changes "${S}"/src/translations ${PN}_ .ts + + # Do not default compress man page + sed '/gzip -9.*\.1$/d' -i Makefile || die + sed 's@\.gz$@@' -i smplayer.spec || die +} + +src_configure() { + cd src || die + eqmake5 QT_MAJOR_VERSION=5 +} + +gen_translation() { + local mydir="$(qt5_get_bindir)" + + ebegin "Generating $1 translation" + "${mydir}"/lrelease ${PN}_${1}.ts + eend $? || die "failed to generate $1 translation" +} + +src_compile() { + emake CC="$(tc-getCC)" + + cd src/translations || die + plocale_for_each_locale gen_translation +} + +src_install() { + # remove unneeded copies of the GPL + rm Copying* docs/*/gpl.html || die + # don't install empty dirs + rmdir --ignore-fail-on-non-empty docs/* || die + + default +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "If you want URL support with media-video/mpv, please install" + elog "net-misc/yt-dlp." +} + +pkg_postrm() { + xdg_pkg_postrm +} diff --git a/media-video/smplayer/smplayer-24.5.0.ebuild b/media-video/smplayer/smplayer-24.5.0.ebuild new file mode 100644 index 000000000000..6ae116a3af27 --- /dev/null +++ b/media-video/smplayer/smplayer-24.5.0.ebuild @@ -0,0 +1,125 @@ +# Copyright 2007-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PLOCALES="am ar_SY ar bg ca cs da de el en_GB en en_US es et eu fa fi fr gl +he_IL hr hu id it ja ka ko ku lt mk ms_MY nl nn_NO pl pt_BR pt ro_RO ru_RU +sk sl_SI sq_AL sr sv th tr uk_UA uz vi_VN zh_CN zh_TW" +PLOCALE_BACKUP="en_US" + +inherit optfeature plocale qmake-utils toolchain-funcs xdg + +DESCRIPTION="Great Qt GUI front-end for mplayer/mpv" +HOMEPAGE="https://www.smplayer.info/" +SRC_URI="https://github.com/smplayer-dev/${PN}/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="GPL-2+ BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="bidi debug" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5= + dev-qt/qtnetwork:5[ssl] + dev-qt/qtsingleapplication[X,qt5(+)] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + sys-libs/zlib + x11-libs/libX11 +" +RDEPEND=" + ${DEPEND} + || ( + media-video/mpv[libass(+),X] + media-video/mplayer[bidi?,libass,png,X] + ) +" +BDEPEND="dev-qt/linguist-tools:5" + +PATCHES=( + "${FILESDIR}/${PN}-14.9.0.6966-unbundle-qtsingleapplication.patch" # bug 487544 + "${FILESDIR}/${PN}-17.1.0-advertisement_crap.patch" + "${FILESDIR}/${PN}-18.2.0-jobserver.patch" + "${FILESDIR}/${PN}-18.3.0-disable-werror.patch" +) + +src_prepare() { + use bidi || PATCHES+=( "${FILESDIR}"/${PN}-16.4.0-zero-bidi.patch ) + + default + + # Upstream Makefile sucks + sed -i -e "/^PREFIX=/ s:/usr/local:${EPREFIX}/usr:" \ + -e "/^DOC_PATH=/ s:packages/smplayer:${PF}:" \ + -e '/\.\/get_svn_revision\.sh/,+2c\ + cd src && $(DEFS) $(MAKE)' \ + Makefile || die + + # Turn off online update checker, bug #479902 + sed -e 's:DEFINES += UPDATE_CHECKER:#&:' \ + -e 's:DEFINES += CHECK_UPGRADED:#&:' \ + -i src/smplayer.pro || die + + # Turn off intrusive share widget + sed -e 's:DEFINES += SHARE_WIDGET:#&:' \ + -i src/smplayer.pro || die + + # Turn debug message flooding off + if ! use debug ; then + sed -e 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \ + -i src/smplayer.pro || die + fi + + # Commented out because it gives false positives + #plocale_find_changes "${S}"/src/translations ${PN}_ .ts + + # Do not default compress man page + sed '/gzip -9.*\.1$/d' -i Makefile || die + sed 's@\.gz$@@' -i smplayer.spec || die +} + +src_configure() { + cd src || die + eqmake5 QT_MAJOR_VERSION=5 +} + +gen_translation() { + local mydir="$(qt5_get_bindir)" + + ebegin "Generating $1 translation" + "${mydir}"/lrelease ${PN}_${1}.ts + eend $? || die "failed to generate $1 translation" +} + +src_compile() { + emake CC="$(tc-getCC)" + + cd src/translations || die + plocale_for_each_locale gen_translation +} + +src_install() { + # remove unneeded copies of the GPL + rm Copying* docs/*/gpl.html || die + # don't install empty dirs + rmdir --ignore-fail-on-non-empty docs/* || die + + default +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "URL support with media-video/mpv" net-misc/yt-dlp +} + +pkg_postrm() { + xdg_pkg_postrm +} |