Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/ceres-solver: ceres-solver-1.6.0.ebuild ChangeLog
Date: Wed, 22 May 2013 21:10:34
Message-Id: 20130522211027.385E42171D@flycatcher.gentoo.org
1 bicatali 13/05/22 21:10:27
2
3 Modified: ChangeLog
4 Added: ceres-solver-1.6.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.01.21938-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.5 sci-libs/ceres-solver/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 4 Mar 2013 18:28:26 -0000 1.4
24 +++ ChangeLog 22 May 2013 21:10:27 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/ceres-solver
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.4 2013/03/04 18:28:26 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.5 2013/05/22 21:10:27 bicatali Exp $
30 +
31 +*ceres-solver-1.6.0 (22 May 2013)
32 +
33 + 22 May 2013; Sébastien Fabbro <bicatali@g.o>
34 + +ceres-solver-1.6.0.ebuild:
35 + Version bump
36
37 04 Mar 2013; Sébastien Fabbro <bicatali@g.o> ceres-solver-1.4.0.ebuild:
38 Avoid forced downloading of latex style file minted.sty (bug #460170)
39
40
41
42 1.1 sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ceres-solver-1.6.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ceres-solver-1.6.0.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $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 $
52
53 EAPI=5
54
55 inherit cmake-utils eutils multilib toolchain-funcs
56
57 DESCRIPTION="Nonlinear least-squares minimizer"
58 HOMEPAGE="https://code.google.com/p/ceres-solver/"
59 SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
64 IUSE="doc examples gflags metis openmp protobuf +schur +sparse static-libs test"
65 REQUIRED_USE="test? ( gflags )"
66
67 RDEPEND="
68 dev-cpp/eigen:3
69 dev-cpp/glog[gflags?]
70 protobuf? ( dev-libs/protobuf )
71 sparse? (
72 sci-libs/amd
73 sci-libs/camd
74 sci-libs/ccolamd
75 sci-libs/cholmod[metis?]
76 sci-libs/colamd
77 sci-libs/cxsparse
78 virtual/blas
79 virtual/lapack )"
80 DEPEND="${RDEPEND}
81 sparse? ( virtual/pkgconfig )
82 doc? ( dev-python/sphinx )"
83
84 src_prepare() {
85 # prefix love
86 # disable blas/lapack forced library names
87 sed -i \
88 -e "s:/usr:${EPREFIX}/usr:g" \
89 -e '/FIND_LIBRARY(BLAS_LIB NAMES blas)/d' \
90 -e '/FIND_LIBRARY(LAPACK_LIB NAMES lapack)/d' \
91 -e 's/EXISTS ${BLAS_LIB}/BLAS_LIB/g' \
92 -e 's/EXISTS ${LAPACK_LIB}/LAPACK_LIB/g' \
93 -e 's/-Werror//g' \
94 CMakeLists.txt || die
95
96 # respect gentoo doc dir
97 sed -i \
98 -e "s:share/doc/ceres:share/doc/${PF}:" \
99 docs/source/CMakeLists.txt || die
100 }
101
102 src_configure() {
103 local blibs llibs
104 if use sparse; then
105 blibs=$($(tc-getPKG_CONFIG) --libs blas)
106 llibs=$($(tc-getPKG_CONFIG) --libs lapack)
107 fi
108 local mycmakeargs=(
109 -DBLAS_LIB="${blibs}"
110 -DLAPACK_LIB="${llibs}"
111 $(cmake-utils_use_enable test TESTING)
112 $(cmake-utils_use doc BUILD_DOCUMENTATION)
113 $(cmake-utils_use gflags GFLAGS)
114 $(cmake-utils_use openmp OPENMP)
115 $(cmake-utils_use protobuf PROTOBUF)
116 $(cmake-utils_use schur SCHUR_SPECIALIZATIONS)
117 $(cmake-utils_use sparse CXSPARSE)
118 $(cmake-utils_use sparse SUITESPARSE)
119 )
120 cmake-utils_src_configure
121 }
122
123 src_install() {
124 cmake-utils_src_install
125 dodoc README VERSION
126
127 use static-libs || rm "${ED}"/usr/$(get_libdir)/libceres.a
128 dosym libceres_shared.so /usr/$(get_libdir)/libceres.so
129
130 if use examples; then
131 insinto /usr/share/doc/${PF}
132 doins -r examples
133 fi
134 }