Created attachment 344486 [details] The proposed ebuild supporting multilib ABIs. It would be great if media-libs/audiofile would have support for multilib ABIs so it can be dropped from app-emulation/emul-linux-x86-soundlibs in the future. I'm attaching a working ebuild with multilib support through autotools-multilib.eclass. The tests are working fine for me, as long as I use dev-cpp/gtest with multilib support. It also needs media-libs/flac. Those bugs have to be fixed first.
I'd much prefer the use of multilib-minimal eclass.
run_in_build_dir from multibuild.eclass should help to simplify: audiofile_src_test() { pushd "${BUILD_DIR}" > /dev/null || die emake -C test check popd > /dev/null || die } Probably something like: src_test() { multilib_foreach_abi run_in_build_dir "emake -C test check" } could work, could you try?
(In reply to comment #2) > run_in_build_dir from multibuild.eclass should help to simplify: > audiofile_src_test() { > pushd "${BUILD_DIR}" > /dev/null || die > emake -C test check > popd > /dev/null || die > } > > Probably something like: > src_test() { > multilib_foreach_abi run_in_build_dir "emake -C test check" > } > > could work, could you try? That makes it much simpler. Without the quotes though. It works the way it should. Thanks for the advice! I'm uploading the new ebuild.
Created attachment 344738 [details] The new proposed ebuild supporting multilib ABIs.
(In reply to comment #1) > I'd much prefer the use of multilib-minimal eclass. Gilles, I have no problem with latest autotools-multilib ebuild, any reason for using multilib-minimal instead?
Created attachment 347052 [details] Improved ebuild I've just fixed autotools-utils_src_test to pass arguments to emake. This makes the test invocation much simpler ;).
(In reply to comment #6) > Created attachment 347052 [details] > Improved ebuild ok for me though I never really touched the package
Committed as 0.3.6-r1.