dev-libs/shhopt: EAPI7 revbump, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Wed, 19 Sep 2018 17:48:08 +0000 (19:48 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 30 Sep 2018 11:44:32 +0000 (13:44 +0200)
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

dev-libs/shhopt/files/shhopt-1.1.7-build.patch
dev-libs/shhopt/shhopt-1.1.7-r3.ebuild [new file with mode: 0644]

index d1d5606faab6ce0515cf53e2bdb9e0a29df4931a..3405511e22389c271371ce91f845a8ac89a2e559 100644 (file)
@@ -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 (file)
index 0000000..83fb8b8
--- /dev/null
@@ -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
+}