dev-cpp/catch: Avoid unnecessary IUSE=test

This commit is contained in:
Michał Górny
2016-07-02 23:06:16 +02:00
parent ace87f9e81
commit 31985d4938
2 changed files with 14 additions and 20 deletions

View File

@@ -13,22 +13,19 @@ SRC_URI="https://github.com/philsquared/Catch/archive/v${PV}.tar.gz -> ${P^}.tar
LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
IUSE=""
S=${WORKDIR}/${P^}
CMAKE_USE_DIR=${S}/projects/CMake
src_configure() {
# CMake is only used to build & run tests
use test && cmake-utils_src_configure
}
src_compile() {
use test && cmake-utils_src_compile
}
# CMake is only used to build & run tests, so override phases
src_configure() { :; }
src_compile() { :; }
src_test() {
use test && cmake-utils_src_test
cmake-utils_src_configure
cmake-utils_src_compile
cmake-utils_src_test
}
src_install() {

View File

@@ -14,21 +14,18 @@ SRC_URI=""
LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS=""
IUSE="test"
IUSE=""
CMAKE_USE_DIR=${S}/projects/CMake
src_configure() {
# CMake is only used to build & run tests
use test && cmake-utils_src_configure
}
src_compile() {
use test && cmake-utils_src_compile
}
# CMake is only used to build & run tests, so override phases
src_configure() { :; }
src_compile() { :; }
src_test() {
use test && cmake-utils_src_test
cmake-utils_src_configure
cmake-utils_src_compile
cmake-utils_src_test
}
src_install() {