summaryrefslogtreecommitdiff
blob: 59c0ac50c451a772bdb301a73f57b6e8a340f402 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmsens/wmmsens-0.29.8.ebuild,v 1.2 2008/06/28 07:11:39 maekke Exp $

inherit toolchain-funcs

DESCRIPTION="a dockapp for monitoring hardware sensors (sys-apps/lm_sensors)"
HOMEPAGE="http://www.digressed.net/wmmsens"
SRC_URI="http://www.digressed.net/${PN}/src/${P}.tar.gz"

LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""

RDEPEND="sys-apps/lm_sensors
	x11-libs/libX11
	x11-libs/libXpm
	x11-libs/libXext"
DEPEND="${RDEPEND}
	x11-proto/xextproto"

S=${WORKDIR}/${P}/src

src_unpack() {
	unpack ${A}
	sed -e 's:$(OBJS) $(LDFLAGS):$(LDFLAGS) $(OBJS) $(LIBS):g' \
		-e 's:LDFLAGS = -L/usr/X11R6/lib:LIBS =:' -e '/DELETE/q' \
		-i "${S}"/Makefile
}

src_compile() {
	emake CC="$(tc-getCXX)" OPTFLAGS="${CXXFLAGS}" || die "emake failed."
}

src_install() {
	dobin ${PN}
	dodoc ../{ChangeLog,CREDITS,README,TODO}
}