@@ -, +, @@
---
ebuild-writing/eapi/text.xml | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
--- a/ebuild-writing/eapi/text.xml
+++ a/ebuild-writing/eapi/text.xml
@@ -373,19 +373,29 @@ src_compile() {
Example:
-EAPI=1
+EAPI=2
...
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- dodoc ChangeLog README
+src_test() {
+ if ! emake check ; then
+ eerror "Tests failed. Looking for files for you to add to your bug report..."
+ find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
+ eerror " ${a}"
+ done
+ die "Make check failed"
+ fi
}
EAPI=4
...
-src_install() {
- emake DESTDIR="${D}" install
- nonfatal dodoc ChangeLog README
+src_test() {
+ if ! nonfatal emake check ; then
+ eerror "Tests failed. Looking for files for you to add to your bug report..."
+ find "${S}" -type f -name '*.epicfail' -or -name '*.log' | while read a ; do
+ eerror " ${a}"
+ done
+ die "Make check failed"
+ fi
}
--