diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-03-26 15:18:23 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-03-26 15:18:23 +0000 |
commit | d95cd344fe4ac0fbc2f3dead2a8e1b9d4561ca13 (patch) | |
tree | 2822450b0d367a6a58402586bb5965a2c9da914f /sci-libs | |
parent | Depend on virtual/ffmpeg instead of media-video/ffmpeg. (diff) | |
download | historical-d95cd344fe4ac0fbc2f3dead2a8e1b9d4561ca13.tar.gz historical-d95cd344fe4ac0fbc2f3dead2a8e1b9d4561ca13.tar.bz2 historical-d95cd344fe4ac0fbc2f3dead2a8e1b9d4561ca13.zip |
New addition, mainly written by rei4dan
Package-Manager: portage-2.2.0_alpha28/cvs/Linux x86_64
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/inchi/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/inchi/Manifest | 16 | ||||
-rw-r--r-- | sci-libs/inchi/files/inchi-1.03-shared.patch | 20 | ||||
-rw-r--r-- | sci-libs/inchi/inchi-1.03.ebuild | 61 | ||||
-rw-r--r-- | sci-libs/inchi/metadata.xml | 8 |
5 files changed, 115 insertions, 0 deletions
diff --git a/sci-libs/inchi/ChangeLog b/sci-libs/inchi/ChangeLog new file mode 100644 index 000000000000..594bf60a4ca7 --- /dev/null +++ b/sci-libs/inchi/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-libs/inchi +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/inchi/ChangeLog,v 1.1 2011/03/26 15:18:23 jlec Exp $ + +*inchi-1.03 (26 Mar 2011) + + 26 Mar 2011; Justin Lecher <jlec@gentoo.org> +inchi-1.03.ebuild, + +files/inchi-1.03-shared.patch, +metadata.xml: + New addition, mainly written by rei4dan + diff --git a/sci-libs/inchi/Manifest b/sci-libs/inchi/Manifest new file mode 100644 index 000000000000..55fcba8e8363 --- /dev/null +++ b/sci-libs/inchi/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX inchi-1.03-shared.patch 804 RMD160 9f8fd6da39bcb217ef8c9e4be081af94809a3032 SHA1 c320ade7eb6831947e72048b1db35314f5550da8 SHA256 bff5e32c125603e02f48f035493a9e5b342c4d0706f95f4c0d79418ff3342007 +DIST INCHI-1-API.zip 3642980 RMD160 5a808be29e751c706b3ace7dfd8c1c7a0cdfb022 SHA1 9a9ac4b2f0a03638a97ffcd325b52c9992c777af SHA256 d84ed63f71cba6c8622d36870085b7a2a7ea4abaf433808ea4f202d2e4637a69 +DIST INCHI-1-DOC.zip 2260288 RMD160 1390a48cd691a5b4d00cc74152ac4df6fb4e836b SHA1 4f2d2453573dd2ef22a70e190e9e2e90562959a7 SHA256 434575d37eedc4a4e3e77fa512c5f9fe904fded6d25fff8587717b56abac05bf +EBUILD inchi-1.03.ebuild 1575 RMD160 299d93d1baa205fe061568f95bca1ef5aeff6c6d SHA1 f790630468185948ab307d018315c1b6f126db7d SHA256 17c3d4acdccad9ddf099fdd334af068d695b1108248d04a9d55cedc14e5f7146 +MISC ChangeLog 385 RMD160 ad05cca93027fb3f57a609d83cb392a5337326e9 SHA1 f13d95cf0a3718eb38e88e39bdd52fa44dd02a4e SHA256 942501df8a24e8ce64807c6a2bea055f7e816f687c01e30b419e63039c087cd3 +MISC metadata.xml 273 RMD160 4dbb6215a549febf2d70d623b7080e8f13950e9f SHA1 4aad40e88427e89243042f4d16c11ad20c076d19 SHA256 a8ad582d8a12497d93d86e6613037bc33ea867e66e9f498b2791e25d2dedb7da +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEARECAAYFAk2OA8QACgkQgAnW8HDreRZB6ACfYlHGXvZb6j4QJPhBGagHExpN ++OEAnRwxJckJvuRiWmxg0KWgJ/qLGNua +=G4Y9 +-----END PGP SIGNATURE----- diff --git a/sci-libs/inchi/files/inchi-1.03-shared.patch b/sci-libs/inchi/files/inchi-1.03-shared.patch new file mode 100644 index 000000000000..6f4619d86bd9 --- /dev/null +++ b/sci-libs/inchi/files/inchi-1.03-shared.patch @@ -0,0 +1,20 @@ + INCHI_API/gcc_so_makefile/makefile | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/INCHI_API/gcc_so_makefile/makefile b/INCHI_API/gcc_so_makefile/makefile +index dd8e53c..cd617ad 100644 +--- a/INCHI_API/gcc_so_makefile/makefile ++++ b/INCHI_API/gcc_so_makefile/makefile +@@ -213,9 +213,11 @@ $(INCHI_LIB_PATHNAME).so$(VERSION): $(INCHI_LIB_OBJS) + $(SHARED_LINK) $(SHARED_LINK_PARM) -o \ + $(INCHI_LIB_PATHNAME).so$(VERSION) \ + $(INCHI_LIB_OBJS) \ +- -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION) ++ -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION) -lm + ln -fs $(INCHI_LIB_NAME).so$(VERSION) \ + $(INCHI_LIB_PATHNAME).so$(MAIN_VERSION) ++ ln -fs $(INCHI_LIB_NAME).so$(VERSION) \ ++ $(INCHI_LIB_PATHNAME).so + + endif + diff --git a/sci-libs/inchi/inchi-1.03.ebuild b/sci-libs/inchi/inchi-1.03.ebuild new file mode 100644 index 000000000000..7b52e922a6f2 --- /dev/null +++ b/sci-libs/inchi/inchi-1.03.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/inchi/inchi-1.03.ebuild,v 1.1 2011/03/26 15:18:23 jlec Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="A program and library for generating standard and non-standard InChI and InChIKeys" +HOMEPAGE="http://www.iupac.org/inchi/" +SRC_URI=" + http://www.iupac.org/inchi/download/version${PV}/INCHI-1-API.zip + doc? ( http://www.iupac.org/inchi/download/version${PV}/INCHI-1-DOC.zip )" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S="${WORKDIR}"/INCHI-1-API + +src_prepare() { + epatch "${FILESDIR}"/${P}-shared.patch +} + +src_compile() { + for dir in INCHI/gcc/inchi-1 INCHI_API/gcc_so_makefile; do + pushd ${dir} > /dev/null + emake \ + C_COMPILER=$(tc-getCC) \ + CPP_COMPILER=$(tc-getCXX) \ + LINKER="$(tc-getCXX) ${LDFLAGS}" \ + SHARED_LINK="$(tc-getCC) ${LDFLAGS} -shared" \ + C_COMPILER_OPTIONS="\${P_INCL} -DADD_CMLPP=1 -ansi ${CFLAGS} -c " \ + CPP_COMPILER_OPTIONS="\${P_INCL} -D_LIB -DADD_CMLPP=1 ${CXXFLAGS} -c " \ + C_OPTIONS="${CFLAGS} -fPIC -c " \ + LINKER_OPTIONS="${LDFLAGS}" \ + CREATE_MAIN= \ + ISLINUX=1 + popd + done +} + +src_install() { + dodoc readme*.txt + if use doc ; then + cd "${WORKDIR}/INCHI-1-DOC/" + docinto doc + dodoc *.pdf readme.txt + fi + cd "${S}/INCHI/gcc/inchi-1" + dobin inchi-1 + cd "${S}/INCHI_API/gcc_so_makefile/result" + rm *gz + dolib.so lib* + insinto /usr/include + doins ../../inchi_main/inchi_api.h +} diff --git a/sci-libs/inchi/metadata.xml b/sci-libs/inchi/metadata.xml new file mode 100644 index 000000000000..035d004c2e92 --- /dev/null +++ b/sci-libs/inchi/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-chemistry</herd> +<longdescription> +Program v1.03 implementing IUPAC (Standard) InChI/InChIKey version 1. +</longdescription> +</pkgmetadata> |