From bebab38678b84cc6bc2793d20be80ea74efc4863 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 1 Mar 2023 10:24:44 +0100 Subject: dev-cpp/json11: fix pkg-config file Closes: https://bugs.gentoo.org/863098 Signed-off-by: Florian Schmaus --- ...1.0.0-json11.pc-do-not-state-the-defaults.patch | 22 ++++++++++++++++++++++ dev-cpp/json11/json11-1.0.0-r1.ebuild | 19 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 dev-cpp/json11/files/json11-1.0.0-json11.pc-do-not-state-the-defaults.patch create mode 100644 dev-cpp/json11/json11-1.0.0-r1.ebuild (limited to 'dev-cpp') diff --git a/dev-cpp/json11/files/json11-1.0.0-json11.pc-do-not-state-the-defaults.patch b/dev-cpp/json11/files/json11-1.0.0-json11.pc-do-not-state-the-defaults.patch new file mode 100644 index 000000000000..76b1591d1150 --- /dev/null +++ b/dev-cpp/json11/files/json11-1.0.0-json11.pc-do-not-state-the-defaults.patch @@ -0,0 +1,22 @@ +From d98236beaf015f2693589fca1904fb0dd01b2e6d Mon Sep 17 00:00:00 2001 +From: Florian Schmaus +Date: Wed, 1 Mar 2023 10:16:49 +0100 +Subject: [PATCH] json11.pc: do not state the defaults + +This appearantly breaks multi-arch installations. See +https://bugs.gentoo.org/863098 + +Suggested-by: Thomas Scheider +Signed-off-by: Florian Schmaus +--- a/json11.pc.in ++++ b/json11.pc.in +@@ -5,5 +5,4 @@ includedir=${prefix}/include/@CMAKE_LIBRARY_ARCHITECTURE@ + Name: @PROJECT_NAME@ + Description: json11 is a tiny JSON library for C++11, providing JSON parsing and serialization. + Version: @PROJECT_VERSION@ +-Libs: -L${libdir} -ljson11 +-Cflags: -I${includedir} ++Libs: -ljson11 +-- +2.39.2 + diff --git a/dev-cpp/json11/json11-1.0.0-r1.ebuild b/dev-cpp/json11/json11-1.0.0-r1.ebuild new file mode 100644 index 000000000000..31d7acab3239 --- /dev/null +++ b/dev-cpp/json11/json11-1.0.0-r1.ebuild @@ -0,0 +1,19 @@ +# Copyright 2022-2023 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 ~x86" + +PATCHES=( + "${FILESDIR}"/${P}-fix-multiarch-install.patch + "${FILESDIR}"/${PN}-1.0.0-json11.pc-do-not-state-the-defaults.patch +) -- cgit v1.2.3-65-gdbad