diff options
author | Amy Winston <amynka@gentoo.org> | 2014-08-07 16:55:26 +0000 |
---|---|---|
committer | Amy Winston <amynka@gentoo.org> | 2014-08-07 16:55:26 +0000 |
commit | fde524843d3a82f4855f0c18db60a54d74b10b34 (patch) | |
tree | 81ef33a4836cb1efc776bd75e1f5817b8f1d0147 /sci-libs/levmar | |
parent | Initial commit. Package will be used by meshlab (diff) | |
download | historical-fde524843d3a82f4855f0c18db60a54d74b10b34.tar.gz historical-fde524843d3a82f4855f0c18db60a54d74b10b34.tar.bz2 historical-fde524843d3a82f4855f0c18db60a54d74b10b34.zip |
Initial commit. Package will be used by meshlab
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x34E69781
Diffstat (limited to 'sci-libs/levmar')
-rw-r--r-- | sci-libs/levmar/ChangeLog | 10 | ||||
-rw-r--r-- | sci-libs/levmar/Manifest | 20 | ||||
-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 |
6 files changed, 117 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/Manifest b/sci-libs/levmar/Manifest new file mode 100644 index 000000000000..11465451ec64 --- /dev/null +++ b/sci-libs/levmar/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX levmar-2.6-demo-underlinking.patch 419 SHA256 a3fa17bc293258ba511f5efd4c3abd991c96400f9cea9dd2d8e97d2e128c694f SHA512 bed5504603e17dcde3c6fc91031f0d221eec3e8da3a75c930e7a113b04162340d5e83593e7ef3d60e17d2df07caff24356a64b95e8842fcbe5b79c26c1ae2c61 WHIRLPOOL 34e1bb19335c063f8956dda47a0175c011d7685ad8606ea6b4398e4d46b5a345c15d2bfd5a48acebfc1b373397925fbcfa5cdefae67fafaa8c7df00c9bebaabe +AUX levmar-2.6-shared.patch 425 SHA256 4656860078a960a86b2bfb69366cc19f29343ab6222d114e3d230d1d08a87963 SHA512 1544ba8d450f383f556f6f140b7b0c15d128bc0e12071f4cd47ae00068d3c67e82c49c4b7525ef3d9af2e3df805f3c749e460c91de652065e2954d6c1ee76109 WHIRLPOOL 02760b358668d8afae7acb7e68aa96d1921b954ea680f3ca6d9858361d1cf386ac017bad2fa00fe2ca3fcde045a90df71ce869a3671410d52b46f2573f090800 +DIST levmar-2.6.tgz 81143 SHA256 3bf4ef1ea4475ded5315e8d8fc992a725f2e7940a74ca3b0f9029d9e6e94bad7 SHA512 5b4c64b63be9b29d6ad2df435af86cd2c2e3216313378561a670ac6a392a51bbf1951e96c6b1afb77c570f23dd8e194017808e46929fec2d8d9a7fe6cf37022b WHIRLPOOL fd9f45474a2fbc57f3a542480271d90a15163edebc6e9b70444f2d9d4c9ad1a3c1301d77cee5c5d41944224c888547c069ee7443a09ff478ea996c3358f81023 +EBUILD levmar-2.6.ebuild 1046 SHA256 15aa90fe1f5db43559512c49b144e954e8f8dbd41804e89b415370204eba47d2 SHA512 a15713822ef92d6814ee0336c792abdbdbf4a503eafe4c8aaee29dab0a1aa3da7958efd779bfca81238c8dc62e8bc4590f4897ec0d5613acd7b315fa1a06c83f WHIRLPOOL 104ace18a2924cfc3d425d57a0c334b617d3e376d07fcd5fef531ee147cb76b0fc1d8152f1e989cb10584c878ac6f91227a77c57cd05bf82963933def47e9495 +MISC ChangeLog 441 SHA256 7d9e9164216373406a02354497f950b661319a2bd40f01f24f137bf7cb41fc22 SHA512 3cd1cb22aab8047d95dce961bc0dd9c7bba68f7b4328675be8e2d08eb3c4c70cde6c41955e3548096582477e6addd1ede47aa198a151dfda9ca2c77352f2f374 WHIRLPOOL c1faa858e8df99a997f34508fcd04b05cbe6d0410bd3c936227bfe5ef958f6f57ce20139f7c11edec2a795c0fecfacdb2b868ab22d8da3b8bb546360d0e2a3f7 +MISC metadata.xml 635 SHA256 4338d7fde157d8f673252aaf7c2bd72209e40c96dd292b90fdbf82e2c26e9982 SHA512 030e356fb739f024fac97f9a8dd5dc457a9d493ee17499333fee9d82ab53d6c29283e00cdd927bf8602fb064ed91f014929eaabd7e0f7e45cd343d066237e89d WHIRLPOOL d281ae3542a7ecb21c9c4f1801fd9b4ec8c8e8b55f189d8e5fbb8a5c04308abb182f124c1cf33c3b6532016750bf4c509f4dc33aaad682dbe5206169264a1d34 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQEcBAEBCAAGBQJT4695AAoJEDuJ1FA05peBAnIH/RpLnitkYRSjoRwErEIdNpmc +j7VS9yHyFwEcODY9HZQkqhzJ4SyhpCysahrjAn2qNVquGBvfQ0ukZBpJ6WeFY5IK +rRiENABnYclO/TrPvOXvl7tueZ8LtOQg9x/seYhAW+rYZ/guyPcDWkBEmmUpr40w +KsrIzXpXcuWuNcg7u+o0lZuf94FYGB1Hf500v27JA4ZA+NgKYYbMr5IYUc5Egri+ +LJv9cddwoO70Nkt3anBoRzpF1wh/F3DhhVns+fFX7sY/s2KGcsadriJ4Do56R3u3 +7grQhgwvfRsTMBQH/t8zxxz0CQuGorfnUHfdi+ICBt7taos6USfLWlM/raL8/M0= +=zWIx +-----END PGP SIGNATURE----- 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> |