/[gentoo-x86]/x11-wm/xmonad/xmonad-0.8.1.ebuild
Gentoo

Contents of /x11-wm/xmonad/xmonad-0.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 31 17:31:20 2009 UTC (11 years, 2 months ago) by kolmodin
Branch: MAIN
Work on the x11-wm/xmonad ebuilds (bump and patch).
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 CABAL_FEATURES="bin lib profile haddock"
6 inherit haskell-cabal eutils
7
8 DESCRIPTION="A tiling window manager"
9 HOMEPAGE="http://xmonad.org"
10 SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
15 IUSE=""
16
17 DEPEND=">=dev-lang/ghc-6.6.1
18 >=dev-haskell/cabal-1.2
19 dev-haskell/mtl
20 >=dev-haskell/x11-1.4.3"
21 RDEPEND="${DEPEND}"
22
23 SAMPLE_CONFIG="xmonad.hs"
24 SAMPLE_CONFIG_LOC="man"
25
26 src_install() {
27 cabal_src_install
28
29 echo -e "#!/bin/sh\n/usr/bin/xmonad" > "${T}/${PN}"
30 exeinto /etc/X11/Sessions
31 doexe "${T}/${PN}"
32
33 insinto /usr/share/xsessions
34 doins "${FILESDIR}/${PN}.desktop"
35
36 doman man/xmonad.1
37
38 dodoc CONFIG README "${SAMPLE_CONFIG_LOC}/${SAMPLE_CONFIG}"
39 }
40
41 pkg_postinst() {
42 ghc-package_pkg_postinst
43
44 elog "A sample ${SAMPLE_CONFIG} configuration file can be found here:"
45 elog " /usr/share/doc/${PF}/${SAMPLE_CONFIG}"
46 elog "The parameters in this file are the defaults used by xmonad."
47 elog "To customize xmonad, copy this file to:"
48 elog " ~/.xmonad/${SAMPLE_CONFIG}"
49 elog "After editing, use 'mod-q' to dynamically restart xmonad "
50 elog "(where the 'mod' key defaults to 'Alt')."
51 elog ""
52 elog "Read the README or man page for more information, and to see "
53 elog "other possible configurations go to:"
54 elog " http://haskell.org/haskellwiki/Xmonad/Config_archive"
55 elog "Please note that many of these configurations will require the "
56 elog "x11-wm/xmonad-contrib package to be installed."
57 }

  ViewVC Help
Powered by ViewVC 1.1.20