summaryrefslogtreecommitdiff
path: root/dev-libs/libmodbus
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-09 03:03:12 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-09 03:03:12 +0000
commit2be329ae14bbf99f0fc4de7567e2386bbb529fdc (patch)
tree99e1d21f40429392d5eb255ec008fdd96e4fa284 /dev-libs/libmodbus
parent2cd9ff612e84f0c1ef63c9e9e13be53fe576cc2b (diff)
gentoo auto-resync : 09:11:2024 - 03:03:12
Diffstat (limited to 'dev-libs/libmodbus')
-rw-r--r--dev-libs/libmodbus/Manifest3
-rw-r--r--dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch17
-rw-r--r--dev-libs/libmodbus/libmodbus-3.1.11-r1.ebuild (renamed from dev-libs/libmodbus/libmodbus-3.1.11.ebuild)9
3 files changed, 28 insertions, 1 deletions
diff --git a/dev-libs/libmodbus/Manifest b/dev-libs/libmodbus/Manifest
index e3acbbc7cf47..5f19b386f753 100644
--- a/dev-libs/libmodbus/Manifest
+++ b/dev-libs/libmodbus/Manifest
@@ -1,5 +1,6 @@
+AUX libmodbus-3.1.11-cflags.patch 297 BLAKE2B a4710989cb7b8b7719c7fad3de8c7fdcba39a010cb49921708691a2f497a4a7d5d3e7ae4ffb9032a5c86424b2b1667c9eefccfabf901c52e251a77a46c4a8d88 SHA512 7195407080e02ba4768aeb944efcedef4d7ca0ae86397029f332afb324e7f68cecf9ef6a19807f85a998f7587fe01245e6db9e773a231b3de6a755de359d00f2
DIST libmodbus-3.1.10.tar.gz 463325 BLAKE2B ea1c54e52f0927e9e97b2303b35925d6a40b30f1eed881eeed2d05a229c858ebdde6212431699e24a331744b30f447dfe6704c7ca0d4eb73d193ae5b5055c4b3 SHA512 d9a56d2cd3285823b287b6bf4f79741f2e626e09cfc1872405a306e8dcc0f64c15695e8aee45614071c615cd248b87293ef2351c830120a515d28303bad0ccee
DIST libmodbus-3.1.11.tar.gz 478276 BLAKE2B 7fb6c5cc05bca71067b377211da78046abefb9bd74c8f0f0c567324ea7c874d7aa509e2d67f9a1fd9288719e87fdbca280cf4d5612e222f1ef0ef613b2fae988 SHA512 76192230c548640b0954b471aa5d346488115d0690bd932370814f442de56c4316002a5f0288f5955a4b396168ebe7c463a40a029e57df16c7fa4b3d83af6acb
EBUILD libmodbus-3.1.10.ebuild 690 BLAKE2B adf47b3463e698daba8b23f060243ea71aa464252fad1e77c401647a1a20e71ee0c5b361410af6aabe8aa8803d30a08fcbf899458ce657cd8b59606824081115 SHA512 23ad79d565fa84c21a337a61405c6cf911e06f4f753092fd58f9b64f1a0cb6ec444601303f2290d405af031792a509e4ecafb803dff3723f237c21faa843e5fc
-EBUILD libmodbus-3.1.11.ebuild 694 BLAKE2B 5f5ac1f409ec36b3a4e66d200f9483469c9dbae885f825bbe15688eefe1615e216de79efc720ef4d721dddef182285dda8e87eab53ab8ffc8016f117c3170437 SHA512 b82027ec78a24a96b26509beaa503b32224c8706b86a2f35f624b884605ecb5159675ee0331a959b8a2f1f7beb0953d9a7dd82f3f8f5cea70ff45af254adad96
+EBUILD libmodbus-3.1.11-r1.ebuild 807 BLAKE2B b01406571c67f487866a2452a991817cd7255d8b51f103d89f48e7e894cddeba6d0b5081fd5b27ec27985799d62aaf52f004a5108cb3a4ceda023fee2a2af18b SHA512 216a85d631a0e9ba6a51488d7a5dbfe59c38477cf2696de08bbb496b598966b3d0f97819d59b32aeb97dcb29e53e01f8adc0addbacbca96e0e2a7ceb6080e21a
MISC metadata.xml 400 BLAKE2B 13cbac9e5f8b0b4af1330ef236dff85b8d3f167cabb19979942fa610c525c9d0b532e5c6a359f716ab198872f622dbbbe9575fc1ab53f82b8abe8e4996e6d921 SHA512 248080a171c05cca240271d8dc3e7cd0b30e78100697dddf0a0d8216d4d0c42abc9c52731b0abaa5de9dbacf9c402ada6e1b406699b7eefdb0ede78717d587c5
diff --git a/dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch b/dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch
new file mode 100644
index 000000000000..ae9de9ab36ef
--- /dev/null
+++ b/dev-libs/libmodbus/files/libmodbus-3.1.11-cflags.patch
@@ -0,0 +1,17 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -178,14 +178,6 @@
+ [enable_debug=$enableval],
+ [enable_debug=no])
+
+-AS_IF([test "x$enable_debug" = "xyes"], [
+- CFLAGS="-g -O0"
+- CXXFLAGS="-g -O0"
+-], [
+- CFLAGS="-O2"
+- CXXFLAGS="-O2"
+-])
+-
+ AC_OUTPUT
+ AC_MSG_RESULT([
+ $PACKAGE $VERSION
diff --git a/dev-libs/libmodbus/libmodbus-3.1.11.ebuild b/dev-libs/libmodbus/libmodbus-3.1.11-r1.ebuild
index aef845307db2..cc96ddbb2f5c 100644
--- a/dev-libs/libmodbus/libmodbus-3.1.11.ebuild
+++ b/dev-libs/libmodbus/libmodbus-3.1.11-r1.ebuild
@@ -3,6 +3,8 @@
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"
@@ -13,6 +15,13 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
+PATCHES=( "${FILESDIR}/${PN}-3.1.11-cflags.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_configure() {
local myeconfargs=(
$(use_enable test tests)