public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/raspberrypi-userland/
Date: Wed, 19 Jul 2017 08:56:02 +0000 (UTC)	[thread overview]
Message-ID: <1500454554.5f2232110a087c77505b1e19f162c60fe6e33501.monsieurp@gentoo> (raw)

commit:     5f2232110a087c77505b1e19f162c60fe6e33501
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 19 08:13:55 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jul 19 08:55:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f223211

media-libs/raspberrypi-userland: tidy up ebuild and add missing dies.

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../raspberrypi-userland-0_pre20160424.ebuild      | 26 +++++++++++++---------
 1 file 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 44af1834f38..fb3240d5919 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
 }


             reply	other threads:[~2017-07-19  8:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-19  8:56 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-24 21:03 [gentoo-commits] repo/gentoo:master commit in: media-libs/raspberrypi-userland/ Andreas Sturmlechner
2022-04-28  3:34 Sam James
2021-02-16 19:33 Sam James
2020-12-10 17:43 Sam James
2020-12-07 17:11 Sam James
2020-12-03  5:20 Sam James
2020-11-23  4:52 Sam James
2019-04-05 16:41 Alfredo Tupone
2017-07-30  9:38 Michał Górny
2017-03-07  7:28 Michael Weber
2017-02-23 12:35 Michael Weber
2016-04-25  7:56 Miroslav Šulc
2016-04-11 20:28 Miroslav Šulc
2016-03-30 13:37 Miroslav Šulc
2015-10-26 16:38 Chí-Thanh Christopher Nguyễn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500454554.5f2232110a087c77505b1e19f162c60fe6e33501.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox