commit:     f38dc9e6bf745a92d4034af0aa8297842007e2d7
Author:     David Zero <zero-one <AT> zer0-one <DOT> net>
AuthorDate: Mon May 19 22:25:20 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 21:02:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f38dc9e6

dev-libs/jansson: add 2.14.1

Signed-off-by: David Zero <zero-one <AT> zer0-one.net>
Part-of: https://github.com/gentoo/gentoo/pull/42165
Closes: https://github.com/gentoo/gentoo/pull/42165
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/jansson/Manifest              |  1 +
 dev-libs/jansson/jansson-2.14.1.ebuild | 49 ++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/dev-libs/jansson/Manifest b/dev-libs/jansson/Manifest
index 24fa3b4d26fe..bc87888b5570 100644
--- a/dev-libs/jansson/Manifest
+++ b/dev-libs/jansson/Manifest
@@ -1 +1,2 @@
+DIST jansson-2.14.1.tar.bz2 482990 BLAKE2B 
b3efb1cbe018bb88664167249edca65c5194922c69fa82a0514d5bbcd24324464ddcc30ae57f8ab0f9c43f28d2364adc973f87146ceff0889ea2b6eafb91b1ea
 SHA512 
668d8ffbd13b83e8a55449c588f267220c2a9e4690281c2386e3dada4c8b890c80effd6a946b3500bb1cf800eb8cf1bb3da3c6476ceea4f462d2ccc9cd4911d8
 DIST jansson-2.14.tar.bz2 434481 BLAKE2B 
b7b7e98360fd73f7925b88e3729a7a18307b4f05fed4b37659d24ddc03208469471d508dcd245534f73af3b5e93f595e49e3cb2c99733955b03d471bd5a32f15
 SHA512 
1a659c0f41b0672757c13ebd16bd10ad7d6484366aefda078aa816266ce4f5638bc121f1ce8c4234b0b9f201ea73c227b9084125857452cbcba058a111e4a6fd

diff --git a/dev-libs/jansson/jansson-2.14.1.ebuild 
b/dev-libs/jansson/jansson-2.14.1.ebuild
new file mode 100644
index 000000000000..30a71a19d403
--- /dev/null
+++ b/dev-libs/jansson/jansson-2.14.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="C library for encoding, decoding and manipulating JSON data"
+HOMEPAGE="https://www.digip.org/jansson/";
+SRC_URI="https://github.com/akheron/jansson/releases/download/v${PV}/${P}.tar.bz2";
+
+LICENSE="MIT"
+SLOT="0/4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-macos"
+IUSE="doc static-libs"
+
+BDEPEND="
+       dev-build/autoconf-archive
+       doc? ( dev-python/sphinx )
+"
+
+PATCHES=(
+       "${FILESDIR}/${P}-default-symver-test.patch"
+       "${FILESDIR}/${P}-test-symbols.patch"
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
+src_compile() {
+       default
+
+       if use doc ; then
+               emake html
+               HTML_DOCS=( doc/_build/html/. )
+       fi
+}
+
+src_install() {
+       default
+
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to