diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-libs/libelf/libelf-0.8.13-r3.ebuild | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-libs/libelf/libelf-0.8.13-r3.ebuild')
-rw-r--r-- | dev-libs/libelf/libelf-0.8.13-r3.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/libelf/libelf-0.8.13-r3.ebuild b/dev-libs/libelf/libelf-0.8.13-r3.ebuild new file mode 100644 index 000000000000..e048333e06b2 --- /dev/null +++ b/dev-libs/libelf/libelf-0.8.13-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +DESCRIPTION="A ELF object file access library" +HOMEPAGE="http://www.mr511.de/software/" +SRC_URI="http://www.mr511.de/software/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug nls" + +RDEPEND="!dev-libs/elfutils" +DEPEND="${RDEPEND}" +BDEPEND="nls? ( sys-devel/gettext )" + +DOCS=( ChangeLog README ) + +MULTILIB_WRAPPED_HEADERS=( /usr/include/libelf/sys_elf.h ) + +PATCHES=( + "${FILESDIR}/${P}-build.patch" +) + +src_prepare() { + default + + eautoreconf +} + +multilib_src_configure() { + # prefix might want to play with this; unfortunately the stupid + # macro used to detect whether we're building ELF is so screwed up + # that trying to fix it is just a waste of time. + export mr_cv_target_elf=yes + + ECONF_SOURCE="${S}" econf \ + $(use_enable nls) \ + --enable-shared \ + $(use_enable debug) +} + +multilib_src_install() { + emake \ + prefix="${ED}/usr" \ + libdir="${ED}/usr/$(get_libdir)" \ + install \ + install-compat \ + -j1 + + find "${D}" -name '*.la' -o -name '*.a' -delete || die +} |