From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/libelf/Manifest | 6 +++ dev-libs/libelf/files/libelf-0.8.13-build.patch | 38 +++++++++++++++++ dev-libs/libelf/libelf-0.8.13-r2.ebuild | 54 +++++++++++++++++++++++++ dev-libs/libelf/metadata.xml | 8 ++++ 4 files changed, 106 insertions(+) create mode 100644 dev-libs/libelf/Manifest create mode 100644 dev-libs/libelf/files/libelf-0.8.13-build.patch create mode 100644 dev-libs/libelf/libelf-0.8.13-r2.ebuild create mode 100644 dev-libs/libelf/metadata.xml (limited to 'dev-libs/libelf') diff --git a/dev-libs/libelf/Manifest b/dev-libs/libelf/Manifest new file mode 100644 index 000000000000..048ac6c15708 --- /dev/null +++ b/dev-libs/libelf/Manifest @@ -0,0 +1,6 @@ +AUX libelf-0.8.13-build.patch 1358 SHA256 8e43936210c2a2e81f29f5e9cd74a462d9f100113b47fde4d35811cb53b0327b SHA512 7971ef661c058d092c7d5c89649c9abdec1b9fea45bb71f442d5a671a754f793b54674a7665614551067733f1c415c4e05be99c7714d78488eb19850a409f98c WHIRLPOOL 0ac387f70d3be35e106faf2e83f003ddaa7fb07bd4e65db22dd237857e8402fbd4d1d889e818ce4f572b3603382f338c97e77d7481232b8ab15bca544af9f6b2 +DIST libelf-0.8.13.tar.gz 148529 SHA256 591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d SHA512 d2a4ea8ccc0bbfecac38fa20fbd96aefa8e86f8af38691fb6991cd9c5a03f587475ecc2365fc89a4954c11a679d93460ee9a5890693112f6133719af3e6582fe WHIRLPOOL 9349d18a1c96ad200166b6c39da1cb097894f5e39c34d07b9e168a8172ec4b7838d9c1dd57f2de4fb945fa3a2bab9cf0c78ce983ee6093e83405a67515ac03ce +EBUILD libelf-0.8.13-r2.ebuild 1451 SHA256 54efa774b7d573dbd36f9f596aae1653871223527df801c3c85c2d00fc13ebf7 SHA512 80fa0e402aa21ed72ca4a96f945aa07cdf1f7e5e7dcaecd09d8d43a8dbcaa4fd6b80e687c4d13474a064a326d007c43ce652969d3323390343df69d2e3fd7efb WHIRLPOOL e8883231f25220b808b4a1b59e6714376fe89253012c15b610b5aece26e93a6f1586130e960358ccc8fb77290efaba49744f020fc2a2e6a0f8051ee1d576cee5 +MISC ChangeLog 2275 SHA256 116dc411adc6db782a0521ec063a6d0126de0eeb7952158faf6319fd8692ffb5 SHA512 5ff51998eb632d53732169e196c412d802b8092c9e797c2ed81792d0394aa754fc3679833a77e2504fb06f2a01f7b65f5e1e13735a1a81784bbd4a8ebbb160bf WHIRLPOOL b988ba34f9db956b64ea5b980239e6405a8625ed343221daf2e286e3803060854bde98502468ed7540756c82c9adfb755d1cce51cc184f7527c52be50f5a5722 +MISC ChangeLog-2015 6238 SHA256 900017d240bb18536b99f202b045e87a14af2c5b27089800eda7461814e00cce SHA512 8b0f18e58b87487acdd47a7b25e42f7ea57d6b3b6fade7416380cd9c3eba0ba39ad2436f7832cf4307e7370add7ca65fdd10e1255ed7dc3bfe6418e40277695c WHIRLPOOL 508ffbb0624aaa46dd7405f9eaf2d5f664f4b5ebadfcf4557a2e3e65675ab71a28dd3d7b766c70fbfd565cb6cfce8b15062dede05ec41aa5b075c08f4e7a88a2 +MISC metadata.xml 252 SHA256 a590e5133cd97a615db4f977b0e28e5c60c56cac76eb3d339109cdf379003b60 SHA512 cbda7bf9832872764ae776ce16b2966c37a2ba3a1982d9817006fd6b82d7b17146434cde428bf114062a483e9053d2acdcdd004695e6ebf428d19cdc09937c65 WHIRLPOOL b209a730a169969b9e3c4d4612368bc5b30bfa5fae275d98d83ba96fd0ad01d308a8fed4f7d67a7c9fa417c624dfeb23ce89ab58923a8a0b5b1bd68ee73f288c diff --git a/dev-libs/libelf/files/libelf-0.8.13-build.patch b/dev-libs/libelf/files/libelf-0.8.13-build.patch new file mode 100644 index 000000000000..7e0cce6384d9 --- /dev/null +++ b/dev-libs/libelf/files/libelf-0.8.13-build.patch @@ -0,0 +1,38 @@ +Index: libelf-0.8.13/aclocal.m4 +=================================================================== +--- libelf-0.8.13.orig/aclocal.m4 ++++ libelf-0.8.13/aclocal.m4 +@@ -235,7 +235,7 @@ AC_DEFUN(mr_ENABLE_SHARED, [ + AC_REQUIRE([AC_PROG_CC]) + AC_PATH_PROG(LD, ld, ld) + case "$host" in +- *-linux*|*-gnu*) ++ *-linux*|*-gnu*|*-freebsd*|*-solaris*) + if test "$GCC" = yes; then + mr_TARGET_ELF + if test "$mr_cv_target_elf" = yes; then +Index: libelf-0.8.13/lib/Makefile.in +=================================================================== +--- libelf-0.8.13.orig/lib/Makefile.in ++++ libelf-0.8.13/lib/Makefile.in +@@ -158,7 +158,7 @@ libelf.a: $(OBJS) $(LIBOBJS) + + $(SHLIB): libelf.a + @$(RM) $(SHLIB) +- $(LINK_SHLIB) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS) ++ $(LINK_SHLIB) $(LDFLAGS) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS) + if test "$(SONAME)" = "$(SHLIB)"; then true; else \ + $(RM) $(SONAME) && $(LN_S) $(SHLIB) $(SONAME); \ + fi +@@ -169,9 +169,9 @@ $(SHLIB): libelf.a + install: install-data \ + install-shared-$(DO_SHLIB) install-compat-$(DO_COMPAT) + +-installdirs: $(top_srcdir)/mkinstalldirs ++installdirs: + dirs="$(installdirs)"; for dir in $$dirs; do \ +- $(SHELL) $(top_srcdir)/mkinstalldirs $(instroot)$$dir; \ ++ mkdir -p $(instroot)$$dir; \ + done + + install-data: all installdirs diff --git a/dev-libs/libelf/libelf-0.8.13-r2.ebuild b/dev-libs/libelf/libelf-0.8.13-r2.ebuild new file mode 100644 index 000000000000..dfdf04f54581 --- /dev/null +++ b/dev-libs/libelf/libelf-0.8.13-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils multilib 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 hppa ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug nls elibc_FreeBSD" + +RDEPEND="!dev-libs/elfutils + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20130224-r11 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="nls? ( sys-devel/gettext )" + +DOCS=( ChangeLog README ) +MULTILIB_WRAPPED_HEADERS=( /usr/include/libelf/sys_elf.h ) + +src_prepare() { + epatch "${FILESDIR}/${P}-build.patch" + 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 || die + + # Stop libelf from stamping on the system nlist.h + use elibc_FreeBSD && rm "${ED}"/usr/include/nlist.h +} diff --git a/dev-libs/libelf/metadata.xml b/dev-libs/libelf/metadata.xml new file mode 100644 index 000000000000..d920e3ba3e56 --- /dev/null +++ b/dev-libs/libelf/metadata.xml @@ -0,0 +1,8 @@ + + + + + blueness@gentoo.org + Anthony G. Basile + + -- cgit v1.2.3