Gentoo Archives: gentoo-commits

From: "Jörg Bornkessel" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tntnet/
Date: Sun, 26 Apr 2020 16:45:17
Message-Id: 1587919447.511ac15bcb7ea3b8035b66096c783c870c6bd019.hd_brummy@gentoo
1 commit: 511ac15bcb7ea3b8035b66096c783c870c6bd019
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 26 16:44:07 2020 +0000
4 Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 26 16:44:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=511ac15b
7
8 dev-libs/tntnet: moved to eapi-7
9
10 this commit fix also bug 426262
11 autotools rename configure.in to configure.ac
12
13 Package-Manager: Portage-2.3.90, Repoman-2.3.20
14 Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>
15
16 dev-libs/tntnet/tntnet-2.2.1-r1.ebuild | 2 ++
17 ...tnet-2.2.1-r1.ebuild => tntnet-2.2.1-r2.ebuild} | 28 ++++++++++++----------
18 2 files changed, 18 insertions(+), 12 deletions(-)
19
20 diff --git a/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild b/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild
21 index 50046a85221..617f01ca9a9 100644
22 --- a/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild
23 +++ b/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild
24 @@ -88,3 +88,5 @@ src_install() {
25 newinitd "${FILESDIR}/tntnet.initd" tntnet
26 fi
27 }
28 +
29 +# @stable ~26may2020
30 \ No newline at end of file
31
32 diff --git a/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild b/dev-libs/tntnet/tntnet-2.2.1-r2.ebuild
33 similarity index 81%
34 copy from dev-libs/tntnet/tntnet-2.2.1-r1.ebuild
35 copy to dev-libs/tntnet/tntnet-2.2.1-r2.ebuild
36 index 50046a85221..2a1e7bb6230 100644
37 --- a/dev-libs/tntnet/tntnet-2.2.1-r1.ebuild
38 +++ b/dev-libs/tntnet/tntnet-2.2.1-r2.ebuild
39 @@ -1,7 +1,7 @@
40 # Copyright 1999-2020 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 -EAPI=5
44 +EAPI=7
45
46 inherit autotools eutils
47
48 @@ -12,7 +12,7 @@ SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
49 LICENSE="LGPL-2.1"
50 SLOT="0"
51 KEYWORDS="~amd64 ~sparc ~x86"
52 -IUSE="doc gnutls libressl server ssl examples"
53 +IUSE="gnutls libressl server ssl examples"
54
55 RDEPEND=">=dev-libs/cxxtools-2.2.1
56 sys-libs/zlib[minizip]
57 @@ -26,21 +26,28 @@ RDEPEND=">=dev-libs/cxxtools-2.2.1
58 libressl? ( dev-libs/libressl:0= )
59 )
60 )"
61 -DEPEND="${RDEPEND}
62 - virtual/pkgconfig
63 +DEPEND="${RDEPEND}"
64 +BDEPEND="virtual/pkgconfig
65 app-arch/zip"
66
67 src_prepare() {
68 # Both fixed in the next release
69 - epatch "${FILESDIR}"/${PN}-2.0-zlib-minizip.patch
70 + eapply "${FILESDIR}"/${PN}-2.0-zlib-minizip.patch
71 rm framework/common/{ioapi,unzip}.[ch] || die
72
73 + # bug 426262
74 + if has_version ">sys-devel/autoconf-2.13"; then
75 + mv configure.in configure.ac
76 + fi
77 +
78 # bug 423697
79 - sed -e "s:unzip.h:minizip/unzip.h:" -i framework/defcomp/unzipcomp.cpp
80 + sed -e "s:unzip.h:minizip/unzip.h:" -i framework/defcomp/unzipcomp.cpp || die
81
82 eautoreconf
83
84 sed -i -e 's:@localstatedir@:/var:' etc/tntnet/tntnet.xml.in || die
85 +
86 + default
87 }
88
89 src_configure() {
90 @@ -68,10 +75,7 @@ src_configure() {
91 src_install() {
92 emake DESTDIR="${D}" install
93
94 - dodoc AUTHORS ChangeLog README TODO
95 - if use doc; then
96 - dodoc doc/*.pdf
97 - fi
98 + dodoc AUTHORS ChangeLog README TODO doc/tntnet.pdf
99
100 if use examples; then
101 cd "${S}/sdk/demos"
102 @@ -79,8 +83,8 @@ src_install() {
103 rm -rf .deps */.deps .libs */.libs
104 cd "${S}"
105
106 - insinto /usr/share/doc/${PF}/examples
107 - doins -r sdk/demos/*
108 + docinto examples
109 + dodoc -r sdk/demos/*
110 fi
111
112 if use server; then