From 1b75402d26fe9b57c48d7e2b430bac54bcc49037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 13:02:49 -0300 Subject: [PATCH 1/8] pari-elldata: update to 20210301. Also: - fix license - change homepage and use https for downloads - rename distfiles to include version in name - compress files (installed-size: 157M -> 57M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - split a reasonable small subset as pari-elldata-small (1.8M vs 57M) - add update file - change of maintainer agreed by motorto --- srcpkgs/pari-elldata-small | 1 + srcpkgs/pari-elldata/template | 33 ++++++++++++++++++++++++--------- srcpkgs/pari-elldata/update | 3 +++ 3 files changed, 28 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/pari-elldata-small create mode 100644 srcpkgs/pari-elldata/update diff --git a/srcpkgs/pari-elldata-small b/srcpkgs/pari-elldata-small new file mode 120000 index 000000000000..b202971d614e --- /dev/null +++ b/srcpkgs/pari-elldata-small @@ -0,0 +1 @@ +pari-elldata \ No newline at end of file diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template index 8bbe310b1e34..12e0d21dc7e8 100644 --- a/srcpkgs/pari-elldata/template +++ b/srcpkgs/pari-elldata/template @@ -1,17 +1,32 @@ # Template file for 'pari-elldata' pkgname=pari-elldata -version=20190912 +version=20210301 revision=1 create_wrksrc=yes -depends="pari" +depends="pari-elldata-small" short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data" -maintainer="André Cerqueira " -license="GPL-3.0-or-later" -homepage="http://pari.math.u-bordeaux.fr/" -distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz" -checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4 +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz" +checksum=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6 + +do_build() { + # compressed data files work ok (install-size: 156M -> 57M) + find data -type f -size +4k -print0 | xargs -0 gzip -9 +} do_install() { - vmkdir usr/share/pari - vcopy data/elldata usr/share/pari + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari +} + +pari-elldata-small_package() { + short_desc+=" - conductors up to 20000" + pkg_install() { + # a reasonable small subset (1.8M) + vmove "usr/share/pari/elldata/ell?.gz" + vmove "usr/share/pari/elldata/ell1?.gz" + vmove usr/share/pari/elldata/README + } } diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update new file mode 100644 index 000000000000..bea0b3258ee5 --- /dev/null +++ b/srcpkgs/pari-elldata/update @@ -0,0 +1,3 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} From e896c1c02e8f69b9b55314ec45c532e992707e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 18:10:27 -0300 Subject: [PATCH 2/8] pari-galdata: several improvements - fix license - change homepage - rename distfiles to include version in name - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add update file - change of maintainer agreed by motorto --- srcpkgs/pari-galdata/template | 17 ++++++++--------- srcpkgs/pari-galdata/update | 5 +++++ 2 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/pari-galdata/update diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template index 63d930104b1a..fc76df875e31 100644 --- a/srcpkgs/pari-galdata/template +++ b/srcpkgs/pari-galdata/template @@ -1,17 +1,16 @@ # Template file for 'pari-galdata' pkgname=pari-galdata version=20080411 -revision=1 +revision=2 create_wrksrc=yes -depends="pari" -short_desc="PARI database needed to compute Galois group in degrees 8 through 11" -maintainer="André Cerqueira " -license="GPL-3.0-or-later" -homepage="https://pari.math.u-bordeaux.fr/" -distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz" +short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz" checksum=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd do_install() { - vmkdir usr/share/pari/galdata - vcopy data/galdata usr/share/pari + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari } diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update new file mode 100644 index 000000000000..c34e5c8bc800 --- /dev/null +++ b/srcpkgs/pari-galdata/update @@ -0,0 +1,5 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} +# the current version 20080411 is reported as 2008-04-12 by website +ignore=2008-04-12 From 542394fe4243a33637fd3d0d268721d3538c7318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 18:19:24 -0300 Subject: [PATCH 3/8] pari-galpol: several improvements - fix license - change homepage and use https for downloads - rename distfiles to include version in name - compress files (installed-size: 80M -> 73M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - skip slow post-install hooks since pkg contains 14681 data files - split a small subset as pari-galpol-small (12M vs 73M) - add update file - change of maintainer agreed by motorto --- srcpkgs/pari-galpol-small | 1 + srcpkgs/pari-galpol/template | 40 +++++++++++++++++++++++++++--------- srcpkgs/pari-galpol/update | 3 +++ 3 files changed, 34 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/pari-galpol-small create mode 100644 srcpkgs/pari-galpol/update diff --git a/srcpkgs/pari-galpol-small b/srcpkgs/pari-galpol-small new file mode 120000 index 000000000000..b4ab81425fe1 --- /dev/null +++ b/srcpkgs/pari-galpol-small @@ -0,0 +1 @@ +pari-galpol \ No newline at end of file diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template index a3c5a0882634..8cbb5d684ca9 100644 --- a/srcpkgs/pari-galpol/template +++ b/srcpkgs/pari-galpol/template @@ -1,18 +1,38 @@ # Template file for 'pari-galpol' pkgname=pari-galpol version=20180625 -revision=1 +revision=2 create_wrksrc=yes -depends="pari" -short_desc="PARI package of the GALPOL database of polynomials" -maintainer="André Cerqueira " -license="GPL-3.0-or-later" -homepage="http://pari.math.u-bordeaux.fr/" -distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz" +depends="pari-galpol-small" +short_desc="PARI/GP package of the GALPOL database of polynomials" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz" checksum=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b -nostrip=yes +# skip slow post-install hooks for 14681 files: saves ~ 3m in install +nostrip=yes # skip 06-strip-and-debug-pkgs +ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare + +do_build() { + # compressed data files work ok (install-size: 80M -> 73M) + find data -type f -size +4k -print0 | xargs -0 gzip -9 +} do_install() { - vmkdir usr/share/pari - vcopy data/galpol usr/share/pari + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari +} + +pari-galpol-small_package() { + short_desc+=" - groups of order up to 64" + nostrip=yes + ignore_elf_dirs=/usr/share/pari + pkg_install() { + # a subset enough for testing (12M) + vmove "usr/share/pari/galpol/?" + vmove "usr/share/pari/galpol/[1-5]?" + vmove "usr/share/pari/galpol/6[0-4]" + vmove usr/share/pari/galpol/README + } } diff --git a/srcpkgs/pari-galpol/update b/srcpkgs/pari-galpol/update new file mode 100644 index 000000000000..bea0b3258ee5 --- /dev/null +++ b/srcpkgs/pari-galpol/update @@ -0,0 +1,3 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} From 6bae545bfb43246c0c1b3b0c558fb7b4ea01643e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 18:32:15 -0300 Subject: [PATCH 4/8] pari-seadata: several improvements - fix license - change homepage and use https for downloads - rename distfiles to include version in name - compress files (installed-size: 40M -> 19M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add a smaller subpkg pari-seadata-small as in upstream (668k vs 19M) - add update file - change of maintainer agreed by motorto --- srcpkgs/pari-seadata-small | 1 + srcpkgs/pari-seadata/template | 34 +++++++++++++++++++++++++--------- srcpkgs/pari-seadata/update | 3 +++ 3 files changed, 29 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/pari-seadata-small create mode 100644 srcpkgs/pari-seadata/update diff --git a/srcpkgs/pari-seadata-small b/srcpkgs/pari-seadata-small new file mode 120000 index 000000000000..319551467468 --- /dev/null +++ b/srcpkgs/pari-seadata-small @@ -0,0 +1 @@ +pari-seadata \ No newline at end of file diff --git a/srcpkgs/pari-seadata/template b/srcpkgs/pari-seadata/template index 3c836eafc156..e0221e5fd7b0 100644 --- a/srcpkgs/pari-seadata/template +++ b/srcpkgs/pari-seadata/template @@ -1,17 +1,33 @@ # Template file for 'pari-seadata' pkgname=pari-seadata version=20090618 -revision=3 +revision=4 create_wrksrc=yes -depends="pari" -short_desc="PARI/GP package needed by ellap for large primes up to 750 bit" -maintainer="André Cerqueira " -license="GPL-3.0-or-later" -homepage="http://pari.math.u-bordeaux.fr/packages.html" -distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz" +depends="pari-seadata-small" +short_desc="PARI/GP package needed by ellap for large primes up to 750 bits" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz" checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833 +do_build() { + # compressed data files work ok (install-size: 40M -> 19M) + find data -type f -size +4k -print0 | xargs -0 gzip -9 +} + do_install() { - vmkdir usr/share/pari/seadata - vcopy data/seadata/sea* usr/share/pari/seadata + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari +} + +pari-seadata-small_package() { + short_desc="PARI/GP package needed by ellap for large primes up to 350 bits" + pkg_install() { + # much smaller version suitable for primes up to 350 bits. + # identical to seadata-small.tgz in pari packages (668k) + vmove usr/share/pari/seadata/sea2 + vmove usr/share/pari/seadata/sea0.gz + vmove usr/share/pari/seadata/README + } } diff --git a/srcpkgs/pari-seadata/update b/srcpkgs/pari-seadata/update new file mode 100644 index 000000000000..bea0b3258ee5 --- /dev/null +++ b/srcpkgs/pari-seadata/update @@ -0,0 +1,3 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} From 023e19aa169a5d646217d2d98bac299050dae284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 18:36:12 -0300 Subject: [PATCH 5/8] pari-seadata-big: several improvements - fix license - change homepage to https - rename distfiles to include version in name - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add update file - change of maintainer agreed by motorto --- srcpkgs/pari-seadata-big/template | 16 ++++++++-------- srcpkgs/pari-seadata-big/update | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/pari-seadata-big/update diff --git a/srcpkgs/pari-seadata-big/template b/srcpkgs/pari-seadata-big/template index 31aa207eae56..706320194597 100644 --- a/srcpkgs/pari-seadata-big/template +++ b/srcpkgs/pari-seadata-big/template @@ -1,17 +1,17 @@ # Template file for 'pari-seadata-big' pkgname=pari-seadata-big version=20170418 -revision=2 +revision=3 create_wrksrc=yes -depends="pari pari-seadata" +depends="pari-seadata" short_desc="PARI/GP package needed by ellap for large primes up to 1100 bits" -maintainer="André Cerqueira " -license="GPL-3.0-or-later" -homepage="http://pari.math.u-bordeaux.fr/packages.html" -distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/seadata-big.tar" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tar>${pkgname}-${version}.tar" checksum=7c4db2624808a5bbd2ba00f8b644a439f0508532efd680a247610fdd5822a5f2 do_install() { - vmkdir usr/share/pari - vcopy data/seadata/sea*.gz usr/share/pari + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari } diff --git a/srcpkgs/pari-seadata-big/update b/srcpkgs/pari-seadata-big/update new file mode 100644 index 000000000000..bea0b3258ee5 --- /dev/null +++ b/srcpkgs/pari-seadata-big/update @@ -0,0 +1,3 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} From 80736b470b515a0b0aeeacc550b823867036a339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 18:57:33 -0300 Subject: [PATCH 6/8] New package: pari-nflistdata-20210527 --- srcpkgs/pari-nflistdata/template | 21 +++++++++++++++++++++ srcpkgs/pari-nflistdata/update | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 srcpkgs/pari-nflistdata/template create mode 100644 srcpkgs/pari-nflistdata/update diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template new file mode 100644 index 000000000000..c6e66f228b98 --- /dev/null +++ b/srcpkgs/pari-nflistdata/template @@ -0,0 +1,21 @@ +# Template file for 'pari-nflistdata' +pkgname=pari-nflistdata +version=20210527 +revision=1 +create_wrksrc=yes +short_desc="PARI/GP database needed by nflist" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz" +checksum=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597 + +do_build() { + # compressed data files work ok (install-size: 4.1M -> 2.9M) + find data -type f -size +4k -print0 | xargs -0 gzip -9 +} + +do_install() { + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari +} diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update new file mode 100644 index 000000000000..bea0b3258ee5 --- /dev/null +++ b/srcpkgs/pari-nflistdata/update @@ -0,0 +1,3 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} From 088a174020b495e99d372ff0ad231267e931a7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Thu, 26 Aug 2021 10:44:42 -0300 Subject: [PATCH 7/8] New package: pari-nftables-20080929 --- srcpkgs/pari-nftables/template | 21 +++++++++++++++++++++ srcpkgs/pari-nftables/update | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 srcpkgs/pari-nftables/template create mode 100644 srcpkgs/pari-nftables/update diff --git a/srcpkgs/pari-nftables/template b/srcpkgs/pari-nftables/template new file mode 100644 index 000000000000..ba3b3ab166d2 --- /dev/null +++ b/srcpkgs/pari-nftables/template @@ -0,0 +1,21 @@ +# Template file for 'pari-nftables' +pkgname=pari-nftables +version=20080929 +revision=1 +create_wrksrc=yes +short_desc="PARI/GP megrez number field tables" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://pari.math.u-bordeaux.fr/packages.html" +distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz" +checksum=8dd3393ce6b3cfcf599f094f7b22bdffe17c3ba25deb912513d54676bd7cfe92 + +do_build() { + # compressed data files work ok (install-size: 35M -> 8M) + find . -type f -size +4k -print0 | xargs -0 gzip -9 +} + +do_install() { + vmkdir usr/share/pari + vcopy "*" usr/share/pari +} diff --git a/srcpkgs/pari-nftables/update b/srcpkgs/pari-nftables/update new file mode 100644 index 000000000000..bea0b3258ee5 --- /dev/null +++ b/srcpkgs/pari-nftables/update @@ -0,0 +1,3 @@ +site="http://pari.math.u-bordeaux.fr/pub/pari/packages/" +pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )" +version=${version:0:4}.${version:4:2}.${version:6:2} From a2dd3ac6e47e460853da4c22c09743a2fca19790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 23:07:24 -0300 Subject: [PATCH 8/8] pari: add checkdepends to packages --- srcpkgs/pari/template | 1 + 1 file changed, 1 insertion(+) diff --git a/srcpkgs/pari/template b/srcpkgs/pari/template index 4f2a2cbef9b7..acdbd3958de7 100644 --- a/srcpkgs/pari/template +++ b/srcpkgs/pari/template @@ -11,6 +11,7 @@ make_check_target=statest-all make_install_target="install install-lib-sta install-lib-dyn" hostmakedepends="perl texlive" makedepends="gmp-devel readline-devel $(vopt_if x11 libX11-devel)" +checkdepends="pari-elldata-small pari-galdata pari-galpol-small pari-seadata-small" short_desc="Fast computations library in number theory" maintainer="Gonzalo Tornaría " license="GPL-2.0-or-later"