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

Contents of /sci-libs/libcore/libcore-2.0.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-2.0.8.ebuild,v 1.1 2009/08/13 00:28:42 bicatali Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs versionator
7
8 MYPN=core
9 DOCPV="$(get_version_component_range 1-2)"
10
11 DESCRIPTION="Robust numerical and geometric computation library"
12 HOMEPAGE="http://www.cs.nyu.edu/exact/core_pages/"
13 SRC_URI="http://cs.nyu.edu/exact/core/download/${MYPN}/${MYPN}-${PV}.tgz
14 doc? ( http://cs.nyu.edu/exact/core/download/${MYPN}/${MYPN}-${DOCPV}.doc.tgz )"
15
16 LICENSE="QPL-1.0"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="doc"
20
21 RDEPEND=""
22 DEPEND="${RDEPEND}
23 dev-libs/mpfr
24 dev-libs/gmp
25 doc? ( app-doc/doxygen[latex] )"
26
27 S="${WORKDIR}/${MYPN}-${PV}"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${P}-makefiles.patch
31 sed -i \
32 -e "s/-O2/${CXXFLAGS}/g" \
33 -e "s/-shared/-shared ${LDFLAGS}/g" \
34 Make.config || die
35 sed -i -e 's/-lgmp/-lgmp -lgmpxx/g' progs/Make.options || die
36 # missing input file in gaussian test and buggy test in tutorial
37 sed -i -e '/gaussian/d' -e '/tutorial/d' progs/Makefile || die
38 }
39
40 src_compile(){
41 emake VAR= LINKAGE=shared corelib corex USE_GMPXX=1 || die "emake shared failed"
42 rm -f src/*.o ext/*.o
43 emake VAR="" corelib corex USE_GMPXX=1 || die "emake static failed"
44 if use doc; then
45 cd "${S}/doc"
46 export VARTEXFONTS="${T}/fonts"
47 emake -j1 all || die "doc creation failed"
48 emake -j1 -C doxy/latex pdf || die "pdf doc creation failed"
49 fi
50 }
51
52 src_test() {
53 LD_LIBRARY_PATH="${S}/lib" emake VAR="" test || die "emake test failed"
54 }
55
56 src_install(){
57 dolib lib/*.a lib/*.so* || die "Unable to find libraries"
58 for i in $(find "${D}/usr/$(get_libdir)" -name "*so" | sed "s:${D}::g"); do
59 dosym $i.2.0.0 $i.2 && dosym $i.2 $i || die "Unable to sym $i"
60 done
61
62 dodir /usr/include || die "Unable to create include dir"
63 cp -r ./inc/* "${D}/usr/include/" || die "Unable to copy headers"
64
65 dodoc FAQs README
66 if use doc; then
67 dodoc doc/*.txt
68 insinto /usr/share/doc/${PF}
69 doins doc/papers/* doc/tutorial/tutorial.pdf || die
70 doins -r doc/doxy/html doc/doxy/latex/*pdf || die
71 fi
72 }

  ViewVC Help
Powered by ViewVC 1.1.20