realpath compiles successfully under IRIX if the ebuild is modified as follows: --- realpath-1.15.ebuild.dist +++ realpath-1.15.ebuild @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/realpath-1.15.ebuild,v 1.1 2009/10/13 16:58:23 ulm Exp $ EAPI=2 -inherit eutils toolchain-funcs prefix +inherit eutils flag-o-matic toolchain-funcs prefix DESCRIPTION="Return the canonicalized absolute pathname" HOMEPAGE="http://packages.debian.org/unstable/utils/realpath" @@ -16,8 +16,11 @@ KEYWORDS="~amd64-linux ~x86-linux ~ppc-m IUSE="nls" RDEPEND="!sys-freebsd/freebsd-bin" -DEPEND="${RDEPEND} - virtual/libintl" +DEPEND="mips-irix? ( + dev-libs/gnulib + ) + ${RDEPEND} + virtual/libintl" src_unpack() { unpack ${PN}_${PV}.tar.gz @@ -43,6 +46,13 @@ src_prepare() { src_compile() { tc-export CC use !elibc_glibc && export LIBS="-lintl" + + if use mips-irix; then + append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include + append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/$(get_libdir) + append-libs -lgnu + fi + emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" \ || die "emake failed" }
Created attachment 216897 [details, diff] realpath-1.15.ebuild with gnulib Above changes, as patch.
applied, thanks