mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 09:33:32 -04:00
dev-cpp/cpp-taskflow: adding package
Package-Manager: Portage-2.3.99, Repoman-2.3.22 RepoMan-Options: --force Signed-off-by: Michele Santullo <m.santullo@posteo.net>
This commit is contained in:
39
dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0.ebuild
Normal file
39
dev-cpp/cpp-taskflow/cpp-taskflow-2.4.0.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Modern C++ Parallel Task Programming"
|
||||
HOMEPAGE="https://cpp-taskflow.github.io"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/cpp-taskflow/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/cpp-taskflow/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-optional-tests-examples.patch
|
||||
"${FILESDIR}"/${P}-fix-lib-path.patch
|
||||
"${FILESDIR}"/${P}-fix-version-number.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DTF_BUILD_TESTS=$(usex test ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user