summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-03-26 15:18:23 +0000
committerJustin Lecher <jlec@gentoo.org>2011-03-26 15:18:23 +0000
commitd93009e40b1ab0ab93e4fb879657cda94773e06b (patch)
tree9c4c38202657940e886e31f31b22a8e770c268f5 /sci-libs
parentDepend on virtual/ffmpeg instead of media-video/ffmpeg. (diff)
downloadgentoo-2-d93009e40b1ab0ab93e4fb879657cda94773e06b.tar.gz
gentoo-2-d93009e40b1ab0ab93e4fb879657cda94773e06b.tar.bz2
gentoo-2-d93009e40b1ab0ab93e4fb879657cda94773e06b.zip
New addition, mainly written by rei4dan
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/inchi/ChangeLog10
-rw-r--r--sci-libs/inchi/files/inchi-1.03-shared.patch20
-rw-r--r--sci-libs/inchi/inchi-1.03.ebuild61
-rw-r--r--sci-libs/inchi/metadata.xml8
4 files changed, 99 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/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>