summaryrefslogtreecommitdiff
path: root/sys-firmware/blisp/blisp-0.0.5-r1.ebuild
blob: e482838373029184a7bfafa0febc9ba8bcb1b696 (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 1999-2026 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}"

PATCHES=( "${FILESDIR}/${P}-no-static-libs.patch" )

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
}