Index: gnome2.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v retrieving revision 1.73 diff -u -r1.73 gnome2.eclass --- gnome2.eclass 3 Aug 2006 17:04:47 -0000 1.73 +++ gnome2.eclass 9 Aug 2006 18:42:13 -0000 @@ -293,4 +293,13 @@ gnome2_icon_cache_update } -EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm +gnome2_src_test() { + # Tests supplied by gnome packages insist on fiddling about in the + # users' home directory. Set GNOME22_USER_DIR to a suitable temporary + # location so that the tests have a chance of running. + mkdir -p ${T}/gnome-user-dir + export GNOME22_USER_DIR=${T}/gnome-user-dir + make check || die "Make check failed :(." +} + +EXPORT_FUNCTIONS src_unpack src_compile src_test src_install pkg_postinst pkg_postrm