blob: 016ce547368889b4caed07c763ad8896ffb1b01b (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/wmii/wmii-3.6-r2.ebuild,v 1.3 2009/07/13 13:17:29 omp Exp $
inherit eutils multilib toolchain-funcs
DESCRIPTION="A dynamic window manager for X11"
HOMEPAGE="http://wmii.suckless.org/"
SRC_URI="http://www.suckless.org/download/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE=""
DEPEND="~sys-libs/libixp-0.4
x11-libs/libX11"
RDEPEND="${DEPEND}
x11-apps/xmessage
x11-apps/xsetroot
x11-misc/dmenu
media-fonts/font-misc-misc"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s/dmenu -b/dmenu/" \
rc/{rc.wmii.rc,sh.wmii,wmiirc.sh} || die "sed failed"
sed -i \
-e "/^PREFIX/s|=.*|= ${D}/usr|" \
-e "/^ETC/s|=.*|= ${D}/etc|" \
-e "/^LIBDIR/s|=.*|= /usr/$(get_libdir)|" \
config.mk || die "sed failed"
# bug 231299
epatch "${FILESDIR}"/${P}-64bit-safe.patch
}
src_compile() {
emake -j1 || die "emake failed"
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "emake install failed"
dodoc NOTES README TODO
# Rid paths of temporary install directory. (bug #199551)
sed -i -e "s|${D}||g" "${D}/usr/bin/wmiistartrc"
echo -e "#!/bin/sh\n/usr/bin/wmii" > "${T}/${PN}"
exeinto /etc/X11/Sessions
doexe "${T}/${PN}"
insinto /usr/share/xsessions
doins "${FILESDIR}/${PN}.desktop"
}
|