dev-cpp/catch: Split the live ebuild to upst branches
authorMichał Górny <mgorny@gentoo.org>
Sun, 27 Aug 2017 07:59:12 +0000 (09:59 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 27 Aug 2017 08:19:08 +0000 (10:19 +0200)
dev-cpp/catch/catch-1.9999.ebuild [new file with mode: 0644]
dev-cpp/catch/catch-9999.ebuild

diff --git a/dev-cpp/catch/catch-1.9999.ebuild b/dev-cpp/catch/catch-1.9999.ebuild
new file mode 100644 (file)
index 0000000..8949a52
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/philsquared/Catch.git"
+EGIT_BRANCH=master
+inherit cmake-utils git-r3
+
+DESCRIPTION="Modern C++ header-only framework for unit-tests"
+HOMEPAGE="https://github.com/philsquared/Catch"
+SRC_URI=""
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+# CMake is only used to build & run tests, so override phases
+src_configure() { :; }
+src_compile() { :; }
+
+src_test() {
+       cmake-utils_src_configure
+       cmake-utils_src_compile
+       cmake-utils_src_test
+}
+
+src_install() {
+       # same location as used in fedora
+       insinto /usr/include/catch
+       doins -r include/.
+       dodoc -r docs/.
+}
index 41195675fe3b47f88ac0cb7222ca60d494f99d61..5ca782d46a215323e8537e128058002fa356653c 100644 (file)
@@ -4,6 +4,7 @@
 EAPI=6
 
 EGIT_REPO_URI="https://github.com/philsquared/Catch.git"
+EGIT_BRANCH=catch2
 inherit cmake-utils git-r3
 
 DESCRIPTION="Modern C++ header-only framework for unit-tests"