From d86c0de8bd886dabe230e486491916b371ecf1e4 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/7] pari-elldata: update to 20210301. Also: - fix license - change homepage and use https for downloads - rename distfiles to include version in name - keep the mtime from files in source - compress files (installed-size: 157M -> 57M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add update file --- srcpkgs/pari-elldata/template | 23 +++++++++++++++-------- srcpkgs/pari-elldata/update | 3 +++ 2 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/pari-elldata/update diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template index 8bbe310b1e34..727a5120c48a 100644 --- a/srcpkgs/pari-elldata/template +++ b/srcpkgs/pari-elldata/template @@ -1,17 +1,24 @@ # Template file for 'pari-elldata' pkgname=pari-elldata -version=20190912 +version=20210301 revision=1 create_wrksrc=yes -depends="pari" 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 +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 + +# keep the mtime from files in source +: ${XBPS_USE_BUILD_MTIME=no} + +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 } 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 4b4411b78a9eb97523e89e0c20543deb71d3cad8 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/7] pari-galdata: several improvements - fix license - change homepage - rename distfiles to include version in name - keep the mtime from files in source - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add update file --- srcpkgs/pari-galdata/template | 18 ++++++++++-------- srcpkgs/pari-galdata/update | 5 +++++ 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/pari-galdata/update diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template index 63d930104b1a..a5ef15e6aef9 100644 --- a/srcpkgs/pari-galdata/template +++ b/srcpkgs/pari-galdata/template @@ -1,17 +1,19 @@ # 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" +short_desc="PARI/GP 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" +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 +# keep the mtime from files in source +: ${XBPS_USE_BUILD_MTIME=no} + 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 7d02d74f49f16bdd2ab3c812afdf522eb5eccd2b 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/7] pari-galpol: several improvements - fix license - change homepage and use https for downloads - rename distfiles to include version in name - keep the mtime from files in source - 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 - add update file --- srcpkgs/pari-galpol/template | 27 ++++++++++++++++++--------- srcpkgs/pari-galpol/update | 3 +++ 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/pari-galpol/update diff --git a/srcpkgs/pari-galpol/template b/srcpkgs/pari-galpol/template index a3c5a0882634..7f9b74fc436e 100644 --- a/srcpkgs/pari-galpol/template +++ b/srcpkgs/pari-galpol/template @@ -1,18 +1,27 @@ # 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" +short_desc="PARI/GP 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" +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 + +# keep the mtime from files in source +: ${XBPS_USE_BUILD_MTIME=no} + +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 } 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 7816f7b53de68d57fcece4052756c878452f3025 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/7] pari-seadata: several improvements - fix license - change homepage and use https for downloads - rename distfiles to include version in name - keep the mtime from files in source - compress files (installed-size: 40M -> 19M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add a much smaller subpkg seadata-small as in upstream - add update file --- srcpkgs/pari-seadata-small | 1 + srcpkgs/pari-seadata/template | 33 ++++++++++++++++++++++++++------- srcpkgs/pari-seadata/update | 3 +++ 3 files changed, 30 insertions(+), 7 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..90fcddcb195e 100644 --- a/srcpkgs/pari-seadata/template +++ b/srcpkgs/pari-seadata/template @@ -1,17 +1,36 @@ # Template file for 'pari-seadata' pkgname=pari-seadata version=20090618 -revision=3 +revision=4 create_wrksrc=yes -depends="pari" +depends="pari-seadata-small" 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" +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 +# keep the mtime from files in source +: ${XBPS_USE_BUILD_MTIME=no} + +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 primes up to 350 bit" + pkg_install() { + # much smaller version suitable for primes up to 350 bits. + # identical to seadata-small.tgz in pari packages + 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 6377470b89cd7f484ee10fc1140b9f14fd33b0cf 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/7] pari-seadata-big: several improvements - fix license - change homepage to https - rename distfiles to include version in name - keep the mtime from files in source - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add update file --- srcpkgs/pari-seadata-big/template | 15 +++++++++------ srcpkgs/pari-seadata-big/update | 3 +++ 2 files changed, 12 insertions(+), 6 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..8586cceb9f86 100644 --- a/srcpkgs/pari-seadata-big/template +++ b/srcpkgs/pari-seadata-big/template @@ -3,15 +3,18 @@ pkgname=pari-seadata-big version=20170418 revision=2 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" +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 +# keep the mtime from files in source +: ${XBPS_USE_BUILD_MTIME=no} + 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 897f5d3ccbb2e39a97bad654657b0e0b27b322cc 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/7] New package: pari-nflistdata-20210527 --- srcpkgs/pari-nflistdata/template | 24 ++++++++++++++++++++++++ srcpkgs/pari-nflistdata/update | 3 +++ 2 files changed, 27 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..f229cd87cd58 --- /dev/null +++ b/srcpkgs/pari-nflistdata/template @@ -0,0 +1,24 @@ +# 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 + +# keep the mtime from files in source +: ${XBPS_USE_BUILD_MTIME=no} + +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 313cba31eae9b0939bd5d1498a1ce76421a21901 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 7/7] 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..31a503abf045 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 pari-galdata pari-galpol pari-seadata-small" short_desc="Fast computations library in number theory" maintainer="Gonzalo Tornaría " license="GPL-2.0-or-later"