diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-05-07 18:23:54 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-05-07 18:23:54 +0200 |
commit | 74f544d9b6a54dbf58dc7c5032c8f944bc4ea430 (patch) | |
tree | 02f2e3689a84f54010b480bc5a42290bcb895721 /sys-devel | |
parent | dev-util/boost-build: Update SRC_URI (diff) | |
download | gentoo-74f544d9b6a54dbf58dc7c5032c8f944bc4ea430.tar.gz gentoo-74f544d9b6a54dbf58dc7c5032c8f944bc4ea430.tar.bz2 gentoo-74f544d9b6a54dbf58dc7c5032c8f944bc4ea430.zip |
sys-devel/elftoolchain: Add 0.7.1_p20210319 snapshot
* Allows us to drop fno-common patch as well as some other hacks.
Introcudes dev-libs/uthash dependency
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/elftoolchain/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/sys-devel/elftoolchain/Manifest b/sys-devel/elftoolchain/Manifest index 40e9f23e39d8..d43a208db906 100644 --- a/sys-devel/elftoolchain/Manifest +++ b/sys-devel/elftoolchain/Manifest @@ -1 +1,2 @@ DIST elftoolchain-0.7.1.tar.bz2 5361427 BLAKE2B f86204b3c89433948eaf2cd2edc57abf9b77bfab777dc2a840b7aa5fbddfd31665bd27f31d7af2dea09fab0118e201b12802b4da85f8210af29094661f6f1fe5 SHA512 8226c468b393f0d567167a9dd6b16d2a226227e4d05dab8f44550038da44dcbfb92749f8e1a4b130b893675337a6771e24a81f350f3f864b1b8b17402ed23b26 +DIST elftoolchain-0.7.1_p20210319.tar.gz 6767324 BLAKE2B c7e068577744fd42a44784e6a2b03ffdaa9dd15e41f4ff2a6d5fd80df24a61a950ff11fa63ebbbaf2c90bc1b19e58f7184a2b883a6f866adcbf0940ad9fca81c SHA512 968d3247e160dd6f90a88e69bf3cb8e6bf2b8216500a0a91699bc2b8d3de22db8f013212813139701e75c3a9eb852bb4c1360e8058f85959e0973e05e4851c8c diff --git a/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild b/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild new file mode 100644 index 000000000000..5c427a1e2119 --- /dev/null +++ b/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +MY_COMMIT="58584bb3e5276586e1cb246641525f72843ebc08" + +DESCRIPTION="Libraries/utilities to handle ELF objects (BSD drop in replacement for libelf)" +HOMEPAGE="https://wiki.freebsd.org/LibElf" +SRC_URI="https://github.com/elftoolchain/elftoolchain/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${MY_COMMIT} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + app-arch/libarchive:= + dev-libs/uthash + !dev-libs/elfutils + !dev-libs/libelf" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-vcs/subversion + sys-apps/lsb-release + >=sys-devel/bmake-20210314-r1 + virtual/yacc" + +src_prepare() { + default + + sed -e 's/-Werror//' -i libelf/os.Linux.mk || die + + # use system uthash + rm common/{utarray,uthash}.h || die + + # needs unpackaged TET tools + rm -r test || die +} + +src_configure() { + # -pg is used and the two are incompatible + filter-flags -fomit-frame-pointer + tc-export AR CC LD RANLIB + export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake +} + +src_compile() { + bmake || die +} + +src_install() { + bmake \ + DESTDIR="${D}" \ + BINDIR="${EPREFIX}"/usr/bin/${CHOST}-elftoolchain \ + LIBDIR="${EPREFIX}"/usr/$(get_libdir) \ + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \ + install || die + + # remove static libraries + find "${ED}" -name '*.a' -delete || die +} |