summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-11-06 15:24:09 +0100
committerLars Wendler <polynomial-c@gentoo.org>2017-11-06 16:29:22 +0100
commitc8c2fe6e233f4f79fab05db6e293baabd8e90f2d (patch)
tree02adf073f936248378e55b5363ab605aeeb4ad40 /media-video/smplayer
parentmedia-sound/kid3: Removed old. (diff)
downloadgentoo-c8c2fe6e233f4f79fab05db6e293baabd8e90f2d.tar.gz
gentoo-c8c2fe6e233f4f79fab05db6e293baabd8e90f2d.tar.bz2
gentoo-c8c2fe6e233f4f79fab05db6e293baabd8e90f2d.zip
media-video/smplayer: Bump to version 17.11.0
Package-Manager: Portage-2.3.13, Repoman-2.3.4
Diffstat (limited to 'media-video/smplayer')
-rw-r--r--media-video/smplayer/Manifest1
-rw-r--r--media-video/smplayer/smplayer-17.11.0.ebuild130
2 files changed, 131 insertions, 0 deletions
diff --git a/media-video/smplayer/Manifest b/media-video/smplayer/Manifest
index a5cfaf0ee1d1..2985ffca3127 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.0.tar.bz2 5050760 SHA256 3d40a999343c647cc758a8d5026be9d355dcc84317700128578e51db9f982375 SHA512 c06f8e6043a870291cc29eba57b8bb5034fbceb19b24987751467e874a00d4e95f57933708d71375fdc38fdc32de68d77a7d9180c3eee1f9011eb1cfa421bbb0 WHIRLPOOL b4738ce430fadf60c743a05dcf1e491ec37d88a4ff83db75ac238f479a6031efe8bfd1a70af389cf2bd22cfd5236adb4e22e7c7a23321a53966e9a1f738d0db2
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
diff --git a/media-video/smplayer/smplayer-17.11.0.ebuild b/media-video/smplayer/smplayer-17.11.0.ebuild
new file mode 100644
index 000000000000..2611d969dfa9
--- /dev/null
+++ b/media-video/smplayer/smplayer-17.11.0.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
+}