blob: 134348fc278fe46eb6f4fd95a4f4a1759a081b72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="command line utility to communicate with ModBus slave (RTU or TCP) "
HOMEPAGE="https://github.com/epsilonrt/mbpoll"
SRC_URI="https://github.com/epsilonrt/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-libs/libmodbus"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/add_definitions(-O2)//' CMakeLists.txt
sed -i -e 's/-O2 //' CMakeLists.txt
cmake_src_prepare
}
|