blob: 9b2ea666ea377f6d3f1bcb9acc2c25d70afe7ea9 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
DESCRIPTION="Decoder for onlinetvrecorder.com (German)"
HOMEPAGE="http://www.onlinetvrecorder.com/"
SRC_URI="amd64? ( http://www.onlinetvrecorder.com/downloads/${PN}-linux-Ubuntu_8.04.2-x86_64-0.4.613.tar.bz2 )
!amd64? ( http://www.onlinetvrecorder.com/downloads/${PN}-linux-Ubuntu_9.04-i686-0.4.${PV}.tar.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X"
RDEPEND="X? ( gnome-base/libglade
dev-python/pygtk )"
RESTRICT="strip"
src_unpack() {
default
if use amd64; then
mv ${PN}-linux-Ubuntu_8.04.2-x86_64-0.4.613 ${S} || die "move failed"
else
mv ${PN}-linux-Ubuntu_9.04-i686-0.4.${PV} ${S} || die "move failed"
fi
}
src_prepare() {
sed -i -e "/xml/s:decoderpath:'/usr/share/${PN}':" otrdecoder-gui || die "sed failed"
}
src_install() {
dobin otrdecoder || die "dobin failed"
if use X; then
insinto /usr/share/${PN}
doins decoder.glade || die "doins failed"
dobin otrdecoder-gui || die "dobin failed"
fi
dodoc README.OTR || die "dodoc failed"
}
|