diff options
author | Amy Liffey <amynka@gentoo.org> | 2014-08-07 16:55:20 +0000 |
---|---|---|
committer | Amy Liffey <amynka@gentoo.org> | 2014-08-07 16:55:20 +0000 |
commit | ba82694f06ecd2c961552d7dd0a14b70bd359f7c (patch) | |
tree | 8fd03a4810a9572e10fb2723416c7bd8c56c5444 /sci-libs/levmar | |
parent | Initial commit. Package will be used by meshlab (diff) | |
download | gentoo-2-ba82694f06ecd2c961552d7dd0a14b70bd359f7c.tar.gz gentoo-2-ba82694f06ecd2c961552d7dd0a14b70bd359f7c.tar.bz2 gentoo-2-ba82694f06ecd2c961552d7dd0a14b70bd359f7c.zip |
Initial commit. Package will be used by meshlab
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 34E69781)
Diffstat (limited to 'sci-libs/levmar')
-rw-r--r-- | sci-libs/levmar/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/levmar/files/levmar-2.6-demo-underlinking.patch | 12 | ||||
-rw-r--r-- | sci-libs/levmar/files/levmar-2.6-shared.patch | 12 | ||||
-rw-r--r-- | sci-libs/levmar/levmar-2.6.ebuild | 48 | ||||
-rw-r--r-- | sci-libs/levmar/metadata.xml | 15 |
5 files changed, 97 insertions, 0 deletions
diff --git a/sci-libs/levmar/ChangeLog b/sci-libs/levmar/ChangeLog new file mode 100644 index 000000000000..b6160c064ab6 --- /dev/null +++ b/sci-libs/levmar/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-libs/levmar +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/levmar/ChangeLog,v 1.1 2014/08/07 16:55:20 amynka Exp $ + +*levmar-2.6 (07 Aug 2014) + + 07 Aug 2014; Amy Winston <amynka@gentoo.org> + +files/levmar-2.6-demo-underlinking.patch, +files/levmar-2.6-shared.patch, + +levmar-2.6.ebuild, +metadata.xml: + Initial commit. Package will be used by meshlab diff --git a/sci-libs/levmar/files/levmar-2.6-demo-underlinking.patch b/sci-libs/levmar/files/levmar-2.6-demo-underlinking.patch new file mode 100644 index 000000000000..a6be5587d3e0 --- /dev/null +++ b/sci-libs/levmar/files/levmar-2.6-demo-underlinking.patch @@ -0,0 +1,12 @@ +diff -urN levmar-2.6.old/CMakeLists.txt levmar-2.6/CMakeLists.txt +--- levmar-2.6.old/CMakeLists.txt 2014-08-07 18:22:25.739008113 +0200 ++++ levmar-2.6/CMakeLists.txt 2014-08-07 18:22:36.050014845 +0200 +@@ -67,7 +67,7 @@ +
+ # demo program
+ IF(BUILD_DEMO)
+- SET(LIBS levmar)
++ SET(LIBS levmar m)
+
+ LINK_DIRECTORIES(${CMAKE_BINARY_DIR}) # location of the levmar library
+ LINK_DIRECTORIES(${LAPACKBLAS_DIR})
diff --git a/sci-libs/levmar/files/levmar-2.6-shared.patch b/sci-libs/levmar/files/levmar-2.6-shared.patch new file mode 100644 index 000000000000..e89750cc028f --- /dev/null +++ b/sci-libs/levmar/files/levmar-2.6-shared.patch @@ -0,0 +1,12 @@ +diff -Nur levmar-2.6.orig/CMakeLists.txt levmar-2.6/CMakeLists.txt +--- levmar-2.6.orig/CMakeLists.txt 2012-04-13 04:53:53.000000000 +0100 ++++ levmar-2.6/CMakeLists.txt 2012-04-13 04:54:20.000000000 +0100 +@@ -60,7 +60,7 @@ + ENDIF(HAVE_PLASMA)
+
+ # levmar library source files
+-ADD_LIBRARY(levmar STATIC
++ADD_LIBRARY(levmar SHARED
+ lm.c Axb.c misc.c lmlec.c lmbc.c lmblec.c lmbleic.c
+ levmar.h misc.h compiler.h
+ )
diff --git a/sci-libs/levmar/levmar-2.6.ebuild b/sci-libs/levmar/levmar-2.6.ebuild new file mode 100644 index 000000000000..9b1505de3aa3 --- /dev/null +++ b/sci-libs/levmar/levmar-2.6.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/levmar/levmar-2.6.ebuild,v 1.1 2014/08/07 16:55:20 amynka Exp $ + +EAPI=5 + +inherit cmake-utils eutils toolchain-funcs + +DESCRIPTION="Levenberg-Marquardt nonlinear least squares C library" +HOMEPAGE="http://www.ics.forth.gr/~lourakis/levmar/" +SRC_URI="${HOMEPAGE}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND=" + virtual/blas + virtual/lapack" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-shared.patch + "${FILESDIR}"/${P}-demo-underlinking.patch +) + +src_configure() { + local mycmakeargs+=( + -DNEED_F2C=OFF + -DHAVE_LAPACK=ON + -DLAPACKBLAS_LIB_NAMES="$($(tc-getPKG_CONFIG) --libs blas lapack)" + $(cmake-utils_use test BUILD_DEMO) + ) + cmake-utils_src_configure +} + +src_test() { + cd ${CMAKE_BUILD_DIR} + ./lmdemo || die +} + +src_install() { + dolib.so ${CMAKE_BUILD_DIR}/liblevmar.so + insinto /usr/include + doins levmar.h +} diff --git a/sci-libs/levmar/metadata.xml b/sci-libs/levmar/metadata.xml new file mode 100644 index 000000000000..de46a53040da --- /dev/null +++ b/sci-libs/levmar/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>amynka@gentoo.org</email> +</maintainer> +<longdescription lang="en"> + levmar is a native ANSI C implementation of the Levenberg-Marquardt + optimization algorithm. Both unconstrained and constrained (under + linear equations, inequality and box constraints) + Levenberg-Marquardt variants are included. The LM algorithm is an + iterative technique that finds a local minimum of a function that is + expressed as the sum of squares of nonlinear functions. +</longdescription> +</pkgmetadata> |