blob: 00cda646b284a110402cf0c7521a1d12a0e5e87d (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/goggles/goggles-0.9.1.ebuild,v 1.2 2007/04/19 20:47:39 mabi Exp $
inherit eutils toolchain-funcs
DESCRIPTION="User-friendly frontend for the Ogle DVD Player"
HOMEPAGE="http://www.fifthplanet.net/goggles.html"
SRC_URI="http://www.fifthplanet.net/files/goggles-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ~x86"
IUSE="doc"
DEPEND="=x11-libs/fox-1.6*
>=media-video/ogle-0.9.2
media-libs/libpng"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e "/^export CC=/s:=.*:=\"$(tc-getCC)\":" \
-e "/^export CXX=/s:=.*:=\"$(tc-getCXX)\":" \
-e "/^export CFLAGS=/s:=.*:=\"${CFLAGS}\":" \
-e "/^export CXXFLAGS=/s:=.*:=\"${CXXFLAGS}\":" \
build/config.linux
# comment out the default 'optimization' including a stripped binary
sed -i \
-e "s/^export DEFS=\"-DNDEBUG\"/\# &/" \
build/configdetect
# and some seding to use the correct [[ ]] instead of [ ]
sed -i \
-e "s/\[\(.*\)\]/\[\[\1\]\]/" \
build/config.linux
}
src_compile() {
WANT_FOX="1.6" ./gb || die "build failed"
# we do it now manually, to avoid calling 'gb install'
sed "s|@location@|${DESTTREE}/bin|" scripts/goggles.in > scripts/goggles
grep -e '[^$]@' scripts/goggles && die "missing substitution"
}
src_install() {
dobin ${S}/scripts/goggles || die
# the binary is no longer (statically) named "ogle_gui_goggles", but
# (dynamically) after the package name which is "goggles"
newbin ${S}/src/goggles ogle_gui_goggles || die
if use doc; then
dodoc ${S}/desktop/goggles_manual.pdf || die
fi
insinto /usr/share/applications
doins ${S}/desktop/${PN}.desktop || die
insinto /usr/share/pixmaps
newins ${S}/icons/goggleslogosmall.png goggles.png || die
}
|