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

EAPI="2"
inherit git multilib

EGIT_REPO_URI="http://www.e-x-a.org/repos/${PN}.git"

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"
SRC_URI=""

LICENSE="GPL-3"
SLOT="live"
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
	media-libs/gle"

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

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

src_compile() {
	scons || die
}

src_install() {
	# install.sh
	dobin orthos oskintest || die
	exeinto /usr/$(get_libdir)/${PN}; doexe skins/*.so || die
	insinto /etc; doins "${T}/orthos.conf" || die

	# doicon files/orthos.svg

	dodoc ChangeLog README TODO
}