Files
gentoo/dev-libs/bcm2835/bcm2835-1.71.ebuild
Michał Górny f7fdfdaeec Move {app-doc → app-text}/doxygen
Per the category metadata, app-doc/ is reserved for documentation
*files* and not software.  Move it to app-text/ where it seems a better
fit.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-01-12 15:36:00 +01:00

31 lines
635 B
Bash

# Copyright 1999-2024 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"
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
}