dev-libs/libdwarf: new package

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-04-18 03:20:30 +02:00
parent f518b2af30
commit bd6435b382
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="The DWARF Debugging Information Format"
HOMEPAGE="
https://www.prevanders.net/dwarf.html
http://www.dwarfstd.org
"
SRC_URI="https://www.prevanders.net/${P}.tar.gz"
LICENSE="LGPL-2.1 GPL-2 BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="dwarfexample dwarfgen +elf global-alloc-sums namestable nonstandardprintf oldframecol sanitize"
DOCS=( AUTHORS README README.md ChangeLog ChangeLog2018 NEWS )
DEPEND="
sys-libs/zlib
elf? ( virtual/libelf )
"
RDEPEND="${DEPEND}"
src_configure() {
local myconf=(
--disable-static
--disable-windowspath
--enable-shared
--includedir="${EPREFIX}/usr/include/${PN}"
)
#this configure is so bad it enables when passing --disable
use dwarfexample && myconf+=(--enable-dwarfexample)
use dwarfgen && myconf+=(--enable-dwarfgen)
use elf && myconf+=(--enable-libelf)
use global-alloc-sums && myconf+=(--enable-global-alloc-csums)
use namestable && myconf+=(--enable-namestable)
use nonstandardprintf && myconf+=(--enable-nonstandardprintf)
use oldframecol && myconf+=(--enable-oldframecol)
use sanitize && myconf+=(--enable-sanitize)
econf "${myconf[@]}"
}
src_install(){
emake DESTDIR="${D}" install
einstalldocs
#--disable-static get ignored ...
find "${D}" -name '*.a' -delete || die
find "${D}" -name '*.la' -delete || die
}