commit:     f33bfbe3c57dfb0968114726a94e9f57638735a0
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 23 22:18:13 2026 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 23:14:48 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f33bfbe3

dev-libs/libmodbus: add 3.1.12

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-libs/libmodbus/Manifest                |  1 +
 dev-libs/libmodbus/libmodbus-3.1.12.ebuild | 43 ++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-libs/libmodbus/Manifest b/dev-libs/libmodbus/Manifest
index 799c0e5990c9..4a5e8eb5f318 100644
--- a/dev-libs/libmodbus/Manifest
+++ b/dev-libs/libmodbus/Manifest
@@ -1 +1,2 @@
 DIST libmodbus-3.1.11.tar.gz 478276 BLAKE2B 
7fb6c5cc05bca71067b377211da78046abefb9bd74c8f0f0c567324ea7c874d7aa509e2d67f9a1fd9288719e87fdbca280cf4d5612e222f1ef0ef613b2fae988
 SHA512 
76192230c548640b0954b471aa5d346488115d0690bd932370814f442de56c4316002a5f0288f5955a4b396168ebe7c463a40a029e57df16c7fa4b3d83af6acb
+DIST libmodbus-3.1.12.tar.gz 483861 BLAKE2B 
ba1a8c5e39c93e0a8f44ced69cf6d12d4b303a853b1820d52f75872166c16110d0c105118d80758aa875ea36acde6997fd725a3e6c764dc95c17550efda89ec9
 SHA512 
5b884c5a9a817965a37304f2b15ee8e2fb5f1d2caf7e7ca9417dcc5abb593ed47339c8d4e0045c0fbeca09af80bf73cbf7d79a65eb0678a103c755a0349b727a

diff --git a/dev-libs/libmodbus/libmodbus-3.1.12.ebuild 
b/dev-libs/libmodbus/libmodbus-3.1.12.ebuild
new file mode 100644
index 000000000000..e0e422d547c9
--- /dev/null
+++ b/dev-libs/libmodbus/libmodbus-3.1.12.ebuild
@@ -0,0 +1,43 @@
+# 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.1.11.
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}/${PN}-3.1.11-cflags.patch" )
+
+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
+}

Reply via email to