--- c2ps-4.0.ebuild.orig 2008-03-27 04:54:45.446689971 +0000 +++ c2ps-4.0.ebuild 2008-03-27 04:54:32.726689737 +0000 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/c2ps/c2ps-4.0.ebuild,v 1.14 2008/01/20 16:02:45 grobian Exp $ +inherit toolchain-funcs + DESCRIPTION="Generates a beautified ps document from a source file (c/c++)" HOMEPAGE="http://www.cs.technion.ac.il/users/c2ps" SRC_URI="http://www.cs.technion.ac.il/users/c2ps/${P}.tar.gz" @@ -12,11 +14,11 @@ IUSE="" src_compile() { - emake || die + emake CC="$(tc-getCC)" CCFLAGS="${CFLAGS}" || die } src_install() { - dodir /usr/bin /usr/man/man1 - make PREFIX="${D}"/usr install || die - dodoc COPYING README + dodir /usr/bin /usr/share/man/man1 + emake MAN="${D}"/usr/share/man/man1 PREFIX="${D}"/usr install || die + dodoc README }