blob: 87d3c5d1bbe605f1f1aef3fdac0279bc1e100873 (
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
|
# Copyright 1999-2009 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.3 2009/07/25 19:47:15 ssuominen Exp $
inherit eutils 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}
epatch "${FILESDIR}"/${P}-gcc44.patch
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}
}
|