summaryrefslogtreecommitdiff
path: root/dev-cpp/catch
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2018-01-19 14:02:04 +0100
committerDavid Seifert <soap@gentoo.org>2018-01-19 14:04:01 +0100
commit9397ad9f85b5f881f85c9ffb022c3987ae075c71 (patch)
treeef68403d95497f745dd07f75e11ea61bb6173678 /dev-cpp/catch
parent84904c6f366a1fb9c629135fb6ba1e71a26a87f2 (diff)
downloadgentoo-9397ad9f85b5f881f85c9ffb022c3987ae075c71.tar.gz
gentoo-9397ad9f85b5f881f85c9ffb022c3987ae075c71.tar.xz
dev-cpp/catch: Update live ebuild
* Can now disable building with -Werror Bug: https://bugs.gentoo.org/644354 Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-cpp/catch')
-rw-r--r--dev-cpp/catch/catch-9999.ebuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/dev-cpp/catch/catch-9999.ebuild b/dev-cpp/catch/catch-9999.ebuild
index da181287636..e24ac4a8a03 100644
--- a/dev-cpp/catch/catch-9999.ebuild
+++ b/dev-cpp/catch/catch-9999.ebuild
@@ -3,26 +3,29 @@
EAPI=6
-EGIT_REPO_URI="https://github.com/catchorg/Catch2.git"
-inherit cmake-utils git-r3
+inherit cmake-utils
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/catchorg/Catch2.git"
+else
+ SRC_URI="https://github.com/catchorg/Catch2/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
DESCRIPTION="Modern C++ header-only framework for unit-tests"
HOMEPAGE="https://github.com/catchorg/Catch2"
-SRC_URI=""
LICENSE="Boost-1.0"
SLOT="0"
-KEYWORDS=""
IUSE="test"
+RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
- -DNO_SELFTEST=$(usex !test)
+ -DCATCH_ENABLE_WERROR=OFF
+ -DBUILD_TESTING=$(usex test)
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
)
cmake-utils_src_configure
}
-
-src_install() {
- cmake-utils_src_install
- dodoc -r docs/.
-}