Files
guru/dev-libs/libdwarf/libdwarf-20210305.ebuild
Alessandro Barbieri 8aba1f47b1 dev-libs/libdwarf: delete from ED
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-04-18 04:05:53 +02:00

55 lines
1.4 KiB
Bash

# 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 "${ED}" -name '*.a' -delete || die
find "${ED}" -name '*.la' -delete || die
}