Index: atop-2.0.2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-process/atop/atop-2.0.2.ebuild,v --- atop-2.0.2.ebuild 7 Aug 2013 17:22:35 -0000 1.2 +++ atop-2.0.2.ebuild 19 Mar 2014 23:22:05 -0000 @@ -18,7 +18,10 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" IUSE="" -DEPEND="sys-process/acct" +DEPEND="virtual/pkgconfig" +RDEPEND="${DEPEND} + sys-process/acct +" S=${WORKDIR}/${MY_P} @@ -32,6 +35,10 @@ sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile } +src_compile() { + emake CURSES="$( $( tc-getPKG_CONFIG ) --libs ncurses )" +} + src_install() { default # useless -${PV} copies ? Index: files/atop-2.0.2-build.patch =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-process/atop/files/atop-2.0.2-build.patch,v --- files/atop-2.0.2-build.patch 24 Dec 2012 02:44:35 -0000 1.1 +++ files/atop-2.0.2-build.patch 19 Mar 2014 23:22:05 -0000 @@ -14,7 +14,7 @@ atop: atop.o $(ALLMODS) Makefile - $(CC) atop.o $(ALLMODS) -o atop -lncurses -lm -lz -lrt -+ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop -lncurses -lm -lz -lrt ++ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(CURSES) -lm -lz -lrt atopsar: atop ln -sf atop atopsar