--- pari-2.1.6.ebuild- 2005-11-08 16:29:14.000000000 +0000 +++ pari-2.1.6.ebuild 2005-11-08 16:26:47.000000000 +0000 @@ -10,7 +10,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 hppa mips ppc x86" +KEYWORDS="alpha amd64 hppa mips ppc ~sparc x86" IUSE="doc emacs" DEPEND="doc? ( virtual/tetex )" @@ -26,6 +26,12 @@ # Fix usage of toolchain tc-getAS; tc-getLD; tc-getCC; tc-getCXX + # Special handling for sparc + local myhost + [ "${PROFILE_ARCH}" == "sparc64" ] && myhost="sparc64-linux" \ + || myhost="$(echo ${CHOST} | cut -f "1 3" -d '-')" + einfo "Building for ${myhost}" + #need to force optimization here, as it breaks without if is-flag -O0; then replace-flags -O0 -O2 @@ -36,7 +42,7 @@ if [ "${ARCH}" = "amd64" ] && ! is-flag -fPIC; then append-flags -fPIC; fi ./Configure \ - --host="$(echo ${CHOST} | cut -f "1 3" -d '-')" \ + --host=${myhost} \ --prefix=/usr \ --miscdir=/usr/share/doc/${PF} \ --datadir=/usr/share/${P} \