Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/sprout/files/, dev-cpp/sprout/
Date: Tue, 05 May 2020 11:51:48
Message-Id: 1588675636.fb1fd29f00d2c0cf79d3d74f25e747577c9d064a.andrewammerlaan@gentoo
1 commit: fb1fd29f00d2c0cf79d3d74f25e747577c9d064a
2 Author: Michele Santullo <m.santullo <AT> posteo <DOT> net>
3 AuthorDate: Tue May 5 10:47:16 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue May 5 10:47:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fb1fd29f
7
8 dev-cpp/sprout: adding package
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Michele Santullo <m.santullo <AT> posteo.net>
12
13 dev-cpp/sprout/files/optional_binaries.patch | 12 +++++++++++
14 dev-cpp/sprout/metadata.xml | 18 ++++++++++++++++
15 dev-cpp/sprout/sprout-9999.ebuild | 32 ++++++++++++++++++++++++++++
16 3 files changed, 62 insertions(+)
17
18 diff --git a/dev-cpp/sprout/files/optional_binaries.patch b/dev-cpp/sprout/files/optional_binaries.patch
19 new file mode 100644
20 index 0000000..df6641f
21 --- /dev/null
22 +++ b/dev-cpp/sprout/files/optional_binaries.patch
23 @@ -0,0 +1,12 @@
24 +diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
25 +index a68233bf..ef38b570 100644
26 +--- a/tools/CMakeLists.txt
27 ++++ b/tools/CMakeLists.txt
28 +@@ -1 +1,6 @@
29 +-subdirs( compost darkroom )
30 ++if (WITH_WAVCONV)
31 ++ subdirs( compost )
32 ++endif()
33 ++if (WITH_TEXCONV)
34 ++ subdirs( darkroom )
35 ++endif()
36
37 diff --git a/dev-cpp/sprout/metadata.xml b/dev-cpp/sprout/metadata.xml
38 new file mode 100644
39 index 0000000..01cb49e
40 --- /dev/null
41 +++ b/dev-cpp/sprout/metadata.xml
42 @@ -0,0 +1,18 @@
43 +<?xml version="1.0" encoding="UTF-8"?>
44 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
45 +<pkgmetadata>
46 + <longdescription lang="en">
47 +C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others.
48 + </longdescription>
49 + <maintainer type="person">
50 + <email>m.santullo@××××××.net</email>
51 + <name>Michele Santullo</name>
52 + </maintainer>
53 + <upstream>
54 + <remote-id type="github">bolero-MURAKAMI/Sprout</remote-id>
55 + </upstream>
56 + <use>
57 + <flag name="texconv">Install texconv from subproject compost</flag>
58 + <flag name="wavconv">Install texconv from subproject darkroom</flag>
59 + </use>
60 +</pkgmetadata>
61
62 diff --git a/dev-cpp/sprout/sprout-9999.ebuild b/dev-cpp/sprout/sprout-9999.ebuild
63 new file mode 100644
64 index 0000000..068f836
65 --- /dev/null
66 +++ b/dev-cpp/sprout/sprout-9999.ebuild
67 @@ -0,0 +1,32 @@
68 +# Copyright 2020 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +inherit cmake git-r3
74 +
75 +DESCRIPTION="C++11/14 constexpr based Containers, Algorithms, Random numbers and others"
76 +HOMEPAGE="http://bolero-murakami.github.io/Sprout/"
77 +EGIT_REPO_URI="https://github.com/bolero-MURAKAMI/Sprout.git"
78 +
79 +LICENSE="Boost-1.0"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +IUSE="test texconv wavconv"
83 +
84 +DEPEND=""
85 +RDEPEND="${DEPEND}"
86 +BDEPEND=""
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/optional_binaries.patch
90 +)
91 +
92 +src_configure() {
93 + local mycmakeargs=(
94 + -DBUILD_TESTS=$(usex test ON OFF)
95 + -DWITH_TEXCONV=$(usex texconv ON OFF)
96 + -DWITH_WAVCONV=$(usex wavconv ON OFF)
97 + )
98 + cmake_src_configure
99 +}