From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/inchi/, sci-libs/inchi/files/
Date: Fri, 25 Mar 2011 16:38:31 +0000 (UTC) [thread overview]
Message-ID: <899c55de7df92a3c537367bad3d9187aa482d574.jlec@gentoo> (raw)
commit: 899c55de7df92a3c537367bad3d9187aa482d574
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 25 15:02:02 2011 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Mar 25 15:02:02 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=899c55de
Cleaned ebuild, moved from sci-chemistry to sci-libs
(Portage version: 2.2.0_alpha28/git/Linux x86_64, signed Manifest commit with key 70EB7916)
---
sci-libs/inchi/ChangeLog | 14 ++++++
sci-libs/inchi/files/inchi-1.03-shared.patch | 20 +++++++++
sci-libs/inchi/inchi-1.03.ebuild | 59 ++++++++++++++++++++++++++
sci-libs/inchi/metadata.xml | 8 ++++
4 files changed, 101 insertions(+), 0 deletions(-)
diff --git a/sci-libs/inchi/ChangeLog b/sci-libs/inchi/ChangeLog
new file mode 100644
index 0000000..654f218
--- /dev/null
+++ b/sci-libs/inchi/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for sci-libs/inchi
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 25 Mar 2011; Justin Lecher <jlec@gentoo.org> +inchi-1.03.ebuild,
+ +files/inchi-1.03-shared.patch, +metadata.xml:
+ Cleaned ebuild, moved from sci-chemistry to sci-libs
+
+*inchi-1.03 (14 Nov 2010)
+
+ 14 Nov 2010; Reinis Danne <rei4dan@gmail.com> +inchi-1.03.ebuild,
+ +files/inchi-1.03-makefile.patch, +metadata.xml:
+ New package sci-chemistry/inchi
+
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 0000000..6f4619d
--- /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 0000000..40ec722
--- /dev/null
+++ b/sci-libs/inchi/inchi-1.03.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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 i in INCHI/gcc/inchi-1 INCHI_API/gcc_so_makefile; do
+ pushd ${i} > /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"
+ 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 0000000..035d004
--- /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>
next reply other threads:[~2011-03-25 16:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 16:38 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-26 16:03 [gentoo-commits] proj/sci:master commit in: sci-libs/inchi/, sci-libs/inchi/files/ Justin Lecher
2012-03-04 13:25 Justin Lecher
2012-10-19 18:00 Reinis Danne
2012-10-24 14:51 Justin Lecher
2012-10-24 14:51 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=899c55de7df92a3c537367bad3d9187aa482d574.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox