diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2013-05-22 21:10:27 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2013-05-22 21:10:27 +0000 |
commit | 474f2ccfaa466cfc72179aa4898ce31fd9842d40 (patch) | |
tree | d00c0fd0df8ae5171e2ff582be17070553261d5a /sci-libs | |
parent | Revert of -3.1.0.1-r1 ebuild with patch, added ~amd-fbsd (diff) | |
download | gentoo-2-474f2ccfaa466cfc72179aa4898ce31fd9842d40.tar.gz gentoo-2-474f2ccfaa466cfc72179aa4898ce31fd9842d40.tar.bz2 gentoo-2-474f2ccfaa466cfc72179aa4898ce31fd9842d40.zip |
Version bump
(Portage version: 2.2.01.21938-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/ceres-solver/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild | 86 |
2 files changed, 93 insertions, 1 deletions
diff --git a/sci-libs/ceres-solver/ChangeLog b/sci-libs/ceres-solver/ChangeLog index 4343d15738fc..be318bab1816 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.4 2013/03/04 18:28:26 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.5 2013/05/22 21:10:27 bicatali Exp $ + +*ceres-solver-1.6.0 (22 May 2013) + + 22 May 2013; Sébastien Fabbro <bicatali@gentoo.org> + +ceres-solver-1.6.0.ebuild: + Version bump 04 Mar 2013; Sébastien Fabbro <bicatali@gentoo.org> ceres-solver-1.4.0.ebuild: Avoid forced downloading of latex style file minted.sty (bug #460170) diff --git a/sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild b/sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild new file mode 100644 index 000000000000..91ed71c5669c --- /dev/null +++ b/sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild @@ -0,0 +1,86 @@ +# 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.6.0.ebuild,v 1.1 2013/05/22 21:10:26 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 + 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 +} |