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..f3f7525b39 --- /dev/null +++ b/dev-cpp/sprout/sprout-9999.ebuild @@ -0,0 +1,34 @@ +# 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="" + +IUSE="test texconv wavconv" +RESTRICT="!test? ( test )" + +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 +} diff --git a/dev-cpp/vectorwrapper/Manifest b/dev-cpp/vectorwrapper/Manifest new file mode 100644 index 0000000000..a932f2e9a4 --- /dev/null +++ b/dev-cpp/vectorwrapper/Manifest @@ -0,0 +1 @@ +DIST vectorwrapper-1.1.1.tar.gz 1016401 BLAKE2B bb329e27800dc19537dca009d367b1ab0123c47cb59664bffc7bb4dedaf50a651e6254716bf4113cf7d957c9b10fad461806d2c4a945ac73772964f46de3ac26 SHA512 45ac836a8e0c7e08cd5213926a1711fec8f6d43fa2eb3ac1e9596fdd9c67ad5da96599e982f3acc2ea2e015d493b8454febe5e28a6b491caff35762eab2ed0f8 diff --git a/dev-cpp/vectorwrapper/metadata.xml b/dev-cpp/vectorwrapper/metadata.xml new file mode 100644 index 0000000000..a6cc5c9830 --- /dev/null +++ b/dev-cpp/vectorwrapper/metadata.xml @@ -0,0 +1,8 @@ + + + + + m.santullo@posteo.net + Michele Santullo + + diff --git a/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild b/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild new file mode 100644 index 0000000000..497b5a7710 --- /dev/null +++ b/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="A template vector wrapper class for C++" +HOMEPAGE="https://alarmpi.no-ip.org/gitan/King_DuckZ/vectorwrapper" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="http://alarmpi.no-ip.org/gitan/King_DuckZ/vectorwrapper.git" + inherit git-r3 +else + SRC_URI="https://alarmpi.no-ip.org/gitan/King_DuckZ/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" + S="${WORKDIR}"/"${PN}" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" +BDEPEND="" + +src_configure() { + local emesonargs=( + $(meson_use test build_testing) + ) + meson_src_configure +} diff --git a/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild b/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild new file mode 100644 index 0000000000..497b5a7710 --- /dev/null +++ b/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +DESCRIPTION="A template vector wrapper class for C++" +HOMEPAGE="https://alarmpi.no-ip.org/gitan/King_DuckZ/vectorwrapper" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="http://alarmpi.no-ip.org/gitan/King_DuckZ/vectorwrapper.git" + inherit git-r3 +else + SRC_URI="https://alarmpi.no-ip.org/gitan/King_DuckZ/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" + S="${WORKDIR}"/"${PN}" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" +BDEPEND="" + +src_configure() { + local emesonargs=( + $(meson_use test build_testing) + ) + meson_src_configure +}