commit: 751aa5867fcbdf1fc0a9c69914e3f3fdc3ad5c00 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Tue Oct 22 22:18:11 2024 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Tue Oct 22 22:18:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=751aa586
dev-libs/libmodbus: add 3.1.11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> dev-libs/libmodbus/Manifest | 1 + dev-libs/libmodbus/libmodbus-3.1.11.ebuild | 31 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/dev-libs/libmodbus/Manifest b/dev-libs/libmodbus/Manifest index a5e5c74478ae..752e27cbad86 100644 --- a/dev-libs/libmodbus/Manifest +++ b/dev-libs/libmodbus/Manifest @@ -1 +1,2 @@ DIST libmodbus-3.1.10.tar.gz 463325 BLAKE2B ea1c54e52f0927e9e97b2303b35925d6a40b30f1eed881eeed2d05a229c858ebdde6212431699e24a331744b30f447dfe6704c7ca0d4eb73d193ae5b5055c4b3 SHA512 d9a56d2cd3285823b287b6bf4f79741f2e626e09cfc1872405a306e8dcc0f64c15695e8aee45614071c615cd248b87293ef2351c830120a515d28303bad0ccee +DIST libmodbus-3.1.11.tar.gz 478276 BLAKE2B 7fb6c5cc05bca71067b377211da78046abefb9bd74c8f0f0c567324ea7c874d7aa509e2d67f9a1fd9288719e87fdbca280cf4d5612e222f1ef0ef613b2fae988 SHA512 76192230c548640b0954b471aa5d346488115d0690bd932370814f442de56c4316002a5f0288f5955a4b396168ebe7c463a40a029e57df16c7fa4b3d83af6acb diff --git a/dev-libs/libmodbus/libmodbus-3.1.11.ebuild b/dev-libs/libmodbus/libmodbus-3.1.11.ebuild new file mode 100644 index 000000000000..aef845307db2 --- /dev/null +++ b/dev-libs/libmodbus/libmodbus-3.1.11.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Modbus library which supports RTU communication over a serial line or a TCP link" +HOMEPAGE="https://libmodbus.org/" +SRC_URI="https://github.com/stephane/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +src_configure() { + local myeconfargs=( + $(use_enable test tests) + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if ! use static-libs; then + find "${ED}" -name '*.la' -delete || die + fi +}