summaryrefslogtreecommitdiff
blob: 80ae62be971adf8bd65704d784f7e39d09646070 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit git multilib toolchain-funcs

DESCRIPTION="a lightweight-but-cool display manager for linux/X11"
HOMEPAGE="http://www.e-x-a.org/?view=orthos"
#SRC_URI="http://www.e-x-a.org/releases/${P}.tar.bz2"
EGIT_REPO_URI="http://www.e-x-a.org/repos/${PN}.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="media-libs/freetype
	media-libs/libsdl
	media-libs/mesa
	x11-libs/libXmu"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	dev-util/scons"

src_unpack() {
	git_src_unpack
	cd "${S}"
	sed -i \
		-e "s:\(os.environ\):\1, parse_flags='!pkg-config gl glu sdl xmu --cflags --libs':" \
		-e "/LIBS/s:=:+=:" \
		-e "s:CC:CXX:" \
		-e "s:g++:$(tc-getCXX):" \
		-e "s:-O2:${CXXFLAGS}:" \
		SConstruct || die
}

src_compile() {
	tc-export CXX
	scons || die

	cat > "${T}/orthos.conf" <<-EOF
	sessions	failsafe:/usr/bin/xterm:clock:/usr/bin/xclock
	Xserver		/usr/bin/Xorg
	skin		/usr/$(get_libdir)/${PN}-default.so
	EOF
}

src_install() {
	# install.sh
	dobin orthos oskintest || die
	(
		cd skins
		for lib in *.so; do
			newlib.so ${lib} ${lib/lib/${PN}-} || die
		done
	)
	insinto /etc
	doins "${T}/orthos.conf" || die

	# doicon files/orthos.svg

	dodoc ChangeLog README TODO
}