1 |
commit: 8b4749acc292d4ba1336174b76490649fa9814c6 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 1 10:22:22 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 1 10:23:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b4749ac |
7 |
|
8 |
sci-libs/inchi: add version 1.06 |
9 |
|
10 |
Co-authored-by: Mike Benson <mike <AT> kambe.com.au> |
11 |
Closes: https://bugs.gentoo.org/798474 |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
14 |
|
15 |
sci-libs/inchi/Manifest | 2 ++ |
16 |
sci-libs/inchi/inchi-1.06.ebuild | 75 ++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 77 insertions(+) |
18 |
|
19 |
diff --git a/sci-libs/inchi/Manifest b/sci-libs/inchi/Manifest |
20 |
index a6149c0b2588..6d3e86309a7c 100644 |
21 |
--- a/sci-libs/inchi/Manifest |
22 |
+++ b/sci-libs/inchi/Manifest |
23 |
@@ -1,2 +1,4 @@ |
24 |
DIST inchi-1.04-doc.zip 2128303 BLAKE2B 041ee948e8a852b66e64c8b04a52a4b4972a750ebdc0e31ce68e6bacfae4d81e49e8356cde766fc87affacc6839c015d5e578e9bacff486605ce5d6b63ed1552 SHA512 930fe10ac2bae11074b7e47446b5af9c01e2aa55f891d04912c71c76e214871c78cc22b3dafea99b57eede5080ac0cfaa6b6d35a73242c8549bea8ffa86e7df7 |
25 |
DIST inchi-1.04.zip 2701930 BLAKE2B 12e5153fdefffdd97794b3942936f93742729cd195a1be0687762263e1d8aa9b0130a79cc1c8a652d2cad67b14a175b8f5ad968c83094f9ebf250f43bcebc18c SHA512 c5a1c2f08d472fcde603acbd898a9a8880407474869eadf0089444503693ae89ff805c579161cb3ee9d7f18e891289a21c4b8a65cc7ece69ee730f7f4e283be4 |
26 |
+DIST inchi-1.06-doc.zip 4143516 BLAKE2B 10daaffe40c1ce523ec1f51e090d4cb0080f17ee103859a872eb2a5606b06e84b25459c3ed0492e5009d4898caef36ce251c34bea8148ee773e4c9bff7f0ba3d SHA512 df31014d21d46498e3bcde85d8c782a23193225e8d3b6ba7f6e31816c935c8ea1a60b2472fb0cd81733a47ae71918de973324ccd20a49fea3808bdfed92e6850 |
27 |
+DIST inchi-1.06.zip 2931129 BLAKE2B 9ae317b359e886c5e16f6c5f2ef6037c1b9f46b4928b1cb372d7dc4ec9f50e695bd58424eb30c75b823f8c12d392a4aa0070161c43a448e6a078d2427df8c956 SHA512 56248030f30b0fa065cb783353cc9eab0da0e39b580a54120e9fca0a2ad8a0cfc85da1ea81b6231e48cfd59a3a5d81e1c6310778d913c21ec3f2e72d6a7fad8a |
28 |
|
29 |
diff --git a/sci-libs/inchi/inchi-1.06.ebuild b/sci-libs/inchi/inchi-1.06.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..96578dc57371 |
32 |
--- /dev/null |
33 |
+++ b/sci-libs/inchi/inchi-1.06.ebuild |
34 |
@@ -0,0 +1,75 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+inherit flag-o-matic toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Program and library for generating standard and non-standard InChI and InChIKeys" |
43 |
+HOMEPAGE="https://www.iupac.org/inchi/" |
44 |
+SRC_URI=" |
45 |
+ https://www.inchi-trust.org/download/${PV//.}/INCHI-1-SRC.zip -> ${P}.zip |
46 |
+ doc? ( https://www.inchi-trust.org/download/${PV//.}/INCHI-1-DOC.zip -> ${P}-doc.zip ) |
47 |
+" |
48 |
+S="${WORKDIR}/INCHI-1-SRC" |
49 |
+ |
50 |
+LICENSE="IUPAC-InChi" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
53 |
+IUSE="doc" |
54 |
+ |
55 |
+BDEPEND="app-arch/unzip" |
56 |
+ |
57 |
+src_compile() { |
58 |
+ local common_opts target_opts |
59 |
+ |
60 |
+ append-cflags \${P_INCL} -ansi -DCOMPILE_ANSI_ONLY -fPIC -c |
61 |
+ append-cxxflags \${P_INCL} -ansi -frtti -c |
62 |
+ |
63 |
+ common_opts=( |
64 |
+ C_COMPILER=$(tc-getCC) |
65 |
+ CPP_COMPILER=$(tc-getCXX) |
66 |
+ AR="$(tc-getAR)" |
67 |
+ RANLIB="$(tc-getRANLIB)" |
68 |
+ LINKER="$(tc-getCXX)" |
69 |
+ SHARED_LINK="$(tc-getCC)" |
70 |
+ SHARED_LINK_PARM="${LDFLAGS} -shared " |
71 |
+ ISLINUX=1 |
72 |
+ ) |
73 |
+ |
74 |
+ # Compile the library |
75 |
+ target_opts=( |
76 |
+ LINKER_OPTIONS="${LDFLAGS} " |
77 |
+ C_OPTIONS="${CFLAGS} -DTARGET_API_LIB -D_LIB " |
78 |
+ CPP_OPTIONS="${CXXFLAGS} -DTARGET_API_LIB -D_LIB " |
79 |
+ CREATE_MAIN= |
80 |
+ ) |
81 |
+ emake -C INCHI_API/libinchi/gcc "${common_opts[@]}" "${target_opts[@]}" |
82 |
+ |
83 |
+ pushd "INCHI_API/bin/Linux" || die |
84 |
+ ln -s libinchi.so.1 libinchi.so || die |
85 |
+ popd > /dev/null || die |
86 |
+ |
87 |
+ # Compile the executable |
88 |
+ target_opts=( |
89 |
+ LINKER_OPTIONS="${LDFLAGS} -L${S}/INCHI_API/bin/Linux -linchi " |
90 |
+ C_COMPILER_OPTIONS="${CFLAGS} -DTARGET_EXE_STANDALONE " |
91 |
+ CPP_COMPILER_OPTIONS="${CXXFLAGS} -DTARGET_EXE_STANDALONE " |
92 |
+ CREATE_MAIN= |
93 |
+ ) |
94 |
+ emake -C INCHI_EXE/inchi-1/gcc "${common_opts[@]}" "${target_opts[@]}" |
95 |
+ |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ dodoc readme*.txt |
100 |
+ if use doc ; then |
101 |
+ pushd "${WORKDIR}/INCHI-1-DOC" || die |
102 |
+ docinto doc |
103 |
+ dodoc *.pdf readme.txt |
104 |
+ popd || die |
105 |
+ fi |
106 |
+ dobin "${S}/INCHI_EXE/bin/Linux/inchi-1" |
107 |
+ dolib.so "${S}/INCHI_API/bin/Linux/"lib*so* |
108 |
+ doheader "${S}/INCHI_BASE/src/inchi_api.h" |
109 |
+} |