summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-11-22 17:15:04 +0100
committerLars Wendler <polynomial-c@gentoo.org>2017-11-22 17:15:52 +0100
commit3b81aef4fbb7a33094f3fb83d80b121d514ba2d3 (patch)
tree36c6f3fa9d6abdf1d3ad6845a467757a7a33b4ec
parentmedia-gfx/inkscape: Drop old 0.92.1 (diff)
downloadgentoo-3b81aef4fbb7a33094f3fb83d80b121d514ba2d3.tar.gz
gentoo-3b81aef4fbb7a33094f3fb83d80b121d514ba2d3.tar.bz2
gentoo-3b81aef4fbb7a33094f3fb83d80b121d514ba2d3.zip
media-video/smplayer: Bump to version 17.11.2
Package-Manager: Portage-2.3.16, Repoman-2.3.6
-rw-r--r--media-video/smplayer/Manifest5
-rw-r--r--media-video/smplayer/smplayer-17.11.2.ebuild130
2 files changed, 133 insertions, 2 deletions
diff --git a/media-video/smplayer/Manifest b/media-video/smplayer/Manifest
index 82d2bb904ff3..aed65a9521d6 100644
--- a/media-video/smplayer/Manifest
+++ b/media-video/smplayer/Manifest
@@ -1,3 +1,4 @@
DIST smplayer-16.11.0.tar.bz2 4254170 SHA256 e53a5d8b4d66fb0b7eb73053ef0bfdd2d942b79a16f8cc8d3d0b0771c7c80b5a SHA512 13776ff134c4c91747fa9432080a4ea876d5d5a134b91dde48d0f0e75c280ef6d19067906e4e850da3b1b2287214914528743495cccf7cbda310bc51682b478c WHIRLPOOL eadbf8af0247892dcaa38fd278b2316457626d573f10319d986e77aa0a58ef42cdc783efa95feffe292a38ebbb4b65d7203cabbc57f0332be711f9683c161139
-DIST smplayer-17.10.2.tar.bz2 5030251 SHA256 48d2f3b72bb8881a37ab9204329160c3bdfc0bbfff248c6dc9407e2dd35b8396 SHA512 ca90d5c0143411ebb613ece4a0675eb3a1f7265b4c05f99196e9cee354fd1e903435ae6010bdef360f8d78611c640ba0061e28ff4308cbf635090346bba0268c WHIRLPOOL cc427e40dfa43ed86d0dcc663c357c46e5c7ce3c1e3313e896e9640e8bd0d9ecdb83d04ef076c464ae4dc16b11bbfe5240b23668574342ec49dcab5d8ffbff75
-DIST smplayer-17.11.0.tar.bz2 5033817 SHA256 29e4dba22bdd77bd685ff732ba64668bd92d7a1f75045b325d096bb6c45e5757 SHA512 a51b49f92da21abe0a81bb07db5b5dd13d80ee86a488783acf8bacbe389dffb7dac123780d7492d2b20cdaf6727a9672d89c7d09d18674fc142ba2aa65a21754 WHIRLPOOL 238f04841a8827baec72b79ba3ac90c36f23d2f9901024a17b8538c68af4017a92d7f4586f52f1451cbe964b90e064325ec3cfb209d566ed66d0f56c48877c89
+DIST smplayer-17.10.2.tar.bz2 5030251 BLAKE2B 00e64788602a5af11cd08ee3ccce1df5c7183a5e41a473132b775f7c3696b99a762d17e94a53771a54649cef52d4cbff6acc1793530f6b20a8f1e6a8519a831b SHA512 ca90d5c0143411ebb613ece4a0675eb3a1f7265b4c05f99196e9cee354fd1e903435ae6010bdef360f8d78611c640ba0061e28ff4308cbf635090346bba0268c
+DIST smplayer-17.11.0.tar.bz2 5033817 BLAKE2B 4cb853c2ee6596037ccb88d248d2bbf470eabebc2c2c91c03cf27752639e0550623d1e68a21f18619b58d6993f86ffe73738a84549c40f79ee136fe8e9b4aa8a SHA512 a51b49f92da21abe0a81bb07db5b5dd13d80ee86a488783acf8bacbe389dffb7dac123780d7492d2b20cdaf6727a9672d89c7d09d18674fc142ba2aa65a21754
+DIST smplayer-17.11.2.tar.bz2 5033433 BLAKE2B 0fa783172c5b3c68314d656a395db6c953de64057cdf9acc78e4bc448807bc39293ff292183fc167a122f9cf295aac786b52c0465e3d9584c506e1dd9cd73614 SHA512 e0a6e6fc29063b5f82303febdc8243c10276feb4500985e96ce418298c8f10796df44363df3136452a6cb3f8156ebdb4fba3e865a37d433f3d258db493343f81
diff --git a/media-video/smplayer/smplayer-17.11.2.ebuild b/media-video/smplayer/smplayer-17.11.2.ebuild
new file mode 100644
index 000000000000..2611d969dfa9
--- /dev/null
+++ b/media-video/smplayer/smplayer-17.11.2.ebuild
@@ -0,0 +1,130 @@
+# 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 xdg-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
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}