From 50c8e5752b16fd524d5d947aa2a7ee5bb81e928a Mon Sep 17 00:00:00 2001 From: Michele Santullo Date: Tue, 5 May 2020 12:11:46 +0200 Subject: [PATCH 1/4] dev-cpp/vectorwrapper: adding package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michele Santullo --- dev-cpp/vectorwrapper/Manifest | 1 + dev-cpp/vectorwrapper/metadata.xml | 8 +++++ .../vectorwrapper/vectorwrapper-1.1.1.ebuild | 33 +++++++++++++++++++ .../vectorwrapper/vectorwrapper-9999.ebuild | 33 +++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 dev-cpp/vectorwrapper/Manifest create mode 100644 dev-cpp/vectorwrapper/metadata.xml create mode 100644 dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild create mode 100644 dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild 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..5d347056e4 --- /dev/null +++ b/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild @@ -0,0 +1,33 @@ +# 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" + +DEPEND="" +RDEPEND="${DEPEND}" +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..5d347056e4 --- /dev/null +++ b/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild @@ -0,0 +1,33 @@ +# 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" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_configure() { + local emesonargs=( + $(meson_use test build_testing) + ) + meson_src_configure +} From fb1fd29f00d2c0cf79d3d74f25e747577c9d064a Mon Sep 17 00:00:00 2001 From: Michele Santullo Date: Tue, 5 May 2020 12:47:16 +0200 Subject: [PATCH 2/4] 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 +} From 56c49631e8c0119f5e6dccd51c88dd64cff9a712 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 5 May 2020 13:43:07 +0200 Subject: [PATCH 3/4] dev-cpp/sprout: no KEYWORDS in 9999 packages You might want to add a static ebuild as well. You can do this by downloading a specific commit from github, and naming the ebuild ${PN}-0_pre${DATE_OF_COMMIT}. See media-tv/droidcam for an example of an ebuild that fetches a specific commit from GitHub Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-cpp/sprout/sprout-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-cpp/sprout/sprout-9999.ebuild b/dev-cpp/sprout/sprout-9999.ebuild index 068f836cab..f3f7525b39 100644 --- a/dev-cpp/sprout/sprout-9999.ebuild +++ b/dev-cpp/sprout/sprout-9999.ebuild @@ -11,8 +11,10 @@ EGIT_REPO_URI="https://github.com/bolero-MURAKAMI/Sprout.git" LICENSE="Boost-1.0" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="" + IUSE="test texconv wavconv" +RESTRICT="!test? ( test )" DEPEND="" RDEPEND="${DEPEND}" From 9ed5ceb2cc03d3cef397467a11387da320087af5 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Tue, 5 May 2020 13:48:05 +0200 Subject: [PATCH 4/4] dev-cpp/vectorwrapper: add missing dep fails in configure phase if USE="test" without this dep also, add RESTRICT="!test? ( test )" to only run tests if both FEATURES="test" *and* USE="test" Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild | 9 ++++++--- dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild b/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild index 5d347056e4..497b5a7710 100644 --- a/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild +++ b/dev-cpp/vectorwrapper/vectorwrapper-1.1.1.ebuild @@ -19,10 +19,13 @@ fi LICENSE="Apache-2.0" SLOT="0" -IUSE="test" -DEPEND="" -RDEPEND="${DEPEND}" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" BDEPEND="" src_configure() { diff --git a/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild b/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild index 5d347056e4..497b5a7710 100644 --- a/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild +++ b/dev-cpp/vectorwrapper/vectorwrapper-9999.ebuild @@ -19,10 +19,13 @@ fi LICENSE="Apache-2.0" SLOT="0" -IUSE="test" -DEPEND="" -RDEPEND="${DEPEND}" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" BDEPEND="" src_configure() {