From b8f75793ffc80f43466bc645bd02e6525cd042a8 Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Wed, 19 Sep 2018 19:48:08 +0200 Subject: [PATCH] dev-libs/shhopt: EAPI7 revbump, improve ebuild MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/666574 Signed-off-by: Michael Mair-Keimberger Signed-off-by: Michał Górny Closes: https://github.com/gentoo/gentoo/pull/9921 --- .../shhopt/files/shhopt-1.1.7-build.patch | 4 +-- dev-libs/shhopt/shhopt-1.1.7-r3.ebuild | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 dev-libs/shhopt/shhopt-1.1.7-r3.ebuild diff --git a/dev-libs/shhopt/files/shhopt-1.1.7-build.patch b/dev-libs/shhopt/files/shhopt-1.1.7-build.patch index d1d5606faab6..3405511e2238 100644 --- a/dev-libs/shhopt/files/shhopt-1.1.7-build.patch +++ b/dev-libs/shhopt/files/shhopt-1.1.7-build.patch @@ -1,5 +1,5 @@ ---- Makefile -+++ Makefile +--- a/Makefile ++++ b/Makefile @@ -5,20 +5,15 @@ VERPAT = 7 VERSION = $(VERMAJ).$(VERMIN).$(VERPAT) diff --git a/dev-libs/shhopt/shhopt-1.1.7-r3.ebuild b/dev-libs/shhopt/shhopt-1.1.7-r3.ebuild new file mode 100644 index 000000000000..83fb8b878ace --- /dev/null +++ b/dev-libs/shhopt/shhopt-1.1.7-r3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="library for parsing command line options" +HOMEPAGE="http://shh.thathost.com/pub-unix/" +SRC_URI="http://shh.thathost.com/pub-unix/files/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +PATCHES=( "${FILESDIR}"/${P}-build.patch ) + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + dolib.a libshhopt.a + ln -s libshhopt.so.${PV} libshhopt.so || die + ln -s libshhopt.so.${PV} libshhopt.so.${PV:0:1} || die + dolib.so libshhopt.so* + doheader shhopt.h + dodoc ChangeLog CREDITS README TODO +} -- 2.26.2