# $Header: /magellan-cvs/smage/latencytop/latencytop-0.4-r1.smage2,v 1.3 2008/05/22 16:07:17 niro Exp $ PNAME="latencytop" PVER="0.4" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="LatencyTOP - measuring and fixing Linux latency." HOMEPAGE="http://www.latencytop.org/" DEPEND=">= dev-libs/glib2-2.16 >= sys-libs/ncurses-5.6" SDEPEND=">= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://www.latencytop.org/download/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix ncurses linkage sed -i "s:-lncursesw:-lncurses:g" Makefile || die } src_compile() { cd ${SRCDIR} mmake || die } src_install() { cd ${SRCDIR} minstalldir /usr/sbin || die minstallexec latencytop /usr/sbin || die minstalldir /usr/share/latencytop || die minstallfile latencytop.trans /usr/share/latencytop || die }