1 |
commit: 57ccbb375bd197f1800e1df48174ef78e2df75d0 |
2 |
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 30 16:17:10 2021 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 30 17:40:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ccbb37 |
7 |
|
8 |
dev-libs/cereal: fix bug #824510 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/824510 |
11 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/23585 |
14 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
15 |
|
16 |
dev-libs/cereal/Manifest | 1 + |
17 |
dev-libs/cereal/cereal-1.3.0-r2.ebuild | 44 ++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 45 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/cereal/Manifest b/dev-libs/cereal/Manifest |
21 |
index 3b9b3fe3ed8e..ab0042cb5f58 100644 |
22 |
--- a/dev-libs/cereal/Manifest |
23 |
+++ b/dev-libs/cereal/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
+DIST cereal-1.3.0-fix-doctest.patch 148684 BLAKE2B 6ab6263db5b787b3ae41b9c177df19554f17837d5bb496de887f1d2d2df28c280e038fe64f0986ce3a32cedb709249a9986f6869b6e21b7c3a4b27058739496f SHA512 6389bead42f2f8008e6296f3d5ff5fc7a94920972c774003080fd3ae24ea0fd8fa1c4ab940ab800ab6b3249db003e452fd98a9ed77e5ffbdb301311fc2972a6f |
26 |
DIST cereal-1.3.0.tar.gz 374585 BLAKE2B 67bcdf8715585d8913c6ae4ff1a20d77df0eb95816b37a77620a3f08000b6e911afbd295236a6cd0394d3242ae0a3b2619f6e168503724517c9c66bc20f1d07c SHA512 2bb640a222d4efe7c624c6ec3e755fecae00ef59e91c4db462e233546c5afe73c065ba1d16d9600f7cd3cc185593109148008b0b2b870208e2f1d6984fd40c72 |
27 |
|
28 |
diff --git a/dev-libs/cereal/cereal-1.3.0-r2.ebuild b/dev-libs/cereal/cereal-1.3.0-r2.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..13631891d50a |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/cereal/cereal-1.3.0-r2.ebuild |
33 |
@@ -0,0 +1,44 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit cmake |
40 |
+ |
41 |
+DESCRIPTION="Header-only C++11 serialization library" |
42 |
+HOMEPAGE="https://uscilab.github.io/cereal/" |
43 |
+SRC_URI=" |
44 |
+ https://github.com/USCiLab/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
45 |
+ https://dev.gentoo.org/~expeditioneer/patches/${P}-fix-doctest.patch" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="+doc test" |
51 |
+ |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+DEPEND="test? ( dev-libs/boost )" |
55 |
+ |
56 |
+PATCHES=( "${DISTDIR}/${P}-fix-doctest.patch" ) |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ sed -i -e '/set(CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic -Wold-style-cast ${CMAKE_CXX_FLAGS}")/d' CMakeLists.txt || die |
60 |
+ |
61 |
+ if ! use doc ; then |
62 |
+ sed -i -e '/add_subdirectory(doc/d' CMakeLists.txt || die |
63 |
+ fi |
64 |
+ |
65 |
+ cmake_src_prepare |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ local CMAKE_BUILD_TYPE="Release" |
70 |
+ |
71 |
+ local mycmakeargs=( |
72 |
+ -DJUST_INSTALL_CEREAL=$(usex !test) |
73 |
+ -DSKIP_PORTABILITY_TEST=ON |
74 |
+ -DWITH_WERROR=OFF |
75 |
+ ) |
76 |
+ cmake_src_configure |
77 |
+} |