blob: 21fd486d1815833fbf2b1bb237403f8613e9403c (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xmonad-log-applet/xmonad-log-applet-2.0.0-r200.ebuild,v 1.2 2014/02/28 14:30:11 ssuominen Exp $
EAPI=5
inherit autotools gnome2
DESCRIPTION="Gnome and XFCE applet for displaying XMonad log"
HOMEPAGE="https://github.com/alexkay/xmonad-log-applet"
SRC_URI="mirror://github/alexkay/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome xfce_plugins_xmonad"
RESTRICT="mirror"
RDEPEND="sys-apps/dbus
gnome? ( <gnome-base/gnome-panel-3.0 )
xfce_plugins_xmonad? ( xfce-base/xfce4-panel )
dev-libs/glib:2
dev-haskell/dbus
x11-libs/gtk+:2"
DEPEND="${RDEPEND}"
src_prepare() {
eautoreconf
}
src_configure() {
local myconf
myconf=""
use gnome && myconf="${myconf} --with-panel=gnome2"
use xfce_plugins_xmonad && myconf="${myconf} --with-panel=xfce4"
econf --sysconfdir=/etc ${myconf}
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS.md README.md
dodoc "${FILESDIR}"/xmonad.hs
}
pkg_postinst() {
ghc-package_pkg_postinst
elog "Remember to update your xmonad.hs accordingly"
elog "a sample xmonad.hs is provided in /usr/share/doc/${PF}"
}
|