# $Id$ PNAME="procps" PVER="3.2.8" PBUILD="r6" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Standard informational utilities and process-handling tools -ps top tload snice vmstat." HOMEPAGE="http://procps.sourceforge.net/" DEPEND=">= sys-libs/ncurses-5.9" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools multilib SRC_URI=( http://procps.sourceforge.net/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/3.2.5-top-sort.patch mirror://${PNAME}/${PNAME}-${PVER}-make382-fix.patch ) # do not use updatecmd_sourceforge; there is nothing UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die # fix terminal breakage when sorting first column in top mpatch 3.2.5-top-sort.patch || die # fixes compile issues with make-3.8.2 # see: http://comments.gmane.org/gmane.comp.gnu.make.bugs/4768 mpatch ${PNAME}-${PVER}-make382-fix.patch || die } src_compile() { mmake m64="" || die } src_install() { # needed directories minstalldir /usr/include/proc || die all-abis make DESTDIR=${BINDIR} lib64='$(mlibdir)' install || die # install missing headers minstallfile proc/\*.h /usr/include/proc || die # docs minstalldocs AUTHORS BUGS COPYING* NEWS README* TODO ps/HACKING sysctl.conf || die }