dev-libs/shhopt: EAPI7 revbump, improve ebuild

Closes: https://bugs.gentoo.org/666574
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/9921
This commit is contained in:
Michael Mair-Keimberger
2018-09-19 19:48:08 +02:00
committed by Michał Górny
parent bbf7d6bf4c
commit b8f75793ff
2 changed files with 31 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
--- Makefile
+++ Makefile
--- a/Makefile
+++ b/Makefile
@@ -5,20 +5,15 @@
VERPAT = 7
VERSION = $(VERMAJ).$(VERMIN).$(VERPAT)

View File

@@ -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
}