From fb1fd29f00d2c0cf79d3d74f25e747577c9d064a Mon Sep 17 00:00:00 2001 From: Michele Santullo Date: Tue, 5 May 2020 12:47:16 +0200 Subject: [PATCH] dev-cpp/sprout: adding package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michele Santullo --- dev-cpp/sprout/files/optional_binaries.patch | 12 ++++++++ dev-cpp/sprout/metadata.xml | 18 +++++++++++ dev-cpp/sprout/sprout-9999.ebuild | 32 ++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 dev-cpp/sprout/files/optional_binaries.patch create mode 100644 dev-cpp/sprout/metadata.xml create mode 100644 dev-cpp/sprout/sprout-9999.ebuild diff --git a/dev-cpp/sprout/files/optional_binaries.patch b/dev-cpp/sprout/files/optional_binaries.patch new file mode 100644 index 0000000000..df6641f0fb --- /dev/null +++ b/dev-cpp/sprout/files/optional_binaries.patch @@ -0,0 +1,12 @@ +diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt +index a68233bf..ef38b570 100644 +--- a/tools/CMakeLists.txt ++++ b/tools/CMakeLists.txt +@@ -1 +1,6 @@ +-subdirs( compost darkroom ) ++if (WITH_WAVCONV) ++ subdirs( compost ) ++endif() ++if (WITH_TEXCONV) ++ subdirs( darkroom ) ++endif() diff --git a/dev-cpp/sprout/metadata.xml b/dev-cpp/sprout/metadata.xml new file mode 100644 index 0000000000..01cb49eae6 --- /dev/null +++ b/dev-cpp/sprout/metadata.xml @@ -0,0 +1,18 @@ + + + + +C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others. + + + m.santullo@posteo.net + Michele Santullo + + + bolero-MURAKAMI/Sprout + + + Install texconv from subproject compost + Install texconv from subproject darkroom + + diff --git a/dev-cpp/sprout/sprout-9999.ebuild b/dev-cpp/sprout/sprout-9999.ebuild new file mode 100644 index 0000000000..068f836cab --- /dev/null +++ b/dev-cpp/sprout/sprout-9999.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake git-r3 + +DESCRIPTION="C++11/14 constexpr based Containers, Algorithms, Random numbers and others" +HOMEPAGE="http://bolero-murakami.github.io/Sprout/" +EGIT_REPO_URI="https://github.com/bolero-MURAKAMI/Sprout.git" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test texconv wavconv" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}"/optional_binaries.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test ON OFF) + -DWITH_TEXCONV=$(usex texconv ON OFF) + -DWITH_WAVCONV=$(usex wavconv ON OFF) + ) + cmake_src_configure +}