commit:     8a768e340a039873f5dc588c0296428f2c7521f2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 11 01:38:01 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 01:58:16 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a768e34

dev-libs/libconfig: add 1.8.2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libconfig/Manifest               |  1 +
 dev-libs/libconfig/libconfig-1.8.2.ebuild | 63 +++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/libconfig/Manifest b/dev-libs/libconfig/Manifest
index e8fbc5095f62..f23597053025 100644
--- a/dev-libs/libconfig/Manifest
+++ b/dev-libs/libconfig/Manifest
@@ -1 +1,2 @@
 DIST libconfig-1.8.1.tar.gz 1726710 BLAKE2B 
96e6da09e8efdd6091edfe58cbc860296e6c484257ea95df95eea3c103fc03a46159136483d35ac4bf25ab6284d8284a1bd988d8499eb057d6226ac4ae7e950a
 SHA512 
1d9d7b21baf73259c09b503ca02942bdf847741378f8c3d7e138c9b4979c5304aae510595958fe1842b726778cedf2aaeb1844f8b209a61ccb24debea592bd0c
+DIST libconfig-1.8.2.tar.gz 3339502 BLAKE2B 
c19561fcc0ae376567ba024e4da874fb6cfe27d509aa6ed84000867c8e849bceb9ac0a883446b445de29d852b4d1b6d1a9ad526c129645903105bc7d82bd35c9
 SHA512 
c3ed6c8f500b449c4d94976745a3acba1c7176f87497d5cb0deb05e62f2ff009ca0636c7c9848601f6d92dd113d82983cbd1132735f0f2d4e40b32d257f4aaa7

diff --git a/dev-libs/libconfig/libconfig-1.8.2.ebuild 
b/dev-libs/libconfig/libconfig-1.8.2.ebuild
new file mode 100644
index 000000000000..2ddcc6eb4c81
--- /dev/null
+++ b/dev-libs/libconfig/libconfig-1.8.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools dot-a multilib-minimal
+
+DESCRIPTION="Libconfig is a simple library for manipulating structured 
configuration files"
+HOMEPAGE="
+       https://www.hyperrealm.com/libconfig/libconfig.html
+       https://github.com/hyperrealm/libconfig
+"
+SRC_URI="https://github.com/hyperrealm/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/15"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
+IUSE="+cxx debug static-libs test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       sys-apps/texinfo
+       app-alternatives/yacc
+       dev-build/libtool
+"
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e '/sleep 3/d' \
+               configure.ac || die
+
+       eautoreconf
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       use static-libs && lto-guarantee-fat
+
+       local myeconfargs=(
+               $(use_enable debug asserts)
+               $(use_enable cxx)
+               $(use_enable static-libs static)
+               $(use_enable test tests)
+               --disable-examples
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+       # It responds to check but that does not work as intended
+       emake test
+}
+
+multilib_src_install() {
+       default
+
+       find "${ED}" -name '*.la' -delete || die
+
+       strip-lto-bytecode
+}

Reply via email to