Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/json11/files/, dev-cpp/json11/
Date: Sat, 09 Oct 2021 15:02:27
Message-Id: 1633791709.bfbbc7e530e1607ba7d4157493eda0b8b7cd5369.flow@gentoo
1 commit: bfbbc7e530e1607ba7d4157493eda0b8b7cd5369
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 9 15:00:56 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 9 15:01:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfbbc7e5
7
8 dev-cpp/json11: initial import
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 dev-cpp/json11/Manifest | 1 +
13 .../files/json11-1.0.0-fix-multiarch-install.patch | 14 ++++++++++++++
14 dev-cpp/json11/json11-1.0.0.ebuild | 18 ++++++++++++++++++
15 dev-cpp/json11/metadata.xml | 8 ++++++++
16 4 files changed, 41 insertions(+)
17
18 diff --git a/dev-cpp/json11/Manifest b/dev-cpp/json11/Manifest
19 new file mode 100644
20 index 00000000000..f64a0cde584
21 --- /dev/null
22 +++ b/dev-cpp/json11/Manifest
23 @@ -0,0 +1 @@
24 +DIST json11-1.0.0.tar.gz 13104 BLAKE2B 9f4fef741b40f1d163dd96555a521b6220c47402624baa5446fb94592989a830a0c511162a6af64b76962c8b07b83a324845dc61c1ca91bbb99e2b0511fb962a SHA512 c49aa9ebc75199528a13cd255d9362acb797d73a17fd69fb22673e945b8719a3d70fdf2d886fed342ca13ed1b4ea578534520d87c46c4a418929f9124aee3ec3
25
26 diff --git a/dev-cpp/json11/files/json11-1.0.0-fix-multiarch-install.patch b/dev-cpp/json11/files/json11-1.0.0-fix-multiarch-install.patch
27 new file mode 100644
28 index 00000000000..fef15e0e153
29 --- /dev/null
30 +++ b/dev-cpp/json11/files/json11-1.0.0-fix-multiarch-install.patch
31 @@ -0,0 +1,14 @@
32 +diff -Naur before/CMakeLists.txt after/CMakeLists.txt
33 +--- before/CMakeLists.txt 2019-05-12 16:45:39.995871663 +0200
34 ++++ after/CMakeLists.txt 2019-05-12 16:44:56.154872666 +0200
35 +@@ -52,6 +52,7 @@
36 + target_link_libraries(json11_test json11)
37 + endif()
38 +
39 +-install(TARGETS json11 DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE})
40 +-install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/json11.hpp" DESTINATION include/${CMAKE_LIBRARY_ARCHITECTURE})
41 +-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/json11.pc" DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig)
42 ++install(TARGETS json11 DESTINATION ${CMAKE_INSTALL_LIBDIR})
43 ++install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/json11.hpp" DESTINATION include)
44 ++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/json11.pc" DESTINATION
45 ++ ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
46
47 diff --git a/dev-cpp/json11/json11-1.0.0.ebuild b/dev-cpp/json11/json11-1.0.0.ebuild
48 new file mode 100644
49 index 00000000000..94fcfeb98c4
50 --- /dev/null
51 +++ b/dev-cpp/json11/json11-1.0.0.ebuild
52 @@ -0,0 +1,18 @@
53 +# Copyright 2021 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=8
57 +
58 +inherit cmake
59 +
60 +DESCRIPTION="A tiny JSON library for C++11"
61 +HOMEPAGE="https://github.com/dropbox/json11"
62 +SRC_URI="https://github.com/dropbox/json11/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
63 +
64 +LICENSE="MIT"
65 +SLOT="0"
66 +KEYWORDS="~amd64"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${P}-fix-multiarch-install.patch
70 +)
71
72 diff --git a/dev-cpp/json11/metadata.xml b/dev-cpp/json11/metadata.xml
73 new file mode 100644
74 index 00000000000..87a759d410c
75 --- /dev/null
76 +++ b/dev-cpp/json11/metadata.xml
77 @@ -0,0 +1,8 @@
78 +<?xml version="1.0" encoding="UTF-8"?>
79 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
80 +<pkgmetadata>
81 + <maintainer type="person">
82 + <name>Florian Schmaus</name>
83 + <email>flow@g.o</email>
84 + </maintainer>
85 +</pkgmetadata>