Package-Manager: portage-2.2.23
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
-IUSE="curl debug pch qt5"
+IUSE="curl debug pch test qt5"
ruby_atom() {
local ruby_slot=${1/ruby/}
|| ( ${RUBY_BDEPS} )
sys-devel/gettext
virtual/pkgconfig
+ test? ( dev-cpp/gtest )
"
pkg_pretend() {
"${RUBY}" ./drake V=1 -j$(makeopts_jobs) || die
}
+src_test() {
+ "${RUBY}" ./drake V=1 -j$(makeopts_jobs) tests:unit || die
+ "${RUBY}" ./drake V=1 -j$(makeopts_jobs) tests:run_unit || die
+}
+
src_install() {
DESTDIR="${D}" "${RUBY}" ./drake -j$(makeopts_jobs) install || die