blob: 030dd8aab8ce8344ba1032f28f80a6ed52df8578 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/xmonad/xmonad-0.5.ebuild,v 1.1 2007/12/15 22:58:29 kolmodin Exp $
CABAL_FEATURES="bin lib profile haddock"
CABAL_MIN_VERSION=1.2
inherit haskell-cabal
DESCRIPTION="A lightweight X11 window manager"
HOMEPAGE="http://www.xmonad.org/"
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
DEPEND="dev-haskell/mtl
>=dev-haskell/x11-1.4
>=dev-lang/ghc-6.6"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
# -Wall -Werror is really fragile.
# portage strips, packages should not do it themselves.
sed -i -e 's/-Wall -Werror -optl-Wl,-s//' "${S}/xmonad.cabal"
}
src_install() {
cabal_src_install
echo -e "#!/bin/sh\n/usr/bin/xmonad" > "${T}/${PN}"
exeinto /etc/X11/Sessions
doexe "${T}/${PN}"
insinto /usr/share/xsessions
doins "${FILESDIR}/${PN}.desktop"
doman man/xmonad.1
}
|