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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Dec 4 11:50:58 2012 UTC (7 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
sci-libs/neartree: Drop old

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

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-3.1.1.ebuild,v 1.2 2011/12/15 21:39:19 jlec Exp $
4
5 EAPI=4
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 ~ppc ~x86 ~amd64-linux ~x86-linux"
19 IUSE="static-libs"
20
21 RDEPEND="dev-libs/cvector"
22 DEPEND="${RDEPEND}"
23
24 S="${WORKDIR}"/${MY_P}
25
26 PATCHES=(
27 "${FILESDIR}"/${PV}-test.patch
28 "${FILESDIR}"/${PV}-gentoo.patch
29 "${FILESDIR}"/${PV}-notest.patch
30 )
31
32 src_prepare() {
33 base_src_prepare
34 sed \
35 -e "s:GENTOOLIBDIR:$(get_libdir):g" \
36 -e "s:/usr:${EPREFIX}/usr:g" \
37 -i Makefile || die
38
39 tc-export CC CXX
40 }
41
42 src_compile() {
43 emake all
44 }
45
46 src_install() {
47 default
48
49 if ! use static-libs; then
50 rm "${ED}"/usr/$(get_libdir)/*.{a,la} || die
51 fi
52
53 dodoc README_NearTree.txt
54 dohtml *.html
55 }

  ViewVC Help
Powered by ViewVC 1.1.20