commit:     5d12b7ee6c0ec66d1e11c1611b6f86108b51eb3f
Author:     David Roman <droman <AT> ifae <DOT> es>
AuthorDate: Tue Oct 21 09:03:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 21 09:27:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d12b7ee

dev-libs/libdwarf: add 2.2.0

Signed-off-by: David Roman <droman <AT> ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/44277
Closes: https://github.com/gentoo/gentoo/pull/44277
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libdwarf/Manifest              |  1 +
 dev-libs/libdwarf/libdwarf-2.2.0.ebuild | 46 +++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-libs/libdwarf/Manifest b/dev-libs/libdwarf/Manifest
index f22f7d7be0ff..1098fa42b919 100644
--- a/dev-libs/libdwarf/Manifest
+++ b/dev-libs/libdwarf/Manifest
@@ -1 +1,2 @@
 DIST libdwarf-2.1.0.tar.xz 2946744 BLAKE2B 
a6bae4f65140b58457be2a175b73fd5588bc9579ed5bf64cf073a0f5f0861e40c227457011f69572ed1bb4a4da2d239d3477c5622bfd556549bd079dbc04cf45
 SHA512 
fd58ee55fc7f685f70cf7e79733d926d7064752c4e1ffe3eede1b1cc1090e127c76c59def3a3b32d5514384cd901bb69f9f2afeefa518d0ce9460f529b498078
+DIST libdwarf-2.2.0.tar.xz 3027540 BLAKE2B 
f7a1d28afc4ed3997432a2d5ce472d48ea18a2b8812c5c569d93b55bf39fcfa246ae749b1f1a6016c65a8497c852d7d5169652d6626cfc35ba1bee71fb339735
 SHA512 
1a5145b3b9bebbae6e6691590521c56327adb92c0ae95f145bcba8e4402b637d1479c2c6adad069ef9e0e36b2f7c8afc2811173f39e444418e2de7f4277ec393

diff --git a/dev-libs/libdwarf/libdwarf-2.2.0.ebuild 
b/dev-libs/libdwarf/libdwarf-2.2.0.ebuild
new file mode 100644
index 000000000000..6c1b3482a116
--- /dev/null
+++ b/dev-libs/libdwarf/libdwarf-2.2.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Library intended to simplify reading (and writing) applications 
using DWARF"
+HOMEPAGE="
+       https://www.prevanders.net/dwarf.html
+       https://github.com/davea42/libdwarf-code
+"
+SRC_URI="https://www.prevanders.net/${P}.tar.xz";
+
+LICENSE="GPL-2 LGPL-2.1 BSD"
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE="test dwarfexample dwarfgen"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       app-arch/zstd:=
+       sys-libs/zlib:=
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS NEWS README.md )
+
+PATCHES=( "${FILESDIR}/${PN}-0.9.2-fix-include-patch.patch" )
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_SHARED=ON
+               -DBUILD_DWARFGEN=$(usex dwarfgen)
+               -DBUILD_DWARFEXAMPLE=$(usex dwarfexample)
+               -DDO_TESTING=$(usex test)
+       )
+
+       cmake_src_configure
+}
+
+src_install(){
+       cmake_src_install
+
+       dodoc ChangeLog* doc/*.pdf
+}

Reply via email to