--- /usr/portage/local/layman/dberkholz/sci-physics/abinit/abinit-5.7.3.ebuild 2009-04-11 11:51:08.000000000 +0000 +++ /usr/portage/local/abinit/sci-physics/abinit/abinit-5.7.3-r1.ebuild 2009-04-13 11:10:17.000000000 +0000 @@ -78,21 +78,41 @@ for REPORT in $(find . -name report); do REPORT=${REPORT#*/} elog "Parameters and unusual results for ${REPORT%%/*} tests" + echo "Parameters and unusual results for ${REPORT%%/*} tests" >>tests_summary.txt while read line; do elog "${line}" + echo "${line}" >>tests_summary.txt done \ < <(grep -v -e succeeded -e passed ${REPORT}) done - elog "The full test results will be installed as summary_tests.tar.gz." + local testdir + find . -name ",,test*" -print | \ + while read testdir; do + if [ -e summary_tests.tar ]; then + tar rvf summary_tests.tar ${testdir} + else tar cvf summary_tests.tar ${testdir} + fi + done + + elog "The full test results will be installed as summary_tests.tar.bz2." + elog "Also a concise report tests_summary.txt is installed." } src_install() { - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install || die "make install failed" if use test; then - dodoc tests/summary_tests.tar.gz || die + dodoc tests/tests_summary.txt || die "Copying tests summary failed" + dodoc tests/summary_tests.tar || die "Copying tests summary failed" fi - dodoc KNOWN_PROBLEMS README || die + dodoc KNOWN_PROBLEMS README || die "Copying doc files failed" +} + +pkg_postinst() { + if use test; then + elog "The full test results will be installed as summary_tests.tar.bz2." + elog "Also a concise report tests_summary.txt is installed." + fi }