summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2013-10-23 18:36:55 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2013-10-23 18:36:55 +0000
commit7c2b77c2e1ecd09c801f778ba8444720f7516632 (patch)
treee4a73e0812824fded1e239c2a19f1d8009900162 /sci-libs/ceres-solver
parentFix compilation by rewriting the classpath. (diff)
downloadgentoo-2-7c2b77c2e1ecd09c801f778ba8444720f7516632.tar.gz
gentoo-2-7c2b77c2e1ecd09c801f778ba8444720f7516632.tar.bz2
gentoo-2-7c2b77c2e1ecd09c801f778ba8444720f7516632.zip
Version bump
(Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs/ceres-solver')
-rw-r--r--sci-libs/ceres-solver/ChangeLog8
-rw-r--r--sci-libs/ceres-solver/ceres-solver-1.7.0.ebuild87
2 files changed, 94 insertions, 1 deletions
diff --git a/sci-libs/ceres-solver/ChangeLog b/sci-libs/ceres-solver/ChangeLog
index be318bab1816..f7f124559078 100644
--- a/sci-libs/ceres-solver/ChangeLog
+++ b/sci-libs/ceres-solver/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/ceres-solver
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.5 2013/05/22 21:10:27 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.6 2013/10/23 18:36:55 bicatali Exp $
+
+*ceres-solver-1.7.0 (23 Oct 2013)
+
+ 23 Oct 2013; Sébastien Fabbro <bicatali@gentoo.org>
+ +ceres-solver-1.7.0.ebuild:
+ Version bump
*ceres-solver-1.6.0 (22 May 2013)
diff --git a/sci-libs/ceres-solver/ceres-solver-1.7.0.ebuild b/sci-libs/ceres-solver/ceres-solver-1.7.0.ebuild
new file mode 100644
index 000000000000..5d27a1ac243b
--- /dev/null
+++ b/sci-libs/ceres-solver/ceres-solver-1.7.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ceres-solver-1.7.0.ebuild,v 1.1 2013/10/23 18:36:55 bicatali Exp $
+
+EAPI=5
+
+inherit cmake-utils eutils multilib toolchain-funcs
+
+DESCRIPTION="Nonlinear least-squares minimizer"
+HOMEPAGE="https://code.google.com/p/ceres-solver/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples gflags metis openmp protobuf +schur +sparse static-libs test"
+REQUIRED_USE="test? ( gflags )"
+
+RDEPEND="
+ dev-cpp/eigen:3
+ dev-cpp/glog[gflags?]
+ protobuf? ( dev-libs/protobuf )
+ sparse? (
+ sci-libs/amd
+ sci-libs/camd
+ sci-libs/ccolamd
+ sci-libs/cholmod[metis?]
+ sci-libs/colamd
+ sci-libs/cxsparse
+ sci-libs/spqr
+ virtual/blas
+ virtual/lapack )"
+DEPEND="${RDEPEND}
+ sparse? ( virtual/pkgconfig )
+ doc? ( dev-python/sphinx )"
+
+src_prepare() {
+ # prefix love
+ # disable blas/lapack forced library names
+ sed -i \
+ -e "s:/usr:${EPREFIX}/usr:g" \
+ -e '/FIND_LIBRARY(BLAS_LIB NAMES blas)/d' \
+ -e '/FIND_LIBRARY(LAPACK_LIB NAMES lapack)/d' \
+ -e 's/EXISTS ${BLAS_LIB}/BLAS_LIB/g' \
+ -e 's/EXISTS ${LAPACK_LIB}/LAPACK_LIB/g' \
+ -e 's/-Werror//g' \
+ CMakeLists.txt || die
+
+ # respect gentoo doc dir
+ sed -i \
+ -e "s:share/doc/ceres:share/doc/${PF}:" \
+ docs/source/CMakeLists.txt || die
+}
+
+src_configure() {
+ local blibs llibs
+ if use sparse; then
+ blibs=$($(tc-getPKG_CONFIG) --libs blas)
+ llibs=$($(tc-getPKG_CONFIG) --libs lapack)
+ fi
+ local mycmakeargs=(
+ -DBLAS_LIB="${blibs}"
+ -DLAPACK_LIB="${llibs}"
+ $(cmake-utils_use_enable test TESTING)
+ $(cmake-utils_use doc BUILD_DOCUMENTATION)
+ $(cmake-utils_use gflags GFLAGS)
+ $(cmake-utils_use openmp OPENMP)
+ $(cmake-utils_use protobuf PROTOBUF)
+ $(cmake-utils_use schur SCHUR_SPECIALIZATIONS)
+ $(cmake-utils_use sparse CXSPARSE)
+ $(cmake-utils_use sparse SUITESPARSE)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README VERSION
+
+ use static-libs || rm "${ED}"/usr/$(get_libdir)/libceres.a
+ dosym libceres_shared.so /usr/$(get_libdir)/libceres.so
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}