mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
Done via: ``` git grep -l 'virtual/zlib-' | xargs sed -i -r -e 's@virtual/zlib-[0-9.]*(-r[0-9]*)?@&:=@g' git grep -l 'virtual/zlib-' | xargs sed -i -e 's@:=:=@:=@g' pkgcheck scan --commits \ -c SourcingCheck,VisibilityCheck,DependencyCheck --exit error ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
36 lines
775 B
Bash
36 lines
775 B
Bash
# Copyright 2024-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
LIBBGCODE_COMMIT=d33a277a3ce2c0a7f9ba325caac6d730e0f7a412
|
|
|
|
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-2*:0 )
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DLibBGCode_BUILD_TESTS=$(usex test)
|
|
)
|
|
cmake_src_configure
|
|
}
|