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 @@
DIST libdwarf-20210305.tar.gz 2872089 BLAKE2B 2ce8f29846486ca3b45db606b23fa1aae83af77ce95473b6f55678e930e3f25a81e44db64700dc41969b42a6d1d6086f30d45bd6e30341e1a557aedcda970846 SHA512 6fa05cf88125a95ebe38673d62e944701fdd28ba5c50f7695037acbc386f29b41d6551d9d08283b7d24fba02f3c0d6c8f5d424ee75989b6aef54f8dc2340d0f5

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
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
<flag name="dwarfexample">enable dwarfexample compilation</flag>
<flag name="dwarfgen">enable dwarfgen compilation</flag>
<flag name="global-alloc-sums">Enables some allocation counting in dwarf_alloc.c</flag>
<flag name="elf">enable use of <pkg>virtual/libelf</pkg></flag>
<flag name="namestable">enable name string functions implemented as binary search">default is with C switch)</flag>
<flag name="nonstandardprintf">Use a special printf format for 64bit</flag>
<flag name="oldframecol">enable old frame columns</flag>
<flag name="sanitize">build with sanitizers</flag>
</use>
</pkgmetadata>