diff options
author | Justin Riley <justin.t.riley@gmail.com> | 2013-11-18 11:31:28 -0500 |
---|---|---|
committer | Justin Riley <justin.t.riley@gmail.com> | 2013-11-18 11:31:28 -0500 |
commit | bcbab927b9e12e7e738805decc59e50d86bd8d8a (patch) | |
tree | 2a065fcc1b61f337488394bf2b63428842a88093 /media-video | |
parent | git eclass -> git2 (diff) | |
download | jtriley-bcbab927b9e12e7e738805decc59e50d86bd8d8a.tar.gz jtriley-bcbab927b9e12e7e738805decc59e50d86bd8d8a.tar.bz2 jtriley-bcbab927b9e12e7e738805decc59e50d86bd8d8a.zip |
add smtube 1.8
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/smtube/Manifest | 1 | ||||
-rw-r--r-- | media-video/smtube/smtube-1.8.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/media-video/smtube/Manifest b/media-video/smtube/Manifest index 00f0cd7..255586e 100644 --- a/media-video/smtube/Manifest +++ b/media-video/smtube/Manifest @@ -1 +1,2 @@ DIST smtube-1.2.1.tar.bz2 304813 SHA256 939ae5af80c5100b22a329e0f81faa557095cfb25104bf05f5dbf2b9855d570f SHA512 3217766e5f0e15ed7e27d52ed68824206fa742663b226598109bf14299f3a393051988cf248f2ead0a45933959c7a48eec86cea3ca479b2cfd04deaca99344c0 WHIRLPOOL d006d72c24d4a19d00c542b807b3c27013be2f7330a5c3a867128663fd638a3ee6c0bc279627e33587a6e23cc469681d24ed7c382a1c1ece0716f91b903ffb7b +DIST smtube-1.8.tar.bz2 362027 SHA256 00978f6bf63cff112fefa93928494f5fe52c8dd720ceae67d6cfc4aee250aa89 SHA512 ae649e18f3efb367f48f49816244050e730a03b4aca8f36a8e7b799ec333177fd94d45a12cda03788a0eaacf8c486c4962f686872e8877ba960627fbb2c5a621 WHIRLPOOL 393a5f3cc1230a10c63cd6b257b6d4e9ec303f9afa157658d9af7cadb00b2a623531f6fe418003eb4917b3fdafa3e7eabbb9c7ba83912c0fdbeafafd8019a912 diff --git a/media-video/smtube/smtube-1.8.ebuild b/media-video/smtube/smtube-1.8.ebuild new file mode 100644 index 0000000..cfde2a0 --- /dev/null +++ b/media-video/smtube/smtube-1.8.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PLOCALES="cs el en es eu fi gl he_IL hu ja ka lt ms_MY nn_NO pl pt_BR pt ru_RU sv tr uk zh_CN" +inherit l10n qt4-r2 + +DESCRIPTION="A youtube search and play add-on for smplayer" +HOMEPAGE="http://smplayer.sourceforge.net/" +SRC_URI="mirror://sourceforge/smplayer/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-qt/qtgui:4" +RDEPEND="${RDEPEND} + media-video/smplayer" + +src_prepare() { + remove_translation() { + sed -i -e "s:translations/${PN}_${1}.ts::" src/${PN}.pro || die "removing translation ${1} from src/${PN}.pro failed" + } + + sed -i \ + -e '/^PREFIX=/s:/usr/local:/usr:' \ + -e "/^DOC_PATH/s:${PN}:${PF}:" \ + -e 's/&& $(QMAKE) $(QMAKE_OPTS)//' \ + Makefile || die "sed on Makefile failed" + + echo "#define SVN_REVISION \"SVN-${PV} (Gentoo)\"" > src/svn_revision.h + + # remove unneeded files + rm Copying.txt Copying_BSD.txt || die 'remove unneeded files failed' + + l10n_find_plocales_changes "src/translations" "${PN}_" '.ts' + l10n_for_each_disabled_locale_do remove_translation + + qt4-r2_src_prepare +} + +src_configure() { + pushd src &>/dev/null || die 'failed to change directory' + eqmake4 + popd &>/dev/null +} |