diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-07-19 10:13:55 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-07-19 10:55:54 +0200 |
commit | 5f2232110a087c77505b1e19f162c60fe6e33501 (patch) | |
tree | b697a4ff8a4a8b804ad8a37f1320e92e0befc73d /media-libs/raspberrypi-userland | |
parent | media-libs/raspberrypi-userland: remove empty file. (diff) | |
download | gentoo-5f2232110a087c77505b1e19f162c60fe6e33501.tar.gz gentoo-5f2232110a087c77505b1e19f162c60fe6e33501.tar.bz2 gentoo-5f2232110a087c77505b1e19f162c60fe6e33501.zip |
media-libs/raspberrypi-userland: tidy up ebuild and add missing dies.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'media-libs/raspberrypi-userland')
-rw-r--r-- | media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild index 44af1834f383..fb3240d5919a 100644 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild +++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild @@ -19,9 +19,12 @@ else S="${WORKDIR}/raspberrypi-userland-${GIT_COMMIT}" fi -RDEPEND="!media-libs/raspberrypi-userland-bin +RDEPEND=" + !media-libs/raspberrypi-userland-bin wayland? ( dev-libs/wayland )" -DEPEND="${RDEPEND} + +DEPEND=" + ${RDEPEND} wayland? ( virtual/pkgconfig )" IUSE="examples wayland" @@ -66,7 +69,7 @@ src_install() { dosym ../../../opt/vc /usr/lib/opengl/${PN} # tell eselect opengl that we do not have libGL - touch "${ED}"/opt/vc/.gles-only + touch "${ED}"/opt/vc/.gles-only || die insinto /opt/vc/lib/pkgconfig doins "${FILESDIR}"/bcm_host.pc @@ -74,7 +77,7 @@ src_install() { doins "${FILESDIR}"/glesv2.pc if use wayland; then # Missing wayland-egl version from the patch; claim 9.0 (a mesa version) for now, so gst-plugins-bad wayland-egl check is happy - sed -i -e 's/Version: /Version: 9.0/' "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc + sed -i -e 's/Version: /Version: 9.0/' "${ED}/opt/vc/lib/pkgconfig/wayland-egl.pc" || die doins "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc # Maybe move? fi @@ -82,24 +85,25 @@ src_install() { einfo "Fixing #include \"vcos_platform_types.h\"" for file in $(grep -l "#include \"vcos_platform_types.h\"" "${D}"/opt/vc/include/* -r); do einfo " Fixing file ${file}" - sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file} + sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file} || die done + einfo "Fixing #include \"vcos_platform.h\"" for file in $(grep -l "#include \"vcos_platform.h\"" "${D}"/opt/vc/include/* -r); do einfo " Fixing file ${file}" - sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file} + sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file} || die done + einfo "Fixing #include \"vchost_config.h\"" for file in $(grep -l "#include \"vchost_config.h\"" "${D}"/opt/vc/include/* -r); do einfo " Fixing file ${file}" - sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file} + sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file} || die done - if use examples ; then + if use examples; then dodir /usr/share/doc/${PF}/examples mv "${D}"/opt/vc/src/hello_pi "${D}"/usr/share/doc/${PF}/examples/ || die - rm -fr "${D}"/opt/vc/src - else - rm -fr "${D}/opt/vc/src" fi + + rm -rfv "${D}"/opt/vc/src || die } |