From 1d8c88d609f1d22ee593f0e0176bf70d7c8e8a8e Mon Sep 17 00:00:00 2001 From: Jonathan Callen Date: Fri, 8 Jan 2010 06:47:49 +0000 Subject: Add prefix support/keywords; die on failure (Portage version: -svn/cvs/Linux i686) --- media-libs/win32codecs/ChangeLog | 8 ++++-- .../win32codecs/win32codecs-20071007-r4.ebuild | 31 ++++++++++------------ 2 files changed, 20 insertions(+), 19 deletions(-) (limited to 'media-libs/win32codecs') diff --git a/media-libs/win32codecs/ChangeLog b/media-libs/win32codecs/ChangeLog index 89a0446e0ea7..1a5de17d04f2 100644 --- a/media-libs/win32codecs/ChangeLog +++ b/media-libs/win32codecs/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/win32codecs -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/win32codecs/ChangeLog,v 1.53 2009/12/13 09:59:28 abcd Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/win32codecs/ChangeLog,v 1.54 2010/01/08 06:47:49 abcd Exp $ + + 08 Jan 2010; Jonathan Callen + win32codecs-20071007-r4.ebuild: + Add prefix support/keywords; die on failure 13 Dec 2009; Jonathan Callen win32codecs-20071007-r4.ebuild: diff --git a/media-libs/win32codecs/win32codecs-20071007-r4.ebuild b/media-libs/win32codecs/win32codecs-20071007-r4.ebuild index 896990bdd4d4..ea176960f2e1 100644 --- a/media-libs/win32codecs/win32codecs-20071007-r4.ebuild +++ b/media-libs/win32codecs/win32codecs-20071007-r4.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/win32codecs/win32codecs-20071007-r4.ebuild,v 1.3 2009/12/13 09:59:28 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/win32codecs/win32codecs-20071007-r4.ebuild,v 1.4 2010/01/08 06:47:49 abcd Exp $ inherit multilib @@ -9,7 +9,7 @@ SRC_URI="mirror://mplayer/releases/codecs/all-${PV}.tar.bz2" HOMEPAGE="http://www.mplayerhq.hu/" LICENSE="as-is" SLOT="0" -KEYWORDS="-* ~amd64 x86 ~x86-fbsd" +KEYWORDS="-* ~amd64 x86 ~x86-fbsd ~x86-freebsd ~x86-linux" IUSE="real" RDEPEND="real? ( =virtual/libstdc++-3.3* )" @@ -26,35 +26,32 @@ pkg_setup() { } src_install() { - # see #83221 - insopts -m0644 - dodir /usr/$(get_libdir)/win32 + use prefix || EPREFIX= + + insinto /usr/$(get_libdir)/win32 + doins *.dll *.ax *.xa *.acm *.vwp *.drv *.DLL || die "Failed to install win32 codecs" if use real then - dodir /usr/$(get_libdir)/real insinto /usr/$(get_libdir)/real - doins *so.6.0 + doins *so.6.0 || die "Failed to install realplayer codecs" # copy newly introduced codecs from realplayer10 # see the ChangeLog online - doins *.so + doins *.so || die "Failed to install realplayer10 codecs" # fix bug #80321 local x for x in *so.6.0 *.so; do - dosym ../real/$x /usr/$(get_libdir)/win32 + dosym ../real/$x /usr/$(get_libdir)/win32 || die "Failed to make symlink to $x" done fi - insinto /usr/$(get_libdir)/win32 - - doins *.dll *.ax *.xa *.acm *.vwp *.drv *.DLL - dodoc README - dodir /etc/revdep-rebuild - cat - > "${D}/etc/revdep-rebuild/50win32codecs" < "${T}/50${PN}" <