diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/smplayer |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/smplayer')
-rw-r--r-- | media-video/smplayer/Manifest | 13 | ||||
-rw-r--r-- | media-video/smplayer/files/smplayer-14.9.0.6690-zero-bidi.patch | 13 | ||||
-rw-r--r-- | media-video/smplayer/files/smplayer-14.9.0.6966-unbundle-qtsingleapplication.patch | 15 | ||||
-rw-r--r-- | media-video/smplayer/files/smplayer-16.4.0-zero-bidi.patch | 16 | ||||
-rw-r--r-- | media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch | 85 | ||||
-rw-r--r-- | media-video/smplayer/metadata.xml | 28 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-16.1.0.ebuild | 142 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-16.11.0.ebuild | 148 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-17.10.0.ebuild | 122 |
9 files changed, 582 insertions, 0 deletions
diff --git a/media-video/smplayer/Manifest b/media-video/smplayer/Manifest new file mode 100644 index 000000000000..7141b27e11b3 --- /dev/null +++ b/media-video/smplayer/Manifest @@ -0,0 +1,13 @@ +AUX smplayer-14.9.0.6690-zero-bidi.patch 410 SHA256 b1dc553f744fdbeddbdf3cc250122785e61b48a35b318426ad6c367b06e0d653 SHA512 0498e2519fbaf5f217e0ae7b47660f26e5a25a99aa8500c6e82716540d348d679628d061552e75afbf70dbe38e5ce3a433c553119d1ab8180e6fe7d9640433e7 WHIRLPOOL 87890c3052910b83af8e0f6273a951f82fd7b1904dcadeba7565dc9dd3c30659564cf09fa693541592c358971e7bf9bb5071986fa3190569034137129cb4becd +AUX smplayer-14.9.0.6966-unbundle-qtsingleapplication.patch 566 SHA256 98b2691eac48a50fe851366f225a7a1017ac3769f9478639bf292bb9c45142db SHA512 9c757a1eaca358c9fb712801c0a17d084ea9dd3be26dd43f9b2c83bf39d2bbe4b458ba9432aba9e76cb83b56fb698a2976951be2074acfaa787cbfbed2a54fa9 WHIRLPOOL fe60ee7fd20ab4cc3c9286295163413c8e798bcae6c25930b501094c25545235cf92aae9d50f4f9694bb0ed5c47ae9d8a1c9ba776f180c23c6bbe3ac3f3a00a2 +AUX smplayer-16.4.0-zero-bidi.patch 489 SHA256 a61d2b36d9fd3fba0f7c1a6ad8a2fc8a1e76e70e13e8b58a1d2f21a6c53a94c6 SHA512 acde9545bc1a0659673f6e747291c837ab36b9894bde6d03e419acf579c2f8f581127424dde786496f37308676754319c4f4402f52b620e97a63cdccd1af80d6 WHIRLPOOL 2cb7d823e612aa7caded97fb0872764fe11f8d145b1056228d039be2d376b2cf0cb521fcf8aaec92d76e899e61139e4d7a555ec931352ff43b1b5558f990b831 +AUX smplayer-17.1.0-advertisement_crap.patch 1982 SHA256 dcd18b9d67c3655a835515f80b7e96f8937587f564cb1d4a717c3ef902100d99 SHA512 7bc1a3e9fb916d3a7e0c4f9bba8bb2adb7a3822e34694f79501e228f700b27633cac2eba237ab4af221c50f07295ecab3093c2a7033578a3e0a91a1e6449570d WHIRLPOOL 2889a475da62c88efd698447a9f39ed5b54c36a22fa100b5bee202e50e3aae498890dd618ab22e77af78aa70124687653d0c73dc8a32ea980f8be050b95c8cbc +DIST smplayer-16.1.0.tar.bz2 3966243 SHA256 d25c9b62d36c5ee63fb360e9a45566601d49d707e1364294a54967b956bdd8c9 SHA512 2c240a6cc392b84c7d6f725a02af33788ce7dbfae9d765d309e3b958fa9e2475e45c56b260e056118362848f64e478aa0ef9c67478fc44d9e42c568b4892e6ed WHIRLPOOL 8a7c989e3c77e6e7a696a958f848e8649f49131be80f26139b2aef17f3534cc18ab778def5083fee5a12c1e8291891e6c9d90ae26395c13a04e889ab2e4f616e +DIST smplayer-16.11.0.tar.bz2 4254170 SHA256 e53a5d8b4d66fb0b7eb73053ef0bfdd2d942b79a16f8cc8d3d0b0771c7c80b5a SHA512 13776ff134c4c91747fa9432080a4ea876d5d5a134b91dde48d0f0e75c280ef6d19067906e4e850da3b1b2287214914528743495cccf7cbda310bc51682b478c WHIRLPOOL eadbf8af0247892dcaa38fd278b2316457626d573f10319d986e77aa0a58ef42cdc783efa95feffe292a38ebbb4b65d7203cabbc57f0332be711f9683c161139 +DIST smplayer-17.10.0.tar.bz2 5050760 SHA256 3d40a999343c647cc758a8d5026be9d355dcc84317700128578e51db9f982375 SHA512 c06f8e6043a870291cc29eba57b8bb5034fbceb19b24987751467e874a00d4e95f57933708d71375fdc38fdc32de68d77a7d9180c3eee1f9011eb1cfa421bbb0 WHIRLPOOL b4738ce430fadf60c743a05dcf1e491ec37d88a4ff83db75ac238f479a6031efe8bfd1a70af389cf2bd22cfd5236adb4e22e7c7a23321a53966e9a1f738d0db2 +EBUILD smplayer-16.1.0.ebuild 3747 SHA256 5495cb5c8c79801add78e516b552076bf02098677d7275178156e3eb7fdaff74 SHA512 072e6535c97787f9b2da55c948c594b44ac8cd2941f821c24b765ad6e5c8c2e9d3cdc8d69053040cda130ecad3459de00ae3ad307bb3ba4da40485724f8bc7bf WHIRLPOOL 652c6519800a5cd7beb13605cbb79171a695c5db776a4ad40d52262265710816e81187c312083523b9424e3ee7424f9d50ef855e4169922c7a031c5e843b51da +EBUILD smplayer-16.11.0.ebuild 3501 SHA256 8b8576a541dd209193044852c8fe75c9a4bd155f27214cf8389bb84e29dfdf8c SHA512 0e28a728350d06be20f0be25a2a11b4a3b4aae59208bbc0c9ade099fdea35bc74ae0186a64faba4d06470ce6a6269b40c597c86f02bc903dd0f6cc113dfd2f54 WHIRLPOOL 22a97e4306915b17c120da2378d2322ca7b9522405dcaa58db0a877b7a9da0209acfac8f4e9b6c96de579b41efa91cb6c70345ac85a2c63380408462605f38a4 +EBUILD smplayer-17.10.0.ebuild 2913 SHA256 bc604aa435419ac39a913848bc4c6a9d244bddf46d26cdbd892c4bd6d10d0272 SHA512 3c82575cebed11917065588c76bfb6aa0e63c95c96b59121f8d64dc14ae539d9d5184ff009d24248ca818d2ed4e2818fa91e843c4d082f29fcee1b541ae26eac WHIRLPOOL 1fed048d96edffadfd46506780f8077b3f971e7e5d19b2aa084a2c5d9419670d9ac57d9a0db064f9218039c97a946ec630316a0c9440df207506ac4120dff024 +MISC ChangeLog 7960 SHA256 ae73b7751f8bbeb9d6e3298ad09b35ed72435a19d157a67795a88175a78be567 SHA512 df862a10ff236132e9fcb7e481aab18a25f1de1798b0e46110a3e0f15d404b2c2a9de57c435bf2a5cb821bd1f5e7ed34bfc5c6c4d1968bccb2caec6d85fc3ba4 WHIRLPOOL e646e8a204529826ce1a5801c438d4397f0d582b235e59e9ffba4939133b6978aa876dd374e592685c532071f481d9bdbd0f0c53a364745d8d7f4d74352b6478 +MISC ChangeLog-2015 24285 SHA256 83c4080cff45223afbf5a54fca18b206de66bbfab917ad9147d9b99d1d6155a6 SHA512 9e3a4d8b82ee7fd8ec1f903eda0f6689d9fd7c04e453c93c9db3b9c4a952ccdbf9239d522a9fe3d2e96c56874902544fcdb761fb4661746d52d65de8610de77c WHIRLPOOL 8c82ed1af5e6c22458c715987f81ec3f769e23d7fd33d275aa087889e96662f57d50ef88fd9b7096c5962988d58e0df4b1133a09a2c65e3c213d7686aecbaf89 +MISC metadata.xml 1016 SHA256 f45b4e0471580f7af66e6314d87ae2d6046413fd40c39873ecc16bbe374fca5e SHA512 04fb5a1a6c330b847e43a6e6a635be5180e4bb353b28c551f39ca74c663874e36f697204d01fb0267775c04ec452fbb5409e7d5611b61bd7f883ee1f9c8b82fc WHIRLPOOL 6b113852ebdbf619c55e09127c2168ae75721113851da126fd41046ea696eccc1712ea37ecbf6f4698956c28b2663009729477629f9c08d97bbc628ec89a0f0a diff --git a/media-video/smplayer/files/smplayer-14.9.0.6690-zero-bidi.patch b/media-video/smplayer/files/smplayer-14.9.0.6690-zero-bidi.patch new file mode 100644 index 000000000000..650dcd79c4b4 --- /dev/null +++ b/media-video/smplayer/files/smplayer-14.9.0.6690-zero-bidi.patch @@ -0,0 +1,13 @@ +--- a/src/core.cpp ++++ b/src/core.cpp +@@ -1811,10 +1811,6 @@ + + proc->setOption("ass-font-scale", QString::number(mset.sub_scale_ass)); + +- if (!pref->mplayer_is_mplayer2) { +- proc->setOption("flip-hebrew",false); // It seems to be necessary to display arabic subtitles correctly when using -ass +- } +- + if (pref->enable_ass_styles) { + if (!pref->force_ass_styles) { + // Load the styles.ass file diff --git a/media-video/smplayer/files/smplayer-14.9.0.6966-unbundle-qtsingleapplication.patch b/media-video/smplayer/files/smplayer-14.9.0.6966-unbundle-qtsingleapplication.patch new file mode 100644 index 000000000000..e7fca64e450e --- /dev/null +++ b/media-video/smplayer/files/smplayer-14.9.0.6966-unbundle-qtsingleapplication.patch @@ -0,0 +1,15 @@ +--- smplayer-14.9.0.6966.orig/src/smplayer.pro 2015-04-18 10:11:32.000000000 +0800 ++++ smplayer-14.9.0.6966/src/smplayer.pro 2015-07-01 13:18:39.283850646 +0800 +@@ -285,11 +285,7 @@ + + # qtsingleapplication + contains( DEFINES, SINGLE_INSTANCE ) { +- INCLUDEPATH += qtsingleapplication +- DEPENDPATH += qtsingleapplication +- +- SOURCES += qtsingleapplication/qtsingleapplication.cpp qtsingleapplication/qtlocalpeer.cpp +- HEADERS += qtsingleapplication/qtsingleapplication.h qtsingleapplication/qtlocalpeer.h ++ CONFIG += qtsingleapplication + } + + # Find subtitles dialog diff --git a/media-video/smplayer/files/smplayer-16.4.0-zero-bidi.patch b/media-video/smplayer/files/smplayer-16.4.0-zero-bidi.patch new file mode 100644 index 000000000000..d36f0720cd0a --- /dev/null +++ b/media-video/smplayer/files/smplayer-16.4.0-zero-bidi.patch @@ -0,0 +1,16 @@ +--- smplayer-16.4.0/src/core.cpp ++++ smplayer-16.4.0/src/core.cpp +@@ -1832,13 +1832,6 @@ + + proc->setOption("ass-font-scale", QString::number(mset.sub_scale_ass)); + +- #ifdef MPLAYER2_SUPPORT +- if (!pref->mplayer_is_mplayer2) +- #endif +- { +- proc->setOption("flip-hebrew",false); // It seems to be necessary to display arabic subtitles correctly when using -ass +- } +- + if (pref->enable_ass_styles) { + QString ass_force_style; + if (!pref->user_forced_ass_style.isEmpty()) { diff --git a/media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch b/media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch new file mode 100644 index 000000000000..2792d189b097 --- /dev/null +++ b/media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch @@ -0,0 +1,85 @@ +--- smplayer-17.1.0/src/basegui.cpp ++++ smplayer-17.1.0/src/basegui.cpp +@@ -906,9 +906,11 @@ + connect( showConfigAct, SIGNAL(triggered()), + this, SLOT(helpShowConfig()) ); + ++#ifdef DONATE_REMINDER + donateAct = new MyAction( this, "donate" ); + connect( donateAct, SIGNAL(triggered()), + this, SLOT(helpDonate()) ); ++#endif + + aboutThisAct = new MyAction( this, "about_smplayer" ); + connect( aboutThisAct, SIGNAL(triggered()), +@@ -1846,8 +1848,10 @@ + #ifdef SHARE_ACTIONS + donateAct->change( Images::icon("donate"), tr("&Donate / Share with your friends") ); + #else ++#ifdef DONATE_REMINDER + donateAct->change( Images::icon("donate"), tr("&Donate") ); + #endif ++#endif + aboutThisAct->change( Images::icon("logo"), tr("About &SMPlayer") ); + + #ifdef SHARE_MENU +@@ -2993,8 +2997,10 @@ + helpMenu->addAction(showConfigAct); + helpMenu->addSeparator(); + } ++ #ifdef DONATE_REMINDER + helpMenu->addAction(donateAct); + helpMenu->addSeparator(); ++ #endif + helpMenu->addAction(aboutThisAct); + + // Access menu +@@ -4489,6 +4495,7 @@ + } + } + #else ++#ifdef DONATE_REMINDER + void BaseGui::helpDonate() { + qDebug("BaseGui::helpDonate"); + +@@ -4530,6 +4537,7 @@ + if (accepted != 0) *accepted = result; + } + #endif ++#endif + + void BaseGui::helpAbout() { + About d(this); +--- smplayer-17.1.0/src/basegui.h ++++ smplayer-17.1.0/src/basegui.h +@@ -73,10 +73,6 @@ + class ShareWidget; + #endif + +-#ifndef SHARE_WIDGET +-#define DONATE_REMINDER +-#endif +- + class BaseGui : public QMainWindow + { + Q_OBJECT +@@ -129,8 +125,8 @@ + virtual void helpFAQ(); + virtual void helpCLOptions(); + virtual void helpCheckUpdates(); ++#ifdef DONATE_REMINDER + virtual void helpDonate(); +-#ifndef SHARE_ACTIONS + void showHelpDonateDialog(bool * accepted = 0); + #endif + virtual void helpShowConfig(); +@@ -574,7 +570,9 @@ + MyAction * updateYTAct; + #endif + MyAction * showConfigAct; ++#ifdef DONATE_REMINDER + MyAction * donateAct; ++#endif + MyAction * aboutThisAct; + + #ifdef SHARE_MENU diff --git a/media-video/smplayer/metadata.xml b/media-video/smplayer/metadata.xml new file mode 100644 index 000000000000..9f32889eaddc --- /dev/null +++ b/media-video/smplayer/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>qt@gentoo.org</email> + <name>Gentoo Qt Project</name> + </maintainer> + <maintainer type="project"> + <email>media-video@gentoo.org</email> + <name>Gentoo Video project</name> + </maintainer> + <use> + <flag name="autoshutdown"> + Enable the option to shutdown your computer after finishing the playlist. + This requires <pkg>dev-qt/qtdbus</pkg> as dependency. + </flag> + <flag name="mpris">Enable support for MPRIS2 (Media Player Remote + Interfacing Specification, version 2), a DBus interface for remote + control, which requires <pkg>dev-qt/qtdbus</pkg> as dependency. + </flag> + <flag name="streaming">Support for streaming video sites through + <pkg>net-misc/youtube-dl</pkg> (MPV only). + </flag> + </use> + <upstream> + <remote-id type="sourceforge">smplayer</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-video/smplayer/smplayer-16.1.0.ebuild b/media-video/smplayer/smplayer-16.1.0.ebuild new file mode 100644 index 000000000000..274d93b77475 --- /dev/null +++ b/media-video/smplayer/smplayer-16.1.0.ebuild @@ -0,0 +1,142 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="ar ar_SY bg ca cs da de el_GR en_GB en_US es et eu fi fr gl he_IL hr +hu id it ja ka ko ku lt mk ms_MY nl nn_NO pl pt pt_BR 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 l10n qmake-utils + +DESCRIPTION="Great Qt GUI front-end for mplayer/mpv" +HOMEPAGE="http://www.smplayer.info/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2+ BSD-2" +SLOT="0" +KEYWORDS="amd64 ~arm hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux" +IUSE="autoshutdown bidi debug mpris +qt4 qt5 streaming" + +REQUIRED_USE="^^ ( qt4 qt5 )" + +COMMON_DEPEND=" + sys-libs/zlib + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtsingleapplication[X,qt4] + autoshutdown? ( dev-qt/qtdbus:4 ) + mpris? ( dev-qt/qtdbus:4 ) + streaming? ( dev-qt/qtcore:4[ssl] ) + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + >=dev-qt/qtsingleapplication-2.6.1_p20150629[X,qt5] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + autoshutdown? ( dev-qt/qtdbus:5 ) + mpris? ( dev-qt/qtdbus:5 ) + streaming? ( + dev-qt/qtnetwork:5[ssl] + dev-qt/qtscript:5 + ) + ) +" +DEPEND="${COMMON_DEPEND} + qt5? ( dev-qt/linguist-tools:5 ) +" +RDEPEND="${COMMON_DEPEND} + || ( + media-video/mplayer[bidi?,libass,png,X] + ( + >=media-video/mpv-0.6.2[libass,X] + streaming? ( >=net-misc/youtube-dl-2014.11.26 ) + ) + ) +" + +src_prepare() { + default + + eapply "${FILESDIR}"/${PN}-14.9.0.6966-unbundle-qtsingleapplication.patch # bug 487544 + use bidi || eapply "${FILESDIR}"/${PN}-14.9.0.6690-zero-bidi.patch + + # Upstream Makefile sucks + sed -i -e "/^PREFIX=/s:${EPREFIX}/usr/local:${EPREFIX}/usr:" \ + -e "/^DOC_PATH=/s:packages/smplayer:${PF}:" \ + -e '/\.\/get_svn_revision\.sh/,+2c\ + cd src && $(DEFS) $(MAKE)' \ + "${S}"/Makefile || die "sed failed" + + # Toggle autoshutdown option which pulls in dbus, bug #524392 + if ! use autoshutdown ; then + sed -e 's:DEFINES += AUTO_SHUTDOWN_PC:#DEFINES += AUTO_SHUTDOWN_PC:' \ + -i "${S}"/src/smplayer.pro || die "sed failed" + fi + + # Turn debug message flooding off + if ! use debug ; then + sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \ + "${S}"/src/smplayer.pro || die "sed failed" + fi + + # MPRIS2 pulls in dbus, bug #553710 + if ! use mpris ; then + sed -e 's:DEFINES += MPRIS2:#DEFINES += MPRIS2:' \ + -i "${S}"/src/smplayer.pro || die "sed failed" + fi + + # Turn off online update checker, bug #479902 + sed -e 's:DEFINES += UPDATE_CHECKER:#DEFINES += UPDATE_CHECKER:' \ + -e 's:DEFINES += CHECK_UPGRADED:#DEFINES += CHECK_UPGRADED:' \ + -i "${S}"/src/smplayer.pro || die "sed failed" + + # Turn off nasty share widget + sed -e 's:DEFINES += SHAREWIDGET:#DEFINES += SHAREWIDGET:' \ + -i "${S}"/src/smplayer.pro || die "sed failed" + + # Turn off youtube support (which pulls in extra dependencies) if unwanted + if ! use streaming ; then + sed -e 's:DEFINES += YOUTUBE_SUPPORT:#DEFINES += YOUTUBE_SUPPORT:' \ + -i "${S}"/src/smplayer.pro || die "sed failed" + fi + + l10n_find_plocales_changes "${S}/src/translations" "${PN}_" '.ts' +} + +src_configure() { + pushd src > /dev/null || die + use qt4 && eqmake4 + use qt5 && eqmake5 + popd > /dev/null || die +} + +gen_translation() { + local mydir + if use qt4; then + mydir="$(qt4_get_bindir)" + elif use qt5; then + mydir="$(qt5_get_bindir)" + fi + ebegin "Generating $1 translation" + "${mydir}"/lrelease ${PN}_${1}.ts + eend $? || die "failed to generate $1 translation" +} + +src_compile() { + emake + + cd "${S}"/src/translations + l10n_for_each_locale_do gen_translation +} + +src_install() { + # remove unneeded copies of licenses + rm Copying* docs/{cs,en,hu,it,ja,pt,ru,zh_CN}/gpl.html || die + rm -r docs/{de,es,fr,nl,ro} || die + + emake DESTDIR="${D}" install +} diff --git a/media-video/smplayer/smplayer-16.11.0.ebuild b/media-video/smplayer/smplayer-16.11.0.ebuild new file mode 100644 index 000000000000..62806f4d7de7 --- /dev/null +++ b/media-video/smplayer/smplayer-16.11.0.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 l10n qmake-utils + +DESCRIPTION="Great Qt GUI front-end for mplayer/mpv" +HOMEPAGE="http://www.smplayer.eu/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2+ BSD-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux" +IUSE="autoshutdown bidi debug mpris qt5 streaming" + +COMMON_DEPEND=" + sys-libs/zlib + !qt5? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtsingleapplication[X,qt4] + autoshutdown? ( dev-qt/qtdbus:4 ) + mpris? ( dev-qt/qtdbus:4 ) + streaming? ( + dev-qt/qtcore:4[ssl] + dev-qt/qtscript:4 + ) + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtsingleapplication[X,qt5] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + autoshutdown? ( dev-qt/qtdbus:5 ) + mpris? ( dev-qt/qtdbus:5 ) + streaming? ( + dev-qt/qtnetwork:5[ssl] + dev-qt/qtscript:5 + ) + ) +" +DEPEND="${COMMON_DEPEND} + qt5? ( dev-qt/linguist-tools:5 ) +" +RDEPEND="${COMMON_DEPEND} + || ( + media-video/mplayer[bidi?,libass,png,X] + ( + >=media-video/mpv-0.10.0[libass,X] + streaming? ( >=net-misc/youtube-dl-2014.11.26 ) + ) + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-14.9.0.6966-unbundle-qtsingleapplication.patch" # bug 487544 +) + +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 + + # Toggle autoshutdown option which pulls in dbus, bug #524392 + if ! use autoshutdown ; then + sed -e 's:DEFINES += AUTO_SHUTDOWN_PC:#&:' \ + -i src/smplayer.pro || die + fi + + # Turn debug message flooding off + if ! use debug ; then + sed -e 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \ + -i src/smplayer.pro || die + fi + + # MPRIS2 pulls in dbus, bug #553710 + if ! use mpris ; then + sed -e 's:DEFINES += MPRIS2:#&:' \ + -i src/smplayer.pro || die + fi + + # Turn off youtube support (which pulls in extra dependencies) if unwanted + if ! use streaming ; then + sed -e 's:DEFINES += YOUTUBE_SUPPORT:#&:' \ + -i src/smplayer.pro || die + sed -e 's:^#define PLAYLIST_DOWNLOAD://&:' \ + -i src/playlist.h || die + fi + + # Commented out because it gives false positives + #l10n_find_plocales_changes "${S}"/src/translations ${PN}_ .ts +} + +src_configure() { + cd src || die + use qt5 && eqmake5 || eqmake4 +} + +gen_translation() { + local mydir="$(qt4_get_bindir)" + if use qt5; then + mydir="$(qt5_get_bindir)" + fi + + ebegin "Generating $1 translation" + "${mydir}"/lrelease ${PN}_${1}.ts + eend $? || die "failed to generate $1 translation" +} + +src_compile() { + default + + cd src/translations || die + l10n_for_each_locale_do gen_translation +} + +src_install() { + # remove unneeded copies of the GPL + rm -f Copying* docs/*/gpl.html || die + # don't install empty dirs + rmdir --ignore-fail-on-non-empty docs/* || die + + default +} diff --git a/media-video/smplayer/smplayer-17.10.0.ebuild b/media-video/smplayer/smplayer-17.10.0.ebuild new file mode 100644 index 000000000000..13741f5b2b12 --- /dev/null +++ b/media-video/smplayer/smplayer-17.10.0.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 l10n qmake-utils + +DESCRIPTION="Great Qt GUI front-end for mplayer/mpv" +HOMEPAGE="http://www.smplayer.eu/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2+ BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux" +IUSE="autoshutdown bidi debug mpris" + +COMMON_DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtscript:5 + dev-qt/qtsingleapplication[X,qt5] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + sys-libs/zlib + autoshutdown? ( dev-qt/qtdbus:5 ) + mpris? ( dev-qt/qtdbus:5 ) +" +DEPEND="${COMMON_DEPEND} + dev-qt/linguist-tools:5 +" +RDEPEND="${COMMON_DEPEND} + || ( + media-video/mplayer[bidi?,libass,png,X] + ( + >=media-video/mpv-0.15.0[libass,X] + >=net-misc/youtube-dl-2014.11.26 + ) + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-14.9.0.6966-unbundle-qtsingleapplication.patch" # bug 487544 + "${FILESDIR}/${PN}-17.1.0-advertisement_crap.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 + + # Toggle autoshutdown option which pulls in dbus, bug #524392 + if ! use autoshutdown ; then + sed -e 's:DEFINES += AUTO_SHUTDOWN_PC:#&:' \ + -i src/smplayer.pro || die + fi + + # Turn debug message flooding off + if ! use debug ; then + sed -e 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \ + -i src/smplayer.pro || die + fi + + # MPRIS2 pulls in dbus, bug #553710 + if ! use mpris ; then + sed -e 's:DEFINES += MPRIS2:#&:' \ + -i src/smplayer.pro || die + fi + + # Commented out because it gives false positives + #l10n_find_plocales_changes "${S}"/src/translations ${PN}_ .ts +} + +src_configure() { + cd src || die + eqmake5 +} + +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() { + default + + cd src/translations || die + l10n_for_each_locale_do gen_translation +} + +src_install() { + # remove unneeded copies of the GPL + rm -f Copying* docs/*/gpl.html || die + # don't install empty dirs + rmdir --ignore-fail-on-non-empty docs/* || die + + default +} |