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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Thu Mar 1 20:04:27 2012 UTC (4 years, 2 months ago) by ranger
Branch: MAIN
Changes since 1.6: +3 -3 lines
Marking neartree-2.3.2 ppc for bug 393999

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 ranger 1.7 # Copyright 1999-2012 Gentoo Foundation
2 jlec 1.1 # Distributed under the terms of the GNU General Public License v2
3 ranger 1.7 # $Header: /var/cvsroot/gentoo-x86/sci-libs/neartree/neartree-2.3.2.ebuild,v 1.6 2011/12/21 08:26:30 phajdan.jr Exp $
4 jlec 1.1
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 ranger 1.7 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
19 jlec 1.5 IUSE="static-libs"
20 jlec 1.1
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 jlec 1.2 "${FILESDIR}"/${PV}-gentoo.patch \
30     "${FILESDIR}"/${PV}-notest.patch
31 jlec 1.1
32     sed \
33     -e "s:GENTOOLIBDIR:$(get_libdir):g" \
34     -e "s:/usr:${EPREFIX}/usr:g" \
35 jlec 1.3 -i Makefile || die
36 jlec 1.1 }
37    
38     src_compile() {
39     emake \
40     CC=$(tc-getCC) \
41     CXX=$(tc-getCXX) \
42     all
43     }
44    
45     src_install() {
46     emake \
47     CC=$(tc-getCC) \
48     CXX=$(tc-getCXX) \
49     DESTDIR="${D}" install
50    
51 jlec 1.5 if ! use static-libs; then
52     rm "${ED}"/usr/$(get_libdir)/*.{a,la} || die
53     fi
54    
55 jlec 1.1 dodoc README_NearTree.txt
56     dohtml *.html
57     }

  ViewVC Help
Powered by ViewVC 1.1.20