diff options
author | 2011-08-27 08:56:21 +0000 | |
---|---|---|
committer | 2011-08-27 08:56:21 +0000 | |
commit | 17e37ec7947493efe9c72531fd152ff694778e97 (patch) | |
tree | 3cea609de4ac9343733fdfbb290af6e806d78867 /media-video/imagination/imagination-3.0-r1.ebuild | |
parent | Adding aio useflag to properly handle automagic depend, bug #380353 (diff) | |
download | gentoo-2-17e37ec7947493efe9c72531fd152ff694778e97.tar.gz gentoo-2-17e37ec7947493efe9c72531fd152ff694778e97.tar.bz2 gentoo-2-17e37ec7947493efe9c72531fd152ff694778e97.zip |
Refactor LINGUAS logic and patch for loading plugins. Bug #380011. Thanks to rj rooke <rjrooke@earthlink.net> for reporting and testing
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'media-video/imagination/imagination-3.0-r1.ebuild')
-rw-r--r-- | media-video/imagination/imagination-3.0-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/media-video/imagination/imagination-3.0-r1.ebuild b/media-video/imagination/imagination-3.0-r1.ebuild new file mode 100644 index 000000000000..8261edc63e27 --- /dev/null +++ b/media-video/imagination/imagination-3.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/imagination/imagination-3.0-r1.ebuild,v 1.1 2011/08/27 08:56:21 hwoarang Exp $ + +EAPI="4" + +inherit autotools eutils + +DESCRIPTION="Simple DVD slideshow maker" +HOMEPAGE="http://imagination.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="linguas_cs linguas_de linguas_en_GB linguas_fr linguas_it linguas_pt_BR +linguas_sv linguas_zh_CN linguas_zh_TW" + +DEPEND="x11-libs/gtk+:2 + media-sound/sox" +RDEPEND="${DEPEND} + virtual/ffmpeg" + +LANGS="cs de en_GB fr it pt_BR sv zh_CN zh_TW" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cflags.patch + # enable translations. Bug #380011 + sed -i -e "/#define PLUGINS_INSTALLED/s:0:1:" "${S}"/src/support.h || die + rm "${S}"/po/LINGUAS + for x in ${LANGS}; do + if ! has ${x} ${LINGUAS}; then + rm "${S}"/po/${x}.po || die + else + echo -n "${x} " >> "${S}"/po/LINGUAS + fi + done + eautoreconf +} + +src_install() { + default + doicon icons/48x48/${PN}.png +} |