diff options
Diffstat (limited to 'dev-cpp/json11')
-rw-r--r-- | dev-cpp/json11/Manifest | 4 | ||||
-rw-r--r-- | dev-cpp/json11/files/json11-1.0.0-fix-multiarch-install.patch | 14 | ||||
-rw-r--r-- | dev-cpp/json11/json11-1.0.0.ebuild | 18 | ||||
-rw-r--r-- | dev-cpp/json11/metadata.xml | 8 |
4 files changed, 44 insertions, 0 deletions
diff --git a/dev-cpp/json11/Manifest b/dev-cpp/json11/Manifest new file mode 100644 index 000000000000..d67e8b3bf2d5 --- /dev/null +++ b/dev-cpp/json11/Manifest @@ -0,0 +1,4 @@ +AUX json11-1.0.0-fix-multiarch-install.patch 786 BLAKE2B 5362fce55049ed95f0de5467a53c54bd3e0b82c91fcbefe1d6b8d35629a1d968527157720a19c478690d787a1baac634d4b927424d6e4c27abdc89427fe46b7f SHA512 0ef4a3ff19d2ffbf7772b83782ada2fcd2e3baacdd32d6a74931b035166041b7471800fbb01801dbe9b5b1cc003128dbb406a736da1f016c4cb1980ec11a9902 +DIST json11-1.0.0.tar.gz 13104 BLAKE2B 9f4fef741b40f1d163dd96555a521b6220c47402624baa5446fb94592989a830a0c511162a6af64b76962c8b07b83a324845dc61c1ca91bbb99e2b0511fb962a SHA512 c49aa9ebc75199528a13cd255d9362acb797d73a17fd69fb22673e945b8719a3d70fdf2d886fed342ca13ed1b4ea578534520d87c46c4a418929f9124aee3ec3 +EBUILD json11-1.0.0.ebuild 406 BLAKE2B 24421b0ef162daec04764b4e55782253b58d4127f05db5a2967e4b448bb66084c6ef135710bcc61ee878a4264b02d54e3e20daa4c70116184dbf30ab818e9b33 SHA512 d57f0b1ed94a67b4a3fae34d2ee657913d301c7f6281a53cdd6d768916cc1de5ea73d1af4ecc4fdf50b5b1e7d5b22a3dce44ad90ee89a74567d822fa4f6ac9e1 +MISC metadata.xml 246 BLAKE2B e270b04a529da44d267eaf5bfd160569fc99a3521dfc6495e0a4db19c98e5b9badf77774cc80c7be905f3e97b1c75784bc7b4cb6bfe659d726a47c7ae70e7bfb SHA512 7e2151bbca24beeefd585e18d6c1108442b2d9197679876bb180da3d4896602e83ea701432ff67fc61cccfa9bf642a01a62d87bacf32c55e0a54336c7c5a2c53 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 new file mode 100644 index 000000000000..fef15e0e153a --- /dev/null +++ b/dev-cpp/json11/files/json11-1.0.0-fix-multiarch-install.patch @@ -0,0 +1,14 @@ +diff -Naur before/CMakeLists.txt after/CMakeLists.txt +--- before/CMakeLists.txt 2019-05-12 16:45:39.995871663 +0200 ++++ after/CMakeLists.txt 2019-05-12 16:44:56.154872666 +0200 +@@ -52,6 +52,7 @@ + target_link_libraries(json11_test json11) + endif() + +-install(TARGETS json11 DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE}) +-install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/json11.hpp" DESTINATION include/${CMAKE_LIBRARY_ARCHITECTURE}) +-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/json11.pc" DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig) ++install(TARGETS json11 DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/json11.hpp" DESTINATION include) ++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/json11.pc" DESTINATION ++ ${CMAKE_INSTALL_LIBDIR}/pkgconfig) diff --git a/dev-cpp/json11/json11-1.0.0.ebuild b/dev-cpp/json11/json11-1.0.0.ebuild new file mode 100644 index 000000000000..94fcfeb98c40 --- /dev/null +++ b/dev-cpp/json11/json11-1.0.0.ebuild @@ -0,0 +1,18 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A tiny JSON library for C++11" +HOMEPAGE="https://github.com/dropbox/json11" +SRC_URI="https://github.com/dropbox/json11/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( + "${FILESDIR}"/${P}-fix-multiarch-install.patch +) diff --git a/dev-cpp/json11/metadata.xml b/dev-cpp/json11/metadata.xml new file mode 100644 index 000000000000..87a759d410cf --- /dev/null +++ b/dev-cpp/json11/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Florian Schmaus</name> + <email>flow@gentoo.org</email> + </maintainer> +</pkgmetadata> |