dev-libs/libdwarf: add 0.9.1

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2024-02-22 14:55:27 +01:00
parent d1d055f24b
commit 0efc06920b
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="The DWARF Debugging Information Format"
HOMEPAGE="
https://www.prevanders.net/dwarf.html
https://www.dwarfstd.org
https://github.com/davea42/libdwarf-code
"
SRC_URI="https://www.prevanders.net/${P}.tar.xz"
LICENSE="BSD GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc dwarfexample dwarfgen"
DEPEND="
app-arch/zstd:=
sys-libs/zlib:=
"
RDEPEND="${DEPEND}"
BDEPEND="doc? ( app-text/doxygen )"
DOCS=( AUTHORS NEWS README.md )
src_configure() {
local emesonargs=(
$(meson_use dwarfgen)
$(meson_use dwarfexample)
$(meson_use doc)
)
meson_src_configure
}
src_install(){
meson_src_install
dodoc ChangeLog* doc/*.pdf
if use doc; then
mv "${ED}"/usr/share/doc/${PN}/* "${ED}"/usr/share/doc/${PF}/ || die
rmdir "${ED}"/usr/share/doc/${PN} || die
fi
}