diff options
Diffstat (limited to 'sys-devel/dwz/dwz-0.15.ebuild')
-rw-r--r-- | sys-devel/dwz/dwz-0.15.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-devel/dwz/dwz-0.15.ebuild b/sys-devel/dwz/dwz-0.15.ebuild new file mode 100644 index 000000000000..f0f823edc849 --- /dev/null +++ b/sys-devel/dwz/dwz-0.15.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="DWARF optimization and duplicate removal tool" +HOMEPAGE="https://sourceware.org/dwz" +SRC_URI="https://sourceware.org/ftp/dwz/releases/${P}.tar.xz" + +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2+ GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-libs/elfutils" +DEPEND="${RDEPEND}" +BDEPEND="test? ( + dev-libs/elfutils[utils] + dev-util/dejagnu + sys-devel/gdb +)" + +src_prepare() { + default + tc-export CC +} + +src_compile() { + emake CFLAGS="${CFLAGS}" srcdir="${S}" +} + +src_test() { + emake CFLAGS="${CFLAGS}" srcdir="${S}" check +} + +src_install() { + emake CFLAGS="${CFLAGS}" srcdir="${S}" install +} |