# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 inherit cmake-utils flag-o-matic git-r3 DESCRIPTION="Raspberry Pi userspace tools and libraries" HOMEPAGE="https://github.com/raspberrypi/userland" SRC_URI="" LICENSE="BSD" SLOT="0" KEYWORDS="" IUSE="" DEPEND="" RDEPEND="" EGIT_REPO_URI="https://github.com/raspberrypi/userland" PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) pkg_setup() { append-ldflags $(no-as-needed) } src_configure() { local mycmakeargs=( -DVMCS_INSTALL_PREFIX="/usr" ) cmake-utils_src_configure } src_install() { cmake-utils_src_install insinto /lib/udev/rules.d doins "${FILESDIR}"/92-local-vchiq-permissions.rules dodir /usr/share/doc/${PF} mv "${D}"/usr/src/hello_pi "${D}"/usr/share/doc/${PF}/ rmdir "${D}"/usr/src }