Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/asl/
Date: Sat, 25 Jul 2015 23:38:13
Message-Id: 1437867429.863e92cd5587dd30bf322a1a36be885f1a8da8f5.bircoph@gentoo
1 commit: 863e92cd5587dd30bf322a1a36be885f1a8da8f5
2 Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
3 AuthorDate: Sat Jul 25 23:37:09 2015 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 25 23:37:09 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=863e92cd
7
8 Fix issue #452
9
10 Add sci-libs/asl package.
11
12 sci-libs/asl/ChangeLog | 9 ++++++
13 sci-libs/asl/asl-0.1.4.ebuild | 65 +++++++++++++++++++++++++++++++++++++++++++
14 sci-libs/asl/metadata.xml | 31 +++++++++++++++++++++
15 3 files changed, 105 insertions(+)
16
17 diff --git a/sci-libs/asl/ChangeLog b/sci-libs/asl/ChangeLog
18 new file mode 100644
19 index 0000000..84477a0
20 --- /dev/null
21 +++ b/sci-libs/asl/ChangeLog
22 @@ -0,0 +1,9 @@
23 +# ChangeLog for sci-libs/asl
24 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
25 +# $Header: $
26 +
27 +*asl-0.1.4 (25 Jul 2015)
28 +
29 + 25 Jul 2015; Andrew Savchenko <bircoph@g.o> +asl-0.1.4.ebuild,
30 + +metadata.xml:
31 + Initial commit.
32
33 diff --git a/sci-libs/asl/asl-0.1.4.ebuild b/sci-libs/asl/asl-0.1.4.ebuild
34 new file mode 100644
35 index 0000000..15be510
36 --- /dev/null
37 +++ b/sci-libs/asl/asl-0.1.4.ebuild
38 @@ -0,0 +1,65 @@
39 +# Copyright 1999-2015 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Header: $
42 +
43 +EAPI=5
44 +
45 +CMAKE_MIN_VERSION=3.0.2
46 +CMAKE_MAKEFILE_GENERATOR="${CMAKE_MAKEFILE_GENERATOR:-ninja}"
47 +
48 +inherit cmake-utils
49 +
50 +MY_PN=ASL
51 +
52 +DESCRIPTION="Advanced Simulation Library - multiphysics simulation software package"
53 +HOMEPAGE="http://asl.org.il/"
54 +SRC_URI="https://github.com/AvtechScientific/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
55 +LICENSE="AGPL-3"
56 +SLOT="0"
57 +KEYWORDS="~amd64 ~x86"
58 +IUSE="doc examples matio"
59 +
60 +RDEPEND="
61 + >=dev-libs/boost-1.55:=
62 + >=sci-libs/vtk-6.1
63 + >=virtual/opencl-0-r2
64 +"
65 +DEPEND="${RDEPEND}
66 + doc? ( app-doc/doxygen[dot] )
67 + matio? ( >=sci-libs/matio-1.5.2 )
68 +"
69 +
70 +S="${WORKDIR}/${MY_PN}-${PV}"
71 +
72 +src_configure() {
73 + local mycmakeargs=(
74 + -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
75 + -DCMAKE_SKIP_RPATH=yes
76 + $(cmake-utils_use_with doc API_DOC)
77 + $(cmake-utils_use_with examples)
78 + $(cmake-utils_use_with matio)
79 + )
80 + cmake-utils_src_configure
81 +}
82 +
83 +src_install() {
84 + cmake-utils_src_install
85 +
86 + # examples are not installed by cmake :/
87 + if use examples; then
88 + local f
89 + cd "${CMAKE_USE_DIR}/examples" || die
90 + for f in $(find -O3 -type f -name "*.cc" -printf "%P\n" || die); do
91 + cp "${f}" "${BUILD_DIR}/examples/${f%%.cc}" || die
92 + done
93 + cp -a input_data "${BUILD_DIR}/examples" || die
94 +
95 + cd "${BUILD_DIR}/examples" || die
96 + chmod a-x input_data/multicomponent_flow.pvsm || die
97 + find -O3 -type f -name cmake_install.cmake -delete || die
98 + find -O3 -type d -name CMakeFiles -exec rm -rf '{}' \+ || die
99 +
100 + mkdir -p "${ED}/usr/share/${PN}/examples" || die
101 + cp -a . "${ED}/usr/share/${PN}/examples" || die
102 + fi
103 +}
104
105 diff --git a/sci-libs/asl/metadata.xml b/sci-libs/asl/metadata.xml
106 new file mode 100644
107 index 0000000..ab3f78d
108 --- /dev/null
109 +++ b/sci-libs/asl/metadata.xml
110 @@ -0,0 +1,31 @@
111 +<?xml version="1.0" encoding="UTF-8"?>
112 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
113 +<pkgmetadata>
114 +<herd>sci-physics</herd>
115 +<maintainer>
116 + <email>bircoph@g.o</email>
117 + <name>Andrew Savchenko</name>
118 +</maintainer>
119 +<longdescription lang="en">
120 + Advanced Simulation Library (ASL) is a free and open source
121 + multiphysics simulation software package. Its computational
122 + engine is based, among others, on the Lattice Boltzmann Methods
123 + and is written in OpenCL which enable extraordinarily efficient
124 + deployment on a variety of massively parallel architectures,
125 + ranging from inexpensive FPGAs, DSPs and GPUs up to heterogeneous
126 + clusters and supercomputers. The engine is hidden entirely behind
127 + C++ classes, so that no OpenCL knowledge is required from
128 + application programmers. ASL can be utilized to model various
129 + coupled physical and chemical phenomena and employed in a
130 + multitude of fields: computational fluid dynamics, virtual
131 + sensing, industrial process data validation and reconciliation,
132 + image-guided surgery, computer-aided engineering,
133 + high-performance scientific computing, etc.
134 +</longdescription>
135 +<use>
136 + <flag name="matio">Matlab support with <pkg>sci-libs/matio</pkg></flag>
137 +</use>
138 +<upstream>
139 + <remote-id type="github">AvtechScientific/ASL</remote-id>
140 +</upstream>
141 +</pkgmetadata>