blob: 6d9770936be44e7455f1c602e8d83e4b6d10af99 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/asmon/asmon-0.7.ebuild,v 1.2 2006/11/22 15:22:53 josejx Exp $
inherit eutils toolchain-funcs
DESCRIPTION="WindowMaker/AfterStep system monitor dockapp"
HOMEPAGE="http://rio.vg/asmon/"
SRC_URI="http://rio.vg/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~alpha ppc ~sparc ~x86"
RDEPEND="|| ( ( x11-libs/libXpm )
<virtual/x11-7 )"
DEPEND="${RDEPEND}
|| ( ( x11-proto/xextproto )
<virtual/x11-7 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}.cflags.diff
sed -i -e "s:gcc -c:$(tc-getCC) -c:g" \
asmon/Makefile || die "sed failed in Makefile"
}
src_compile() {
cd ${S}/asmon
make clean
emake || die
}
src_install() {
dodoc Changelog
newicon ${PN}.icon.xpm ${PN}.xpm
make_desktop_entry ${PN} ${PN} ${PN}.xpm "System;Monitor"
dobin asmon/${PN}
}
|