1 |
commit: 71931fba1ed3bd70e5c6ba9b7b30c4e46f34c492 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 03:42:09 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 04:11:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71931fba |
7 |
|
8 |
net-libs/wandio: port to EAPI 7, fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/725040 |
11 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-libs/wandio/wandio-4.2.3_p1-r1.ebuild | 20 +++++++++++--------- |
15 |
1 file changed, 11 insertions(+), 9 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/wandio/wandio-4.2.3_p1-r1.ebuild b/net-libs/wandio/wandio-4.2.3_p1-r1.ebuild |
18 |
index e0d614fcb24..4eef4248a4d 100644 |
19 |
--- a/net-libs/wandio/wandio-4.2.3_p1-r1.ebuild |
20 |
+++ b/net-libs/wandio/wandio-4.2.3_p1-r1.ebuild |
21 |
@@ -1,18 +1,21 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
+ |
28 |
inherit autotools |
29 |
|
30 |
DESCRIPTION="C library for simple and efficient file IO" |
31 |
HOMEPAGE="https://research.wand.net.nz/software/libwandio.php" |
32 |
SRC_URI="https://github.com/wanduow/${PN}/archive/${PV/_p/-}.tar.gz -> ${P}.tar.gz" |
33 |
+S="${WORKDIR}/${P/_p/-}" |
34 |
|
35 |
LICENSE="LGPL-3" |
36 |
SLOT="0/6" |
37 |
KEYWORDS="~amd64 ~x86" |
38 |
-IUSE="bzip2 http lzma lzo static-libs test zlib" |
39 |
+IUSE="bzip2 http lzma lzo test zlib" |
40 |
RESTRICT="!test? ( test )" |
41 |
+REQUIRED_USE="test? ( lzma lzo )" |
42 |
|
43 |
RDEPEND=" |
44 |
!<net-libs/libtrace-4 |
45 |
@@ -26,7 +29,6 @@ DEPEND=" |
46 |
${RDEPEND} |
47 |
test? ( app-arch/lzop ) |
48 |
" |
49 |
-S=${WORKDIR}/${P/_p/-} |
50 |
|
51 |
src_prepare() { |
52 |
default |
53 |
@@ -35,7 +37,7 @@ src_prepare() { |
54 |
|
55 |
src_configure() { |
56 |
econf \ |
57 |
- $(use_enable static-libs static) \ |
58 |
+ --disable-static \ |
59 |
$(use_with bzip2) \ |
60 |
$(use_with http) \ |
61 |
$(use_with lzma) \ |
62 |
@@ -43,12 +45,12 @@ src_configure() { |
63 |
$(use_with zlib) |
64 |
} |
65 |
|
66 |
+src_test() { |
67 |
+ pushd test || die |
68 |
+ ${CONFIG_SHELL}/bin/bash do-basic-tests.sh || die |
69 |
+} |
70 |
+ |
71 |
src_install() { |
72 |
default |
73 |
find "${ED}" -name '*.la' -delete || die |
74 |
} |
75 |
- |
76 |
-src_test() { |
77 |
- pushd test || die |
78 |
- sh do-basic-tests.sh |
79 |
-} |