diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/libmelf/libmelf-0.4.0-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/libmelf/libmelf-0.4.0-r1.ebuild')
-rw-r--r-- | dev-libs/libmelf/libmelf-0.4.0-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-libs/libmelf/libmelf-0.4.0-r1.ebuild b/dev-libs/libmelf/libmelf-0.4.0-r1.ebuild new file mode 100644 index 000000000000..be54175c6c62 --- /dev/null +++ b/dev-libs/libmelf/libmelf-0.4.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="libmelf is a library interface for manipulating ELF object files" +HOMEPAGE="http://www.hick.org/code/skape/libmelf/" +SRC_URI="http://www.hick.org/code/skape/${PN}/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( + # This patch was gained from the elfsign-0.2.2 release + "${FILESDIR}"/${PN}-0.4.1-unfinal-release.patch + # Cleanup stuff + "${FILESDIR}"/${PN}-0.4.0-r1-gcc-makefile-cleanup.patch +) + +src_prepare() { + default + + # * QA Notice: The following shared libraries lack a SONAME + # * /usr/lib64/libmelf.so + sed 's/\(-shared -fPIC\)/\1 -Wl,-soname,libmelf.so/' -i configure || die +} + +src_configure() { + tc-export CC AR RANLIB + append-flags -fPIC + default +} + +src_compile() { + emake OPTFLAGS="${CFLAGS}" +} + +src_install() { + dobin tools/elfres + + dolib.so libmelf.so + use static-libs && dolib.a libmelf.a + + insinto /usr/include + doins melf.h stdelf.h + + HTML_DOCS=( docs/html/. ) + einstalldocs +} |