/[gentoo-x86]/sci-libs/neartree/neartree-2.1.4.ebuild
Gentoo

Contents of /sci-libs/neartree/neartree-2.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Mar 7 18:48:36 2010 UTC (9 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
building shared libs now
(Portage version: 2.2_rc65/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/neartree/neartree-2.1.4.ebuild,v 1.1 2010/02/03 20:23:57 jlec Exp $
4
5 EAPI="3"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 MY_PN=NearTree
10 MY_P="${MY_PN}-${PV}"
11
12 DESCRIPTION="Function library efficiently solving the Nearest Neighbor Problem(known as the post office problem)"
13 HOMEPAGE="http://neartree.sourceforge.net"
14 SRC_URI="mirror://sourceforge/${PN}/${MY_P}/${MY_PN}.zip -> ${P}.zip"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE=""
20
21 RDEPEND="dev-libs/cvector"
22 DEPEND="${RDEPEND}"
23
24 S="${WORKDIR}"
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${PV}-FLAGS.patch
28 epatch "${FILESDIR}"/${PV}-gcc4.3.patch
29 epatch "${FILESDIR}"/${PV}-iterator.patch
30 epatch "${FILESDIR}"/${PV}-test.patch
31
32 sed \
33 -e "s:GENTOOLIBDIR:$(get_libdir):g" \
34 -e "s:/usr:${EPREFIX}/usr:g" \
35 -i Makefile
36 }
37
38 src_compile() {
39 emake \
40 CC=$(tc-getCC) \
41 CXX=$(tc-getCXX) \
42 all || die
43 }
44
45 src_test() {
46 emake \
47 CC=$(tc-getCC) \
48 CXX=$(tc-getCXX) \
49 tests || die
50 }
51
52 src_install() {
53 dobin bin/* || die "failed to install bins"
54 dolib.a lib/.libs/*.a || die "failed to install libs"
55
56 insinto /usr/include
57 doins *.h || die "failed to install includes"
58
59 dodoc README_NearTree.txt || die
60 dohtml *.html || die
61 }

  ViewVC Help
Powered by ViewVC 1.1.20