mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/libmodbus: add 3.2.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST libmodbus-3.1.12.tar.gz 483861 BLAKE2B ba1a8c5e39c93e0a8f44ced69cf6d12d4b303a853b1820d52f75872166c16110d0c105118d80758aa875ea36acde6997fd725a3e6c764dc95c17550efda89ec9 SHA512 5b884c5a9a817965a37304f2b15ee8e2fb5f1d2caf7e7ca9417dcc5abb593ed47339c8d4e0045c0fbeca09af80bf73cbf7d79a65eb0678a103c755a0349b727a
|
||||
DIST libmodbus-3.2.0.tar.gz 491480 BLAKE2B 354e7964ce06f8845304e82b593990c709e08195f5f8e3a2aa5afa82cd7d47accb6c12c194ba4336ebc318e6f8598bcd7e566cb2a2b46297449007b779d2ccb2 SHA512 b7aea2ff5c87f971abf2711df90b2e1eb6fae9be43468d976a707735b8daffdb7714fbbce092b88ab675634a3228ca7d541ce3d612ee9394a0183dbdb061ff44
|
||||
|
||||
41
dev-libs/libmodbus/libmodbus-3.2.0.ebuild
Normal file
41
dev-libs/libmodbus/libmodbus-3.2.0.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
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"
|
||||
# Tests fail at least when run via the ebuild w/ a timeout assertion being hit
|
||||
# See https://github.com/stephane/libmodbus/issues/791 and https://github.com/stephane/libmodbus/pull/794
|
||||
# Try again > 3.2.1
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user