Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/xdmf2/
Date: Fri, 05 Jun 2020 00:39:55
Message-Id: 1591317564.d7a85e1f78219f0d5b2603f422d6e33297aaf68c.asturm@gentoo
1 commit: d7a85e1f78219f0d5b2603f422d6e33297aaf68c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 4 22:58:16 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 5 00:39:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7a85e1f
7
8 sci-libs/xdmf2: Drop eternally broken IUSE=python, EAPI-7 bump
9
10 - Switch to cmake.eclass
11 - Drop ~arm keyword (no revdeps)
12 - Drop obsolete c++14 flag
13
14 Closes: https://bugs.gentoo.org/664920
15 Package-Manager: Portage-2.3.100, Repoman-2.3.22
16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
17
18 sci-libs/xdmf2/xdmf2-1.0_p141226-r4.ebuild | 57 ++++++++++++++++++++++++++++++
19 1 file changed, 57 insertions(+)
20
21 diff --git a/sci-libs/xdmf2/xdmf2-1.0_p141226-r4.ebuild b/sci-libs/xdmf2/xdmf2-1.0_p141226-r4.ebuild
22 new file mode 100644
23 index 00000000000..e196d6f8dd2
24 --- /dev/null
25 +++ b/sci-libs/xdmf2/xdmf2-1.0_p141226-r4.ebuild
26 @@ -0,0 +1,57 @@
27 +# Copyright 1999-2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +inherit cmake
33 +
34 +DESCRIPTION="eXtensible Data Model and Format"
35 +HOMEPAGE="http://xdmf.org/index.php/Main_Page"
36 +SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
37 +
38 +LICENSE="VTK"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
41 +IUSE="doc test"
42 +
43 +RESTRICT="!test? ( test )"
44 +
45 +BDEPEND="
46 + doc? ( app-doc/doxygen )
47 +"
48 +RDEPEND="
49 + dev-libs/boost:=
50 + dev-libs/libxml2:2
51 + sci-libs/hdf5:=
52 +"
53 +DEPEND="${RDEPEND}"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${P}-module.patch
57 + "${FILESDIR}"/${P}-cannot-find-hdf5-bug-591302.patch
58 + "${FILESDIR}"/${P}-cmake-3.12.patch
59 +)
60 +
61 +src_prepare() {
62 + sed \
63 + -e "/DESTINATION/s:lib:$(get_libdir):g" \
64 + -e "/INSTALL/s:lib:$(get_libdir):g" \
65 + -i CMakeLists.txt core/CMakeLists.txt || die
66 + cmake_src_prepare
67 +}
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + -DBUILD_SHARED_LIBS=1
72 + -DXDMF_BUILD_DOCUMENTATION=$(usex doc)
73 + -DBUILD_TESTING=$(usex test)
74 + -DXDMF_WRAP_PYTHON=OFF
75 + -DXDMF_WRAP_JAVA=OFF
76 + )
77 + cmake_src_configure
78 +}
79 +
80 +src_install() {
81 + cmake_src_install
82 + dosym XdmfConfig.cmake /usr/share/cmake/Modules/${PN}Config.cmake
83 +}