Gentoo Archives: gentoo-commits

From: Reinis Danne <rei4dan@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/inchi/, sci-libs/inchi/files/, licenses/
Date: Sat, 03 Mar 2012 15:47:01
Message-Id: 1330789017.128e74a4b06edfd987f4233f8625ca3bc314dbf6.rei4dan@gentoo
1 commit: 128e74a4b06edfd987f4233f8625ca3bc314dbf6
2 Author: Reinis Danne <rei4dan <AT> gmail <DOT> com>
3 AuthorDate: Sat Mar 3 15:33:09 2012 +0000
4 Commit: Reinis Danne <rei4dan <AT> gmail <DOT> com>
5 CommitDate: Sat Mar 3 15:36:57 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=128e74a4
7
8 sci-libs/inchi: Version bump, new licence
9
10 ---
11 licenses/IUPAC+InChI-Trust_InChI_Licence-1.0 | 320 ++++++++++++++++++++++++++
12 sci-libs/inchi/ChangeLog | 12 +
13 sci-libs/inchi/files/inchi-1.03-shared.patch | 20 ++
14 sci-libs/inchi/inchi-1.04.ebuild | 61 +++++
15 sci-libs/inchi/metadata.xml | 8 +
16 5 files changed, 421 insertions(+), 0 deletions(-)
17
18 diff --git a/licenses/IUPAC+InChI-Trust_InChI_Licence-1.0 b/licenses/IUPAC+InChI-Trust_InChI_Licence-1.0
19 new file mode 100644
20 index 0000000..d300406
21 --- /dev/null
22 +++ b/licenses/IUPAC+InChI-Trust_InChI_Licence-1.0
23 @@ -0,0 +1,320 @@
24 +IUPAC/InChI-Trust Licence for the International Chemical Identifier (InChI)
25 +Software version 1.04, September 2011
26 +("IUPAC/InChI-Trust InChI Licence No. 1.0")
27 +
28 +
29 +Copyright (C) IUPAC and InChI Trust Limited
30 +This library is free software; you can redistribute it and/or modify it under
31 +the terms of the IUPAC/InChI Trust InChI Licence No. 1.0), or (at your option)
32 +any later version.
33 +
34 +Terms and Conditions for Copying, Distribution and Modification of the InChI
35 +Software
36 +
37 +0. This Licence Agreement applies to any software library or other program
38 +which contains a notice placed by the copyright holder or other authorized
39 +party saying it may be distributed under the terms of this Licence. The
40 +Licensee is addressed as "you".
41 +
42 + 'IUPAC' means the International Union of Pure and Applied Chemistry.
43 +
44 + A "library" means a collection of software functions and/or data prepared so
45 +as to be conveniently linked with application programs (which use some of
46 +those functions and data) to form executables.
47 +
48 + The "Library", below, refers to any such software library or work which has
49 +been distributed under these terms. A "work based on the Library" means either
50 +the Library or any derivative work under copyright law: that is to say, a work
51 +containing the Library or a portion of it, either verbatim or with modifications
52 +and/or translated straightforwardly into another language. (Hereinafter,
53 +translation is included without limitation in the term "modification".)
54 +
55 + "Source code" for a work means the preferred form of the work for making
56 +modifications to it. For a library, complete source code means all the source
57 +code for all modules it contains, plus any associated interface definition
58 +files, plus the scripts used to control compilation and installation of the
59 +library.
60 +
61 + Activities other than copying, distribution and modification are not covered
62 +by this Licence; they are outside its scope. The act of running a program using
63 +the Library is not restricted, and output from such a program is covered only
64 +if its contents constitute a work based on the Library (independent of the use
65 +of the Library in a tool for writing it). Whether that is true depends on what
66 +the Library does and what the program that uses the Library does.
67 +
68 +1. You may copy and distribute verbatim copies of the Library's complete source
69 +code as you receive it, in any medium, provided that you conspicuously and
70 +appropriately publish on each copy an appropriate copyright notice and
71 +disclaimer of warranty; keep intact all the notices that refer to this Licence
72 +and to the absence of any warranty; and distribute a copy of this Licence
73 +along with the Library.
74 +
75 +You may charge a fee for the physical act of transferring a copy, and you may at
76 +your option offer warranty protection in exchange for a fee.
77 +
78 +2. You may modify your copy or copies of the Library or any portion of it, thus
79 +forming a work based on the Library, and copy and distribute such modifications
80 +or work under the terms of Section 1 above, provided that you also meet all
81 +of these conditions:
82 +
83 +a) The modified work must itself be a software library.
84 +
85 +b) You must cause the files modified to carry prominent notices stating that you
86 +changed the files and the date of any change.
87 +
88 +c) You must cause the whole of the work to be licensed at no charge to all third
89 +parties under the terms of this Licence. This requirement does not extend to
90 +any "work that uses the Library" that might also be compiled or linked against
91 +the "work based on the Library."
92 +
93 +d) If a facility in the modified Library refers to a function or a table of data
94 +to be supplied by an application program that uses the facility, other than as
95 +an argument passed when the facility is invoked, then you must make a good faith
96 +effort to ensure that, in the event an application does not supply such function
97 +or table, the facility still operates, and performs whatever part of its purpose
98 +remains meaningful.
99 +
100 +(For example, a function in a library to compute square roots has a purpose that
101 +is entirely well-defined independent of the application. Therefore, Subsection
102 +2d requires that any application-supplied function or table used by this
103 +function must be optional: if the application does not supply it, the square
104 +root function must still compute square roots.)
105 +
106 +These requirements apply to the modified work as a whole. If identifiable
107 +sections of that work are not derived from the Library, and can be reasonably
108 +considered independent and separate works in themselves, then this Licence, and
109 +its terms, do not apply to those sections when you distribute them as separate
110 +works. But when you distribute the same sections as part of a whole which is a
111 +work based on the Library, the distribution of the whole must be on the terms of
112 +this Licence, whose permissions for other Licensees extend to the entire whole,
113 +and thus to each and every part regardless of who wrote it.
114 +
115 +Thus, it is not the intent of this section to claim rights or contest your
116 +rights to work written entirely by you; rather, the intent is to exercise the
117 +right to control the distribution of derivative or collective works based on
118 +the Library.
119 +
120 +In addition, mere aggregation of another work not based on the Library with the
121 +Library (or with a work based on the Library) on a volume of a storage or
122 +distribution medium does not bring the other work under the scope of
123 +this Licence.
124 +
125 +3. You may opt to apply the terms of the ordinary GNU General Public Licence
126 +instead of this Licence to a given copy of the Library. To do this, you must
127 +alter all the notices that refer to this Licence, so that they refer to the
128 +ordinary GNU General Public Licence, version 2, instead of to this Licence.
129 +(If a newer version than version 2 of the ordinary GNU General Public Licence
130 +has appeared, then you can specify that version instead if you wish.)
131 +Do not make any other change in these notices.
132 +
133 +Once this change is made in a given copy, it is irreversible for that copy, so
134 +the ordinary GNU General Public Licence applies to all subsequent copies and
135 +derivative works made from that copy.
136 +
137 +This option is useful when you wish to copy part of the code of the Library into
138 +a program that is not a library.
139 +
140 +4. You may copy and distribute the Library (or a portion or derivative of it,
141 +under Section 2) in object code or executable form under the terms of Sections 1
142 +and 2 above provided that you accompany it with the complete corresponding
143 +machine-readable source code, which must be distributed under the terms of
144 +Sections 1 and 2 above on a medium customarily used for software interchange.
145 +
146 +If distribution of object code is made by offering access to copy from a
147 +designated place, then offering equivalent access to copy the source code from
148 +the same place satisfies the requirement to distribute the source code, even
149 +though third parties are not compelled to copy the source along with the object
150 +code.
151 +
152 +5. A program that contains no derivative of any portion of the Library, but is
153 +designed to work with the Library by being compiled or linked with it, is called
154 +a "work that uses the Library". Such a work, in isolation, is not a derivative
155 +work of the Library, and therefore falls outside the scope of this Licence.
156 +
157 +6. You may combine or link a "work that uses the Library" with the Library to
158 +produce a work containing portions of the Library, and distribute that work
159 +under terms of your choice.
160 +
161 +You must give prominent notice with each copy of the work that the Library is
162 +used in it and that the Library and its use are covered by this Licence.
163 +You must supply a copy of this Licence. If the work during execution displays
164 +copyright notices, you must include the copyright notice for the Library among
165 +them, as well as a reference directing the user to the copy of this Licence.
166 +Also, you must do one of these things:
167 +
168 +a) Accompany the work with the complete corresponding machine-readable source
169 +code for the Library including whatever changes to the Library were used in the
170 +work (which must be distributed under Sections 1 and 2 above).
171 +
172 +b) Use a suitable shared library mechanism for linking with the Library.
173 +A suitable mechanism is one that (1) uses at run time a copy of the library
174 +already present on the user's computer system, rather than copying library
175 +functions into the executable, and (2) will operate properly with a modified
176 +version of the library, if the user installs one, as long as the modified
177 +version is interface-compatible with the version that the work was made with.
178 +
179 +c) Accompany the work with a written offer, valid for at least three years, to
180 +give the same user the materials specified in Subsection 6a, above, for a charge
181 +no more than the cost of performing this distribution.
182 +
183 +d) If distribution of the work is made by offering access to copy from a
184 +designated place, offer equivalent access to copy the above specified materials
185 +from the same place.
186 +
187 +e) Verify that the user has already received a copy of these materials or that
188 +you have already sent this user a copy.
189 +
190 +7. You may place library facilities that are a work based on the Library
191 +side-by-side in a single library together with other library facilities not
192 +covered by this Licence, and distribute such a combined library, provided that
193 +the separate distribution of the work based on the Library and of the other
194 +library facilities is otherwise permitted, and provided that you do these two
195 +things:
196 +
197 +a) Accompany the combined library with a copy of the same work based on the
198 +Library, uncombined with any other library facilities. This must be distributed
199 +under the terms of the Sections above.
200 +
201 +b) Give prominent notice with the combined library of the fact that part of it
202 +is a work based on the Library, and explaining where to find the accompanying
203 +uncombined form of the same work.
204 +
205 +8. You may not copy, modify, sublicense, link with, or distribute the Library
206 +except as expressly provided under this Licence. Any attempt otherwise to copy,
207 +modify, sublicense, link with, or distribute the Library is void, and will
208 +automatically terminate your rights under this Licence. However, parties who
209 +have received copies, or rights, from you under this Licence will not have their
210 +Licences terminated so long as such parties remain in full compliance.
211 +
212 +9. You are not required to accept this Licence, since you have not signed it.
213 +However, nothing else grants you permission to modify or distribute the Library
214 +or its derivative works. These actions are prohibited by law if you do not
215 +accept this Licence. Therefore, by modifying or distributing the Library (or
216 +any work based on the Library), you indicate your acceptance of this Licence to
217 +do so, and all its terms and conditions for copying, distributing or modifying
218 +the Library or works based on it.
219 +
220 +10. Each time you redistribute the Library (or any work based on the Library),
221 +the recipient automatically receives a Licence from the original licensor to
222 +copy, distribute, link with or modify the Library subject to these terms and
223 +conditions. You may not impose any further restrictions on the recipients'
224 +exercise of the rights granted herein. You are not responsible for enforcing
225 +compliance by third parties with this Licence.
226 +
227 +11. If, as a consequence of a court judgment or allegation of patent
228 +infringement or for any other reason (not limited to patent issues), conditions
229 +are imposed on you (whether by court order, agreement or otherwise) that
230 +contradict the conditions of this Licence, they do not excuse you from the
231 +conditions of this Licence. If you cannot distribute so as to satisfy
232 +simultaneously your obligations under this
233 +Licence and any other pertinent obligations, then as a consequence you may not
234 +distribute the Library at all. For example, if a patent Licence would not
235 +permit royalty-free redistribution of the Library by all those who receive
236 +copies directly or indirectly through you, then the only way you could satisfy
237 +both it and this Licence would be to refrain entirely from distribution of the
238 +Library.
239 +
240 +If any portion of this section is held invalid or unenforceable under any
241 +particular circumstance, the balance of the section is intended to apply, and
242 +the section as a whole is intended to apply in other circumstances.
243 +
244 +It is not the purpose of this section to induce you to infringe any patents or
245 +other property right claims or to contest validity of any such claims; this
246 +section has the sole purpose of protecting the integrity of the free software
247 +distribution system which is implemented by public Licence practices. Many
248 +people have made generous contributions to the wide range of software
249 +distributed through that system in reliance on consistent application of that
250 +system; it is up to the author/donor to decide if he or she is willing to
251 +distribute software through any other system and a licensee cannot impose that
252 +choice.
253 +
254 +This section is intended to make thoroughly clear what is believed to be a
255 +consequence of the rest of this Licence.
256 +
257 +12. If the distribution and/or use of the Library is restricted in certain
258 +countries either by patents or by copyrighted interfaces, the original copyright
259 +holder who places the Library under this Licence may add an explicit
260 +geographical distribution limitation excluding those countries, so that
261 +distribution is permitted only in or among countries not thus excluded. In such
262 +case, this Licence incorporates the limitation as if written in the body of this
263 +Licence.
264 +
265 +13. IUPAC and the InChI Trust Limited may publish revised and/or new versions of
266 +the IUPAC/InChI Trust Licence for the International Chemical Identifier (InChI)
267 +Software from time to time. Such new versions will be similar in spirit to the
268 +present version, but may differ in detail to address new problems or concerns.
269 +
270 +Each version is given a distinguishing version number. If the Library specifies
271 +a version number of this Licence which applied to it and "any later version",
272 +you have the option of following the terms and conditions either of that version
273 +or of any later version published by IUPAC and the InChI Trust Limited.
274 +
275 +14. If you wish to incorporate parts of the Library into other free programs
276 +whose distribution conditions are incompatible with these, write to the author
277 +to ask for permission.
278 +
279 +15. If you modify the Library in any way whatsoever, the output from any such
280 +modified Library may not be referred to as 'InChI' or any similar name. Any
281 +attempt to refer to such output as 'InChI' will automatically terminate your
282 +rights under this Licence.
283 +
284 +NO WARRANTY
285 +
286 +15. Because the Library is licensed free of charge, there is no warranty for the
287 +Library, to the extent permitted by applicable law. Except when otherwise stated
288 +in writing the copyright holders and other parties provide the Library "as is"
289 +without warranty of any kind, either expressed or implied, including, but not
290 +limited to, the implied warranties of merchantability and fitness for a
291 +particular purpose. The entire risk as to the quality and performance of the
292 +Library is with you. Should the Library prove defective, you assume the cost of
293 +all necessary servicing, repair or correction.
294 +
295 +16. In no event unless required by applicable law or agreed to in writing will
296 +any copyright holder, or any party who may modify and/or redistribute the
297 +Library as permitted above, be liable to you for damages, including any general,
298 +special, incidental or consequential damages arising out of the use or inability
299 +to use the Library (including but not limited to loss of data or data being
300 +rendered inaccurate or losses sustained by you or third parties or a failure of
301 +the Library to operate with any other software), even if such holder or other
302 +party has been advised of the possibility of such damages.
303 +
304 +END OF TERMS AND CONDITIONS
305 +
306 +Instructions for Use
307 +
308 +You must attach the following notices to the library at the beginning of each
309 +source file - as a minimum each file needs to contain the "copyright" line and
310 +a link to the full notice.
311 +
312 +[INSERT YOUR LIBRARY'S NAME AND ITS PURPOSE]
313 +Copyright (C) [YEAR][COPYRIGHT OWNER]
314 +This library is free software; you can redistribute it and/or modify it under
315 +the terms of the IUPAC/InChI Trust InChI Licence 1.0, or any later version.
316 +
317 +Please note that this library is distributed WITHOUT ANY WARRANTIES whatsoever,
318 +whether expressed or implied. See the IUPAC/InChI Trust Licence for the
319 +International Chemical Identifier (InChI) Software version 1.04, October 2011
320 +("IUPAC/InChI-Trust InChI Licence No. 1.0") for more details.
321 +
322 +You should have received a copy of the IUPAC/InChI Trust InChI Licence No. 1.0
323 +with this library; if not, please write to:
324 +
325 +The InChI Trust
326 +c/o FIZ CHEMIE Berlin
327 +Franklinstrasse 11
328 +10587 Berlin
329 +GERMANY
330 +
331 +or email to: ulrich@×××××××××××.org.
332 +
333 +In the event that you require anything else or have any questions,
334 +please write to:
335 +
336 +[INSERT COPYRIGHT OWNERS DETAILS]
337 +[INSERT ADDRESS]
338 +
339 +or contact us via email at: [INSERT EMAIL ADDRESS]
340 +
341 +
342 +(C) 2011 IUPAC and InChI Trust Limited
343 +
344
345 diff --git a/sci-libs/inchi/ChangeLog b/sci-libs/inchi/ChangeLog
346 new file mode 100644
347 index 0000000..ef4bcb7
348 --- /dev/null
349 +++ b/sci-libs/inchi/ChangeLog
350 @@ -0,0 +1,12 @@
351 +# ChangeLog for sci-libs/inchi
352 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
353 +# $Header: $
354 +
355 +*inchi-1.04 (03 Mar 2012)
356 +
357 + 03 Mar 2012; Reinis Danne <rei4dan@×××××.com> +files/inchi-1.03-shared.patch,
358 + +inchi-1.04.ebuild:
359 + Version bump to 1.04. The license of the package has changed to
360 + "IUPAC/InChI-Trust InChI Licence No. 1.0", but according to its terms the
361 + sources can be distributed also under GPLv2 or later.
362 +
363
364 diff --git a/sci-libs/inchi/files/inchi-1.03-shared.patch b/sci-libs/inchi/files/inchi-1.03-shared.patch
365 new file mode 100644
366 index 0000000..6f4619d
367 --- /dev/null
368 +++ b/sci-libs/inchi/files/inchi-1.03-shared.patch
369 @@ -0,0 +1,20 @@
370 + INCHI_API/gcc_so_makefile/makefile | 4 +++-
371 + 1 files changed, 3 insertions(+), 1 deletions(-)
372 +
373 +diff --git a/INCHI_API/gcc_so_makefile/makefile b/INCHI_API/gcc_so_makefile/makefile
374 +index dd8e53c..cd617ad 100644
375 +--- a/INCHI_API/gcc_so_makefile/makefile
376 ++++ b/INCHI_API/gcc_so_makefile/makefile
377 +@@ -213,9 +213,11 @@ $(INCHI_LIB_PATHNAME).so$(VERSION): $(INCHI_LIB_OBJS)
378 + $(SHARED_LINK) $(SHARED_LINK_PARM) -o \
379 + $(INCHI_LIB_PATHNAME).so$(VERSION) \
380 + $(INCHI_LIB_OBJS) \
381 +- -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION)
382 ++ -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION) -lm
383 + ln -fs $(INCHI_LIB_NAME).so$(VERSION) \
384 + $(INCHI_LIB_PATHNAME).so$(MAIN_VERSION)
385 ++ ln -fs $(INCHI_LIB_NAME).so$(VERSION) \
386 ++ $(INCHI_LIB_PATHNAME).so
387 +
388 + endif
389 +
390
391 diff --git a/sci-libs/inchi/inchi-1.04.ebuild b/sci-libs/inchi/inchi-1.04.ebuild
392 new file mode 100644
393 index 0000000..c7eb4ac
394 --- /dev/null
395 +++ b/sci-libs/inchi/inchi-1.04.ebuild
396 @@ -0,0 +1,61 @@
397 +# Copyright 1999-2012 Gentoo Foundation
398 +# Distributed under the terms of the GNU General Public License v2
399 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/inchi/inchi-1.03.ebuild,v 1.1 2011/03/26 15:18:23 jlec Exp $
400 +
401 +EAPI=4
402 +
403 +inherit eutils toolchain-funcs
404 +
405 +DESCRIPTION="A program and library for generating standard and non-standard InChI and InChIKeys"
406 +HOMEPAGE="http://www.iupac.org/inchi/"
407 +SRC_URI="
408 + http://www.inchi-trust.org/sites/default/files/inchi-${PV}/INCHI-1-API.ZIP
409 + doc? ( http://www.inchi-trust.org/sites/default/files/inchi-${PV}/INCHI-1-DOC.ZIP )"
410 +
411 +LICENSE="IUPAC+InChI-Trust_InChI_Licence-1.0"
412 +SLOT="0"
413 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
414 +IUSE="doc"
415 +
416 +DEPEND="app-arch/unzip"
417 +RDEPEND=""
418 +
419 +S="${WORKDIR}"/INCHI-1-API
420 +
421 +src_prepare() {
422 + epatch "${FILESDIR}"/${PN}-1.03-shared.patch
423 +}
424 +
425 +src_compile() {
426 + for dir in INCHI/gcc/inchi-1 INCHI_API/gcc_so_makefile; do
427 + pushd ${dir} > /dev/null
428 + emake \
429 + C_COMPILER=$(tc-getCC) \
430 + CPP_COMPILER=$(tc-getCXX) \
431 + LINKER="$(tc-getCXX) ${LDFLAGS}" \
432 + SHARED_LINK="$(tc-getCC) ${LDFLAGS} -shared" \
433 + C_COMPILER_OPTIONS="\${P_INCL} -ansi -DCOMPILE_ANSI_ONLY ${CFLAGS} -c " \
434 + CPP_COMPILER_OPTIONS="\${P_INCL} -D_LIB -ansi ${CXXFLAGS} -frtti -c " \
435 + C_OPTIONS="${CFLAGS} -fPIC -c " \
436 + LINKER_OPTIONS="${LDFLAGS}" \
437 + CREATE_MAIN= \
438 + ISLINUX=1
439 + popd
440 + done
441 +}
442 +
443 +src_install() {
444 + dodoc readme*.txt
445 + if use doc ; then
446 + cd "${WORKDIR}/INCHI-1-DOC/"
447 + docinto doc
448 + dodoc *.pdf readme.txt
449 + fi
450 + cd "${S}/INCHI/gcc/inchi-1"
451 + dobin inchi-1
452 + cd "${S}/INCHI_API/gcc_so_makefile/result"
453 + rm *gz
454 + dolib.so lib*
455 + insinto /usr/include
456 + doins ../../inchi_main/inchi_api.h
457 +}
458
459 diff --git a/sci-libs/inchi/metadata.xml b/sci-libs/inchi/metadata.xml
460 new file mode 100644
461 index 0000000..cc20730
462 --- /dev/null
463 +++ b/sci-libs/inchi/metadata.xml
464 @@ -0,0 +1,8 @@
465 +<?xml version="1.0" encoding="UTF-8"?>
466 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
467 +<pkgmetadata>
468 + <herd>sci-chemistry</herd>
469 + <longdescription>
470 + Program and library implementing IUPAC (Standard) InChI/InChIKey version 1.
471 + </longdescription>
472 +</pkgmetadata>