# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic DESCRIPTION="wmcpu is a dockapp to monitor memory and CPU usage, similar to xosview" HOMEPAGE="http://www.ne.jp/asahi/linux/timecop/#wmcpu" SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${P}.tar.gz http://dockapps.org/download.php/id/657/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="|| ( ( x11-libs/libX11 x11-libs/libXext x11-libs/libXpm ) virtual/x11 )" RDEPEND="${RDEPEND} || ( x11-proto/xextproto virtual/x11 )" src_compile() { # Note: the original Makefile has -O3, so it is safe to compile this package # with -O3. replace-flags -O0 -O3 replace-flags -O1 -O3 replace-flags -O2 -O3 # We then add the default -Wall from Makefile to CFLAGS emake CFLAGS="${CFLAGS} -Wall" || die "emake failed" } src_install () { dobin wmcpu dodoc ChangeLog README } pkg_postinst() { ewarn "wmcpu-1.3 does not fully work with 2.6 kernels." ewarn "No memory info will be displayed on these kernels." ewarn "Please update to version 1.4, which works on 2.4 and 2.6 kernels." }