1 |
commit: 50ce8988e7554b08f62795c2bec36023585d6a89 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 29 02:40:40 2020 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 2 17:20:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50ce8988 |
7 |
|
8 |
sci-libs/cxsparse: new version 3.2.0. |
9 |
|
10 |
Update to EAPI=7 and fix the HOMEPAGE, SRC_URI, and LICENSE. This is |
11 |
part of a larger SuiteSparse v5.4.0 upgrade thanks to François Bissey |
12 |
whose sage-on-gentoo ebuilds I'm using. There's a newer release |
13 |
(v5.7.1) of SuiteSparse, but v5.4.0 has seen more testing. |
14 |
|
15 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
16 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
17 |
|
18 |
sci-libs/cxsparse/Manifest | 1 + |
19 |
sci-libs/cxsparse/cxsparse-3.2.0.ebuild | 32 ++++++++++++++++++++++ |
20 |
.../cxsparse/files/cxsparse-3.2.0-header.patch | 17 ++++++++++++ |
21 |
3 files changed, 50 insertions(+) |
22 |
|
23 |
diff --git a/sci-libs/cxsparse/Manifest b/sci-libs/cxsparse/Manifest |
24 |
index 13e4af9eaf2..9a888d1cbd7 100644 |
25 |
--- a/sci-libs/cxsparse/Manifest |
26 |
+++ b/sci-libs/cxsparse/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST cxsparse-3.1.2.tar.bz2 2004570 BLAKE2B 4f1874e83faa1d831fce3847b82aeb67ae96e59b635489eceed3ed08a0fd0aaef7b0c9e40142f96ae5c7820a75bfb58b4d6a741c742b5a85dd6d8e4d78960be9 SHA512 dd3c5e31997564387b6145eaf2069c01e2ae8de384cd775a13ac7ccf03a83b6d0b8bf156a6645547f230dd13fc159d14203a4adcbe65703c154f35ecb161b6e9 |
29 |
+DIST cxsparse-3.2.0.tar.bz2 2080196 BLAKE2B 9b89469c45e518077c4348ad3efd8d89d248e4c039057c0286ee44b493ab595075894d01530cbfbe845b91ef5e43cfbfdd102721cfeefe943a1cb4bc5f171843 SHA512 9931dac5b319b61a39ccb5f34309acb4240602b5f55d029c790ed0b7319a373cb925c4b83994526af4bc5b19b88c723f04581068d1fc80960a290c9d6d1e1aef |
30 |
|
31 |
diff --git a/sci-libs/cxsparse/cxsparse-3.2.0.ebuild b/sci-libs/cxsparse/cxsparse-3.2.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..5c8ca14041e |
34 |
--- /dev/null |
35 |
+++ b/sci-libs/cxsparse/cxsparse-3.2.0.ebuild |
36 |
@@ -0,0 +1,32 @@ |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+inherit multilib-minimal |
43 |
+ |
44 |
+DESCRIPTION="Extended sparse matrix package" |
45 |
+HOMEPAGE="http://faculty.cse.tamu.edu/davis/suitesparse.html" |
46 |
+SRC_URI="http://202.36.178.9/sage/${P}.tar.bz2" |
47 |
+ |
48 |
+LICENSE="LGPL-2.1+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
51 |
+IUSE="static-libs" |
52 |
+ |
53 |
+BDEPEND="virtual/pkgconfig" |
54 |
+DEPEND=">=sci-libs/suitesparseconfig-5.4.0[${MULTILIB_USEDEP}]" |
55 |
+RDEPEND="${DEPEND}" |
56 |
+ |
57 |
+PATCHES=( "${FILESDIR}/${PN}-3.2.0-header.patch" ) |
58 |
+ |
59 |
+multilib_src_configure() { |
60 |
+ ECONF_SOURCE="${S}" econf $(use_enable static-libs static) |
61 |
+} |
62 |
+ |
63 |
+multilib_src_install_all() { |
64 |
+ einstalldocs |
65 |
+ |
66 |
+ # package provides .pc files |
67 |
+ find "${D}" -name '*.la' -delete || die |
68 |
+} |
69 |
|
70 |
diff --git a/sci-libs/cxsparse/files/cxsparse-3.2.0-header.patch b/sci-libs/cxsparse/files/cxsparse-3.2.0-header.patch |
71 |
new file mode 100644 |
72 |
index 00000000000..0eaaeda69fd |
73 |
--- /dev/null |
74 |
+++ b/sci-libs/cxsparse/files/cxsparse-3.2.0-header.patch |
75 |
@@ -0,0 +1,17 @@ |
76 |
+diff --git a/CXSparse/Include/cs.h b/CXSparse/Include/cs.h |
77 |
+index a47ee115..dbdf3017 100644 |
78 |
+--- a/Include/cs.h |
79 |
++++ b/Include/cs.h |
80 |
+@@ -43,9 +43,9 @@ extern "C" { |
81 |
+ #endif |
82 |
+ |
83 |
+ #define CS_VER 3 /* CXSparse Version */ |
84 |
+-#define CS_SUBVER 1 |
85 |
+-#define CS_SUBSUB 9 |
86 |
+-#define CS_DATE "May 4, 2016" /* CXSparse release date */ |
87 |
++#define CS_SUBVER 2 |
88 |
++#define CS_SUBSUB 0 |
89 |
++#define CS_DATE "Sept 12, 2017" /* CSparse release date */ |
90 |
+ #define CS_COPYRIGHT "Copyright (c) Timothy A. Davis, 2006-2016" |
91 |
+ #define CXSPARSE |
92 |
+ |