mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
Signed-off-by: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> Closes: https://bugs.gentoo.org/914504
30 lines
642 B
Bash
30 lines
642 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Provides access to GPIO and other IO functions on the Broadcom BCM2835"
|
|
HOMEPAGE="https://www.airspayce.com/mikem/bcm2835/"
|
|
SRC_URI="https://www.airspayce.com/mikem/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~arm ~arm64"
|
|
IUSE="doc examples"
|
|
|
|
BDEPEND="doc? ( app-text/doxygen )"
|
|
|
|
src_compile() {
|
|
emake AR="$(tc-getAR)"
|
|
}
|
|
|
|
src_install() {
|
|
use doc && HTML_DOCS=( doc/html/. )
|
|
if use examples; then
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
fi
|
|
default
|
|
}
|