summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@zonker.localdomain>2011-08-21 14:16:44 +0200
committerroot <root@zonker.localdomain>2011-08-21 14:16:44 +0200
commit705c4bd055b54ceaea30ce4361f9d0d57785f924 (patch)
tree3a3e4b6f0151d82f7fb1e5026a2beadbefce3495 /sci-libs/levmar/levmar-2.5-r2.ebuild
downloadmistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.tar.gz
mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.tar.bz2
mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.zip
import from svn
Diffstat (limited to 'sci-libs/levmar/levmar-2.5-r2.ebuild')
-rw-r--r--sci-libs/levmar/levmar-2.5-r2.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/sci-libs/levmar/levmar-2.5-r2.ebuild b/sci-libs/levmar/levmar-2.5-r2.ebuild
new file mode 100644
index 0000000..d022626
--- /dev/null
+++ b/sci-libs/levmar/levmar-2.5-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils
+DESCRIPTION="Levenberg-Marquardt nonlinear least squares algorithms ANSI C implementation"
+HOMEPAGE="http://www.ics.forth.gr/~lourakis/levmar/"
+SRC_URI="http://www.ics.forth.gr/~lourakis/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=dev-lang/f2c-20060507
+ >=virtual/blas-1.0
+ >=virtual/lapack-3.1"
+RDEPEND="${DEPEND}"
+
+MIN_CMAKE="dev-util/cmake-1.4"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-f2c_main.patch "${FILESDIR}"/${PV}-make-shared.patch "${FILESDIR}"/${PV}-cmake-shared.patch
+}
+
+src_compile() {
+ if has_version ">=${MIN_CMAKE}"
+ then
+ cmake . || die "cmake failed"
+ fi
+ emake || die "make failed"
+}
+
+src_install() {
+ local my_include_dir=/usr/include/${PN}
+ insinto ${my_include_dir}
+ doins *.h
+
+ dolib liblevmar.so
+}