| 1 |
# Copyright 1999-2010 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-process/unixtop/unixtop-3.8_beta1-r1.ebuild,v 1.2 2010/01/15 19:55:39 ulm Exp $ |
| 4 |
|
| 5 |
inherit eutils autotools |
| 6 |
|
| 7 |
DESCRIPTION="top for UNIX systems" |
| 8 |
HOMEPAGE="http://unixtop.sourceforge.net/" |
| 9 |
SRC_URI="mirror://sourceforge/unixtop/top-${PV/_/}.tar.bz2" |
| 10 |
|
| 11 |
LICENSE="BSD" |
| 12 |
SLOT="0" |
| 13 |
KEYWORDS="~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
| 14 |
IUSE="" |
| 15 |
|
| 16 |
RDEPEND="sys-libs/ncurses" |
| 17 |
DEPEND="${RDEPEND}" |
| 18 |
|
| 19 |
S=${WORKDIR}/top-${PV/_/} |
| 20 |
|
| 21 |
src_unpack() { |
| 22 |
unpack ${A} |
| 23 |
cd "${S}" |
| 24 |
epatch "${FILESDIR}"/${P}-ncurses.patch |
| 25 |
epatch "${FILESDIR}"/${P}-no-AX-macros.patch |
| 26 |
epatch "${FILESDIR}"/${P}-renice-segfault.patch |
| 27 |
epatch "${FILESDIR}"/${P}-memleak-fix.patch |
| 28 |
epatch "${FILESDIR}"/${P}-high-threadid-crash.patch |
| 29 |
eautoreconf |
| 30 |
} |
| 31 |
|
| 32 |
src_compile() { |
| 33 |
local myconf= |
| 34 |
|
| 35 |
# don't do bi-arch cruft on hosts that support that, such as Solaris |
| 36 |
export enable_dualarch=no |
| 37 |
|
| 38 |
# configure demands an override because on OSX this is "experimental" |
| 39 |
[[ ${CHOST} == *-darwin* ]] && myconf="${myconf} --with-module=macosx" |
| 40 |
|
| 41 |
econf ${myconf} || die |
| 42 |
emake || die |
| 43 |
} |
| 44 |
|
| 45 |
src_install() { |
| 46 |
emake DESTDIR="${D}" install |
| 47 |
dodoc README FAQ Y2K |
| 48 |
} |