blob: a6cc7b819a9c1892d293fed45474dbcc3d16076d (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/awesome/awesome-2.0.ebuild,v 1.2 2007/12/22 18:08:04 nixnut Exp $
inherit toolchain-funcs
MY_P="${P/_/-}"
DESCRIPTION="awesome is a window manager initialy based on a dwm code rewriting"
HOMEPAGE="http://awesome.naquadah.org/"
SRC_URI="http://awesome.naquadah.org/download/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
RDEPEND="dev-libs/confuse
x11-libs/cairo
x11-libs/libX11
x11-libs/libXext
x11-libs/libXft
x11-libs/libXrandr
x11-libs/libXinerama"
DEPEND="${RDEPEND}
app-text/asciidoc
app-text/xmlto
dev-util/pkgconfig
x11-proto/xineramaproto"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "/^CFLAGS/s:=.*-O3:= ${CFLAGS}:" \
-e "/LDFLAGS/s:-ggdb3:${LDFLAGS}:" \
-e "/^CC/s:cc:$(tc-getCC):" \
-e "s:/usr/lib:/usr/$(get_libdir):" \
-e "s:/usr/local:/usr:" \
config.mk || die "sed failed"
}
src_install() {
emake DESTDIR="${D}" install-unstrip || die "emake install failed"
exeinto /etc/X11/Sessions
newexe "${FILESDIR}"/${PN}-session ${PN}
insinto /usr/share/xsessions
doins "${FILESDIR}"/${PN}.desktop
dodoc AUTHORS README awesomerc
}
|