blob: 6dfbe2d843d50a8112c49c0e866cb6853a971133 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
LIBBGCODE_COMMIT=6f4ad7ce6b0e638b760199d6611039a610a5a479
DESCRIPTION="Prusa Block & Binary G-code reader / writer / converter"
HOMEPAGE="https://github.com/prusa3d/libbgcode"
SRC_URI="https://github.com/prusa3d/libbgcode/archive/${LIBBGCODE_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${LIBBGCODE_COMMIT}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/heatshrink-0.4.1
>=virtual/zlib-1.0:=
"
DEPEND="${RDEPEND}
dev-libs/boost
test? ( >=dev-cpp/catch-3.8 )
"
PATCHES=(
"${FILESDIR}"/libbgcode-0.0.20260521-meatpack-tests.patch
)
src_configure() {
local mycmakeargs=(
-DLibBGCode_BUILD_TESTS=$(usex test)
)
cmake_src_configure
}
|