Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/tmglib/
Date: Thu, 29 Nov 2012 00:09:45
Message-Id: 1354147748.74f60e1643bc61885d9639eb8c4c8a104dc394bc.bicatali@gentoo
1 commit: 74f60e1643bc61885d9639eb8c4c8a104dc394bc
2 Author: S├ębastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 29 00:09:08 2012 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 29 00:09:08 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=74f60e16
7
8 sci-libs/tmglib: Initial import
9
10 Package-Manager: portage-2.2.01.21313-prefix
11
12 ---
13 sci-libs/tmglib/ChangeLog | 9 +++++
14 sci-libs/tmglib/metadata.xml | 9 +++++
15 sci-libs/tmglib/tmglib-3.4.2.ebuild | 59 +++++++++++++++++++++++++++++++++++
16 3 files changed, 77 insertions(+), 0 deletions(-)
17
18 diff --git a/sci-libs/tmglib/ChangeLog b/sci-libs/tmglib/ChangeLog
19 new file mode 100644
20 index 0000000..2bfcf4a
21 --- /dev/null
22 +++ b/sci-libs/tmglib/ChangeLog
23 @@ -0,0 +1,9 @@
24 +# ChangeLog for sci-libs/tmglib
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: $
27 +
28 +*tmglib-3.4.2 (29 Nov 2012)
29 +
30 + 29 Nov 2012; S├ębastien Fabbro <bicatali@g.o> +metadata.xml,
31 + +tmglib-3.4.2.ebuild:
32 + sci-libs/tmglib: Initial import
33
34 diff --git a/sci-libs/tmglib/metadata.xml b/sci-libs/tmglib/metadata.xml
35 new file mode 100644
36 index 0000000..ea03b28
37 --- /dev/null
38 +++ b/sci-libs/tmglib/metadata.xml
39 @@ -0,0 +1,9 @@
40 +<?xml version="1.0" encoding="UTF-8"?>
41 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
42 +<pkgmetadata>
43 +<herd>sci</herd>
44 +<longdescription lang="en">
45 + This is a library to generate matrices to test LAPACK
46 + implementations.
47 +</longdescription>
48 +</pkgmetadata>
49
50 diff --git a/sci-libs/tmglib/tmglib-3.4.2.ebuild b/sci-libs/tmglib/tmglib-3.4.2.ebuild
51 new file mode 100644
52 index 0000000..62dda7a
53 --- /dev/null
54 +++ b/sci-libs/tmglib/tmglib-3.4.2.ebuild
55 @@ -0,0 +1,59 @@
56 +# Copyright 1999-2012 Gentoo Foundation
57 +# Distributed under the terms of the GNU General Public License v2
58 +# $Header: $
59 +
60 +EAPI=4
61 +
62 +inherit cmake-utils fortran-2
63 +
64 +MYP=lapack-3.4.2
65 +
66 +DESCRIPTION="Test Matrix Generator library for LAPACK"
67 +HOMEPAGE="http://www.netlib.org/lapack/"
68 +SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz"
69 +
70 +LICENSE="BSD"
71 +SLOT="0"
72 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
73 +IUSE="static-libs"
74 +
75 +RDEPEND="virtual/lapack"
76 +DEPEND="${RDEPEND}
77 + virtual/pkgconfig"
78 +
79 +S="${WORKDIR}/${MYP}"
80 +
81 +src_prepare() {
82 + use static-libs && mkdir "${WORKDIR}/${PN}_static"
83 +}
84 +
85 +src_configure() {
86 + tmg_configure() {
87 + local mycmakeargs=(
88 + -DUSE_OPTIMIZED_BLAS=ON
89 + -DUSE_OPTIMIZED_LAPACK=ON
90 + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
91 + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)"
92 + -DTESTING=ON
93 + $@
94 + )
95 + cmake-utils_src_configure
96 + }
97 +
98 + tmg_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
99 + use static-libs && \
100 + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" tmg_configure \
101 + -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
102 +}
103 +
104 +src_compile() {
105 + cmake-utils_src_compile -C TESTING/MATGEN
106 + use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
107 + cmake-utils_src_compile -C TESTING/MATGEN
108 +}
109 +
110 +src_install() {
111 + cmake-utils_src_install -C TESTING/MATGEN
112 + use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
113 + cmake-utils_src_install -C TESTING/MATGEN
114 +}