summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-10-25 01:04:25 +0000
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-10-25 01:04:25 +0000
commit5f174c4389805d07cd139023843ad7b06d6e05f6 (patch)
treeed797fc7e5baff78388b1a434fea4de08a0bc368 /media-libs/raspberrypi-userland
parentVersion bump. No longer needs special SRC_URI. Drop kernel check as kernel co... (diff)
downloadgentoo-2-5f174c4389805d07cd139023843ad7b06d6e05f6.tar.gz
gentoo-2-5f174c4389805d07cd139023843ad7b06d6e05f6.tar.bz2
gentoo-2-5f174c4389805d07cd139023843ad7b06d6e05f6.zip
Initial commit. Thanks to xmw for the env.d file.
(Portage version: 2.2.0_alpha137/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/raspberrypi-userland')
-rw-r--r--media-libs/raspberrypi-userland/ChangeLog10
-rw-r--r--media-libs/raspberrypi-userland/files/04raspberrypi-userland3
-rw-r--r--media-libs/raspberrypi-userland/metadata.xml9
-rw-r--r--media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20121024.ebuild58
4 files changed, 80 insertions, 0 deletions
diff --git a/media-libs/raspberrypi-userland/ChangeLog b/media-libs/raspberrypi-userland/ChangeLog
new file mode 100644
index 000000000000..6986f73b7b3e
--- /dev/null
+++ b/media-libs/raspberrypi-userland/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-libs/raspberrypi-userland
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/raspberrypi-userland/ChangeLog,v 1.1 2012/10/25 01:04:25 chithanh Exp $
+
+*raspberrypi-userland-0_pre20121024 (25 Oct 2012)
+
+ 25 Oct 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ +files/04raspberrypi-userland, +metadata.xml,
+ +raspberrypi-userland-0_pre20121024.ebuild:
+ Initial commit. Thanks to xmw for the env.d file.
diff --git a/media-libs/raspberrypi-userland/files/04raspberrypi-userland b/media-libs/raspberrypi-userland/files/04raspberrypi-userland
new file mode 100644
index 000000000000..600a95474096
--- /dev/null
+++ b/media-libs/raspberrypi-userland/files/04raspberrypi-userland
@@ -0,0 +1,3 @@
+
+PATH='/opt/bin'
+LDPATH='/opt/vc/lib'
diff --git a/media-libs/raspberrypi-userland/metadata.xml b/media-libs/raspberrypi-userland/metadata.xml
new file mode 100644
index 000000000000..8a9b49eec325
--- /dev/null
+++ b/media-libs/raspberrypi-userland/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chithanh@gentoo.org</email>
+ <name>Chí-Thanh Christopher Nguyễn</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20121024.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20121024.ebuild
new file mode 100644
index 000000000000..c1269a08a99e
--- /dev/null
+++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20121024.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20121024.ebuild,v 1.1 2012/10/25 01:04:25 chithanh Exp $
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Raspberry Pi userspace tools and libraries"
+HOMEPAGE="https://github.com/raspberrypi/userland"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://github.com/${PN/-//}.git"
+ SRC_URI=""
+else
+ SRC_URI="mirror://gentoo/${P}.tar.xz"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~arm"
+
+# TODO:
+# * port vcfiled init script
+# * stuff is still installed to hardcoded /opt/vc location, investigate whether
+# anything else depends on it being there
+# * live ebuild
+
+src_unpack() {
+ if [[ ${PV} == 9999* ]]; then
+ git-2_src_unpack
+ else
+ default
+ mv ${PN}-*/ ${P}/ || die
+ fi
+}
+
+src_prepare() {
+ # missing from upstream repo, would be installed to wrong directory anyway
+ # https://github.com/raspberrypi/userland/issues/1
+ sed -i "/10-vchiq.rules/d" interface/vchiq_arm/CMakeLists.txt || die
+ # init script for Debian, not useful on Gentoo
+ sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
+ # we have our env.d file for this
+ sed -i "/\/etc\/ld.so.conf/d" makefiles/cmake/vmcs.cmake
+}
+
+src_configure() {
+ # toolchain file not needed, but build fails if it is not specified
+ local mycmakeargs="-DCMAKE_TOOLCHAIN_FILE=/dev/null"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ doenvd "${FILESDIR}"/04${PN}
+}