Skip to content

Commit

Permalink
dev-cpp/catch: Update live ebuild
Browse files Browse the repository at this point in the history
* Can now disable building with -Werror

Bug: https://bugs.gentoo.org/644354
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
SoapGentoo committed Jan 19, 2018
1 parent 84904c6 commit 9397ad9
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions dev-cpp/catch/catch-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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/.
}

0 comments on commit 9397ad9

Please sign in to comment.