diff options
author | Ben de Groot <yngwin@gentoo.org> | 2015-02-11 14:24:07 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2015-02-11 14:24:07 +0000 |
commit | 2494fdcb8802402a2d16644ce931180b39b434bd (patch) | |
tree | 7141c282c386f2c56b0cd44227386a47da5e66aa /media-video | |
parent | unmask latest ffmpeg (diff) | |
download | historical-2494fdcb8802402a2d16644ce931180b39b434bd.tar.gz historical-2494fdcb8802402a2d16644ce931180b39b434bd.tar.bz2 historical-2494fdcb8802402a2d16644ce931180b39b434bd.zip |
Add helper function to find lrelease. Add linguist-tools:5 dep.
Package-Manager: portage-2.2.15/cvs/Linux x86_64
Manifest-Sign-Key: 0x4FDF9CFD2FAC514E!
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/smplayer/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/smplayer/Manifest | 31 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-14.9.0.6690-r1.ebuild | 103 |
3 files changed, 125 insertions, 16 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog index da5fa797f809..dda963d6ed98 100644 --- a/media-video/smplayer/ChangeLog +++ b/media-video/smplayer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-video/smplayer # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.155 2015/02/04 13:45:13 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.156 2015/02/11 14:23:59 yngwin Exp $ + +*smplayer-14.9.0.6690-r1 (11 Feb 2015) + + 11 Feb 2015; Ben de Groot <yngwin@gentoo.org> +smplayer-14.9.0.6690-r1.ebuild: + Add helper function to find lrelease. Add linguist-tools:5 dep. 04 Feb 2015; Ben de Groot <yngwin@gentoo.org> smplayer-14.9.0.6690.ebuild: Drop keywords on arches that do not have mpv-0.7.3 keyworded (bug #538804) diff --git a/media-video/smplayer/Manifest b/media-video/smplayer/Manifest index 0de39186bdb7..2deb42ec84e4 100644 --- a/media-video/smplayer/Manifest +++ b/media-video/smplayer/Manifest @@ -8,26 +8,27 @@ DIST smplayer-14.9.0.6690.tar.bz2 3813209 SHA256 5ec8a1d2912828e9b19f800e338029e DIST smplayer-14.9.0.tar.bz2 3716434 SHA256 429ad4edd6df1fcedd5ea4fa2b024eb5a61c9412f52762e9d9a9c2245b7ddf13 SHA512 78cecdad7e5f18c221a2f08a0472da01eb14db6230733616b805b6fccf2929c3f5b4dd92fd037362890a308967fa6602b89318c5376c3ce3a38d0dd9a1a17e43 WHIRLPOOL d7e621cd9ebcee450ce7aa9beaf1240c3d2f91271d2a6f043688c8688d77e8ad4761777a05ae77230966d050d647e700aa5bc8d3b566adc3fb724eaf9e315399 EBUILD smplayer-14.3.0.ebuild 2156 SHA256 bcae6caed7f025bf9cdf96c5b352ea06a6b6c93e8474d2e7e8351779e553f052 SHA512 1e5cd636d3f5c204702b871274ebbfc25d2073a7a2208474e409094688cfc58d887a382d0c057426e4828d45a5b8cac95ebb204e33e2228117634f661c056587 WHIRLPOOL cf99299f71a139bb7e6ff7ca1811b2175d97d33f8bbd8e0479ab9118659c0f6c4af1f96535f7d4954fb0bdc716160429a00dd582507eff6b42cf913a350a1ba3 EBUILD smplayer-14.9.0-r1.ebuild 2492 SHA256 cd73d5cbe53a8ca1ac96b7f730fd0d5a98801336ce72973e816bcd4a3feedb9e SHA512 d6c57654bd160e480e8599dcab8c205ffbfcd1b46d29a61080bb45a5ff5c3920cf8962233008590b23d958c65103f5b4d2a0a771ed85e07c253282e13cef02a8 WHIRLPOOL 74cbad48dc341fc2f02394ca3e288e2eacbee0a6613ab5f9a5aa90c963b3b8d668316ce58666f3ee1ba98e419d86c32f5d4919e898027a76af42096adf9761e0 +EBUILD smplayer-14.9.0.6690-r1.ebuild 3051 SHA256 9b6fda48a2608794965195cf4727abfa5cd9556a2e33d3718e43d3f78b697e31 SHA512 3ab20b693187e307a3f173f295e260f97124a357b5b091de104861f97657c78c7012fdbabf24ea8c106c9a96cf837f34cbeb30b9db18231bbc95bc92377ee094 WHIRLPOOL ce644bc41c037d8760beb182075647e70e83a4a6b16f2e32bb6d2db41cb5169a77560d5e571900c8c9e2603e72381a87d74389e2ee99b3896dbc7181fe78d8be EBUILD smplayer-14.9.0.6690.ebuild 2790 SHA256 52ba1ae3812cc5317074f4281c2ae5af15c572144c68a8158df2df02b7f43a3f SHA512 f647f0db0b6aaf9ecc1589d74621515f557b792aa71a1031a14bd02f28f6509c7487d91b2c276ebf288b0e917f956706197977152183fe575cb872b4b30c2d08 WHIRLPOOL a74ff55813f42776d621f3640aa5b08eebf297e8f4381283e78267c45b9a53f0c0e3d90ef702152d38dcdb5eb181c3b0043e9c217fc1eacf3aed62dda6cf948d EBUILD smplayer-14.9.0.ebuild 2431 SHA256 f5f9668375eead2c2cb2205cfff079dce64eee340e5dcd0dcf838721694bfc14 SHA512 a9c97c77f26840651dbe1c59b29e8f1819ba1d03a87b36e3aa43b335f1dbe6c91030e857fc9965f662cc5e616165b7b7f529382265f8dd57112ef16593553d2a WHIRLPOOL c49fc2546cb44b43c0d3a47dda63e146803deeaf6d6507e98d8529e0bee7a91deba2c2d19a9d4e9aae0ff46a23f31f49bee8f5d0ce0ce44501da609a86d6ba94 -MISC ChangeLog 21513 SHA256 134151f8ff0c7b8438e1cada896f5cac1ea2040de8cfaea1f91f9d2d87b239dd SHA512 adf71b507a6d54f42b2fda14f4b63ada2930e18de186a9602732dfbf50fe0104b6aeea4b4b446a9e57940722e6dda2aa4d3eb321919bb3c62606759a728e6b15 WHIRLPOOL 33ecef92662d0be055e12a31c36afd7eaa63c3a567db240daec8af13e05540de3083e6b5152ac8923d3f35742900b5a3f446f10f308f6cc50dced61a0e35de96 +MISC ChangeLog 21701 SHA256 bd9e63a61a10978ecfcdfbaf9cb8ed3868d14876b1d9829489f874c11da0acac SHA512 fa713ae78ac5a278c3bf047507bf3824ea1fcc25f2bdc7b23baf327494bf9cc7323829aa7d5e0a864eb6fa4c2bf7c9cc6cefda10f510e2a58f5418136f65bfcb WHIRLPOOL 05fa9e1c4536f31b9d0e91288d53907421c461fd24e07867c89aed4c1dccc8314c19a8a10b006b465e34768d3e216ee8adbd007e26cf12244f032e63f76e1385 MISC metadata.xml 505 SHA256 ca8bb6982e46f56f34350483c91999e947f0d30aae50bdb75dc7f8fba8e76e1b SHA512 18a3dbf2bea045c321945434a0933468d27b40cc0984d0c439a6726b25cbf978c9f9886aa09f7dbfa6c0176477095e5c5ddec4267ce52478cc92d053f0697f18 WHIRLPOOL dd5ae89b730a16d4531adc640df01b4d01fad68d8b7018f35e7dfefff3dd30c36cb6d2b3e8ff6d0332de8e639ea850985d5388435744dcbdff8f255822d4e0c6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 -iQJ8BAEBCABmBQJU0iJsXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +iQJ8BAEBCABmBQJU22YFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5MTlDREQ0NUU5Mjc4RkU2RjJDNTAyNzU0 -RkRGOUNGRDJGQUM1MTRFAAoJEE/fnP0vrFFOt5UQAKwPXNkpHn5Z9bJcmCo9fLDN -yRkBd+Qn0axS0QWzF8TkN8lEfhspOlpKzEUc64i12h+SLXJ4vHUGsQyeYRokvLe0 -T467neSSpzQenKXH7CxHYMMaX26H0KkMTOeDMmwV46mgMiwwWd542HuTqA70vqyU -Wvp32RKWU4dYKArhNRHucbCtYHxm5aFhzTByHXW73giWnBSIihHwxSWiAdCxMPtV -YzCYvkhMEriwi3Nj2iZ4KVVf9Gei0Uje/prr3//aDCsij/mBzDvFrMfaa6FfyBoe -1x3R4GB22m9J0gm3zzz3Y/K/3Q+gSzt20C7GGKfcmQMxFwhPVvvrc2tOmI99TT++ -S/I6wTQ39A4mtFxmyzfXfGM667g05sLK6aJxJyOjg1mZ8A5LTciO/wq/tnncXduS -Pd05GOBgsp5DRrB+UzfEI+CAjvotBnjuezP8utPI08oPvHdZ8ftWoW2DTW594X+y -Nw8jNbPzinwX8VDhSivyUcCEONwHsNgnbptX7QtUh17Nlgk/i/kCHZnIxc8mbI4n -k88ddai9OnX100/mBJ9aHjd00WS6PCD09nf3jrztZsGqkv2uI1cFOm8upwP/SQGl -aYTemlS7j1ltlrKDFoSUp0tytGwVZXL2jr7XV6pRo4cx49GdtuW/c9CrOjK2exSt -xOnLirQSkCPKmMqEjFOL -=RKXe +RkRGOUNGRDJGQUM1MTRFAAoJEE/fnP0vrFFOvoYP/1jOyyKNn4kDU7aEsD+FngKq +AxNGq7wngntrVWJUVw4iNs9aHtj3E/0+3nIWYQ4oCwug10/WEAa4lrGHDBDINxlr +npW4E5ErIJOxqmkExApv6fAswX8YbmdLlBK8TpYEplmSaJ6pmlzL0SFxan1fFC9f +moaCGYcEgZMLWC2phJ1d/12G6nkr2qbdbkl1QHRhsUvdemTniRgv1momlKr5NX7u +kNyjUDoZid8/isQwhd0RUTKYUvNAhmKr0hVRTqpp+GQQaMaPExE6H7yB5g+z0ofP +2q+mqrEAf54fI0j423UII6ZBIsIqWJfcONmlYhiILHdQPKvDOIkAoMZqD4TU9YPp +clwjQz+W6r7S6AhkE5rJ8kxDsgsCDBzORBPMc1ZD+ttSfmLFj8RRxA53iiDFuspP +c9ORh9qEUQpwoi+kZk5IAnzytAtX137d6QVelqrA6FGrfKl2SV9MUDK2EC5CyXAh +pI4hTHIJdkAs7eu//UGJb1hXUj18FgNYxswtvxFIVyNQKETlJWRTh/xhjYvBge5R +44IIxZisMkmJ28/ID5gp7EduyJ20Gu1RPYmoyNd/9MrZkY2wP6K4SSzy1Ywzzfg6 +sYRpzuuGKypPyGFCyEYL+WDMhtKOzAcxDtCglPTeP1qQr0K9Od60Opt/Dgol04XZ +FEjyAwqmI10XEWoSf41h +=EG0g -----END PGP SIGNATURE----- diff --git a/media-video/smplayer/smplayer-14.9.0.6690-r1.ebuild b/media-video/smplayer/smplayer-14.9.0.6690-r1.ebuild new file mode 100644 index 000000000000..17b6b08d0a7c --- /dev/null +++ b/media-video/smplayer/smplayer-14.9.0.6690-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/smplayer-14.9.0.6690-r1.ebuild,v 1.1 2015/02/11 14:23:59 yngwin Exp $ + +EAPI=5 +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 it ja +ka ko ku lt mk ms_MY nl pl pt pt_BR ro_RO ru_RU sk sl_SI sq_AL sr sv th tr uk_UA vi_VN +zh_CN zh_TW" +PLOCALE_BACKUP="en_US" + +inherit eutils l10n qmake-utils + +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +DESCRIPTION="Great Qt GUI front-end for mplayer/mpv" +HOMEPAGE="http://smplayer.sourceforge.net/" +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~amd64-linux" +IUSE="autoshutdown bidi debug qt4 qt5 streaming" +REQUIRED_USE="^^ ( qt4 qt5 )" + +DEPEND="qt4? ( dev-qt/qtcore:4 + dev-qt/qtgui:4 + autoshutdown? ( dev-qt/qtdbus:4 ) ) + qt5? ( dev-qt/linguist-tools:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtscript:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + autoshutdown? ( dev-qt/qtdbus:5 ) )" +RDEPEND="${DEPEND} + || ( >=media-video/mpv-0.6.2[libass,X] + media-video/mplayer[bidi?,libass,png,X] ) + streaming? ( >=media-video/mpv-0.6.2[libass,X] + >=net-misc/youtube-dl-2014.11.26 )" + +src_prepare() { + use bidi || epatch "${FILESDIR}"/${P}-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 + + # 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" + + # l10n_find_plocales_changes "${S}/src/translations" "${PN}_" '.ts' +} + +src_configure() { + cd "${S}"/src + echo "#define SVN_REVISION \"${PV} (Gentoo)\"" > svn_revision.h + use qt4 && eqmake4 + use qt5 && eqmake5 +} + +get_qt_bindir() { + local qt4bindir=${EPREFIX}/usr/$(get_libdir)/qt4/bin + [[ -x ${qtbindir} ]] || qt4bindir=${EPREFIX}/usr/bin + use qt4 && echo ${qt4bindir} + use qt5 && echo ${EPREFIX}/usr/$(get_libdir)/qt5/bin +} + +gen_translation() { + ebegin "Generating $1 translation" + "$(get_qt_bindir)"/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 +} |