diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-11-02 19:43:57 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-11-02 19:43:57 +0000 |
commit | 1c82628ee86b2cc8728af5690cf320937ebe9125 (patch) | |
tree | 18466a18aebfb9ebf9c5817cc25975e15b35ee3e /media-video/kmplayer | |
parent | version bump - ebuild patch from Vincent via bug #197876 (diff) | |
download | gentoo-2-1c82628ee86b2cc8728af5690cf320937ebe9125.tar.gz gentoo-2-1c82628ee86b2cc8728af5690cf320937ebe9125.tar.bz2 gentoo-2-1c82628ee86b2cc8728af5690cf320937ebe9125.zip |
Version bump to to 0.10.0a as per bug 197731. In contrast to what the changelog says, nspr is still needed.
(Portage version: 2.1.3.16)
Diffstat (limited to 'media-video/kmplayer')
-rw-r--r-- | media-video/kmplayer/ChangeLog | 9 | ||||
-rw-r--r-- | media-video/kmplayer/files/digest-kmplayer-0.10.0a | 3 | ||||
-rw-r--r-- | media-video/kmplayer/kmplayer-0.10.0a.ebuild | 102 |
3 files changed, 113 insertions, 1 deletions
diff --git a/media-video/kmplayer/ChangeLog b/media-video/kmplayer/ChangeLog index 38d80672f1b7..20e9ca23c318 100644 --- a/media-video/kmplayer/ChangeLog +++ b/media-video/kmplayer/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-video/kmplayer # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/kmplayer/ChangeLog,v 1.105 2007/10/03 22:14:47 philantrop Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/kmplayer/ChangeLog,v 1.106 2007/11/02 19:43:56 philantrop Exp $ + +*kmplayer-0.10.0a (02 Nov 2007) + + 02 Nov 2007; Wulf C. Krueger <philantrop@gentoo.org> + +kmplayer-0.10.0a.ebuild: + Version bump to to 0.10.0a as per bug 197731. In contrast to what the + changelog says, nspr is still needed. 03 Oct 2007; Wulf C. Krueger <philantrop@gentoo.org> +files/kmplayer-0.10.0-prtypes.patch, kmplayer-0.10.0.ebuild: diff --git a/media-video/kmplayer/files/digest-kmplayer-0.10.0a b/media-video/kmplayer/files/digest-kmplayer-0.10.0a new file mode 100644 index 000000000000..daacd03ed717 --- /dev/null +++ b/media-video/kmplayer/files/digest-kmplayer-0.10.0a @@ -0,0 +1,3 @@ +MD5 6e04b965b70c7e06cbd17a68c9301ac5 kmplayer-0.10.0a.tar.bz2 1054675 +RMD160 28fd5d736eac6568d2b08cd7eab1ca3d95f0be36 kmplayer-0.10.0a.tar.bz2 1054675 +SHA256 300d996bdccd0733d695be5be0806d0a5f0646600b674c7782149cd71e9e6e78 kmplayer-0.10.0a.tar.bz2 1054675 diff --git a/media-video/kmplayer/kmplayer-0.10.0a.ebuild b/media-video/kmplayer/kmplayer-0.10.0a.ebuild new file mode 100644 index 000000000000..5184178fe4f6 --- /dev/null +++ b/media-video/kmplayer/kmplayer-0.10.0a.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/kmplayer/kmplayer-0.10.0a.ebuild,v 1.1 2007/11/02 19:43:56 philantrop Exp $ + +inherit kde eutils + +MY_P="${P/_/-}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="KMPlayer is a Video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend for KDE." +HOMEPAGE="http://kmplayer.kde.org/" +SRC_URI="http://kmplayer.kde.org/pkgs/${MY_P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="mplayer xine cairo gstreamer npp" + +DEPEND="x11-libs/libXv + >=dev-libs/expat-2.0.1 + xine? ( >=media-libs/xine-lib-1.1.1 ) + cairo? ( x11-libs/cairo ) + gstreamer? ( >=media-libs/gstreamer-0.10.11 + npp? ( >=sys-apps/dbus-1.0.2-r2 + >=dev-libs/dbus-glib-0.73 + >=dev-libs/dbus-qt3-old-0.70 ) ) + npp? ( >=dev-libs/nspr-4.6.7 + >=x11-libs/gtk+-2.10.14 )" +RDEPEND="${DEPEND} + mplayer? ( || ( media-video/mplayer media-video/mplayer-bin ) )" + +LANGS="ar be br bs ca csb cs cy da de el en_GB es et fi fr ga gl he hi hu is it +ja ka lt mt nb nl nn pa pl pt_BR pt ro ru rw sk sr@Latn sr sv ta tr uk zh_CN" +LANGS_DOC="da de en es et fr it nl pt ru sv" + +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X}" +done + +need-kde 3.5 + +PATCHES="${FILESDIR}/${PN}-0.10.0-prtypes.patch" + +pkg_setup() { + if ! use mplayer && ! use xine && ! use cairo && ! use gstreamer ; then + echo + ewarn "Neither the mplayer, xine, cairo nor gstreamer USE flags have been set. One of" + ewarn "them is required. mplayer can be installed afterwards; all of the others will" + ewarn "require you to recompile ${PN}." + fi +} + +src_unpack() { + kde_src_unpack + + if use mplayer && use amd64 && ! has_version media-video/mplayer; then + elog 'NOTICE: You have mplayer-bin installed; you will need to configure' + elog 'NOTICE: kmplayer to use it from within the application.' + fi + + for X in ${LANGS} ; do + use linguas_${X} && MAKE_LANGS="${MAKE_LANGS} ${X}.po" + done + cd "${S}/po" + sed -i -e "s:POFILES =.*:POFILES = ${MAKE_LANGS}:" Makefile.am + + MAKE_DOC=$(echo $(echo "${LINGUAS} ${LANGS_DOC}" | tr ' ' '\n' | sort | uniq -d)) + [[ -n ${MAKE_DOC} ]] && [[ -n ${DOC_DIR_SUFFIX} ]] && \ + MAKE_DOC=$(echo "${MAKE_DOC}" | tr '\n' ' ') && \ + MAKE_DOC="${MAKE_DOC// /${DOC_DIR_SUFFIX} }" + sed -i -e "s:^SUBDIRS =.*:SUBDIRS = en ${MAKE_DOC}:" \ + "${KDE_S}/doc/Makefile.am" || die "sed for locale failed" + + # Fix the desktop file + sed -i -e 's:\(Icon=kmplayer\).png:\1:' "${S}/src/kmplayer.desktop" + + rm -f "${S}/configure" +} + +src_compile(){ + local myconf="--enable-expat + $(use_with gstreamer) + $(use_with xine) + $(use_with cairo) + --disable-koffice-plugin" + + if use npp ; then + myconf="${myconf} --enable-nspr --enable-npplayer" + else + myconf="${myconf} --disable-nspr --disable-npplayer" + fi + + # The configure script is a bloated mess and won't work correctly without this. + PKG_CONFIG="pkg-config" kde_src_compile +} + +src_install() { + kde_src_install + + # Remove this, as kdelibs provides it + rm -f "${D}/usr/share/mimelnk/application/x-mplayer2.desktop" +} |