summaryrefslogtreecommitdiff
path: root/sys-firmware/blisp/blisp-0.0.5.ebuild
blob: cc17b51e2d3ed089ca7e4cccec6c2f39844a9bf5 (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Bouffalo Labs in-system-programming tool and library"
HOMEPAGE="https://github.com/pine64/blisp"
SRC_URI="https://github.com/pine64/${PN}/archive/refs/tags/v${PV}.tar.gz
	-> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
IUSE="+tools"

RDEPEND="dev-libs/argtable3
	dev-libs/libserialport"
DEPEND="${RDEPEND}"

src_prepare() {
	cmake_src_prepare

	# Be extra sure we're not using vendored deps
	rm -r vendor || die
}

src_configure() {

	local mycmakeargs=(
		-DBLISP_USE_SYSTEM_LIBRARIES=ON
		-DBLISP_BUILD_CLI=$(usex tools)
		-DCOMPILE_TESTS=OFF  # requires unpackaged googletest
	)
	cmake_src_configure
}