diff options
Diffstat (limited to 'dev-embedded/raspberrypi-utils/raspberrypi-utils-0_p20240903.ebuild')
-rw-r--r-- | dev-embedded/raspberrypi-utils/raspberrypi-utils-0_p20240903.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-embedded/raspberrypi-utils/raspberrypi-utils-0_p20240903.ebuild b/dev-embedded/raspberrypi-utils/raspberrypi-utils-0_p20240903.ebuild new file mode 100644 index 000000000000..0ede982eed41 --- /dev/null +++ b/dev-embedded/raspberrypi-utils/raspberrypi-utils-0_p20240903.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 cmake + +COMMIT="d4f8fb543a892ba65bfc608511bf582c0425aa81" + +DESCRIPTION="Raspberry Pi userspace utilities" +HOMEPAGE="https://github.com/raspberrypi/utils" +SRC_URI="https://github.com/raspberrypi/utils/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/utils-${COMMIT}" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~arm ~arm64" + +DEPEND=" + sys-apps/dtc +" + +RDEPEND=" + ${DEPEND} + dev-lang/perl + !media-libs/raspberrypi-userland + !media-libs/raspberrypi-userland-bin +" + +PATCHES=( + "${FILESDIR}"/${PN}-werror.patch +) + +src_configure() { + local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + local SRC + rm -r "${ED}"/usr/share/bash-completion/ || die + for SRC in */*-completion.bash; do + local DEST=${SRC%-completion.bash} + newbashcomp "${SRC}" "${DEST##*/}" + done +} |