/[gentoo-x86]/sci-libs/core/core-1.7.ebuild
Gentoo

Contents of /sci-libs/core/core-1.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 17 15:05:34 2006 UTC (14 years, 1 month ago) by djay
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Moved to sci-libs/libcore.

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/core/core-1.7.ebuild,v 1.1 2006/10/12 21:50:04 djay Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="The main goal of the CORE project is to address the issues of
8 robust numerical and geometric computation."
9 HOMEPAGE="http://www.cs.nyu.edu/exact/core_pages/"
10 SRC_URI="http://cs.nyu.edu/exact/core/download/prerelease/${PN}_v${PV}x_std.tgz"
11
12 LICENSE="QPL-1.0"
13 SLOT="0"
14 KEYWORDS="~x86"
15 IUSE="doc"
16
17 DEPEND="dev-libs/gmp
18 doc? ( virtual/tetex ) "
19 RDEPEND="virtual/libc"
20
21 S="${WORKDIR}/${PN}_v${PV}x"
22
23 src_unpack(){
24 unpack "${A}"
25 cd "${S}"
26 epatch ${FILESDIR}/${P}.patch || die "Unable to patch sources"
27 }
28
29 src_compile(){
30 cd "${S}"
31 emake CXX=$(tc-getCXX) corelib || die "Unable to create corelib"
32 emake CXX=$(tc-getCXX) corex || die "Unable to create corex"
33 if use doc; then
34 cd "${S}/doc"
35 emake all || die "Unable to create doc"
36 fi
37 }
38
39 src_install(){
40 cd "${S}"
41 dolib lib/*.a lib/*.so || die "Unable to find libraries"
42 for i in $(find "${D}/usr/lib/" -name "*so" | sed "s:${D}::g"); do
43 dosym $i $i.1 && dosym $i $i.1.0.0 || die "Unable to sym $i"
44 done
45
46 dodir /usr/include || die "Unable to create include dir"
47 cp -r ./inc/* "${D}/usr/include/" || "Unable to copy headers"
48
49 dodoc FAQs README || "Unable to install default doc"
50 if use doc; then
51 dodoc doc/ANNOUNCEMENT* doc/*pdf doc/papers/* || \
52 die "Unable to install doc"
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20