Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/raspberrypi-userland-bin/files/, media-libs/raspberrypi-userland-bin/
Date: Fri, 19 Feb 2016 22:17:07
Message-Id: 1455920085.3c20fbf00809ed5c4988f91a504c8a2f3bebf5c3.xmw@gentoo
1 commit: 3c20fbf00809ed5c4988f91a504c8a2f3bebf5c3
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 19 22:09:29 2016 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 19 22:14:45 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c20fbf0
7
8 media-libs/raspberrypi-userland-bin: Initial import for bug 521920.
9
10 Package-Manager: portage-2.2.27
11
12 media-libs/raspberrypi-userland-bin/Manifest | 1 +
13 .../files/04raspberrypi-userland-bin | 1 +
14 media-libs/raspberrypi-userland-bin/metadata.xml | 12 ++++++
15 .../raspberrypi-userland-bin-1.20160209.ebuild | 49 ++++++++++++++++++++++
16 4 files changed, 63 insertions(+)
17
18 diff --git a/media-libs/raspberrypi-userland-bin/Manifest b/media-libs/raspberrypi-userland-bin/Manifest
19 new file mode 100644
20 index 0000000..bacb97e
21 --- /dev/null
22 +++ b/media-libs/raspberrypi-userland-bin/Manifest
23 @@ -0,0 +1 @@
24 +DIST raspberrypi-firmware-1.20160209.tar.gz 114792438 SHA256 ca6a88db72e90ef821b8ca7755bbee9c1d5bdb9a621a45eb029af195d2d29751 SHA512 281092c11d422d821e5e2b0479c3b8f891f8df66cfbf931992902d759c99ed40cbb2d9fada1f944372e5bcd8af69784739e79e9912db3482892b10bf668611f2 WHIRLPOOL 81974a53562ee91544d7a01dc9f4f4173a6e882891f8cf744b700162ddd8f8607b1cfcbbde04cafe2bcea47489f9ea4fd8840adf776e806bef0dba574448e76e
25
26 diff --git a/media-libs/raspberrypi-userland-bin/files/04raspberrypi-userland-bin b/media-libs/raspberrypi-userland-bin/files/04raspberrypi-userland-bin
27 new file mode 100644
28 index 0000000..d4d8fad
29 --- /dev/null
30 +++ b/media-libs/raspberrypi-userland-bin/files/04raspberrypi-userland-bin
31 @@ -0,0 +1 @@
32 +LDPATH='/opt/vc/lib'
33
34 diff --git a/media-libs/raspberrypi-userland-bin/metadata.xml b/media-libs/raspberrypi-userland-bin/metadata.xml
35 new file mode 100644
36 index 0000000..a0cb81f
37 --- /dev/null
38 +++ b/media-libs/raspberrypi-userland-bin/metadata.xml
39 @@ -0,0 +1,12 @@
40 +<?xml version="1.0" encoding="UTF-8"?>
41 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
42 +<pkgmetadata>
43 +<maintainer>
44 +<email>xmw@g.o</email>
45 +<name>Michael Weber</name>
46 +</maintainer>
47 +<use>
48 + <flag name="hardfp">Use armv6 hardfp ABI</flag>
49 +</use>
50 +</pkgmetadata>
51 +
52
53 diff --git a/media-libs/raspberrypi-userland-bin/raspberrypi-userland-bin-1.20160209.ebuild b/media-libs/raspberrypi-userland-bin/raspberrypi-userland-bin-1.20160209.ebuild
54 new file mode 100644
55 index 0000000..b7b3c7b
56 --- /dev/null
57 +++ b/media-libs/raspberrypi-userland-bin/raspberrypi-userland-bin-1.20160209.ebuild
58 @@ -0,0 +1,49 @@
59 +# Copyright 1999-2015 Gentoo Foundation
60 +# Distributed under the terms of the GNU General Public License v2
61 +# $Header: $
62 +
63 +EAPI=5
64 +
65 +inherit multilib vcs-snapshot
66 +
67 +DESCRIPTION="Raspberry Pi userspace tools and libraries"
68 +HOMEPAGE="https://github.com/raspberrypi/firmware"
69 +MY_P="raspberrypi-firmware-${PV}"
70 +SRC_URI="https://github.com/raspberrypi/firmware/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
71 +
72 +LICENSE="BSD GPL-2 raspberrypi-videocore-bin"
73 +SLOT="0"
74 +KEYWORDS="~arm -*"
75 +IUSE="+hardfp examples"
76 +
77 +RDEPEND="!media-libs/raspberrypi-userland"
78 +DEPEND="${DEPEND}"
79 +
80 +S=${WORKDIR}/${MY_P}
81 +
82 +RESTRICT="binchecks"
83 +
84 +src_prepare() {
85 + rm {,hardfp/}opt/vc/LICENCE || die
86 +}
87 +
88 +src_install() {
89 + cd $(usex hardfp hardfp/ "")opt/vc || die
90 +
91 + insinto /opt/vc
92 + doins -r include
93 + into /opt
94 + dobin bin/*
95 + dobin sbin/*
96 + insopts -m 0755
97 + insinto "/opt/vc/$(get_libdir)"
98 + doins -r lib/*
99 +
100 + doenvd "${FILESDIR}"/04${PN}
101 +
102 + if use examples ; then
103 + insopts -m 0644
104 + insinto /usr/share/doc/${PF}/examples
105 + doins -r src/hello_pi
106 + fi
107 +}