1 |
commit: 46dcd8b7ddede5fed198022282a445a0a7498dea |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 2 15:02:44 2020 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 2 15:09:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46dcd8b7 |
7 |
|
8 |
sci-mathematics/lrcalc: new package for Littlewood-Richardson coeffs. |
9 |
|
10 |
This package was imported from the sage-on-gentoo overlay with only a |
11 |
few changes: |
12 |
|
13 |
* Updated from EAPI=6 to EAPI=7. |
14 |
* Enabled the test suite, which passes for me. |
15 |
* Changed the HOMEPAGE/SRC_URI to use HTTPS, and follow a redirect. |
16 |
* Updated LICENSE from GPL-2 to GPL-2+ based on the upstream |
17 |
LICENSE file. |
18 |
|
19 |
The SageMath package can detect and use lrcalc from the system, so |
20 |
having this package installed will help Gentoo users of SageMath avoid |
21 |
pointless rebuilds of lrcalc. |
22 |
|
23 |
Closes: https://bugs.gentoo.org/704572 |
24 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
25 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
26 |
|
27 |
sci-mathematics/lrcalc/Manifest | 1 + |
28 |
.../lrcalc/files/lrcalc-1.2-includes.patch | 90 ++++++++++++++++++++++ |
29 |
sci-mathematics/lrcalc/lrcalc-1.2.ebuild | 25 ++++++ |
30 |
sci-mathematics/lrcalc/metadata.xml | 24 ++++++ |
31 |
4 files changed, 140 insertions(+) |
32 |
|
33 |
diff --git a/sci-mathematics/lrcalc/Manifest b/sci-mathematics/lrcalc/Manifest |
34 |
new file mode 100644 |
35 |
index 00000000000..b678d834147 |
36 |
--- /dev/null |
37 |
+++ b/sci-mathematics/lrcalc/Manifest |
38 |
@@ -0,0 +1 @@ |
39 |
+DIST lrcalc-1.2.tar.gz 363120 BLAKE2B d3f652abfe38e81331dcbac7068d087b198445bf02dc5ccb5bcbd76b9bbc329687209e6ccf40ecd09f166e7d2da054edd0e5c2b18503d8e4d961ae4ad91b5152 SHA512 699f4c2ddabe5879542d5c11f3df3979a4e009ad37741711a70fb48b4a0d4a7969e5bb110adb63d4473f3c2b61d1efdb7228a6b74c5dd7e1b5aea8cf1d170fab |
40 |
|
41 |
diff --git a/sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch b/sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch |
42 |
new file mode 100644 |
43 |
index 00000000000..707da176a60 |
44 |
--- /dev/null |
45 |
+++ b/sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch |
46 |
@@ -0,0 +1,90 @@ |
47 |
+From 4a5e1c8c3c11efdb1cbb4239825a6bf4bf1c52f8 Mon Sep 17 00:00:00 2001 |
48 |
+From: Anders Skovsted Buch <asbuch@××××××××××××.edu> |
49 |
+Date: Sun, 29 Nov 2015 16:25:56 -0500 |
50 |
+Subject: [PATCH] Patch by Jeroen Demeyer to change include <vector.h> to |
51 |
+ "vector.h", plus similar cases. |
52 |
+ |
53 |
+--- |
54 |
+ src/lrcalc.c | 2 +- |
55 |
+ src/maple.c | 4 ++-- |
56 |
+ src/schublib.h | 2 +- |
57 |
+ src/symfcn.c | 6 +++--- |
58 |
+ src/symfcn.h | 4 ++-- |
59 |
+ 5 files changed, 9 insertions(+), 9 deletions(-) |
60 |
+ |
61 |
+diff --git a/src/lrcalc.c b/src/lrcalc.c |
62 |
+index aff3f75..60df49e 100644 |
63 |
+--- a/src/lrcalc.c |
64 |
++++ b/src/lrcalc.c |
65 |
+@@ -8,7 +8,7 @@ |
66 |
+ #include <stdlib.h> |
67 |
+ extern char *optarg; |
68 |
+ |
69 |
+-#include <vectarg.h> |
70 |
++#include "vectarg.h" |
71 |
+ |
72 |
+ #include "symfcn.h" |
73 |
+ #include "maple.h" |
74 |
+diff --git a/src/maple.c b/src/maple.c |
75 |
+index fdc0768..a5f4d14 100644 |
76 |
+--- a/src/maple.c |
77 |
++++ b/src/maple.c |
78 |
+@@ -4,8 +4,8 @@ |
79 |
+ */ |
80 |
+ |
81 |
+ #include <stdio.h> |
82 |
+-#include <vector.h> |
83 |
+-#include <hashtab.h> |
84 |
++#include "vector.h" |
85 |
++#include "hashtab.h" |
86 |
+ #include "maple.h" |
87 |
+ |
88 |
+ |
89 |
+diff --git a/src/schublib.h b/src/schublib.h |
90 |
+index a8e8511..864850c 100644 |
91 |
+--- a/src/schublib.h |
92 |
++++ b/src/schublib.h |
93 |
+@@ -1,7 +1,7 @@ |
94 |
+ #ifndef _SCHUBLIB_H |
95 |
+ #define _SCHUBLIB_H |
96 |
+ |
97 |
+-#include <hashtab.h> |
98 |
++#include "hashtab.h" |
99 |
+ |
100 |
+ hashtab *trans(vector *w, int vars, hashtab *res); |
101 |
+ hashtab *monk(int i, hashtab *slc, int rank); |
102 |
+diff --git a/src/symfcn.c b/src/symfcn.c |
103 |
+index 4ffbe4b..fd5df5d 100644 |
104 |
+--- a/src/symfcn.c |
105 |
++++ b/src/symfcn.c |
106 |
+@@ -5,9 +5,9 @@ |
107 |
+ |
108 |
+ #include <stdio.h> |
109 |
+ |
110 |
+-#include <alloc.h> |
111 |
+-#include <vector.h> |
112 |
+-#include <hashtab.h> |
113 |
++#include "alloc.h" |
114 |
++#include "vector.h" |
115 |
++#include "hashtab.h" |
116 |
+ |
117 |
+ #include "symfcn.h" |
118 |
+ |
119 |
+diff --git a/src/symfcn.h b/src/symfcn.h |
120 |
+index b8543b1..29bb00d 100644 |
121 |
+--- a/src/symfcn.h |
122 |
++++ b/src/symfcn.h |
123 |
+@@ -1,8 +1,8 @@ |
124 |
+ #ifndef _SYMFCN_H |
125 |
+ #define _SYMFCN_H |
126 |
+ |
127 |
+-#include <hashtab.h> |
128 |
+-#include <vector.h> |
129 |
++#include "hashtab.h" |
130 |
++#include "vector.h" |
131 |
+ |
132 |
+ int part_itr_sz(vector *part); |
133 |
+ int part_itr_sub(vector *part, vector *outer); |
134 |
+-- |
135 |
+2.1.1.1.g1fb337f |
136 |
+ |
137 |
|
138 |
diff --git a/sci-mathematics/lrcalc/lrcalc-1.2.ebuild b/sci-mathematics/lrcalc/lrcalc-1.2.ebuild |
139 |
new file mode 100644 |
140 |
index 00000000000..30805331116 |
141 |
--- /dev/null |
142 |
+++ b/sci-mathematics/lrcalc/lrcalc-1.2.ebuild |
143 |
@@ -0,0 +1,25 @@ |
144 |
+# Copyright 1999-2020 Gentoo Authors |
145 |
+# Distributed under the terms of the GNU General Public License v2 |
146 |
+ |
147 |
+EAPI=7 |
148 |
+ |
149 |
+DESCRIPTION="Littlewood-Richardson Calculator" |
150 |
+HOMEPAGE="https://sites.math.rutgers.edu/~asbuch/lrcalc/" |
151 |
+SRC_URI="${HOMEPAGE}${P}.tar.gz" |
152 |
+ |
153 |
+LICENSE="GPL-2+" |
154 |
+SLOT="0/1" |
155 |
+KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos" |
156 |
+IUSE="static-libs test" |
157 |
+RESTRICT="!test? ( test )" |
158 |
+ |
159 |
+PATCHES=( "${FILESDIR}/${PN}-1.2-includes.patch" ) |
160 |
+ |
161 |
+src_configure(){ |
162 |
+ econf $(use_enable static-libs static) |
163 |
+} |
164 |
+ |
165 |
+src_install(){ |
166 |
+ default |
167 |
+ find "${ED}" -name '*.la' -delete || die |
168 |
+} |
169 |
|
170 |
diff --git a/sci-mathematics/lrcalc/metadata.xml b/sci-mathematics/lrcalc/metadata.xml |
171 |
new file mode 100644 |
172 |
index 00000000000..c070753f116 |
173 |
--- /dev/null |
174 |
+++ b/sci-mathematics/lrcalc/metadata.xml |
175 |
@@ -0,0 +1,24 @@ |
176 |
+<?xml version="1.0" encoding="UTF-8"?> |
177 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
178 |
+<pkgmetadata> |
179 |
+ <maintainer type="person"> |
180 |
+ <email>mjo@g.o</email> |
181 |
+ </maintainer> |
182 |
+ <!-- |
183 |
+ mjo: François maintained this package in the sage-on-gentoo overlay |
184 |
+ long before I moved it into ::gentoo. You don't need an ACK from me |
185 |
+ to merge his changes. |
186 |
+ --> |
187 |
+ <maintainer type="person"> |
188 |
+ <email>frp.bissey@×××××.com</email> |
189 |
+ <name>François Bissey</name> |
190 |
+ </maintainer> |
191 |
+ <maintainer type="project"> |
192 |
+ <email>proxy-maint@g.o</email> |
193 |
+ <name>Proxy Maintainers</name> |
194 |
+ </maintainer> |
195 |
+ <longdescription lang="en"> |
196 |
+ The "Littlewood-Richardson Calculator" is a package of C and Maple |
197 |
+ programs for computing Littlewood-Richardson coefficients |
198 |
+ </longdescription> |
199 |
+</pkgmetadata> |