* [gentoo-commits] dev/alexxy:master commit in: dev-libs/intel-beignet/
@ 2014-11-15 22:26 Alexey Shvetsov
0 siblings, 0 replies; only message in thread
From: Alexey Shvetsov @ 2014-11-15 22:26 UTC (permalink / raw
To: gentoo-commits
commit: a4187f0ae94473acc4d21bbcd56f148bb8e27824
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 15 22:21:38 2014 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 22:21:38 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=dev/alexxy.git;a=commit;h=a4187f0a
Add beignet
Package-Manager: portage-2.2.14
---
dev-libs/intel-beignet/Manifest | 1 +
dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild | 68 +++++++++++++++++++++++
dev-libs/intel-beignet/intel-beignet-9999.ebuild | 68 +++++++++++++++++++++++
dev-libs/intel-beignet/metadata.xml | 8 +++
4 files changed, 145 insertions(+)
diff --git a/dev-libs/intel-beignet/Manifest b/dev-libs/intel-beignet/Manifest
new file mode 100644
index 0000000..de095ae
--- /dev/null
+++ b/dev-libs/intel-beignet/Manifest
@@ -0,0 +1 @@
+DIST intel-beignet-1.0.0.tar.gz 827800 SHA256 e30c4d0f4c8917fa0df2467b2d70a4ee524f28d54c42c582262d5f08928ea543 SHA512 5a2f4734315d67847e64173f33cc7625a1f808ff845a73d9c782a13d3934e2126b3191e34e1066bb5c7340f6d92efec9e9303fcda9106707a3e301f7e0f4ea5e WHIRLPOOL efefd0fe175a313bcb9e0e0624ac403e4a677d4a8fd54895b2cb15211d556763a9cb650687169f377ca3f2942e263ecec3e72d03beb1edf920543fae6a895199
diff --git a/dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild b/dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild
new file mode 100644
index 0000000..bd54e34
--- /dev/null
+++ b/dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1 cmake-utils
+CMAKE_BUILD_TYPE="Release"
+
+DESCRIPTION="The Beignet GPGPU System for Intel Ivybridge GPUs"
+HOMEPAGE="http://wiki.freedesktop.org/www/Software/Beignet/"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://anongit.freedesktop.org/beignet"
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://01.org/sites/default/files/${P/intel-/}-source.tar.gz -> ${P}.tar.gz"
+ S=${WORKDIR}/Beignet-${PV}-Source
+fi
+
+DEPEND=">=sys-devel/gcc-4.6
+ ${PYTHON_DEPS}"
+RDEPEND="app-admin/eselect-opencl
+ media-libs/mesa
+ sys-devel/clang
+ >=sys-devel/llvm-3.3
+ x11-libs/libdrm
+ x11-libs/libXext
+ x11-libs/libXfixes"
+
+pkg_setup() {
+ python_setup
+}
+IBEIGNET_DIR=/usr/$(get_libdir)/OpenCL/vendors/intel-beignet
+
+src_prepare() {
+ # disable tests for now
+ sed -i "s/ADD_SUBDIRECTORY(utests)/#ADD_SUBDIRECTORY(utests)/" CMakeLists.txt || die "sed failed"
+
+ echo "${IBEIGNET_DIR}/lib/beignet/libcl.so" > intelbeignet.icd
+ cmake-utils_src_prepare
+}
+src_configure() {
+
+ local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="${IBEIGNET_DIR}/" )
+
+ cmake-utils_src_configure
+}
+src_install() {
+ cmake-utils_src_install
+
+ insinto /etc/OpenCL/vendors/
+ doins intelbeignet.icd
+
+ dodoc -r docs
+
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so.1
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so.1
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so
+}
diff --git a/dev-libs/intel-beignet/intel-beignet-9999.ebuild b/dev-libs/intel-beignet/intel-beignet-9999.ebuild
new file mode 100644
index 0000000..bd54e34
--- /dev/null
+++ b/dev-libs/intel-beignet/intel-beignet-9999.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1 cmake-utils
+CMAKE_BUILD_TYPE="Release"
+
+DESCRIPTION="The Beignet GPGPU System for Intel Ivybridge GPUs"
+HOMEPAGE="http://wiki.freedesktop.org/www/Software/Beignet/"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://anongit.freedesktop.org/beignet"
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://01.org/sites/default/files/${P/intel-/}-source.tar.gz -> ${P}.tar.gz"
+ S=${WORKDIR}/Beignet-${PV}-Source
+fi
+
+DEPEND=">=sys-devel/gcc-4.6
+ ${PYTHON_DEPS}"
+RDEPEND="app-admin/eselect-opencl
+ media-libs/mesa
+ sys-devel/clang
+ >=sys-devel/llvm-3.3
+ x11-libs/libdrm
+ x11-libs/libXext
+ x11-libs/libXfixes"
+
+pkg_setup() {
+ python_setup
+}
+IBEIGNET_DIR=/usr/$(get_libdir)/OpenCL/vendors/intel-beignet
+
+src_prepare() {
+ # disable tests for now
+ sed -i "s/ADD_SUBDIRECTORY(utests)/#ADD_SUBDIRECTORY(utests)/" CMakeLists.txt || die "sed failed"
+
+ echo "${IBEIGNET_DIR}/lib/beignet/libcl.so" > intelbeignet.icd
+ cmake-utils_src_prepare
+}
+src_configure() {
+
+ local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="${IBEIGNET_DIR}/" )
+
+ cmake-utils_src_configure
+}
+src_install() {
+ cmake-utils_src_install
+
+ insinto /etc/OpenCL/vendors/
+ doins intelbeignet.icd
+
+ dodoc -r docs
+
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so.1
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so.1
+ dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so
+}
diff --git a/dev-libs/intel-beignet/metadata.xml b/dev-libs/intel-beignet/metadata.xml
new file mode 100644
index 0000000..bfcb697
--- /dev/null
+++ b/dev-libs/intel-beignet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-15 22:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-15 22:26 [gentoo-commits] dev/alexxy:master commit in: dev-libs/intel-beignet/ Alexey Shvetsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox