diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-12-04 15:27:31 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-12-04 15:27:31 +0100 |
commit | 22ac891ad6c147096aad797cb77d94a71ad86ce8 (patch) | |
tree | af3bbe4f6d864c7a8b6a1c3ad21cc163d2ef74ce /dev-libs | |
parent | app-benchmarks/geekbench: add 5.4.6 (diff) | |
download | gentoo-22ac891ad6c147096aad797cb77d94a71ad86ce8.tar.gz gentoo-22ac891ad6c147096aad797cb77d94a71ad86ce8.tar.bz2 gentoo-22ac891ad6c147096aad797cb77d94a71ad86ce8.zip |
dev-libs/libmodbus: add 3.1.9
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libmodbus/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libmodbus/libmodbus-3.1.9.ebuild | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/libmodbus/Manifest b/dev-libs/libmodbus/Manifest index bd90ff635514..82542b5051da 100644 --- a/dev-libs/libmodbus/Manifest +++ b/dev-libs/libmodbus/Manifest @@ -1 +1,2 @@ DIST libmodbus-3.1.8.tar.gz 459999 BLAKE2B e5cb17dd260f3d0a25aedb2cecaa35f21c116458b0a46c7fe3ecc51d6ceb162fa387bb3ad18ff78c89f39645184ecc5bb164ef7cef2d091d2727750bdb0e429a SHA512 1158ac52cf92d3f8f8afaa23b67e841018f94c09521464a4c28ab724f7f2beb0eb567d574c2d81cfb1e3df9436cd2635b52a886656985b27df3a27693957d2df +DIST libmodbus-3.1.9.tar.gz 462649 BLAKE2B 2812b49a908af7906b596c0389050d688294ba415ee7e92211d8a8fb8868ec80388737fb2f7224e59b51861ee76b72cc7464a47b55ba5d086e89c9ff7d0f981b SHA512 6b26049939409ceba7dbafc079138553977dafac5284fdb39e1481c1d2ac29bef22123496819356f9e29d73705d3a9c71075823f0ad102293c4d9efd06fac00c diff --git a/dev-libs/libmodbus/libmodbus-3.1.9.ebuild b/dev-libs/libmodbus/libmodbus-3.1.9.ebuild new file mode 100644 index 000000000000..de8b52473bfe --- /dev/null +++ b/dev-libs/libmodbus/libmodbus-3.1.9.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 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 ~arm64 ~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 +} |