Gentoo Archives: gentoo-commits

From: Kacper Kowalik <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/cdfplayer/, sci-mathematics/cdfplayer/files/, licenses/
Date: Sun, 30 Dec 2012 11:42:53
Message-Id: 1353687695.b8f32087e941442da3a4e1f453a962f8f212ac28.xarthisius@gentoo
1 commit: b8f32087e941442da3a4e1f453a962f8f212ac28
2 Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Fri Nov 23 16:21:35 2012 +0000
4 Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 23 16:21:35 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b8f32087
7
8 sci-mathematics/cdfplayer: new ebuild for bug #421019
9
10 ---
11 licenses/cdfplayer | 143 ++++++++++++++++++++
12 sci-mathematics/cdfplayer/ChangeLog | 11 ++
13 sci-mathematics/cdfplayer/cdfplayer-8.0.4.ebuild | 39 ++++++
14 .../files/cdfplayer-8.0.4-installer.patch | 19 +++
15 sci-mathematics/cdfplayer/metadata.xml | 12 ++
16 5 files changed, 224 insertions(+), 0 deletions(-)
17
18 diff --git a/licenses/cdfplayer b/licenses/cdfplayer
19 new file mode 100644
20 index 0000000..4977e6b
21 --- /dev/null
22 +++ b/licenses/cdfplayer
23 @@ -0,0 +1,143 @@
24 +Wolfram CDF Player License Agreement
25 +Acceptance
26 +
27 +This is a binding agreement: read all terms; retain a copy.
28 +
29 +Carefully read the following terms and conditions before accessing, installing,
30 +or using the Software. By clicking the "I Agree" button, downloading the
31 +Product, or installing/using the Product, You are consenting to be bound by
32 +this Wolfram CDF Player License Agreement ("Agreement"). If You are not willing
33 +to accept the terms and conditions of this Agreement, You may not access, copy,
34 +install, or use the Product. You should discontinue use/installation, and
35 +immediately uninstall/remove/destroy any existing or additional copies of the
36 +Product.
37 +Definitions
38 +
39 +WRI: Wolfram Research, Inc., 100 Trade Center Drive, Champaign, IL 61820-7237,
40 +USA.
41 +
42 +You/Licensee: The individual or organization obtaining the Product. If
43 +You/Licensee agree to these terms on behalf of an organization, You represent
44 +to WRI that You are authorized to accept these terms on the organization's
45 +behalf.
46 +
47 +Software: The computer programs provided by WRI under this Agreement, known as
48 +CDF Player.
49 +
50 +Product: All the materials, including the Software, provided by WRI under this
51 +Agreement (whether by download or physical storage media), and data accessed on
52 +WRI's servers.
53 +
54 +Intellectual Property Rights: Any and all rights existing from time to time
55 +under patent law, copyright law, trade secret law, trademark law, unfair
56 +competition law, and any and all other proprietary rights, and any and all
57 +applications, renewals, extensions, and restorations thereof.
58 +Ownership
59 +
60 +WRI is the sole owner of the Product as provided by WRI with the exception of
61 +the portions of the Product licensed by WRI from third parties. WRI is the
62 +holder of the Intellectual Property Rights in the Product, including, without
63 +limitation, such aspects of the Software as its code, structure, sequence,
64 +organization, "look and feel", programming language, and compilations of
65 +command names, descriptors, and data. Use of the Product, unless pursuant to
66 +the terms of a license granted by WRI or as otherwise authorized by law, is an
67 +infringement of Intellectual Property Rights.
68 +Product Use
69 +
70 +Subject to the terms of this Agreement and Your acceptance thereof, WRI grants
71 +You a non-exclusive license to install and use the Product on a single online
72 +storage device solely in accordance with the terms of this Agreement.
73 +Provisions of this Agreement that by their nature express ongoing rights or
74 +obligations shall survive the expiration or termination of this Agreement.
75 +Other than this express Agreement, no other right, title, or interest in or to
76 +any tangible or intangible property right of WRI is granted, and is expressly
77 +reserved by WRI.
78 +Prohibited Uses
79 +
80 +All uses of the Software and other elements of the Product not specifically
81 +allowed under this Agreement are prohibited, including, without limitation:
82 +
83 + decompiling, disassembling, or reverse engineering the Software;
84 +
85 + modifying the Product in any manner;
86 +
87 + distributing, publishing, transferring, sublicensing, lending, leasing,
88 +renting, or otherwise making available any portion of the Software, including
89 +collections of data;
90 +
91 + copying or allowing copying of the Product or any elements of the Product,
92 +except as permitted for the maintenance of a single archival copy of the
93 +Product;
94 +
95 + using the Product for anything other than (i) passively viewing .cdf, .nbp,
96 +or .nb files and/or (ii) actively running .cdf or .nbp files;
97 +
98 + removing or obscuring any copyright, trademark, logo, watermark, or other
99 +proprietary notices from the Product.
100 +
101 +Term and Termination
102 +
103 +This Agreement is effective upon Your acceptance of this Agreement, and shall
104 +continue in effect until terminated. WRI may terminate this Agreement
105 +immediately in the event of any breach by You of any term herein.
106 +Online Services and Data
107 +
108 +Certain functionality in the Product may require the Software to access
109 +collections of data available through external servers. WRI makes no warranty
110 +that access to such data will be uninterrupted or that the data itself will be
111 +error free. WRI reserves the right to restrict access to, add, update, modify,
112 +or remove collections of data based on availability, Your service subscription,
113 +or otherwise at WRI's discretion. You agree all data access and use shall be in
114 +accordance with this Agreement, and not to access or use data collections in
115 +such a manner that could damage, disable, overburden, or impair the servers
116 +providing such data. You shall only access collections of data through the
117 +intended CDF Player interface. Data provided through WRI's online services
118 +constitute protected intellectual property and may not be copied, distributed,
119 +used to construct a database, stored (in whole or in part) in databases for
120 +access by You or any third party, or provided or distributed through any
121 +database services containing all or part of such data. Access to the online
122 +services is provided to You at WRI's discretion and may be terminated or
123 +restricted at any time.
124 +No Warranty and Disclaimer
125 +
126 +WRI does not warrant that the Product is free from all errors and/or omissions,
127 +and in fact it may contain them. Except as specifically set forth above, the
128 +Product is provided "as is". WRI makes no representations or warranties,
129 +express, statutory, or implied, with respect to the Product or the Software
130 +contained in the Product or data accessed thereby, including, without
131 +limitation, any implied warranties of merchantability, interoperability, or
132 +fitness for a particular purpose, all of which are expressly disclaimed. WRI
133 +does not warrant that the functions contained in the Product will meet Your
134 +requirements, or that the operation of the Product will be uninterrupted or
135 +error free. WRI, and its agents, representatives, and independent contractors,
136 +shall not be obligated to provide or liable, under any circumstances, for
137 +providing information on or corrections to errors and/or omissions discovered
138 +at any time in the Product, whether or not they were aware of the errors and/or
139 +omissions. WRI does not recommend the use of the Product for applications in
140 +which errors and/or omissions could threaten life, injury, or significant loss.
141 +Some states do not allow the exclusion of implied warranties, so this may not
142 +apply to You. This warranty gives You specific legal rights, and You may also
143 +have other rights that vary from state to state. This Agreement is governed by
144 +the laws of the State of Illinois without effect to any choice of law
145 +provisions.
146 +Limited Damages
147 +
148 +In no event shall WRI or its agents, representatives, and independent
149 +contractors be liable for any lost profits, lost use, lost benefits, or any
150 +consequential, indirect, incidental, special, or punitive damages, whether in
151 +contract, tort, or otherwise, even if WRI has been advised of the possibility
152 +of such damages. WRI's cumulative liability to You or any other party for any
153 +loss or damages resulting from any claims, demands, actions, or otherwise
154 +arising out of or relating to this Agreement shall not exceed the license fee
155 +paid for the Product. Some states do not allow certain limitations of damages,
156 +so the above limitations may not apply to You.
157 +United States Federal Government Restricted Rights
158 +
159 +If this Software is acquired by or on behalf of the U.S. federal government,
160 +this provision applies. Use, duplication, or disclosure of this Software is
161 +subject to restrictions set forth in FAR 52.227-19 and DFAR 227.7200 -
162 +227.7202-4, as applicable. The Software is "commercial computer software" and
163 +is licensed with only "Restricted Rights".
164 +
165 +Information on enhanced licensing/distribution options is available upon
166 +request from WRI.
167
168 diff --git a/sci-mathematics/cdfplayer/ChangeLog b/sci-mathematics/cdfplayer/ChangeLog
169 new file mode 100644
170 index 0000000..e9ba9c3
171 --- /dev/null
172 +++ b/sci-mathematics/cdfplayer/ChangeLog
173 @@ -0,0 +1,11 @@
174 +# ChangeLog for sci-mathematics/cdfplayer
175 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
176 +# $Header: $
177 +
178 +*cdfplayer-8.0.4 (23 Nov 2012)
179 +
180 + 23 Nov 2012; Jauhien Piatlicki (jauhien) <piatlicki@×××××.com>
181 + +cdfplayer-8.0.4.ebuild, +files/cdfplayer-8.0.4-installer.patch,
182 + +metadata.xml:
183 + initial commit for bug #421019
184 +
185
186 diff --git a/sci-mathematics/cdfplayer/cdfplayer-8.0.4.ebuild b/sci-mathematics/cdfplayer/cdfplayer-8.0.4.ebuild
187 new file mode 100644
188 index 0000000..e6cbca8
189 --- /dev/null
190 +++ b/sci-mathematics/cdfplayer/cdfplayer-8.0.4.ebuild
191 @@ -0,0 +1,39 @@
192 +# Copyright 1999-2012 Gentoo Foundation
193 +# Distributed under the terms of the GNU General Public License v2
194 +# $Header: $
195 +
196 +EAPI=4
197 +
198 +inherit eutils
199 +
200 +MY_SCRIPT=CDFPlayer_${PV}_LINUX.sh
201 +
202 +DESCRIPTION="Player for Wolfram CDF"
203 +HOMEPAGE="http://www.wolfram.com/cdf-player/"
204 +SRC_URI="http://www.wolfram.com/cdf-player/${MY_SCRIPT}"
205 +LICENSE="cdfplayer"
206 +
207 +SLOT="0"
208 +KEYWORDS="~x86"
209 +
210 +RESTRICT="fetch test"
211 +
212 +pkg_nofetch() {
213 + einfo Download ${MY_SCRIPT} from ${HOMEPAGE}
214 + einfo and move it to ${DISTDIR}
215 +}
216 +
217 +src_unpack() {
218 + mkdir "${S}"
219 + cp "${DISTDIR}/${MY_SCRIPT}" "${S}/${MY_SCRIPT}"
220 + chmod u+x "${S}/${MY_SCRIPT}"
221 +}
222 +
223 +src_prepare() {
224 + epatch "${FILESDIR}/${P}-installer.patch"
225 +}
226 +
227 +src_install() {
228 + "${S}/${MY_SCRIPT}" --target "${S}/${P}" -- -auto -verbose -createdir=y \
229 + -targetdir="${D}/opt" -execdir="${D}/usr/bin"
230 +}
231
232 diff --git a/sci-mathematics/cdfplayer/files/cdfplayer-8.0.4-installer.patch b/sci-mathematics/cdfplayer/files/cdfplayer-8.0.4-installer.patch
233 new file mode 100644
234 index 0000000..9deef53
235 --- /dev/null
236 +++ b/sci-mathematics/cdfplayer/files/cdfplayer-8.0.4-installer.patch
237 @@ -0,0 +1,19 @@
238 +--- CDFPlayer_8.0.4_LINUX.sh
239 ++++ CDFPlayer_8.0.4_LINUX.sh
240 +@@ -261,11 +261,11 @@
241 + fi
242 + done
243 + chmod a+x $0 || echo Please add execution rights on $0
244 +- if test `echo "$0" | cut -c1` = "/"; then # Spawn a terminal!
245 +- exec $XTERM -title "$label" -e "$0" --xwin "$@"
246 +- else
247 +- exec $XTERM -title "$label" -e "./$0" --xwin "$@"
248 +- fi
249 ++ #if test `echo "$0" | cut -c1` = "/"; then # Spawn a terminal!
250 ++ # exec $XTERM -title "$label" -e "$0" --xwin "$@"
251 ++ #else
252 ++ # exec $XTERM -title "$label" -e "./$0" --xwin "$@"
253 ++ #fi
254 + fi
255 + fi
256 + fi
257
258 diff --git a/sci-mathematics/cdfplayer/metadata.xml b/sci-mathematics/cdfplayer/metadata.xml
259 new file mode 100644
260 index 0000000..9a62da3
261 --- /dev/null
262 +++ b/sci-mathematics/cdfplayer/metadata.xml
263 @@ -0,0 +1,12 @@
264 +<?xml version="1.0" encoding="UTF-8"?>
265 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
266 +<pkgmetadata>
267 +<herd>sci</herd>
268 +<maintainer>
269 + <email>piatlicki@×××××.com</email>
270 +</maintainer>
271 +<longdescription>
272 + Player for Wolfram CDF files. It can play Mathematica
273 + notebooks.
274 +</longdescription>
275 +</pkgmetadata>