blob: 7028cae194f0acc253e7f8cb83ce25d5c9daf381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic fortran-2 qmake-utils
DESCRIPTION="A mesh and field I/O library and scientific database"
HOMEPAGE="https://software.llnl.gov/Silo/"
SRC_URI="https://github.com/LLNL/Silo/releases/download/${PV}/${P}-bsd.tar.xz"
S="${WORKDIR}/${P}-bsd"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="browser +hdf5 +silex"
# see bugs 656432 and 741741
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
net-dialup/lrzsz
virtual/szip
hdf5? ( sci-libs/hdf5:= )
"
DEPEND="${RDEPEND}"
BDEPEND="dev-qt/linguist-tools:5"
PATCHES=(
"${FILESDIR}"/${PN}-4.11-test-disable-largefile.patch
"${FILESDIR}"/${PN}-4.11-tests.patch
"${FILESDIR}"/${PN}-4.11-testsuite-python-write.patch
"${FILESDIR}"/${PN}-4.11-widgets.patch
"${FILESDIR}"/${PN}-4.11-qtbindir.patch
"${FILESDIR}"/${PN}-4.11.1-gcc14-tests.patch
)
src_configure() {
# bug #862927 and https://github.com/LLNL/Silo/issues/248
append-flags -fno-strict-aliasing
filter-lto
# add fflags for fixing test bug on matf77.f
# see https://github.com/LLNL/Silo/issues/234
append-fflags $(test-flags-F77 -fallow-argument-mismatch)
CONFIG_SHELL="${BROOT}"/bin/bash \
QMAKE=$(qt5_get_bindir)/qmake \
QT_BIN_DIR=$(qt5_get_bindir) \
econf \
--enable-install-lite-headers \
--enable-shared \
$(use_enable silex silex ) \
$(use_enable browser browser ) \
$(use_with hdf5 hdf5 "${EPREFIX}"/usr/include,"${EPREFIX}"/usr/$(get_libdir) )
}
src_test() {
# see https://github.com/LLNL/Silo/issues/236
# some tests are skipped by default so we are gonna drop them directly
emake ATARGS="1-34 36-44 50-51 66-76 78-81" -C tests check
}
|