diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2012-10-02 06:43:43 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2012-10-02 06:43:43 +0000 |
commit | a823f7a196e195a4c2591839e32ac81008c06e8b (patch) | |
tree | e15168429ff2609d813845455ebfa22af6767aa9 /dev-util | |
parent | Port to libextractor-0.6.x by me #435394 by BT. (diff) | |
download | gentoo-2-a823f7a196e195a4c2591839e32ac81008c06e8b.tar.gz gentoo-2-a823f7a196e195a4c2591839e32ac81008c06e8b.tar.bz2 gentoo-2-a823f7a196e195a4c2591839e32ac81008c06e8b.zip |
Add use flag for installing ioc64
(Portage version: 2.2.0_alpha133/cvs/Linux x86_64)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/intel-ocl-sdk/ChangeLog | 6 | ||||
-rw-r--r-- | dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild | 47 | ||||
-rw-r--r-- | dev-util/intel-ocl-sdk/metadata.xml | 3 |
3 files changed, 42 insertions, 14 deletions
diff --git a/dev-util/intel-ocl-sdk/ChangeLog b/dev-util/intel-ocl-sdk/ChangeLog index bb6c6d853375..51bd8084641a 100644 --- a/dev-util/intel-ocl-sdk/ChangeLog +++ b/dev-util/intel-ocl-sdk/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-util/intel-ocl-sdk # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/intel-ocl-sdk/ChangeLog,v 1.4 2012/10/02 05:48:24 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/intel-ocl-sdk/ChangeLog,v 1.5 2012/10/02 06:43:43 xarthisius Exp $ + + 02 Oct 2012; Kacper Kowalik <xarthisius@gentoo.org> + intel-ocl-sdk-2.0.31360.ebuild, metadata.xml: + Add use flag for installing ioc64 *intel-ocl-sdk-2.0.31360 (02 Oct 2012) diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild index 894d39d2d752..cf42d5eeff6e 100644 --- a/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild +++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild,v 1.1 2012/10/02 05:48:24 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild,v 1.2 2012/10/02 06:43:43 xarthisius Exp $ EAPI=4 @@ -8,21 +8,25 @@ MY_P=${PN//-/_}_2012_x64 inherit rpm multilib -INTEL_CL=/usr/$(get_libdir)/OpenCL/vendors/intel/ +INTEL_CL=usr/$(get_libdir)/OpenCL/vendors/intel/ DESCRIPTION="Intel's implementation of the OpenCL standard optimized for Intel processors." HOMEPAGE="http://software.intel.com/en-us/articles/opencl-sdk/" SRC_URI="http://registrationcenter.intel.com/irc_nas/2563/intel_sdk_for_ocl_applications_2012_x64.tgz" + LICENSE="Intel-SDP" SLOT="0" -IUSE="" +IUSE="tools" KEYWORDS="~amd64 -x86" -#sys-devel/clang -#dev-libs/boost:1.46 RDEPEND="app-admin/eselect-opencl dev-cpp/tbb - sys-process/numactl" + sys-process/numactl + tools? ( + dev-libs/boost:1.46 + sys-devel/llvm + >=virtual/jre-1.6 + )" DEPEND="" RESTRICT="mirror" @@ -38,19 +42,36 @@ src_unpack() { rpm_unpack ./${MY_P}.rpm } +src_prepare() { + # Remove unnecessary and bundled stuff + rm -rf ${INTEL_CL}/{docs,version.txt,llc} + rm -f ${INTEL_CL}/libboost* + rm -f ${INTEL_CL}/libtbb* + if ! use tools; then + rm -rf usr/bin + rm -f ${INTEL_CL}/{ioc64,ioc.jar} + fi +} + src_install() { - doins -r etc usr/bin - # things that are left out: llc, ioc + doins -r etc + insinto ${INTEL_CL} doins -r usr/include insopts -m 755 - newins usr/lib64/libOpenCL.so libOpenCL.so.1 + newins usr/$(get_libdir)/libOpenCL.so libOpenCL.so.1 dosym libOpenCL.so.1 ${INTEL_CL}/libOpenCL.so - pushd usr/lib64/OpenCL/vendors/intel &> /dev/null - rm -f libboost* libtbb* - doins *.so *rtl *pch - popd &> /dev/null + + doins ${INTEL_CL}/* + + # Think of better way to do that... + if use tools; then + dosym /usr/$(get_libdir)/libboost_filesystem-1_46.so.1.46.1 \ + ${INTEL_CL}/libboost_filesystem.so.1.46.1 + dosym /usr/$(get_libdir)/libboost_system-1_46.so.1.46.1 \ + ${INTEL_CL}/libboost_system.so.1.46.1 + fi } pkg_postinst() { diff --git a/dev-util/intel-ocl-sdk/metadata.xml b/dev-util/intel-ocl-sdk/metadata.xml index 6629da3fa528..78f4a5e1b938 100644 --- a/dev-util/intel-ocl-sdk/metadata.xml +++ b/dev-util/intel-ocl-sdk/metadata.xml @@ -5,4 +5,7 @@ <email>xarthisius@gentoo.org</email> <name>Kacper Kowalik</name> </maintainer> + <use> + <flag name='tools'>Install Intel Offline Compiler</flag> + </use> </pkgmetadata> |