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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Aug 13 00:28:42 2009 UTC (10 years, 10 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump. Serious ebuild cleaning and added tests.
(Portage version: 2.2_rc38/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20