dev-libs/libdwarf: add 2.2.0

Signed-off-by: David Roman <droman@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@gentoo.org>
This commit is contained in:
David Roman 2025-10-21 11:03:18 +02:00 committed by Sam James
parent 38ebcecd16
commit 5d12b7ee6c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 47 additions and 0 deletions

View File

@ -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

View File

@ -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
}