diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-05-30 12:34:19 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-05-30 12:34:19 +0000 |
commit | 62e7d7b5b335874e9e8364b3611535b0f774e098 (patch) | |
tree | b3ad69db5705ae2df289985a7dc1d88959fd318f /sci-libs/neartree | |
parent | keyword ~amd64-fbsd (diff) | |
download | gentoo-2-62e7d7b5b335874e9e8364b3611535b0f774e098.tar.gz gentoo-2-62e7d7b5b335874e9e8364b3611535b0f774e098.tar.bz2 gentoo-2-62e7d7b5b335874e9e8364b3611535b0f774e098.zip |
sci-libs/neartree: Clean buildsystem and move to cmake instead of patching
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/neartree')
-rw-r--r-- | sci-libs/neartree/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/neartree/files/CMakeLists.txt | 21 | ||||
-rw-r--r-- | sci-libs/neartree/metadata.xml | 8 | ||||
-rw-r--r-- | sci-libs/neartree/neartree-3.1.1-r1.ebuild | 28 |
4 files changed, 60 insertions, 5 deletions
diff --git a/sci-libs/neartree/ChangeLog b/sci-libs/neartree/ChangeLog index 02c936c52a83..ec5afd79d9e3 100644 --- a/sci-libs/neartree/ChangeLog +++ b/sci-libs/neartree/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-libs/neartree # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/neartree/ChangeLog,v 1.19 2012/03/01 20:04:27 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/neartree/ChangeLog,v 1.20 2012/05/30 12:34:19 jlec Exp $ + +*neartree-3.1.1-r1 (30 May 2012) + + 30 May 2012; Justin Lecher <jlec@gentoo.org> +neartree-3.1.1-r1.ebuild, + +files/CMakeLists.txt, metadata.xml: + Clean buildsystem and move to cmake instead of patching 01 Mar 2012; Brent Baude <ranger@gentoo.org> neartree-2.3.2.ebuild: Marking neartree-2.3.2 ppc for bug 393999 diff --git a/sci-libs/neartree/files/CMakeLists.txt b/sci-libs/neartree/files/CMakeLists.txt new file mode 100644 index 000000000000..4d2f07eab958 --- /dev/null +++ b/sci-libs/neartree/files/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 2.8) +project (Neartree C) + +SET (LIB_MAJOR 5) +SET (LIB_MINOR 1) +SET (LIB_RELEASE 0) + +SET (_soversion ${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}) + +include_directories ("${PROJECT_SOURCE_DIR}") + +add_library(CNearTree SHARED CNearTree.c) +target_link_libraries(CNearTree CVector m) + +set_target_properties(CNearTree PROPERTIES SOVERSION ${LIB_MAJOR} VERSION ${_soversion}) + +INSTALL(TARGETS CNearTree DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) +install(FILES CNearTree.h rhrand.h TNear.h triple.h + DESTINATION ${CMAKE_INSTALL_PREFIX}/include) +install(FILES README_NearTree.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/neartree-${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}) +install(FILES README_NearTree.html index.html DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/neartree-${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}/html) diff --git a/sci-libs/neartree/metadata.xml b/sci-libs/neartree/metadata.xml index efb490d78817..d747d72a25b4 100644 --- a/sci-libs/neartree/metadata.xml +++ b/sci-libs/neartree/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>sci</herd> -<maintainer> - <email>sci@gentoo.org</email> -</maintainer> + <herd>sci</herd> + <maintainer> + <email>sci@gentoo.org</email> + </maintainer> </pkgmetadata> diff --git a/sci-libs/neartree/neartree-3.1.1-r1.ebuild b/sci-libs/neartree/neartree-3.1.1-r1.ebuild new file mode 100644 index 000000000000..030c5e59630f --- /dev/null +++ b/sci-libs/neartree/neartree-3.1.1-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/neartree/neartree-3.1.1-r1.ebuild,v 1.1 2012/05/30 12:34:19 jlec Exp $ + +EAPI=4 + +inherit cmake-utils + +MY_PN=NearTree +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Function library efficiently solving the Nearest Neighbor Problem(known as the post office problem)" +HOMEPAGE="http://neartree.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${MY_P}/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +RDEPEND="dev-libs/cvector" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + cp "${FILESDIR}"/CMakeLists.txt . || die +} |