diff options
Diffstat (limited to 'media-gfx/libbgcode/libbgcode-0.0.20240730.ebuild')
-rw-r--r-- | media-gfx/libbgcode/libbgcode-0.0.20240730.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/media-gfx/libbgcode/libbgcode-0.0.20240730.ebuild b/media-gfx/libbgcode/libbgcode-0.0.20240730.ebuild new file mode 100644 index 000000000000..bf5c06541e91 --- /dev/null +++ b/media-gfx/libbgcode/libbgcode-0.0.20240730.ebuild @@ -0,0 +1,35 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +LIBBGCODE_COMMIT=5347c3399ec933f590d1f96903a406647f287d8f + +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 + >=sys-libs/zlib-1.0 +" +DEPEND="${RDEPEND} + dev-libs/boost + test? ( =dev-cpp/catch-2*:0 ) +" + +src_configure() { + local mycmakeargs=( + -DLibBGCode_BUILD_TESTS=$(usex test) + ) + cmake_src_configure +} |