1 |
commit: b3bd188c36dfc11ac5ab500839025c62f83b0b45 |
2 |
Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca> |
3 |
AuthorDate: Mon Jul 9 23:48:28 2012 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 9 23:48:28 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b3bd188c |
7 |
|
8 |
remove old |
9 |
|
10 |
--- |
11 |
dev-cpp/eigen/eigen-3.1.0.ebuild | 87 -------------------------------------- |
12 |
1 files changed, 0 insertions(+), 87 deletions(-) |
13 |
|
14 |
diff --git a/dev-cpp/eigen/eigen-3.1.0.ebuild b/dev-cpp/eigen/eigen-3.1.0.ebuild |
15 |
deleted file mode 100644 |
16 |
index af3759a..0000000 |
17 |
--- a/dev-cpp/eigen/eigen-3.1.0.ebuild |
18 |
+++ /dev/null |
19 |
@@ -1,87 +0,0 @@ |
20 |
-# Copyright 1999-2012 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
-# $Header: $ |
23 |
- |
24 |
-EAPI=4 |
25 |
- |
26 |
-inherit cmake-utils alternatives-2 fortran-2 multilib |
27 |
- |
28 |
-DESCRIPTION="C++ template library for linear algebra" |
29 |
-HOMEPAGE="http://eigen.tuxfamily.org/" |
30 |
- |
31 |
-MYPV=${PV/_/-} |
32 |
-SRC_URI="http://bitbucket.org/eigen/eigen/get/${MYPV}.tar.bz2 -> ${P}.tar.bz2" |
33 |
- |
34 |
-LICENSE="|| ( LGPL-3 GPL-2 )" |
35 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
36 |
-SLOT="3" |
37 |
-IUSE="adolc doc fortran fftw gmp mkl sparse static-libs test" |
38 |
- |
39 |
-# TODO: support for pastix |
40 |
-CDEPEND="adolc? ( sci-libs/adolc[sparse?] ) |
41 |
- fftw? ( >=sci-libs/fftw-3 ) |
42 |
- gmp? ( dev-libs/gmp dev-libs/mpfr ) |
43 |
- mkl? ( sci-libs/mkl ) |
44 |
- sparse? ( dev-cpp/sparsehash |
45 |
- sci-libs/cholmod[metis] |
46 |
- sci-libs/superlu |
47 |
- sci-libs/umfpack )" |
48 |
- |
49 |
-DEPEND="doc? ( app-doc/doxygen[dot,latex] ) |
50 |
- test? ( ${CDEPEND} )" |
51 |
- |
52 |
-RDEPEND="!dev-cpp/eigen:0 |
53 |
- ${CDEPEND}" |
54 |
- |
55 |
-pkg_setup() { |
56 |
- use fortran && fortran-2_pkg_setup |
57 |
-} |
58 |
- |
59 |
-src_unpack() { |
60 |
- unpack ${A} && mv ${PN}* ${P} |
61 |
-} |
62 |
- |
63 |
-src_configure() { |
64 |
- # TOFIX: static-libs for blas are always built with PIC |
65 |
- # TOFIX: BTL benchmarks |
66 |
- # TOFIX: is it worth fixing all the automagic given no library is built? |
67 |
- mycmakeargs=( |
68 |
- -DEIGEN_BUILD_BTL=OFF |
69 |
- ) |
70 |
- CMAKE_BUILD_TYPE="release" cmake-utils_src_configure |
71 |
- use fortran && FORTRAN_LIBS="blas lapack" |
72 |
-} |
73 |
- |
74 |
-src_compile() { |
75 |
- local targets="${FORTRAN_LIBS}" |
76 |
- use doc && targets+=" doc" |
77 |
- cmake-utils_src_compile ${targets} |
78 |
-} |
79 |
- |
80 |
-src_install() { |
81 |
- cmake-utils_src_install |
82 |
- use doc && dohtml -r "${CMAKE_BUILD_DIR}"/doc/html/* |
83 |
- local x |
84 |
- for x in ${FORTRAN_LIBS}; do |
85 |
- local libname="eigen_${x}" |
86 |
- cd "${CMAKE_BUILD_DIR}"/${x} |
87 |
- dolib.so lib${libname}.so |
88 |
- use static-libs && newlib.a lib${libname}_static.a lib${libname}.a |
89 |
- cat > ${libname}.pc <<-EOF |
90 |
- prefix=${EPREFIX}/usr |
91 |
- libdir=\${prefix}/$(get_libdir) |
92 |
- includedir=\${prefix}/include |
93 |
- Name: ${PN} |
94 |
- Description: ${DESCRIPTION} ${x^^} implementation |
95 |
- Version: ${PV} |
96 |
- URL: ${HOMEPAGE} |
97 |
- Libs: -L\${libdir} -l${libname} |
98 |
- Libs.private: -lm |
99 |
- $([[ ${x} == lapack ]] && echo "Requires: blas") |
100 |
- EOF |
101 |
- alternatives_for ${x} eigen 0 \ |
102 |
- /usr/$(get_libdir)/pkgconfig/${x}.pc ${libname}.pc |
103 |
- insinto /usr/$(get_libdir)/pkgconfig |
104 |
- doins ${libname}.pc |
105 |
- done |
106 |
-} |