Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/shhopt/, dev-libs/shhopt/files/
Date: Sun, 30 Sep 2018 11:45:08
Message-Id: 1538307872.b8f75793ffc80f43466bc645bd02e6525cd042a8.mgorny@gentoo
1 commit: b8f75793ffc80f43466bc645bd02e6525cd042a8
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 19 17:48:08 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 30 11:44:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8f75793
7
8 dev-libs/shhopt: EAPI7 revbump, improve ebuild
9
10 Closes: https://bugs.gentoo.org/666574
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/9921
14
15 dev-libs/shhopt/files/shhopt-1.1.7-build.patch | 4 ++--
16 dev-libs/shhopt/shhopt-1.1.7-r3.ebuild | 29 ++++++++++++++++++++++++++
17 2 files changed, 31 insertions(+), 2 deletions(-)
18
19 diff --git a/dev-libs/shhopt/files/shhopt-1.1.7-build.patch b/dev-libs/shhopt/files/shhopt-1.1.7-build.patch
20 index d1d5606faab..3405511e223 100644
21 --- a/dev-libs/shhopt/files/shhopt-1.1.7-build.patch
22 +++ b/dev-libs/shhopt/files/shhopt-1.1.7-build.patch
23 @@ -1,5 +1,5 @@
24 ---- Makefile
25 -+++ Makefile
26 +--- a/Makefile
27 ++++ b/Makefile
28 @@ -5,20 +5,15 @@
29 VERPAT = 7
30 VERSION = $(VERMAJ).$(VERMIN).$(VERPAT)
31
32 diff --git a/dev-libs/shhopt/shhopt-1.1.7-r3.ebuild b/dev-libs/shhopt/shhopt-1.1.7-r3.ebuild
33 new file mode 100644
34 index 00000000000..83fb8b878ac
35 --- /dev/null
36 +++ b/dev-libs/shhopt/shhopt-1.1.7-r3.ebuild
37 @@ -0,0 +1,29 @@
38 +# Copyright 1999-2018 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +inherit toolchain-funcs
44 +
45 +DESCRIPTION="library for parsing command line options"
46 +HOMEPAGE="http://shh.thathost.com/pub-unix/"
47 +SRC_URI="http://shh.thathost.com/pub-unix/files/${P}.tar.gz"
48 +
49 +LICENSE="Artistic"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~ppc ~x86"
52 +
53 +PATCHES=( "${FILESDIR}"/${P}-build.patch )
54 +
55 +src_compile() {
56 + emake CC=$(tc-getCC)
57 +}
58 +
59 +src_install() {
60 + dolib.a libshhopt.a
61 + ln -s libshhopt.so.${PV} libshhopt.so || die
62 + ln -s libshhopt.so.${PV} libshhopt.so.${PV:0:1} || die
63 + dolib.so libshhopt.so*
64 + doheader shhopt.h
65 + dodoc ChangeLog CREDITS README TODO
66 +}