From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-940983-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 6CA83139694
	for <garchives@archives.gentoo.org>; Sun, 26 Mar 2017 14:46:14 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 293AF234072;
	Sun, 26 Mar 2017 14:46:03 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E7BB2234072
	for <gentoo-commits@lists.gentoo.org>; Sun, 26 Mar 2017 14:46:02 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CE13D34167E
	for <gentoo-commits@lists.gentoo.org>; Sun, 26 Mar 2017 14:46:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 40B617405
	for <gentoo-commits@lists.gentoo.org>; Sun, 26 Mar 2017 14:45:58 +0000 (UTC)
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" <jlec@gentoo.org>
Message-ID: <1490522563.662cee61a1be1ed6f247a17c0a402ac639447638.jlec@gentoo>
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/amdapp/
X-VCS-Repository: proj/sci
X-VCS-Files: dev-util/amdapp/amdapp-3.0-r2.ebuild
X-VCS-Directories: dev-util/amdapp/
X-VCS-Committer: jlec
X-VCS-Committer-Name: Justin Lecher
X-VCS-Revision: 662cee61a1be1ed6f247a17c0a402ac639447638
X-VCS-Branch: master
Date: Sun, 26 Mar 2017 14:45:58 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: f634de00-e945-401a-bc59-494d5ded3493
X-Archives-Hash: b33b2715e790078d37b13d195d1de45f

commit:     662cee61a1be1ed6f247a17c0a402ac639447638
Author:     cengique <cengique <AT> users <DOT> sf <DOT> net>
AuthorDate: Sun Mar 26 10:02:43 2017 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Mar 26 10:02:43 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=662cee61

dev-util/amdapp: Added release and manifest for new AMD download v3.0.130.136 (#605)

* dev-util/amdapp: Added release and manifest for new AMD download v3.0.130.136

Updated EAPI and copyright
replace cp -r with doins
selected media-libs/glew slot 0 as dep

Package-Manager: portage-2.2.28

* removed ati-drivers dependendency and forwarded other style changes from 3.0-r1.ebuild

Package-Manager: portage-2.2.28

* dev-util/amdapp: BUGFIX for doins installing files in wrong place. doins is only for single files, must use cp -r like the previous ebuild.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

* dev-util/amdapp: Changed back to undocumented doins -r, set the executable bits, and removed already-unpacked archive

Package-Manager: Portage-2.3.3, Repoman-2.3.1

* dev-util/amdapp: Fixing several small issues asked by jlec and added :* slot to llvm asked by repoman

Package-Manager: Portage-2.3.4, Repoman-2.3.1

 dev-util/amdapp/amdapp-3.0-r2.ebuild | 89 ++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)

diff --git a/dev-util/amdapp/amdapp-3.0-r2.ebuild b/dev-util/amdapp/amdapp-3.0-r2.ebuild
new file mode 100644
index 000000000..bfa63a332
--- /dev/null
+++ b/dev-util/amdapp/amdapp-3.0-r2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multilib unpacker versionator
+
+MY_V="$(get_version_component_range 1).$(get_version_component_range 2).130.136-GA"
+
+X86_AT="AMD-APP-SDKInstaller-v${MY_V}-linux32.tar.bz2"
+AMD64_AT="AMD-APP-SDKInstaller-v${MY_V}-linux64.tar.bz2"
+
+MY_P_AMD64="AMD-APP-SDK-v${MY_V}-linux64.sh"
+MY_P_AMD32="AMD-APP-SDK-v${MY_V}-linux32.sh"
+
+DESCRIPTION="AMD Accelerated Parallel Processing (APP) SDK"
+HOMEPAGE="http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk"
+SRC_URI="
+	amd64? ( ${AMD64_AT} )
+	x86? ( ${X86_AT} )"
+LICENSE="AMD-APPSDK"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+RDEPEND="
+	!<dev-util/amdstream-2.6
+	app-eselect/eselect-opencl
+	app-eselect/eselect-opengl
+	media-libs/freeglut
+	media-libs/mesa[video_cards_radeonsi]
+	sys-devel/gcc:*
+	sys-devel/llvm:*
+	virtual/opencl
+	examples? ( media-libs/glew:0= )"
+DEPEND="
+	${RDEPEND}
+	dev-util/patchelf
+	dev-lang/perl
+	sys-apps/fakeroot
+"
+
+RESTRICT="mirror strip"
+
+S="${WORKDIR}"
+
+OPT_DIR="/opt/AMDAPP"
+
+pkg_nofetch() {
+	einfo "AMD doesn't provide direct download links. Please download"
+	einfo "${ARCHIVE} from ${HOMEPAGE}"
+}
+
+src_unpack() {
+	default
+
+	cd "${WORKDIR}" || die
+
+	if use amd64 || use amd64-linux ; then
+		unpacker ./${MY_P_AMD64}
+	else
+		unpacker ./${MY_P_X86}
+	fi
+}
+
+src_compile() {
+	MAKEOPTS+=" -j1"
+	use examples && cd samples/opencl && default
+}
+
+src_install() {
+	# Copy everything
+	insinto $OPT_DIR
+	doins -r *
+
+	# Set executable bits
+	exeinto $OPT_DIR/bin/x86_64/
+	doexe bin/x86_64/clinfo
+
+	exeinto $OPT_DIR/bin/x86/
+	doexe bin/x86/clinfo
+
+	# Delete archive - already unpacked
+	if use amd64 || use amd64-linux ; then
+		rm "${D}/${OPT_DIR}/${MY_P_AMD64}" || die
+	else
+		rm "${D}/${OPT_DIR}/${MY_P_X86}" || die
+	fi
+}