Merge pull request #82239 from timokau/symmetrica-3.0.1
symmetrica: 2.0 -> 3.0.1
This commit is contained in:
commit
6687d1e638
@ -1,62 +1,36 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, lib
|
||||||
|
, fetchFromGitLab
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, autoreconfHook
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "symmetrica";
|
pname = "symmetrica";
|
||||||
version = "2.0";
|
version = "3.0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
# Fork of the original symmetrica, which can be found here
|
||||||
url = "http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/SYM2_0_tar.gz";
|
# http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/index.html
|
||||||
sha256 = "1qhfrbd5ybb0sinl9pad64rscr08qvlfzrzmi4p4hk61xn6phlmz";
|
# "This fork was created to modernize the codebase, and to resume making
|
||||||
name = "symmetrica-2.0.tar.gz";
|
# releases with the fixes that have accrued over the years."
|
||||||
|
# Also see https://trac.sagemath.org/ticket/29061#comment:3.
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "sagemath";
|
||||||
|
repo = "symmetrica";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0wfmrzw82f5i91d7rf24mcdqcj2fmgrgy02pw4pliz7ncwaq14w3";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = ".";
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
patches = [
|
|
||||||
# don't show banner ("SYMMETRICA VERSION X - STARTING)
|
|
||||||
# it doesn't contain very much helpful information and a banner is not ideal for a library
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/symmetrica/patches/de.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
|
|
||||||
sha256 = "0df0vqixcfpzny6dkhyj87h8aznz3xn3zfwwlj8pd10bpb90k6gb";
|
|
||||||
})
|
|
||||||
|
|
||||||
# use int32_t and uint32_t for type INT
|
|
||||||
# see https://trac.sagemath.org/ticket/13413
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix_64bit_integer_overflow.patch";
|
|
||||||
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/symmetrica/patches/int32.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
|
|
||||||
sha256 = "0p33c85ck4kd453z687ni4bdcqr1pqx2756j7aq11bf63vjz4cyz";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/symmetrica/patches/return_values.patch?id=1615f58890e8f9881c4228c78a6b39b9aab1303a";
|
|
||||||
sha256 = "0dmczkicwl50sivc07w3wm3jpfk78wm576dr25999jdj2ipsb7nk";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace makefile --replace gcc cc
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installPhase = ''
|
meta = with lib; {
|
||||||
mkdir -p "$out"/{lib,share/doc/symmetrica,include/symmetrica}
|
|
||||||
ar crs libsymmetrica.a *.o
|
|
||||||
ranlib libsymmetrica.a
|
|
||||||
cp libsymmetrica.a "$out/lib"
|
|
||||||
cp *.h "$out/include/symmetrica"
|
|
||||||
cp README *.doc "$out/share/doc/symmetrica"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
inherit version;
|
|
||||||
description = ''A collection of routines for representation theory and combinatorics'';
|
description = ''A collection of routines for representation theory and combinatorics'';
|
||||||
license = stdenv.lib.licenses.publicDomain;
|
license = licenses.isc;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = with maintainers; [raskin timokau];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
homepage = http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/index.html;
|
homepage = "https://gitlab.com/sagemath/symmetrica";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user