Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/wandio/files/, net-libs/wandio/
Date: Tue, 05 Jul 2022 03:15:43
Message-Id: 1656990164.49775e284a9ce5cee4e57f20c0462ed56786a0f4.sam@gentoo
1 commit: 49775e284a9ce5cee4e57f20c0462ed56786a0f4
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 5 03:00:14 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 03:02:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49775e28
7
8 net-libs/wandio: update EAPI 7 -> 8
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../files/wandio-4.2.3_p1-fix-lz4-check.patch | 12 ++++
13 net-libs/wandio/wandio-4.2.3_p1-r2.ebuild | 65 ++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/net-libs/wandio/files/wandio-4.2.3_p1-fix-lz4-check.patch b/net-libs/wandio/files/wandio-4.2.3_p1-fix-lz4-check.patch
17 new file mode 100644
18 index 000000000000..db50cf1c0c04
19 --- /dev/null
20 +++ b/net-libs/wandio/files/wandio-4.2.3_p1-fix-lz4-check.patch
21 @@ -0,0 +1,12 @@
22 +https://github.com/wanduow/wandio/pull/51
23 +--- a/configure.ac
24 ++++ b/configure.ac
25 +@@ -260,7 +260,7 @@ AC_ARG_WITH([lz4],
26 + AS_IF([test "x$with_lz4" != "xno"],
27 + [
28 + AC_CHECK_LIB(lz4, LZ4F_createDecompressionContext, have_lz4f=yes, have_lz4f=no)
29 +- ], [have_zstd=no])
30 ++ ], [have_lz4f=no])
31 +
32 + AS_IF([test "x$have_lz4f" = "xyes"], [
33 + if test "$ac_cv_lib_lz4_code" != "none required"; then
34
35 diff --git a/net-libs/wandio/wandio-4.2.3_p1-r2.ebuild b/net-libs/wandio/wandio-4.2.3_p1-r2.ebuild
36 new file mode 100644
37 index 000000000000..d927232b4f66
38 --- /dev/null
39 +++ b/net-libs/wandio/wandio-4.2.3_p1-r2.ebuild
40 @@ -0,0 +1,65 @@
41 +# Copyright 1999-2022 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=8
45 +
46 +inherit autotools
47 +
48 +DESCRIPTION="C library for simple and efficient file IO"
49 +HOMEPAGE="https://research.wand.net.nz/software/libwandio.php"
50 +SRC_URI="https://github.com/wanduow/${PN}/archive/${PV/_p/-}.tar.gz -> ${P}.tar.gz"
51 +S="${WORKDIR}/${P/_p/-}"
52 +
53 +LICENSE="LGPL-3"
54 +SLOT="0/6"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE="bzip2 http lzma lzo lz4 test zlib zstd"
57 +RESTRICT="!test? ( test )"
58 +REQUIRED_USE="test? ( lzma lzo )"
59 +
60 +RDEPEND="
61 + !<net-libs/libtrace-4
62 + bzip2? ( app-arch/bzip2 )
63 + lzma? ( app-arch/xz-utils )
64 + lzo? ( dev-libs/lzo )
65 + lz4? ( app-arch/lz4:= )
66 + http? ( net-misc/curl )
67 + zlib? ( sys-libs/zlib )
68 + zstd? ( app-arch/zstd:= )
69 +"
70 +DEPEND="
71 + ${RDEPEND}
72 + test? ( app-arch/lzop )
73 +"
74 +
75 +PATCHES=(
76 + "${FILESDIR}"/${PN}-4.2.3_p1-fix-lz4-check.patch
77 +)
78 +
79 +src_prepare() {
80 + default
81 +
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + econf \
87 + $(use_with bzip2) \
88 + $(use_with http) \
89 + $(use_with lzma) \
90 + $(use_with lzo) \
91 + $(use_with lz4) \
92 + $(use_with zlib) \
93 + $(use_with zstd)
94 +}
95 +
96 +src_test() {
97 + pushd test || die
98 + "${BROOT}"/bin/bash do-basic-tests.sh || die
99 +}
100 +
101 +src_install() {
102 + default
103 +
104 + find "${ED}" -name '*.la' -delete || die
105 +}