diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-03-01 11:22:22 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2022-03-01 11:23:26 +0100 |
commit | 8b4749acc292d4ba1336174b76490649fa9814c6 (patch) | |
tree | a0f053ee6bc8db6ef2afda5c0a950043a00659dc /sci-libs/inchi | |
parent | dev-python/podcastparser: Stabilize 0.6.8-r1 ALLARCHES, #834429 (diff) | |
download | gentoo-8b4749acc292d4ba1336174b76490649fa9814c6.tar.gz gentoo-8b4749acc292d4ba1336174b76490649fa9814c6.tar.bz2 gentoo-8b4749acc292d4ba1336174b76490649fa9814c6.zip |
sci-libs/inchi: add version 1.06
Co-authored-by: Mike Benson <mike@kambe.com.au>
Closes: https://bugs.gentoo.org/798474
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs/inchi')
-rw-r--r-- | sci-libs/inchi/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/inchi/inchi-1.06.ebuild | 75 |
2 files changed, 77 insertions, 0 deletions
diff --git a/sci-libs/inchi/Manifest b/sci-libs/inchi/Manifest index a6149c0b2588..6d3e86309a7c 100644 --- a/sci-libs/inchi/Manifest +++ b/sci-libs/inchi/Manifest @@ -1,2 +1,4 @@ DIST inchi-1.04-doc.zip 2128303 BLAKE2B 041ee948e8a852b66e64c8b04a52a4b4972a750ebdc0e31ce68e6bacfae4d81e49e8356cde766fc87affacc6839c015d5e578e9bacff486605ce5d6b63ed1552 SHA512 930fe10ac2bae11074b7e47446b5af9c01e2aa55f891d04912c71c76e214871c78cc22b3dafea99b57eede5080ac0cfaa6b6d35a73242c8549bea8ffa86e7df7 DIST inchi-1.04.zip 2701930 BLAKE2B 12e5153fdefffdd97794b3942936f93742729cd195a1be0687762263e1d8aa9b0130a79cc1c8a652d2cad67b14a175b8f5ad968c83094f9ebf250f43bcebc18c SHA512 c5a1c2f08d472fcde603acbd898a9a8880407474869eadf0089444503693ae89ff805c579161cb3ee9d7f18e891289a21c4b8a65cc7ece69ee730f7f4e283be4 +DIST inchi-1.06-doc.zip 4143516 BLAKE2B 10daaffe40c1ce523ec1f51e090d4cb0080f17ee103859a872eb2a5606b06e84b25459c3ed0492e5009d4898caef36ce251c34bea8148ee773e4c9bff7f0ba3d SHA512 df31014d21d46498e3bcde85d8c782a23193225e8d3b6ba7f6e31816c935c8ea1a60b2472fb0cd81733a47ae71918de973324ccd20a49fea3808bdfed92e6850 +DIST inchi-1.06.zip 2931129 BLAKE2B 9ae317b359e886c5e16f6c5f2ef6037c1b9f46b4928b1cb372d7dc4ec9f50e695bd58424eb30c75b823f8c12d392a4aa0070161c43a448e6a078d2427df8c956 SHA512 56248030f30b0fa065cb783353cc9eab0da0e39b580a54120e9fca0a2ad8a0cfc85da1ea81b6231e48cfd59a3a5d81e1c6310778d913c21ec3f2e72d6a7fad8a diff --git a/sci-libs/inchi/inchi-1.06.ebuild b/sci-libs/inchi/inchi-1.06.ebuild new file mode 100644 index 000000000000..96578dc57371 --- /dev/null +++ b/sci-libs/inchi/inchi-1.06.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Program and library for generating standard and non-standard InChI and InChIKeys" +HOMEPAGE="https://www.iupac.org/inchi/" +SRC_URI=" + https://www.inchi-trust.org/download/${PV//.}/INCHI-1-SRC.zip -> ${P}.zip + doc? ( https://www.inchi-trust.org/download/${PV//.}/INCHI-1-DOC.zip -> ${P}-doc.zip ) +" +S="${WORKDIR}/INCHI-1-SRC" + +LICENSE="IUPAC-InChi" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +BDEPEND="app-arch/unzip" + +src_compile() { + local common_opts target_opts + + append-cflags \${P_INCL} -ansi -DCOMPILE_ANSI_ONLY -fPIC -c + append-cxxflags \${P_INCL} -ansi -frtti -c + + common_opts=( + C_COMPILER=$(tc-getCC) + CPP_COMPILER=$(tc-getCXX) + AR="$(tc-getAR)" + RANLIB="$(tc-getRANLIB)" + LINKER="$(tc-getCXX)" + SHARED_LINK="$(tc-getCC)" + SHARED_LINK_PARM="${LDFLAGS} -shared " + ISLINUX=1 + ) + + # Compile the library + target_opts=( + LINKER_OPTIONS="${LDFLAGS} " + C_OPTIONS="${CFLAGS} -DTARGET_API_LIB -D_LIB " + CPP_OPTIONS="${CXXFLAGS} -DTARGET_API_LIB -D_LIB " + CREATE_MAIN= + ) + emake -C INCHI_API/libinchi/gcc "${common_opts[@]}" "${target_opts[@]}" + + pushd "INCHI_API/bin/Linux" || die + ln -s libinchi.so.1 libinchi.so || die + popd > /dev/null || die + + # Compile the executable + target_opts=( + LINKER_OPTIONS="${LDFLAGS} -L${S}/INCHI_API/bin/Linux -linchi " + C_COMPILER_OPTIONS="${CFLAGS} -DTARGET_EXE_STANDALONE " + CPP_COMPILER_OPTIONS="${CXXFLAGS} -DTARGET_EXE_STANDALONE " + CREATE_MAIN= + ) + emake -C INCHI_EXE/inchi-1/gcc "${common_opts[@]}" "${target_opts[@]}" + +} + +src_install() { + dodoc readme*.txt + if use doc ; then + pushd "${WORKDIR}/INCHI-1-DOC" || die + docinto doc + dodoc *.pdf readme.txt + popd || die + fi + dobin "${S}/INCHI_EXE/bin/Linux/inchi-1" + dolib.so "${S}/INCHI_API/bin/Linux/"lib*so* + doheader "${S}/INCHI_BASE/src/inchi_api.h" +} |