Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-lang/pgi/files/, licenses/, dev-lang/pgi/
Date: Mon, 03 Jun 2013 23:33:39
Message-Id: 1370128403.7f48a4daa67ffe2f4c76b6bcd6e8fae18c3111f9.ottxor@gentoo
1 commit: 7f48a4daa67ffe2f4c76b6bcd6e8fae18c3111f9
2 Author: Andreas Schäfer <gentryx <AT> gmx <DOT> de>
3 AuthorDate: Sat Jun 1 23:13:23 2013 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 1 23:13:23 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7f48a4da
7
8 added PGI ebuild
9
10 ---
11 dev-lang/pgi/files/terminal.patch | 39 ++++++
12 dev-lang/pgi/metadata.xml | 16 +++
13 dev-lang/pgi/pgi-13.5.ebuild | 100 +++++++++++++++
14 licenses/PGI | 262 ++++++++++++++++++++++++++++++++++++++
15 4 files changed, 417 insertions(+)
16
17 diff --git a/dev-lang/pgi/files/terminal.patch b/dev-lang/pgi/files/terminal.patch
18 new file mode 100644
19 index 0000000..9b5b674
20 --- /dev/null
21 +++ b/dev-lang/pgi/files/terminal.patch
22 @@ -0,0 +1,39 @@
23 +diff -ru pgi-a/install pgi/install
24 +--- pgi-a/install 2013-06-01 01:24:11.522714654 +0200
25 ++++ pgi/install 2013-06-01 01:27:36.372713265 +0200
26 +@@ -83,7 +83,7 @@
27 + else
28 + licensefile=$SRC/common/BETA_LICENSE
29 + fi
30 +-more $licensefile
31 ++#more $licensefile
32 + echo
33 + echo -n 'Do you accept these terms? (accept,decline) '
34 + read x
35 +@@ -296,7 +296,7 @@
36 + echo
37 + echo 'In order to install the ACML software, please read and accept the'
38 + echo 'following license.'
39 +- more $SRC/common/LICENSE_ACML.txt
40 ++ #more $SRC/common/LICENSE_ACML.txt
41 + echo
42 + echo -n 'Do you accept these terms? (accept,decline) '
43 + read x
44 +@@ -342,7 +342,7 @@
45 + echo
46 + echo 'In order to install the CUDA software, please read and accept the'
47 + echo 'following license.'
48 +- more $SRC/common/LICENSE_NVIDIA_CUDA.txt
49 ++ #more $SRC/common/LICENSE_NVIDIA_CUDA.txt
50 + echo
51 + echo -n 'Do you accept these terms? (accept,decline) '
52 + read x
53 +@@ -398,7 +398,7 @@
54 + echo
55 + echo 'In order to install the JAVA software, please read and accept the'
56 + echo 'following license.'
57 +- more $SRC/common/LICENSE_JRE_6U21.txt
58 ++ #more $SRC/common/LICENSE_JRE_6U21.txt
59 + echo
60 + echo -n 'Do you accept these terms? (accept,decline) '
61 + read x
62
63 diff --git a/dev-lang/pgi/metadata.xml b/dev-lang/pgi/metadata.xml
64 new file mode 100644
65 index 0000000..a888d4a
66 --- /dev/null
67 +++ b/dev-lang/pgi/metadata.xml
68 @@ -0,0 +1,16 @@
69 +<?xml version='1.0' encoding='UTF-8'?>
70 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
71 +<pkgmetadata>
72 + <herd>cluster</herd>
73 + <longdescription>
74 + PGI is the C/C++/Fortran compiler suite of the Portland Group.
75 + </longdescription>
76 + <maintainer>
77 + <email>gentryx@×××.de</email>
78 + </maintainer>
79 + <use>
80 + <flag name='acml'>Install AMD's core math library.</flag>
81 + <flag name='java'>Install a PGI-tuned JRE.</flag>
82 + <flag name='cuda'>Install PGI's CUDA components (e.g. for OpenACC)</flag>
83 + </use>
84 +</pkgmetadata>
85
86 diff --git a/dev-lang/pgi/pgi-13.5.ebuild b/dev-lang/pgi/pgi-13.5.ebuild
87 new file mode 100644
88 index 0000000..8468e96
89 --- /dev/null
90 +++ b/dev-lang/pgi/pgi-13.5.ebuild
91 @@ -0,0 +1,100 @@
92 +# Copyright 2013 Gentoo Foundation
93 +# Distributed under the terms of the GNU General Public License v2
94 +# $Header: $
95 +
96 +EAPI=5
97 +
98 +inherit eutils
99 +
100 +DESCRIPTION="PGI compiler suite"
101 +HOMEPAGE="http://www.pgroup.com/"
102 +SRC_URI="pgilinux-2013-135.tar.gz"
103 +LICENSE="PGI"
104 +SLOT="0"
105 +KEYWORDS="~x86 ~amd64"
106 +IUSE="acml cuda java"
107 +
108 +RESTRICT="mirror strip"
109 +
110 +QA_PREBUILT="
111 + opt/pgi/linux86/2013/cuda/4.2/lib/lib*.so.*
112 + opt/pgi/linux86-64/13.5/bin/*
113 + opt/pgi/linux86-64/13.5/lib/lib*
114 + opt/pgi/linux86-64/13.5/lib/*.o
115 + opt/pgi/linux86-64/13.5/libso/lib*
116 + opt/pgi/linux86-64/13.5/libso/*.o
117 + opt/pgi/linux86-64/13.5/cray/lib*
118 + opt/pgi/linux86-64/13.5/etc/pgi_license_tool/curl
119 + opt/pgi/linux86-64/13.5/REDIST/lib*.so
120 + opt/pgi/linux86-64/2013/cuda/5.0/nvvm/cicc
121 + opt/pgi/linux86-64/2013/cuda/4.2/nvvm/cicc
122 + opt/pgi/linux86-64/2013/acml/5.3.0/lib/lib*
123 + opt/pgi/linux86-64/2013/acml/5.3.0/libso/lib*.so
124 + opt/pgi/linux86/13.5/etc/pgi_license_tool/curl
125 + opt/pgi/linux86/13.5/bin/*
126 + opt/pgi/linux86/13.5/lib/lib*
127 + opt/pgi/linux86/13.5/lib/*.o
128 + opt/pgi/linux86/13.5/libso/lib*
129 + opt/pgi/linux86/13.5/cray/lib*
130 + opt/pgi/linux86/2013/cuda/5.0/nvvm/cicc
131 + opt/pgi/linux86/2013/cuda/4.2/nvvm/cicc
132 + opt/pgi/linux86/2013/acml/4.4.0/lib/lib*
133 + opt/pgi/linux86/2013/acml/4.4.0/libso/lib*.so
134 +"
135 +
136 +S="${WORKDIR}"
137 +
138 +pkg_nofetch() {
139 + einfo "PGI doesn't provide direct download links. Please download"
140 + einfo "${ARCHIVE} from ${HOMEPAGE}"
141 +}
142 +
143 +src_prepare() {
144 + epatch "${FILESDIR}/terminal.patch"
145 +}
146 +
147 +src_install() {
148 + dodir /opt/pgi
149 +
150 + command="accept
151 +1
152 +${ED}/opt/pgi"
153 +
154 + if use acml; then
155 + command="${command}
156 +y
157 +accept
158 +"
159 + else
160 + command="${command}
161 +n"
162 + fi
163 +
164 + if use cuda; then
165 + command="${command}
166 +y
167 +accept"
168 + else
169 + command="${command}
170 +n"
171 + fi
172 +
173 + if use java; then
174 + command="${command}
175 +
176 +accept"
177 + else
178 + command="${command}
179 +no"
180 + fi
181 +
182 + command="${command}
183 +y
184 +n
185 +n
186 +y
187 +"
188 + ./install <<EOF
189 +${command}
190 +EOF
191 +}
192
193 diff --git a/licenses/PGI b/licenses/PGI
194 new file mode 100644
195 index 0000000..a54f86c
196 --- /dev/null
197 +++ b/licenses/PGI
198 @@ -0,0 +1,262 @@
199 +PGI End-User License Agreement
200 +
201 +NOTICE: PLEASE READ THIS DOCUMENT CAREFULLY BEFORE DOWNLOADING, COPYING OR
202 +USING THE LICENSED SOFTWARE. THIS END-USER LICENSE AGREEMENT ("ELA") IS A
203 +LEGAL AGREEMENT BETWEEN YOU, THE LICENSEE (A SINGLE PERSON, INSTITUTION, OR
204 +LEGAL ENTITY) ("YOU"), AND STMICROELECTRONICS, N.V., A DUTCH CORPORATION,
205 +HAVING ITS PRINCIPAL PLACE OF BUSINESS AT STRAWINSKYLAAN 1725, TOWER B 17TH
206 +FLOOR, 1077 XX AMSTERDAM, THE NETHERLANDS, ACTING FOR THE PURPOSE OF THIS
207 +ELA THROUGH ITS SWISS BRANCH, 39, CHEMIN DU CHAMP DES FILLES, C. P. 21, CH
208 +1228 PLAN-LES-OUATES, GENEVA, SWITZERLAND ("ST") FOR THE LICENSED SOFTWARE,
209 +ASSOCIATED MEDIA, PRINTED MATERIAL, ELECTRONIC DOCUMENTATION OR ANY PORTION
210 +THEREOF ("SOFTWARE"). ST IS WILLING TO LICENSE THE SOFTWARE TO YOU ONLY
211 +UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS ELA.
212 +PLEASE READ THE ELA CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE,
213 +YOU ACCEPT ALL OF THE TERMS OF THE ELA. PLEASE INDICATE YOUR ACCEPTANCE OF
214 +ALL OF THE THESE TERMS BY SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF
215 +THE ELA. IF YOU ARE UNWILLING TO BE BOUND BY ALL OF THE TERMS, PLEASE
216 +SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE ELA AND THE DOWNLOAD OR
217 +INSTALL PROCESS WILL STOP.
218 +
219 +
220 +1) Ownership
221 +
222 + The Software distributed and licensed to You hereunder, including, if
223 + and when provided, any updates furnished to You for free or for
224 + additional fees, is proprietary to ST or its licensors (ST and
225 + licensors hereafter referred to as "Licensor"). The Licensors retain
226 + title to and ownership of the Software, including the copy provided
227 + herein, and reserve all rights not expressly granted in this ELA.
228 +
229 +2) Granting of License
230 +
231 +2A) Except as set forth in Sections 3 and 4 below, under the terms and
232 + conditions of this ELA, You are hereby granted a limited, revocable,
233 + nontransferable, and nonexclusive license to use the Software subject
234 + to the restrictions and other terms within. That use must be
235 + (i) only by You,
236 + (ii) only on a computer system running a specific operating system
237 + on which the Software is designed to run and for which portions
238 + of the Software and subsequent components in the compilation
239 + process are intended to produce an executable image ("Target
240 + Systems") for which the corresponding fee has been paid,
241 + (iii) only on the network(s) and only by the number of users for
242 + which the corresponding fee has been paid, and
243 + (iv) only to target no more than the maximum number of CPUs, or
244 + the maximum number of processes, for which the corresponding
245 + fee has been paid.
246 + Except as set forth in Section 2B below, any other use of the
247 + Software is strictly prohibited.
248 +
249 +2B) You may distribute an end-user application that You build with the
250 + Software that provides significant functionality distinct from that
251 + included with the Software ("End-User Application") to users within
252 + Your organization as well as third party users outside Your
253 + organization ("Sublicensees") for only such uses and/or Target
254 + Systems for which the Software was designed and intended. You agree
255 + that any sublicense shall not relieve You from Your obligations under
256 + this ELA. The Software includes the run-time files, libraries and
257 + executables ("Run-Time Files") that are bound into Your application
258 + by the linker or otherwise required by Your application. You may
259 + also distribute separate dynamically-linked or executable Run-Time
260 + Files required during the execution of Your End-User Application.
261 + Whenever an End-User Application is used internally within Your
262 + organization or by outside third parties, You shall contractually
263 + require that all Sublicensees abide by the following restrictions:
264 + (i) they shall not use the "PGI", "The Portland Group", "ST", or
265 + "STMicroelectronics" name, logo, or trademarks in marketing the
266 + End-User Application without prior written permission from ST,
267 + (ii) they will maintain a valid copyright on the End-User
268 + Application,
269 + (iii) they will, without limitation, indemnify, hold harmless, and
270 + defend ST and other applicable Licensors and their respective
271 + affiliates and suppliers from and against any and all claims,
272 + lawsuits, costs, and expenses, including attorney's fees, that
273 + arise or result from their use or distribution of the End-User
274 + Application, and
275 + (iv) they shall strictly prohibit the further distribution of the
276 + Run-Time Files by the user of the End-User Application.
277 + Notwithstanding the above, the only Run-Time Files that may be
278 + distributed as noted in this Section 2B are in the folders or
279 + directories whose names begin with "REDIST".
280 +
281 +3) Software from Microsoft
282 +
283 + You acknowledge that as part of the Software You may receive Run-Time
284 + Files in the form of Microsoft Foundation Classes ("MFCs"), Active
285 + Template Libraries ("ATLs"), and/or "C" Runtime files ("CRTs") in
286 + binary form only ("Microsoft Distributable Code"). Notwithstanding
287 + any other provision of this ELA, You acknowledge and agree
288 + (A) that You have a limited right to use the Microsoft
289 + Distributable Code to design, develop, or test for use with the
290 + Software only,
291 + (B) that You or Your end-users of the Microsoft Distributable Code
292 + may only use it to create programs that run natively on
293 + Microsoft platforms, and
294 + (C) to the following restrictions: You and Your end-users:
295 + (i) will not alter any copyright, trademark, patent, or other
296 + legal notice or disclaimer in the Microsoft Distributable
297 + Code,
298 + (ii) will not run the Microsoft Distributable Code on a
299 + platform other than a Microsoft platform, and
300 + (iii) will not include Microsoft Distributable Code in
301 + malicious, deceptive, or unlawful programs.
302 + Further, You will require end users of the Microsoft Distributable
303 + Code to agree to terms at least as protective as this ELA.
304 +
305 +4) Software from Sun Microsystems and/or Oracle America, Inc.
306 +
307 + You acknowledge that as part of the Software you are receiving access
308 + to Java(tm) 2 Runtime Environment (J2RE), version 1.4.2 or subsequent
309 + versions ("Java Code"). Notwithstanding any other provision of this
310 + ELA, You are hereby granted a limited, revocable, nontransferable,
311 + and nonexclusive license, without the right to sublicense, to use the
312 + Java Code complete and unmodified for the sole purpose of running
313 + Java applets and applications intended to run on the JavaTM 2
314 + Platform Standard Edition 5.0 (J2SE 5.0) or subsequent versions on
315 + Java-enabled general purpose desktop computers and servers.
316 +
317 +5) Restrictions
318 +
319 +5A) You may make one (1) copy of the Software in machine-readable form,
320 + solely for archival or backup purposes, provided the copyright notice
321 + and other proprietary legends on the Software are included on any
322 + archival/backup copies. You may not modify, adapt, translate,
323 + reverse engineer, de-compile, disassemble, or create derivative
324 + works, in whole or in part, based on the Software. You may not rent,
325 + lease, loan, share, or electronically transfer the Software to
326 + others.
327 +
328 +5B) The term "proprietary" as used in this ELA or in the Software does
329 + not establish a confidential relationship between the Licensor and
330 + You and does not in itself provide You any rights to the Software.
331 + You acknowledge that the Licensors have valuable intellectual
332 + property rights in the Software and agree to respect and protect such
333 + intellectual property rights. No right, title, or interest in or to
334 + any trademark, service mark, logo or trade name of the Licensors is
335 + granted under this ELA.
336 +
337 +5C) You acknowledge and agree that the Software is not designed or
338 + intended for use in nuclear activities or life support systems. The
339 + Licensors disclaim any express or implied warranty of fitness for
340 + such uses.
341 +
342 +5D) You will not modify or distribute any of the Software so that any
343 + part of it becomes subject to an Excluded License. As used in this
344 + ELA, an "Excluded License" is one that requires, as a condition of
345 + use, modification, or distribution, that
346 + (i) the Software be disclosed or distributed in source code form; or
347 + (ii) others have a right to modify it, or
348 + (iii) the Software loses its proprietary nature.
349 + Therefore, without the prior written permission of the applicable
350 + Licensors, You may not modify the Software directly in any way. In
351 + particular, You may not introduce or commingle with the Software any
352 + source or object code that is governed by an open source or public
353 + license of any kind.
354 +
355 +6) Limited Warranty
356 +
357 + THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. TO
358 + THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSORS FURTHER
359 + DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION ANY IMPLIED
360 + WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
361 + NONINFRINGEMENT. THE ENTIRE RISK ARISING OUT OF THE USE OR
362 + PERFORMANCE OF THE SOFTWARE AND DOCUMENTATION REMAINS WITH YOU. TO
363 + THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL
364 + THE LICENSORS BE LIABLE FOR ANY CONSEQUENTIAL, INCIDENTAL, INDIRECT,
365 + SPECIAL, PUNITIVE, OR OTHER DAMAGES WHATSOEVER (INCLUDING, WITHOUT
366 + LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS
367 + INTERRUPTION, LOSS OF BUSINESS INFORMATION, LOSS OF DATA OR OTHER
368 + PECUNIARY LOSS) ARISING OUT OF THIS ELA OR THE USE OF OR INABILITY TO
369 + USE THE SOFTWARE, EVEN IF THE LICENSORS HAVE BEEN ADVISED OF THE
370 + POSSIBILITY OF SUCH DAMAGES. NOTWITHSTANDING THE FOREGOING, TO THE
371 + EXTENT THAT ST MAY BE HELD LEGALLY LIABLE TO YOU BY A COURT OF
372 + COMPETENT JURISDICTION UNDER CONTRACT, TORT, OR ANY OTHER LEGAL
373 + THEORY, THE MAXIMUM LIABILITY OF THE LICENSORS SHALL NOT EXCEED THE
374 + APPLICABLE PURCHASE PRICE OF THE SOFTWARE OR ONE THOUSAND DOLLARS
375 + ($1,000), WHICHEVER IS GREATER.
376 +
377 +7) Indemnity and Audit
378 +
379 +7A) You agree to indemnify, defend, and hold the Licensors harmless from
380 + and against any and all claims, liabilities, damages, penalties,
381 + settlements, and costs and expenses (including, without limitation,
382 + reasonable attorneys' fees and court or arbitration costs), asserted
383 + by any and all third parties (collectively "Claims") against the
384 + Licensors, and their respective employees, directors, officers, and
385 + agents alleging or resulting from:
386 + (i) Your breach of any term or condition of this ELA;
387 + (ii) alleged or actual infringement of the intellectual property or
388 + other proprietary rights of a third party by You or Your
389 + sublicensees; unauthorized alteration of the Software or
390 + derivative products by You or Your sublicensees;
391 + (iii) combination of the Software or derivative products with other
392 + software, products or materials not in accordance with the
393 + terms of this ELA; or
394 + (iv) any acts or omissions by You, Your employees, directors,
395 + officers, and agents or sublicensees either under this ELA or
396 + outside its scope, including personal injury, death, or
397 + property damage to anyone or anything.
398 +
399 +7B) ST reserves the right, upon reasonable prior written notice to You
400 + and during Your normal business hours, to audit Your use of the
401 + Software and any derivative products made therefrom to confirm Your
402 + compliance with the terms of this ELA.
403 +
404 +8) Software Export
405 +
406 + All Software and technical data delivered under this ELA are subject
407 + to US export control laws and may be subject to export or import
408 + regulations in other countries. You agree to comply strictly with
409 + all such laws and regulations and acknowledge that You have the
410 + responsibility to obtain such licenses to export, re-export, or
411 + import as may be required after delivery to You.
412 +
413 +9) Software Manuals
414 +
415 + All proprietary documentation provided with the Software is copyrighted
416 + and may not be copied, photographed, reproduced, translated or reduced
417 + to any electronic medium or machine-readable form in whole or in part
418 + without the express, written, prior approval of ST.
419 +
420 +10) Government Use
421 +
422 + The Software is a "commercial item," as that term is defined at 48
423 + C.F.R. 2.101 (OCT 1995), consisting of "commercial computer software"
424 + and "commercial computer software documentation," as such terms are
425 + used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S.
426 + Government only as a commercial end item. Consistent with 48 C.F.R.
427 + 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
428 + U.S. Government licensees and end users acquire the Software with
429 + only those rights set forth herein.
430 +
431 +11) Termination
432 +
433 + The license granted to You in this ELA is effective until terminated.
434 + The license may be terminated by ST at any time without prior notice.
435 + You may terminate the license at any time by returning and/or
436 + destroying the Software together with all copies. Upon termination
437 + of the license for any reason, you agree to destroy all copies of the
438 + Software.
439 +
440 +12) Surviving Terms
441 +
442 + In the event this ELA is terminated for any reason, the following
443 + provisions shall survive termination and shall remain in full force
444 + and effect: 1, 5, 6, 7, 8, 9, 10, 12, and 13.
445 +
446 +13) Controlling Law and Complete Agreement
447 +
448 + This Agreement shall be construed and interpreted under the laws of
449 + the state of New York, not including its conflict of laws principles.
450 + If any provision of this ELA, or portion thereof, is found to be
451 + unenforceable, that provision shall be enforced to the maximum extent
452 + possible and the remainder of this ELA shall continue in full force
453 + and effect.
454 +
455 +YOU ACKNOWLEDGE THAT YOU HAVE READ THIS ELA AND AGREE TO BE BOUND BY ITS
456 +TERMS. YOU FURTHER AGREE THAT IT IS THE COMPLETE AND EXCLUSIVE STATEMENT
457 +OF AGREEMENT BETWEEN YOU AND ST AND THAT IT SUPERSEDES ANY PRIOR AGREEMENT,
458 +ORAL OR WRITTEN, ANY PROPOSAL, AND ANY OTHER COMMUNICATIONS BETWEEN YOU AND
459 +ST RELATING TO THE SUBJECT MATTER OF THIS ELA.
460 +