--- a/paludis-0.76.0.ebuild 2012-06-26 16:35:42.000000000 +0600 +++ b/paludis-0.76.0.ebuild 2012-06-27 09:43:05.000000000 +0600 @@ -8,7 +8,7 @@ HOMEPAGE="http://paludis.exherbo.org/" SRC_URI="http://paludis.exherbo.org/download/${P}.tar.bz2" -IUSE="doc pbins portage pink prebuilt-documentation python-bindings ruby-bindings search-index vim-syntax visibility xml zsh-completion" +IUSE="doc pbins portage pink prebuilt-documentation python-bindings ruby-bindings search-index test vim-syntax visibility xml zsh-completion" LICENSE="GPL-2 vim-syntax? ( vim )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" @@ -37,7 +37,7 @@ ruby-bindings? ( dev-ruby/syntax ) ) virtual/pkgconfig - dev-cpp/gtest" + test? ( dev-cpp/gtest )" RDEPEND="${COMMON_DEPEND} sys-apps/sandbox" @@ -60,7 +60,8 @@ die "Rebuild dev-libs/libpcre with USE=cxx" fi - if ! built_with_use dev-cpp/gtest threads ; then + if use test && \ + ! built_with_use dev-cpp/gtest threads ; then eerror "Paludis needs dev-cpp/gtest built with threads support" eerror "Please build dev-cpp/gtest with USE=threads support" die "Rebuild dev-cpp/gtest with USE threads" @@ -115,6 +116,7 @@ $(use_enable visibility ) \ $(use_enable xml ) \ $(use_enable search-index ) \ + $(use_enable test gtest ) \ --with-vim-install-dir=/usr/share/vim/vimfiles \ --with-repositories=${repositories} \ --with-environments=${environments} \