--- iasl-20120816.ebuild.orig 2012-09-08 08:11:29.000000000 +0900 +++ iasl-20120816.ebuild 2012-12-25 21:15:00.000000000 +0900 @@ -48,8 +48,22 @@ xargs -0 -I '{}' \ sed -r -e 's:-\::g' -i '{}' \ || die + if use userland_BSD ; then + find "${S}/generate/unix" -type f -name 'Makefile*' -print0 | \ + xargs -0 -I '{}' \ + sed -r -e 's:make BITS=:gmake BITS=:g' \ + -e 's:--remove-destination:-f:g' -i '{}' \ + || die + fi - export BITS=64 + case ${ARCH} in + amd64*) + export BITS=64 + ;; + *) + export BITS=32 + ;; + esac } src_configure() { @@ -57,8 +71,8 @@ } src_compile() { - cd acpica/generate/unix - emake BITS=${BITS} + cd "${S}"/generate/unix + emake -j1 BITS=${BITS} } src_test() { @@ -68,9 +82,14 @@ } src_install() { - cd acpica/generate/unix - emake install DESTDIR="${D}" BITS=${BITS} - default_src_install + if use userland_BSD ; then + cd "${S}"/generate/unix/bin${BITS} + dobin * + else + cd "${S}"/generate/unix + emake install DESTDIR="${D}" BITS=${BITS} + default_src_install + fi #local bin #for bin in $(<"${T}"/binlist) ; do # dobin "${T}"/${bin}