summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-01-15 18:59:04 +0000
committerChristian Ruppert <idl0r@gentoo.org>2012-01-15 18:59:04 +0000
commit9262d88cb3fab3ca46af771c5006809a790c3b30 (patch)
treed1a9e854e44a515f30a3a2af4a566bf9611a1009 /media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild
parentalpha/ia64/s390/sh/sparc stable wrt #393397 (diff)
downloadgentoo-2-9262d88cb3fab3ca46af771c5006809a790c3b30.tar.gz
gentoo-2-9262d88cb3fab3ca46af771c5006809a790c3b30.tar.bz2
gentoo-2-9262d88cb3fab3ca46af771c5006809a790c3b30.zip
Version bump to 1.3.2, also fixes bug 314317.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild')
-rw-r--r--media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild b/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild
new file mode 100644
index 000000000000..e29aa44a2ab9
--- /dev/null
+++ b/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild,v 1.1 2012/01/15 18:59:04 idl0r Exp $
+
+EAPI="4"
+
+inherit vdr-plugin eutils
+
+UPLOAD_NR=783 # changes with every version / new file :-(
+
+DESCRIPTION="VDR text2skin PlugIn"
+HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-text2skin"
+SRC_URI="http://projects.vdr-developer.org/attachments/download/${UPLOAD_NR}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE="contrib doc +imagemagick imlib nls"
+
+REQUIRED_USE="imagemagick? ( !imlib )
+ imlib? ( !imagemagick )"
+
+RDEPEND=">=media-video/vdr-1.6.0
+ imagemagick? ( || ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx] ) )
+ imlib? ( media-libs/imlib2 >=media-video/vdr-1.6.0[-graphtft] )"
+DEPEND="${RDEPEND}
+ imagemagick? ( dev-util/pkgconfig )
+ imlib? ( dev-util/pkgconfig )
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ local imagelib=
+
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+
+ sed -i common.c -e 's#cPlugin::ConfigDirectory(PLUGIN_NAME_I18N)#"/usr/share/vdr/"PLUGIN_NAME_I18N#'
+
+ if ! has_version ">=media-video/vdr-1.7.13"; then
+ sed -i "s:-include \$(VDRDIR)/Make.global:#-include \$(VDRDIR)/Make.global:" Makefile
+ fi
+
+ if use imagemagick; then
+ # Prefer imagemagick over graphicsmagick
+ if has_version "media-gfx/imagemagick"; then
+ imagelib="imagemagick"
+ elif has_version "media-gfx/graphicsmagick"; then
+ imagelib="graphicsmagick"
+ fi
+ elif use imlib; then
+ imagelib="imlib2"
+ else
+ imagelib="none"
+ fi
+ sed -i -e "s:\(IMAGELIB[[:space:]]*=\) .*:\1 ${imagelib}:" Makefile || die
+
+ if ! use nls; then
+ sed -i -e 's:^WANT_I18N=.*:WANT_I18N=:' Makefile || die
+ fi
+
+ vdr-plugin_src_prepare
+}
+
+src_install() {
+ vdr-plugin_src_install
+
+ keepdir "/usr/share/vdr/${VDRPLUGIN}"
+
+ dodoc CONTRIBUTORS
+
+ if use doc; then
+ dodoc Docs/{Reference,Tutorial}.txt
+ fi
+
+ if use contrib; then
+ dodoc -r contrib/
+ fi
+}