blob: 1b22fec4b91a0fe3182d93c566bd6b8387d21c43 (
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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/echinus/echinus-0.3.2.1.ebuild,v 1.1 2009/02/23 20:40:27 yngwin Exp $
inherit eutils toolchain-funcs
DESCRIPTION="A window manager for X in the spirit of dwm"
HOMEPAGE="http://www.rootshell.be/~polachok/code/"
SRC_URI="http://www.rootshell.be/~polachok/code/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="x11-libs/libX11
x11-libs/libXft"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s/CFLAGS = -Os/CFLAGS += -g/" \
-e "s/LDFLAGS = -s/LDFLAGS += -g/" \
config.mk || die "sed failed"
}
src_compile() {
emake CC=$(tc-getCC) || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
insinto /usr/share/xsessions
doins "${FILESDIR}"/${PN}.desktop
doman ${PN}.1
dodoc README
}
pkg_postinst() {
if ! has_version x11-misc/dmenu; then
elog "Installing ${PN} without x11-misc/dmenu"
elog "To have a menu you can install x11-misc/dmenu"
elog "and use \"Echinus*spawn\" in echinusrc"
elog "to launch dmenu_run. Check echinus documentation for details."
elog ""
fi
# x11-misc/ourico is not in portage atm, this will change soon.
#if ! has_version x11-misc/ourico; then
# elog "Installing ${PN} without x11-misc/ourico"
# elog "To have a taskbar you can install x11-misc/ourico"
# elog ""
#fi
elog "A standard config file with its pixmaps has been installed to:"
elog "${PREFIX}/usr/share/examples/${PN}/"
elog "Copy this folder to ~/.${PN}/ and modify the echinusrc as you wish."
elog ""
elog "For changing the modkey you can use \"Echinus*modkey: X\""
elog "in echinusrc. Replace the X with the number you want to use,"
elog "1 is for Mod1Mask, 2 for Mod2Mask and so on."
}
|