diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2020-01-02 10:02:44 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2020-01-02 10:09:42 -0500 |
commit | 46dcd8b7ddede5fed198022282a445a0a7498dea (patch) | |
tree | 1b3396af3e97952eb8c655318d5c2bd1ea349cec /sci-mathematics | |
parent | sys-kernel/gentoo-sources: Clean-up of the 4.14.X series (diff) | |
download | gentoo-46dcd8b7ddede5fed198022282a445a0a7498dea.tar.gz gentoo-46dcd8b7ddede5fed198022282a445a0a7498dea.tar.bz2 gentoo-46dcd8b7ddede5fed198022282a445a0a7498dea.zip |
sci-mathematics/lrcalc: new package for Littlewood-Richardson coeffs.
This package was imported from the sage-on-gentoo overlay with only a
few changes:
* Updated from EAPI=6 to EAPI=7.
* Enabled the test suite, which passes for me.
* Changed the HOMEPAGE/SRC_URI to use HTTPS, and follow a redirect.
* Updated LICENSE from GPL-2 to GPL-2+ based on the upstream
LICENSE file.
The SageMath package can detect and use lrcalc from the system, so
having this package installed will help Gentoo users of SageMath avoid
pointless rebuilds of lrcalc.
Closes: https://bugs.gentoo.org/704572
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/lrcalc/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch | 90 | ||||
-rw-r--r-- | sci-mathematics/lrcalc/lrcalc-1.2.ebuild | 25 | ||||
-rw-r--r-- | sci-mathematics/lrcalc/metadata.xml | 24 |
4 files changed, 140 insertions, 0 deletions
diff --git a/sci-mathematics/lrcalc/Manifest b/sci-mathematics/lrcalc/Manifest new file mode 100644 index 000000000000..b678d8341475 --- /dev/null +++ b/sci-mathematics/lrcalc/Manifest @@ -0,0 +1 @@ +DIST lrcalc-1.2.tar.gz 363120 BLAKE2B d3f652abfe38e81331dcbac7068d087b198445bf02dc5ccb5bcbd76b9bbc329687209e6ccf40ecd09f166e7d2da054edd0e5c2b18503d8e4d961ae4ad91b5152 SHA512 699f4c2ddabe5879542d5c11f3df3979a4e009ad37741711a70fb48b4a0d4a7969e5bb110adb63d4473f3c2b61d1efdb7228a6b74c5dd7e1b5aea8cf1d170fab diff --git a/sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch b/sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch new file mode 100644 index 000000000000..707da176a60f --- /dev/null +++ b/sci-mathematics/lrcalc/files/lrcalc-1.2-includes.patch @@ -0,0 +1,90 @@ +From 4a5e1c8c3c11efdb1cbb4239825a6bf4bf1c52f8 Mon Sep 17 00:00:00 2001 +From: Anders Skovsted Buch <asbuch@math.rutgers.edu> +Date: Sun, 29 Nov 2015 16:25:56 -0500 +Subject: [PATCH] Patch by Jeroen Demeyer to change include <vector.h> to + "vector.h", plus similar cases. + +--- + src/lrcalc.c | 2 +- + src/maple.c | 4 ++-- + src/schublib.h | 2 +- + src/symfcn.c | 6 +++--- + src/symfcn.h | 4 ++-- + 5 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/src/lrcalc.c b/src/lrcalc.c +index aff3f75..60df49e 100644 +--- a/src/lrcalc.c ++++ b/src/lrcalc.c +@@ -8,7 +8,7 @@ + #include <stdlib.h> + extern char *optarg; + +-#include <vectarg.h> ++#include "vectarg.h" + + #include "symfcn.h" + #include "maple.h" +diff --git a/src/maple.c b/src/maple.c +index fdc0768..a5f4d14 100644 +--- a/src/maple.c ++++ b/src/maple.c +@@ -4,8 +4,8 @@ + */ + + #include <stdio.h> +-#include <vector.h> +-#include <hashtab.h> ++#include "vector.h" ++#include "hashtab.h" + #include "maple.h" + + +diff --git a/src/schublib.h b/src/schublib.h +index a8e8511..864850c 100644 +--- a/src/schublib.h ++++ b/src/schublib.h +@@ -1,7 +1,7 @@ + #ifndef _SCHUBLIB_H + #define _SCHUBLIB_H + +-#include <hashtab.h> ++#include "hashtab.h" + + hashtab *trans(vector *w, int vars, hashtab *res); + hashtab *monk(int i, hashtab *slc, int rank); +diff --git a/src/symfcn.c b/src/symfcn.c +index 4ffbe4b..fd5df5d 100644 +--- a/src/symfcn.c ++++ b/src/symfcn.c +@@ -5,9 +5,9 @@ + + #include <stdio.h> + +-#include <alloc.h> +-#include <vector.h> +-#include <hashtab.h> ++#include "alloc.h" ++#include "vector.h" ++#include "hashtab.h" + + #include "symfcn.h" + +diff --git a/src/symfcn.h b/src/symfcn.h +index b8543b1..29bb00d 100644 +--- a/src/symfcn.h ++++ b/src/symfcn.h +@@ -1,8 +1,8 @@ + #ifndef _SYMFCN_H + #define _SYMFCN_H + +-#include <hashtab.h> +-#include <vector.h> ++#include "hashtab.h" ++#include "vector.h" + + int part_itr_sz(vector *part); + int part_itr_sub(vector *part, vector *outer); +-- +2.1.1.1.g1fb337f + diff --git a/sci-mathematics/lrcalc/lrcalc-1.2.ebuild b/sci-mathematics/lrcalc/lrcalc-1.2.ebuild new file mode 100644 index 000000000000..30805331116a --- /dev/null +++ b/sci-mathematics/lrcalc/lrcalc-1.2.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Littlewood-Richardson Calculator" +HOMEPAGE="https://sites.math.rutgers.edu/~asbuch/lrcalc/" +SRC_URI="${HOMEPAGE}${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}/${PN}-1.2-includes.patch" ) + +src_configure(){ + econf $(use_enable static-libs static) +} + +src_install(){ + default + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-mathematics/lrcalc/metadata.xml b/sci-mathematics/lrcalc/metadata.xml new file mode 100644 index 000000000000..c070753f1162 --- /dev/null +++ b/sci-mathematics/lrcalc/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + </maintainer> + <!-- + mjo: François maintained this package in the sage-on-gentoo overlay + long before I moved it into ::gentoo. You don't need an ACK from me + to merge his changes. + --> + <maintainer type="person"> + <email>frp.bissey@gmail.com</email> + <name>François Bissey</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + The "Littlewood-Richardson Calculator" is a package of C and Maple + programs for computing Littlewood-Richardson coefficients + </longdescription> +</pkgmetadata> |