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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 3 23:16:27 2015 UTC (4 years, 5 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

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.8.ebuild,v 1.1 2009/02/02 23:01:37 bicatali Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs
7
8 MYP="${PN/lib}_v${PV}"
9
10 DESCRIPTION="Robust numerical and geometric computation library"
11 HOMEPAGE="http://www.cs.nyu.edu/exact/core_pages/"
12 SRC_URI="http://cs.nyu.edu/exact/core/download/${MYP}/${MYP}.tgz
13 doc? ( http://cs.nyu.edu/exact/core/download/${MYP}/${MYP}_doc.tgz )"
14
15 LICENSE="QPL-1.0"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="doc"
19
20 DEPEND="dev-libs/gmp"
21 RDEPEND=""
22
23 S="${WORKDIR}/${MYP}"
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${PN}-1.7.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 LINKAGE=shared corelib corex || die "emake shared failed"
35 emake -C src clean && emake -C ext clean
36 emake corelib corex || die "emake static failed"
37 if use doc; then
38 cd "${S}/doc"
39 emake -j1 all || die "doc creation failed"
40 emake -j1 -C doxy/latex pdf || die "pdf doc creation failed"
41 fi
42 }
43
44 src_install(){
45 dolib lib/*.a lib/*.so || die "Unable to find libraries"
46 for i in $(find "${D}/usr/$(get_libdir)" -name "*so" | sed "s:${D}::g"); do
47 dosym $i $i.1 && dosym $i $i.1.0.0 || die "Unable to sym $i"
48 done
49
50 dodir /usr/include || die "Unable to create include dir"
51 cp -r ./inc/* "${D}/usr/include/" || die "Unable to copy headers"
52
53 dodoc FAQs README || die "Unable to install default doc"
54 if use doc; then
55 dodoc doc/*.txt
56 insinto /usr/share/doc/${PF}
57 doins doc/papers/* doc/tutorial/tutorial.pdf || die
58 doins -r doc/doxy/html doc/doxy/latex/*pdf || die
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20