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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jun 15 13:31:00 2010 UTC (9 years, 9 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fixed clean install of libs
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 jlec 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/neartree/neartree-2.1.4-r1.ebuild,v 1.2 2010/03/07 18:52:01 jlec Exp $
4 jlec 1.1
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}/${MY_P}/${MY_PN}.zip -> ${P}.zip"
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}"
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     epatch "${FILESDIR}"/${PV}-dynlib.patch
32    
33     sed \
34     -e "s:GENTOOLIBDIR:$(get_libdir):g" \
35     -e "s:/usr:${EPREFIX}/usr:g" \
36     -i Makefile
37     }
38    
39     src_compile() {
40     emake \
41     CC=$(tc-getCC) \
42     CXX=$(tc-getCXX) \
43     all || die
44     }
45    
46     src_install() {
47     dolib.so *.so.${PV} || die
48     dosym libCNearTree.so.${PV} /usr/$(get_libdir)/libCNearTree.so.$(get_version_component_range 1-2) || die
49     dosym libCNearTree.so.${PV} /usr/$(get_libdir)/libCNearTree.so.$(get_major_version) || die
50     dosym libCNearTree.so.${PV} /usr/$(get_libdir)/libCNearTree.so || die
51    
52     insinto /usr/include
53 jlec 1.2 doins CNearTree.h rhrand.h || die
54 jlec 1.1
55     dodoc README_NearTree.txt || die
56     dohtml *.html || die
57     }

  ViewVC Help
Powered by ViewVC 1.1.20