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/exodusii/files/, sci-libs/exodusii/
Date: Sun, 14 Oct 2018 13:35:31
Message-Id: 1539524105.80cceb37cdd7966792abb91376759b287fd95b94.asturm@gentoo
1 commit: 80cceb37cdd7966792abb91376759b287fd95b94
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 11:44:04 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 13:35:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80cceb37
7
8 sci-libs/exodusii: EAPI-6 bump, fix LIB_SUFFIX, unused cmake args
9
10 Fix dead HOMEPAGE, SRC_URI.
11
12 Closes: https://bugs.gentoo.org/644588
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15
16 sci-libs/exodusii/exodusii-6.09.ebuild | 29 +++++++++++-----------
17 .../exodusii/files/exodusii-6.09-multilib.patch | 18 +++++++-------
18 2 files changed, 24 insertions(+), 23 deletions(-)
19
20 diff --git a/sci-libs/exodusii/exodusii-6.09.ebuild b/sci-libs/exodusii/exodusii-6.09.ebuild
21 index a91a3e96e99..7f44f3f24c7 100644
22 --- a/sci-libs/exodusii/exodusii-6.09.ebuild
23 +++ b/sci-libs/exodusii/exodusii-6.09.ebuild
24 @@ -1,18 +1,17 @@
25 -# Copyright 1999-2016 Gentoo Foundation
26 +# Copyright 1999-2018 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 -EAPI=5
30 +EAPI=6
31
32 FORTRAN_NEEDED="test"
33 -
34 -inherit cmake-utils fortran-2 multilib
35 +inherit cmake-utils fortran-2
36
37 MY_PN="${PN%ii}"
38 MY_P="${MY_PN}-${PV}"
39
40 DESCRIPTION="Model developed to store and retrieve transient data for finite element analyses"
41 -HOMEPAGE="https://sourceforge.net/projects/exodusii/"
42 -SRC_URI="mirror://sourceforge/project/${PN}/${MY_P}.tar.gz"
43 +HOMEPAGE="https://github.com/certik/exodus"
44 +SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${MY_P}.tar.gz"
45
46 LICENSE="BSD"
47 SLOT="0"
48 @@ -29,21 +28,23 @@ S="${WORKDIR}"/${MY_P}/${MY_PN}
49 PATCHES=( "${FILESDIR}"/${P}-multilib.patch )
50
51 src_prepare() {
52 - use test || \
53 - sed \
54 - -e 's:Fortran::g' \
55 - -i CMakeLists.txt || die
56 cmake-utils_src_prepare
57 +
58 + if ! use test; then
59 + sed -e 's:Fortran::g' -i CMakeLists.txt || die
60 + fi
61 }
62
63 src_configure() {
64 + local libdir="$(get_libdir)"
65 +
66 local mycmakeargs=(
67 - -DLIB_INSTALL_DIR=$(get_libdir)
68 - -DNETCDF_DIR="${EPREFIX}/usr/"
69 + -DLIB_SUFFIX=${libdir#lib}
70 -DPYTHON_INSTALL="${EPREFIX}/usr/share/${PN}"
71 - $(cmake-utils_use_build !static-libs SHARED)
72 - $(cmake-utils_use_build test TESTING)
73 + -DBUILD_SHARED=$(usex !static-libs)
74 + -DBUILD_TESTING=$(usex test)
75 )
76 + export NETCDF_DIR="${EPREFIX}/usr/"
77 cmake-utils_src_configure
78 }
79
80
81 diff --git a/sci-libs/exodusii/files/exodusii-6.09-multilib.patch b/sci-libs/exodusii/files/exodusii-6.09-multilib.patch
82 index 3b1b5e2ace7..5463fba5001 100644
83 --- a/sci-libs/exodusii/files/exodusii-6.09-multilib.patch
84 +++ b/sci-libs/exodusii/files/exodusii-6.09-multilib.patch
85 @@ -1,6 +1,6 @@
86 -diff -Naur exodus-6.09.orig/exodus/cbind/CMakeLists.txt exodus-6.09/exodus/cbind/CMakeLists.txt
87 ---- exodus-6.09.orig/exodus/cbind/CMakeLists.txt 2016-05-10 13:20:06.408385120 -0600
88 -+++ exodus-6.09/exodus/cbind/CMakeLists.txt 2016-05-10 13:22:35.378385120 -0600
89 +diff -Naur a/cbind/CMakeLists.txt b/cbind/CMakeLists.txt
90 +--- a/cbind/CMakeLists.txt 2016-05-10 13:20:06.408385120 -0600
91 ++++ b/cbind/CMakeLists.txt 2016-05-10 13:22:35.378385120 -0600
92 @@ -293,9 +293,9 @@
93
94 IF(NOT EXODUS_INSTALL_NO_LIBRARIES)
95 @@ -14,9 +14,9 @@ diff -Naur exodus-6.09.orig/exodus/cbind/CMakeLists.txt exodus-6.09/exodus/cbind
96 INSTALL(FILES ${cbind_HEADERS} DESTINATION include COMPONENT Development)
97 ENDIF(NOT EXODUS_INSTALL_NO_LIBRARIES)
98
99 -diff -Naur exodus-6.09.orig/exodus/CMakeLists.txt exodus-6.09/exodus/CMakeLists.txt
100 ---- exodus-6.09.orig/exodus/CMakeLists.txt 2016-05-10 13:20:06.418385120 -0600
101 -+++ exodus-6.09/exodus/CMakeLists.txt 2016-05-10 13:21:25.928385120 -0600
102 +diff -Naur a/CMakeLists.txt b/CMakeLists.txt
103 +--- a/CMakeLists.txt 2016-05-10 13:20:06.418385120 -0600
104 ++++ b/CMakeLists.txt 2016-05-10 13:21:25.928385120 -0600
105 @@ -27,7 +27,7 @@
106 find_library( NETCDF_LIBRARY
107 NAMES netcdf
108 @@ -43,9 +43,9 @@ diff -Naur exodus-6.09.orig/exodus/CMakeLists.txt exodus-6.09/exodus/CMakeLists.
109 $ENV{NETCDF_DIR}/libsrc/.libs
110 /usr/local/hdf5/lib
111 )
112 -diff -Naur exodus-6.09.orig/exodus/forbind/CMakeLists.txt exodus-6.09/exodus/forbind/CMakeLists.txt
113 ---- exodus-6.09.orig/exodus/forbind/CMakeLists.txt 2016-05-10 13:20:06.418385120 -0600
114 -+++ exodus-6.09/exodus/forbind/CMakeLists.txt 2016-05-10 13:21:25.928385120 -0600
115 +diff -Naur a/forbind/CMakeLists.txt b/forbind/CMakeLists.txt
116 +--- a/forbind/CMakeLists.txt 2016-05-10 13:20:06.418385120 -0600
117 ++++ b/forbind/CMakeLists.txt 2016-05-10 13:21:25.928385120 -0600
118 @@ -14,7 +14,7 @@
119 find_library( NETCDF_LIBRARY
120 NAMES netcdf