Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmodbus/
Date: Sun, 05 Jun 2022 14:51:58
Message-Id: 1654440701.c6230bcce74207d07622a088678daa6c8aeb7b35.conikost@gentoo
1 commit: c6230bcce74207d07622a088678daa6c8aeb7b35
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 5 14:51:11 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 5 14:51:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6230bcc
7
8 dev-libs/libmodbus: add 3.1.7
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 dev-libs/libmodbus/Manifest | 1 +
13 dev-libs/libmodbus/libmodbus-3.1.7.ebuild | 39 +++++++++++++++++++++++++++++++
14 2 files changed, 40 insertions(+)
15
16 diff --git a/dev-libs/libmodbus/Manifest b/dev-libs/libmodbus/Manifest
17 index 7330e2fd00cf..a71fc07534f5 100644
18 --- a/dev-libs/libmodbus/Manifest
19 +++ b/dev-libs/libmodbus/Manifest
20 @@ -1 +1,2 @@
21 DIST libmodbus-3.1.6.tar.gz 479565 BLAKE2B d9aecb57a0dd274c54a62f707c90c83f31500dd76aefc38c2615d9ce32df659613511e1b567cc385fd2b05aa473dbfbb65ae248d93bb7df2fbfcd7b16b7c5701 SHA512 2e39aea41b1cfb30239c3d8271c68841d645a44a15019090e2efd16979bde373c76532f992aa6a4587b95c65ed9829705f32e698e445df7c0e1d52d0d1165bce
22 +DIST libmodbus-3.1.7.tar.gz 490162 BLAKE2B 3ba8353fbf6849597b1affdb8dc318b8dc1e2f66b0c1bc9f5f3c8286d48609be6d85d84269d31510fe292a48010a72e7a678b748f3c03117a6230651fa80fe91 SHA512 e2c00bd06d0b4a16c8edbfd25a95695b782cf459cd69a7cefc1cfa5e4025f23b2896487b48876ccf2f8050e8cdef4a76d322c9752a43cd8dd2c634df9406bada
23
24 diff --git a/dev-libs/libmodbus/libmodbus-3.1.7.ebuild b/dev-libs/libmodbus/libmodbus-3.1.7.ebuild
25 new file mode 100644
26 index 000000000000..48c8397cd030
27 --- /dev/null
28 +++ b/dev-libs/libmodbus/libmodbus-3.1.7.ebuild
29 @@ -0,0 +1,39 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DESCRIPTION="Modbus library which supports RTU communication over a serial line or a TCP link"
36 +HOMEPAGE="https://libmodbus.org/"
37 +SRC_URI="https://libmodbus.org/releases/${P}.tar.gz"
38 +
39 +LICENSE="LGPL-3"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="static-libs test doc"
43 +RESTRICT="!test? ( test )"
44 +
45 +BDEPEND="
46 + doc? (
47 + app-text/asciidoc
48 + app-text/xmlto
49 + )
50 +"
51 +
52 +src_configure() {
53 + local myeconfargs=(
54 + $(use_enable test tests)
55 + $(use_enable static-libs static)
56 + $(use_with doc documentation)
57 + )
58 +
59 + econf "${myeconfargs[@]}"
60 +}
61 +
62 +src_install() {
63 + default
64 +
65 + if ! use static-libs; then
66 + find "${ED}" -name '*.la' -delete || die
67 + fi
68 +}