summaryrefslogtreecommitdiff
blob: 2ba82ac7551653883f25894d1cbc9be8fb994b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/realcodecs/realcodecs-11.0.1.1056-r1.ebuild,v 1.2 2009/11/20 18:05:16 halcy0n Exp $

EAPI="2"

inherit eutils rpm multilib

DESCRIPTION="Real Player audio and video binary codecs"
HOMEPAGE="http://www.real.com/ http://player.helixcommunity.org/"
SRC_URI="http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.rpm"
RESTRICT="mirror strip test binchecks"
LICENSE="HBRL"
KEYWORDS="-* ~amd64 ~x86"
SLOT="0"
IUSE="win32codecs"
RDEPEND="win32codecs? ( >=media-libs/win32codecs-20071007-r4[real] )
	x86? ( =virtual/libstdc++-3.3* )
	amd64? ( app-emulation/emul-linux-x86-compat )
	!<media-video/realplayer-11.0.1.1056-r2"

S="${WORKDIR}/opt/real/RealPlayer"

pkg_setup() {
	# This is a binary x86 package => ABI=x86
	# Please keep this in future versions
	# Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
	has_multilib_profile && ABI="x86"
}

src_install() {
	dodir /opt/RealPlayer/

	fperms 644 codecs/*
	insinto "/opt/RealPlayer/codecs"
	doins codecs/*

	if use win32codecs; then
		# We need symlinks to older codecs so that RealPlayer
		# can play some streams, bug 240417
		dosym /usr/$(get_libdir)/real/ddnt.so.6.0 \
			/opt/RealPlayer/codecs/ddnt.so.6.0
		dosym /usr/$(get_libdir)/real/dnet.so.6.0 \
			/opt/RealPlayer/codecs/dnet.so.6.0
		dosym /opt/RealPlayer/codecs/ddnt.so.6.0 \
			/opt/RealPlayer/codecs/ddnt.so
		dosym /opt/RealPlayer/codecs/dnet.so.6.0 \
			/opt/RealPlayer/codecs/dnet.so
	fi
}