1 |
bicatali 14/06/09 02:29:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ceres-solver-1.9.0.ebuild |
5 |
Removed: ceres-solver-1.7.0.ebuild |
6 |
Log: |
7 |
Version bump. Updated home page, doc building, added patch for underlinking cholmod |
8 |
|
9 |
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
10 |
|
11 |
Revision Changes Path |
12 |
1.8 sci-libs/ceres-solver/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ChangeLog?rev=1.8&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ChangeLog?rev=1.8&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ChangeLog?r1=1.7&r2=1.8 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v |
21 |
retrieving revision 1.7 |
22 |
retrieving revision 1.8 |
23 |
diff -u -r1.7 -r1.8 |
24 |
--- ChangeLog 14 Nov 2013 01:49:00 -0000 1.7 |
25 |
+++ ChangeLog 9 Jun 2014 02:29:13 -0000 1.8 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for sci-libs/ceres-solver |
28 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.7 2013/11/14 01:49:00 bicatali Exp $ |
30 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ChangeLog,v 1.8 2014/06/09 02:29:13 bicatali Exp $ |
32 |
+ |
33 |
+*ceres-solver-1.9.0 (09 Jun 2014) |
34 |
+ |
35 |
+ 09 Jun 2014; Sébastien Fabbro <bicatali@g.o> |
36 |
+ +ceres-solver-1.9.0.ebuild, +files/ceres-solver-1.9.0-underlink.patch, |
37 |
+ -ceres-solver-1.7.0.ebuild: |
38 |
+ Version bump. Updated home page, doc building, added patch for underlinking |
39 |
+ cholmod |
40 |
|
41 |
*ceres-solver-1.8.0 (14 Nov 2013) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sci-libs/ceres-solver/ceres-solver-1.9.0.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ceres-solver-1.9.0.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/ceres-solver/ceres-solver-1.9.0.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: ceres-solver-1.9.0.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2014 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/ceres-solver/ceres-solver-1.9.0.ebuild,v 1.1 2014/06/09 02:29:13 bicatali Exp $ |
56 |
|
57 |
EAPI=5 |
58 |
|
59 |
PYTHON_COMPAT=( python2_7 ) |
60 |
|
61 |
inherit cmake-utils eutils multilib python-any-r1 toolchain-funcs |
62 |
|
63 |
DESCRIPTION="Nonlinear least-squares minimizer" |
64 |
HOMEPAGE="http://ceres-solver.org/" |
65 |
SRC_URI="${HOMEPAGE}/${P}.tar.gz" |
66 |
|
67 |
LICENSE="BSD" |
68 |
SLOT="0/1" |
69 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
70 |
|
71 |
IUSE="cxsparse doc examples gflags lapack openmp protobuf +schur sparse static-libs test" |
72 |
REQUIRED_USE="test? ( gflags ) sparse? ( lapack ) doc? ( ${PYTHON_REQUIRED_USE} )" |
73 |
|
74 |
RDEPEND=" |
75 |
dev-cpp/glog[gflags?] |
76 |
cxsparse? ( sci-libs/cxsparse:0= ) |
77 |
lapack? ( virtual/lapack ) |
78 |
protobuf? ( dev-libs/protobuf ) |
79 |
sparse? ( |
80 |
sci-libs/amd:0= |
81 |
sci-libs/camd:0= |
82 |
sci-libs/ccolamd:0= |
83 |
sci-libs/cholmod:0= |
84 |
sci-libs/colamd:0= |
85 |
sci-libs/spqr:0= )" |
86 |
|
87 |
DEPEND="${RDEPEND} |
88 |
dev-cpp/eigen:3 |
89 |
doc? ( dev-python/sphinx dev-python/sphinx_rtd_theme ) |
90 |
lapack? ( virtual/pkgconfig )" |
91 |
|
92 |
PATCHES=( "${FILESDIR}"/${P}-underlink.patch ) |
93 |
|
94 |
pkg_setup() { |
95 |
# XXX: this looks like it should be used with BUILD_TYPE!=binary |
96 |
if use openmp; then |
97 |
if [[ $(tc-getCXX) == *g++* ]] && ! tc-has-openmp; then |
98 |
ewarn "OpenMP is not available in your current selected gcc" |
99 |
die "need openmp capable gcc" |
100 |
fi |
101 |
fi |
102 |
use doc && python-any-r1_pkg_setup |
103 |
} |
104 |
|
105 |
src_prepare() { |
106 |
# search paths work for prefix |
107 |
sed -i \ |
108 |
-e "s:/usr:${EPREFIX}/usr:g" \ |
109 |
cmake/*.cmake || die |
110 |
|
111 |
# remove Werror |
112 |
sed -i \ |
113 |
-e 's/-Werror//g' \ |
114 |
CMakeLists.txt || die |
115 |
|
116 |
# respect gentoo doc install directory |
117 |
sed -i \ |
118 |
-e "s:share/doc/ceres:share/doc/${PF}:" \ |
119 |
docs/source/CMakeLists.txt || die |
120 |
cmake-utils_src_prepare |
121 |
} |
122 |
|
123 |
src_configure() { |
124 |
local mycmakeargs=( |
125 |
-DBUILD_SHARED_LIBS=ON |
126 |
-DBUILD_EXAMPLES=OFF |
127 |
$(cmake-utils_use_enable test TESTING) |
128 |
$(cmake-utils_use doc BUILD_DOCUMENTATION) |
129 |
$(cmake-utils_use gflags GFLAGS) |
130 |
$(cmake-utils_use lapack LAPACK) |
131 |
$(cmake-utils_use openmp OPENMP) |
132 |
$(cmake-utils_use protobuf PROTOBUF) |
133 |
$(cmake-utils_use schur SCHUR_SPECIALIZATIONS) |
134 |
$(cmake-utils_use cxsparse CXSPARSE) |
135 |
$(cmake-utils_use sparse SUITESPARSE) |
136 |
) |
137 |
cmake-utils_src_configure |
138 |
} |
139 |
|
140 |
src_install() { |
141 |
cmake-utils_src_install |
142 |
dodoc README VERSION |
143 |
|
144 |
if use examples; then |
145 |
insinto /usr/share/doc/${PF} |
146 |
docompress -x /usr/share/doc/${PF}/examples |
147 |
doins -r examples data |
148 |
fi |
149 |
} |