Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/librouteros/files/, net-libs/librouteros/
Date: Sun, 09 Feb 2020 18:50:26
Message-Id: 1581274179.d6abd790f7931624d968f6a2e74e9e358ddcfee1.soap@gentoo
1 commit: d6abd790f7931624d968f6a2e74e9e358ddcfee1
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 9 18:49:39 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 9 18:49:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6abd790
7
8 net-libs/librouteros: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.88, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 ...patch => librouteros-1.1.2-remove-Werror.patch} | 4 +--
14 net-libs/librouteros/librouteros-1.1.2.ebuild | 30 ++++++++++++++--------
15 2 files changed, 22 insertions(+), 12 deletions(-)
16
17 diff --git a/net-libs/librouteros/files/disable_werror.patch b/net-libs/librouteros/files/librouteros-1.1.2-remove-Werror.patch
18 similarity index 61%
19 rename from net-libs/librouteros/files/disable_werror.patch
20 rename to net-libs/librouteros/files/librouteros-1.1.2-remove-Werror.patch
21 index 599e85b74d0..b3f005a4be3 100644
22 --- a/net-libs/librouteros/files/disable_werror.patch
23 +++ b/net-libs/librouteros/files/librouteros-1.1.2-remove-Werror.patch
24 @@ -1,5 +1,5 @@
25 ---- src/Makefile.am.orig 2011-12-30 21:17:04.233158203 +0200
26 -+++ src/Makefile.am 2011-12-30 21:18:42.186354842 +0200
27 +--- a/src/Makefile.am
28 ++++ b/src/Makefile.am
29 @@ -1,7 +1,7 @@
30 AUTOMAKE_OPTIONS = foreign no-dependencies
31
32
33 diff --git a/net-libs/librouteros/librouteros-1.1.2.ebuild b/net-libs/librouteros/librouteros-1.1.2.ebuild
34 index 9e89899c90e..a6be5fce280 100644
35 --- a/net-libs/librouteros/librouteros-1.1.2.ebuild
36 +++ b/net-libs/librouteros/librouteros-1.1.2.ebuild
37 @@ -1,9 +1,9 @@
38 -# Copyright 1999-2014 Gentoo Foundation
39 +# Copyright 1999-2020 Gentoo Authors
40 # Distributed under the terms of the GNU General Public License v2
41
42 -EAPI=4
43 +EAPI=7
44
45 -inherit base autotools-utils autotools
46 +inherit autotools
47
48 DESCRIPTION="Library for accessing MikroTik's RouterOS via its API"
49 HOMEPAGE="http://verplant.org/librouteros/"
50 @@ -12,15 +12,25 @@ SRC_URI="http://verplant.org/librouteros/files/${P}.tar.bz2"
51 LICENSE="GPL-2"
52 SLOT="0"
53 KEYWORDS="amd64 x86"
54 -IUSE="debug static-libs"
55 +IUSE="debug"
56
57 -DEPEND="dev-libs/libgcrypt:0"
58 -RDEPEND="${DEPEND}"
59 +RDEPEND="dev-libs/libgcrypt:0="
60 +DEPEND="${RDEPEND}"
61
62 -DOCS=(README AUTHORS)
63 -PATCHES=("${FILESDIR}"/disable_werror.patch)
64 +PATCHES=( "${FILESDIR}"/${P}-remove-Werror.patch )
65
66 -src_prepare(){
67 - base_src_prepare
68 +src_prepare() {
69 + default
70 eautoreconf
71 }
72 +
73 +src_configure() {
74 + econf --disable-static
75 +}
76 +
77 +src_install() {
78 + default
79 +
80 + # no static archives
81 + find "${D}" -name '*.la' -delete || die
82 +}