summaryrefslogtreecommitdiff
blob: fb4373bdcb41eaa6a5d7c58fbf12743c8eef966c (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmium/wmium-1.0.7.ebuild,v 1.2 2004/03/04 18:33:20 dragonheart Exp $

DESCRIPTION="WindowMaker DockApp/Grellm2 pluggin that fetches the DSL usage information for Australian ISP Internode"

HOMEPAGE="http://www.earthmagic.org/?software"

SRC_URI="http://www.earthmagic.org/files/${P}.tar.gz"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="x86"

IUSE="gtk"

DEPEND="virtual/glibc
	x11-base/xfree
	media-libs/xpm
	dev-libs/openssl
	gtk? ( >=x11-libs/gtk+-2* )
	gtk? ( app-admin/gkrellm )
	gtk? ( dev-util/pkgconfig )"

RDEPEND="virtual/glibc
	x11-base/xfree
	media-libs/xpm
	dev-libs/openssl
	gtk? ( >=x11-libs/gtk+-2* )
	gtk? ( app-admin/gkrellm )
	!gtk? ( x11-wm/windowmaker )"

S=${WORKDIR}/${P}

src_compile() {

	emake build || die "Cannot make ${P}"
	use gtk && emake build-gk2
}

src_install() {

	if [ `use gtk` ]; then
		exeinto /usr/lib/gkrellm2/plugins
		doexe src-gk2/wmium-gk2.so
	fi

	dobin src/wmium

	dodoc BUGS INSTALL-GK2  README dot.wmiumrc.sample \
		CHANGES  INSTALL README-GK2

	doman src/wmium.1

	einfo ""
	einfo "To configure look at the /usr/share/doc/${PF}/dot.wmiumrc.sample"
	einfo "(if using /usr/bin/wmium with WINDOWMAKER ONLY)"
	einfo ""
	einfo " or use the preferences within gkrellm2"
}