/[gentoo-x86]/sci-libs/inchi/inchi-1.03.ebuild
Gentoo

Contents of /sci-libs/inchi/inchi-1.03.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Mar 26 15:18:23 2011 UTC (3 years, 4 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
New addition, mainly written by rei4dan

(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="A program and library for generating standard and non-standard InChI and InChIKeys"
10 HOMEPAGE="http://www.iupac.org/inchi/"
11 SRC_URI="
12 http://www.iupac.org/inchi/download/version${PV}/INCHI-1-API.zip
13 doc? ( http://www.iupac.org/inchi/download/version${PV}/INCHI-1-DOC.zip )"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc"
19
20 DEPEND="app-arch/unzip"
21 RDEPEND=""
22
23 S="${WORKDIR}"/INCHI-1-API
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${P}-shared.patch
27 }
28
29 src_compile() {
30 for dir in INCHI/gcc/inchi-1 INCHI_API/gcc_so_makefile; do
31 pushd ${dir} > /dev/null
32 emake \
33 C_COMPILER=$(tc-getCC) \
34 CPP_COMPILER=$(tc-getCXX) \
35 LINKER="$(tc-getCXX) ${LDFLAGS}" \
36 SHARED_LINK="$(tc-getCC) ${LDFLAGS} -shared" \
37 C_COMPILER_OPTIONS="\${P_INCL} -DADD_CMLPP=1 -ansi ${CFLAGS} -c " \
38 CPP_COMPILER_OPTIONS="\${P_INCL} -D_LIB -DADD_CMLPP=1 ${CXXFLAGS} -c " \
39 C_OPTIONS="${CFLAGS} -fPIC -c " \
40 LINKER_OPTIONS="${LDFLAGS}" \
41 CREATE_MAIN= \
42 ISLINUX=1
43 popd
44 done
45 }
46
47 src_install() {
48 dodoc readme*.txt
49 if use doc ; then
50 cd "${WORKDIR}/INCHI-1-DOC/"
51 docinto doc
52 dodoc *.pdf readme.txt
53 fi
54 cd "${S}/INCHI/gcc/inchi-1"
55 dobin inchi-1
56 cd "${S}/INCHI_API/gcc_so_makefile/result"
57 rm *gz
58 dolib.so lib*
59 insinto /usr/include
60 doins ../../inchi_main/inchi_api.h
61 }

  ViewVC Help
Powered by ViewVC 1.1.20