From 19c61ac367cb0a39d7a2e56d622a7fc18dec96eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 29 Jan 2018 11:18:35 -0300 Subject: [PATCH 1/5] New package: gf2x-1.3.0 --- common/options.description | 1 + common/shlibs | 1 + srcpkgs/gf2x-devel | 1 + srcpkgs/gf2x/template | 35 +++++++++++++++++++++++++++++++++++ srcpkgs/gf2x/update | 1 + 5 files changed, 39 insertions(+) create mode 120000 srcpkgs/gf2x-devel create mode 100644 srcpkgs/gf2x/template create mode 100644 srcpkgs/gf2x/update diff --git a/common/options.description b/common/options.description index 06360211a23f..46e24a140e52 100644 --- a/common/options.description +++ b/common/options.description @@ -49,6 +49,7 @@ desc_option_lz4="Enable support for LZ4 compression format" desc_option_lzo="Enable support for LZO compression format" desc_option_microhttpd="Enable support for microhttpd" desc_option_mpcdec="Enable support for the Musepack decoder" +desc_option_native_build="Enable instruction subsets supported by the build computer" desc_option_notify="Enable support for desktop notifications (libnotify)" desc_option_nvenc="Enable support for NVENC codecs" desc_option_openblas="Enable support for OpenBLAS accelerated linear algebra" diff --git a/common/shlibs b/common/shlibs index 5affb5dc09fd..6ee93e48bfc9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4008,6 +4008,7 @@ libsword-1.8.1.so libsword-1.8.1_6 libpari-gmp.so.7 pari-2.13.0_1 libtree-sitter.so.0 tree-sitter-0.19.0_1 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1 +libgf2x.so.3 gf2x-1.3.0_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 libwayland-egl++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/gf2x-devel b/srcpkgs/gf2x-devel new file mode 120000 index 000000000000..4542295e8de7 --- /dev/null +++ b/srcpkgs/gf2x-devel @@ -0,0 +1 @@ +gf2x \ No newline at end of file diff --git a/srcpkgs/gf2x/template b/srcpkgs/gf2x/template new file mode 100644 index 000000000000..918a9f2d0d5a --- /dev/null +++ b/srcpkgs/gf2x/template @@ -0,0 +1,35 @@ +# Template file for 'gf2x' +pkgname=gf2x +version=1.3.0 +revision=1 +wrksrc=gf2x-gf2x-${version} +build_style=gnu-configure +hostmakedepends="automake libtool" +short_desc="C/C++ library for fast arithmetic in GF(2)[x]" +maintainer="Gonzalo Tornaría " +license="GPL-3.0-or-later" +homepage="https://gitlab.inria.fr/gf2x/gf2x" +distfiles="https://gitlab.inria.fr/gf2x/gf2x/-/archive/gf2x-${version}/gf2x-gf2x-${version}.tar.gz" +checksum=11bcf98b620c60c2ee3b4460b02b7be741f14cfdc26b542f22c92950926575e0 + +build_options="native_build" + +if [ -z "$build_option_native_build" ]; then + # this disables sse3, ssse3, sse41, pclmul + configure_args="--disable-sse3" +fi + +pre_configure() { + autoreconf -fi +} + +gf2x-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +} diff --git a/srcpkgs/gf2x/update b/srcpkgs/gf2x/update new file mode 100644 index 000000000000..504503610161 --- /dev/null +++ b/srcpkgs/gf2x/update @@ -0,0 +1 @@ +pkgname=gf2x-gf2x From 424c5b7e14b67d4a523ce738764b4d33d7bd50d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 30 Jan 2018 11:02:38 -0300 Subject: [PATCH 2/5] New package: ntl-11.5.1 --- common/shlibs | 1 + srcpkgs/ntl-devel | 1 + srcpkgs/ntl/template | 36 ++++++++++++++++++++++++++++++++++++ srcpkgs/ntl/update | 1 + 4 files changed, 39 insertions(+) create mode 120000 srcpkgs/ntl-devel create mode 100644 srcpkgs/ntl/template create mode 100644 srcpkgs/ntl/update diff --git a/common/shlibs b/common/shlibs index 6ee93e48bfc9..a35e0d24a9c2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4009,6 +4009,7 @@ libpari-gmp.so.7 pari-2.13.0_1 libtree-sitter.so.0 tree-sitter-0.19.0_1 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1 libgf2x.so.3 gf2x-1.3.0_1 +libntl.so.44 ntl-11.5.1_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 libwayland-egl++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/ntl-devel b/srcpkgs/ntl-devel new file mode 120000 index 000000000000..fc0a39987329 --- /dev/null +++ b/srcpkgs/ntl-devel @@ -0,0 +1 @@ +ntl \ No newline at end of file diff --git a/srcpkgs/ntl/template b/srcpkgs/ntl/template new file mode 100644 index 000000000000..9020c6b5ce68 --- /dev/null +++ b/srcpkgs/ntl/template @@ -0,0 +1,36 @@ +# Template file for 'ntl' +pkgname=ntl +version=11.5.1 +revision=1 +build_wrksrc="src" +build_style=configure +hostmakedepends="perl libtool" +makedepends="gmp-devel gf2x-devel" +short_desc="Library for doing Number Theory" +maintainer="Gonzalo Tornaría " +license="LGPL-2.1-or-later" +homepage="https://libntl.org" +distfiles="https://libntl.org/ntl-${version}.tar.gz" +checksum=210d06c31306cbc6eaf6814453c56c776d9d8e8df36d74eb306f6a523d1c6a8a +nocross=yes # runs binaries built for target + +build_options="native_build" + +do_configure() { + # see http://www.shoup.net/ntl/doc/tour-unix.html + ./configure CXX="$CXX" CXXFLAGS="$CXXFLAGS" LIBTOOL="libtool" \ + PREFIX="/usr" SHARED="on" NTL_GF2X_LIB="on" \ + NATIVE="$(vopt_if native_build 'on' 'off')" +} + +ntl-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + depends+=" ${makedepends}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/share + } +} diff --git a/srcpkgs/ntl/update b/srcpkgs/ntl/update new file mode 100644 index 000000000000..7ca2974b146f --- /dev/null +++ b/srcpkgs/ntl/update @@ -0,0 +1 @@ +site="https://libntl.org/download.html" From cbb95e6008d5912758ea3d2039e946cf383a31c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Fri, 2 Feb 2018 22:42:49 -0300 Subject: [PATCH 3/5] New package: flintlib-2.8.0 --- common/shlibs | 1 + srcpkgs/flintlib-devel | 1 + srcpkgs/flintlib/template | 27 +++++++++++++++++++++++++++ srcpkgs/flintlib/update | 3 +++ 4 files changed, 32 insertions(+) create mode 120000 srcpkgs/flintlib-devel create mode 100644 srcpkgs/flintlib/template create mode 100644 srcpkgs/flintlib/update diff --git a/common/shlibs b/common/shlibs index a35e0d24a9c2..bfd2ead4bcb9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4010,6 +4010,7 @@ libtree-sitter.so.0 tree-sitter-0.19.0_1 libgtkdatabox.so.1 gtkdatabox3-1.0.0_1 libgf2x.so.3 gf2x-1.3.0_1 libntl.so.44 ntl-11.5.1_1 +libflint.so.16 flintlib-2.8.0_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 libwayland-egl++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/flintlib-devel b/srcpkgs/flintlib-devel new file mode 120000 index 000000000000..7c2633183069 --- /dev/null +++ b/srcpkgs/flintlib-devel @@ -0,0 +1 @@ +flintlib \ No newline at end of file diff --git a/srcpkgs/flintlib/template b/srcpkgs/flintlib/template new file mode 100644 index 000000000000..f661fb35f10b --- /dev/null +++ b/srcpkgs/flintlib/template @@ -0,0 +1,27 @@ +# Template file for 'flintlib' +pkgname=flintlib +version=2.8.0 +revision=1 +wrksrc="flint-${version}" +build_style=configure +configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-ntl=/usr" +makedepends="mpfr-devel ntl-devel" +short_desc="Fast Library for Number Theory" +maintainer="Gonzalo Tornaría " +license="LGPL-2.1-or-later" +homepage="https://flintlib.org" +distfiles="https://flintlib.org/flint-${version}.tar.gz" +checksum=584235cdc39d779d9920eaef16fe084f3c26ffeeea003a3fff64a20a0f33449e + +CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t + +flintlib-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + depends+=" mpfr-devel" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + } +} diff --git a/srcpkgs/flintlib/update b/srcpkgs/flintlib/update new file mode 100644 index 000000000000..21d6ab4bae5b --- /dev/null +++ b/srcpkgs/flintlib/update @@ -0,0 +1,3 @@ +# package was named 'flintlib' because of another package +pkgname=flint +site="https://flintlib.org/downloads.html" From 3aa220de329b09224e93ad57100be8c39081fd30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 4 Feb 2018 01:00:19 -0300 Subject: [PATCH 4/5] New package: arb-2.20.0 --- common/shlibs | 1 + srcpkgs/arb-devel | 1 + srcpkgs/arb/template | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 120000 srcpkgs/arb-devel create mode 100644 srcpkgs/arb/template diff --git a/common/shlibs b/common/shlibs index bfd2ead4bcb9..43c81b9afab8 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4011,6 +4011,7 @@ libgtkdatabox.so.1 gtkdatabox3-1.0.0_1 libgf2x.so.3 gf2x-1.3.0_1 libntl.so.44 ntl-11.5.1_1 libflint.so.16 flintlib-2.8.0_1 +libarb.so.2 arb-2.20.0_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 libwayland-egl++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/arb-devel b/srcpkgs/arb-devel new file mode 120000 index 000000000000..456b9f00a86c --- /dev/null +++ b/srcpkgs/arb-devel @@ -0,0 +1 @@ +arb \ No newline at end of file diff --git a/srcpkgs/arb/template b/srcpkgs/arb/template new file mode 100644 index 000000000000..fcef3bd1662c --- /dev/null +++ b/srcpkgs/arb/template @@ -0,0 +1,29 @@ +# Template file for 'arb' +pkgname=arb +version=2.20.0 +revision=1 +build_style=configure +configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-flint=/usr" +makedepends="flintlib-devel" +short_desc="C library for arbitrary-precision interval arithmetic" +maintainer="Gonzalo Tornaría " +license="LGPL-2.1-or-later" +homepage="https://arblib.org" +distfiles="https://github.com/fredrik-johansson/arb/archive/${version}.tar.gz" +checksum=d2f186b10590c622c11d1ca190c01c3da08bac9bc04e84cb591534b917faffe7 + +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + # on glibc this would give a conflict with function fdiv() + CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t +fi + +arb-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + depends+=" ${makedepends}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + } +} From 74594d741a5dc98a18c07ecbf5742b82f5d47939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 1 Jun 2020 14:50:01 -0300 Subject: [PATCH 5/5] New package: eclib-20210625 --- common/shlibs | 1 + srcpkgs/eclib-devel | 1 + srcpkgs/eclib/template | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 120000 srcpkgs/eclib-devel create mode 100644 srcpkgs/eclib/template diff --git a/common/shlibs b/common/shlibs index 43c81b9afab8..6ea8387496c2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4012,6 +4012,7 @@ libgf2x.so.3 gf2x-1.3.0_1 libntl.so.44 ntl-11.5.1_1 libflint.so.16 flintlib-2.8.0_1 libarb.so.2 arb-2.20.0_1 +libec.so.8 eclib-20210625_1 libwayland-client++.so.0 libwaylandpp-0.2.8_1 libwayland-cursor++.so.0 libwaylandpp-0.2.8_1 libwayland-egl++.so.0 libwaylandpp-0.2.8_1 diff --git a/srcpkgs/eclib-devel b/srcpkgs/eclib-devel new file mode 120000 index 000000000000..d29e610e9249 --- /dev/null +++ b/srcpkgs/eclib-devel @@ -0,0 +1 @@ +eclib \ No newline at end of file diff --git a/srcpkgs/eclib/template b/srcpkgs/eclib/template new file mode 100644 index 000000000000..77270bf9166b --- /dev/null +++ b/srcpkgs/eclib/template @@ -0,0 +1,30 @@ +# Template file for 'eclib' +pkgname=eclib +version=20210625 +revision=1 +build_style=gnu-configure +configure_args="--with-flint --with-boost" +hostmakedepends="automake autoconf-archive libtool" +makedepends="pari-devel ntl-devel flintlib-devel boost-devel" +short_desc="Elliptic curve library, includes mwrank" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://github.com/JohnCremona/eclib" +distfiles="https://github.com/JohnCremona/eclib/archive/refs/tags/${version}.tar.gz" +checksum=00333fd36afd237c9e6e410c7ab98536ddcd7fdc430e6837fe293247b835c572 + +pre_configure() { + autoreconf -fi +} + +eclib-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + depends+=" ntl-devel" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +}