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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Dec 14 09:20:30 2011 UTC (8 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version Bump

(Portage version: 2.2.0_alpha80/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.3.1.ebuild,v 1.2 2011/05/05 16:17:48 jlec Exp $
4
5 EAPI=3
6
7 inherit base flag-o-matic multilib toolchain-funcs versionator
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}/${PN}/${MY_P}/${MY_P}.tar.gz -> ${P}.tar.gz"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19 IUSE=""
20
21 RDEPEND="dev-libs/cvector"
22 DEPEND="${RDEPEND}"
23
24 S="${WORKDIR}"/${MY_P}
25
26 src_prepare() {
27 epatch \
28 "${FILESDIR}"/2.1.4-test.patch \
29 "${FILESDIR}"/${PV}-gentoo.patch
30
31 sed \
32 -e "s:GENTOOLIBDIR:$(get_libdir):g" \
33 -e "s:/usr:${EPREFIX}/usr:g" \
34 -i Makefile
35 }
36
37 src_compile() {
38 emake \
39 CC=$(tc-getCC) \
40 CXX=$(tc-getCXX) \
41 all || die
42 }
43
44 src_install() {
45 emake \
46 CC=$(tc-getCC) \
47 CXX=$(tc-getCXX) \
48 DESTDIR="${D}" install || die
49
50 dodoc README_NearTree.txt || die
51 dohtml *.html || die
52 }

  ViewVC Help
Powered by ViewVC 1.1.20