From 2e9bc58a10c0b45976d3cc7d88aa69743913501a 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 278d2456072f..57f5ca62c4c6 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3983,6 +3983,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..b056ac4f87f7 --- /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 2f602e2098c4da49b8a33689a1f78297d416153a 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 | 35 +++++++++++++++++++++++++++++++++++ srcpkgs/ntl/update | 1 + 4 files changed, 38 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 57f5ca62c4c6..70534cc413b2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3984,6 +3984,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..e4b84a45cd3d --- /dev/null +++ b/srcpkgs/ntl/template @@ -0,0 +1,35 @@ +# 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} ${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 ad93954b4390fb3eea960a56efe767b005f67d16 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 | 26 ++++++++++++++++++++++++++ srcpkgs/flintlib/update | 3 +++ 4 files changed, 31 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 70534cc413b2..ce170cbdeaa8 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3985,6 +3985,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..078ed5316427 --- /dev/null +++ b/srcpkgs/flintlib/template @@ -0,0 +1,26 @@ +# 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} 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 167407b61e4af53c2a2f24efef8368a8b28d5fe7 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 | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 120000 srcpkgs/arb-devel create mode 100644 srcpkgs/arb/template diff --git a/common/shlibs b/common/shlibs index ce170cbdeaa8..0b0e1fcb59ab 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3986,6 +3986,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..f195d8babf12 --- /dev/null +++ b/srcpkgs/arb/template @@ -0,0 +1,28 @@ +# 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} ${makedepends}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} From 6fdaf00a8e555d18db3524aadad9cc53a38d5fcf 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 | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 120000 srcpkgs/eclib-devel create mode 100644 srcpkgs/eclib/template diff --git a/common/shlibs b/common/shlibs index 0b0e1fcb59ab..edfc82fbed0b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3987,6 +3987,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..3db0bd2119b9 --- /dev/null +++ b/srcpkgs/eclib/template @@ -0,0 +1,29 @@ +# 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} ntl-devel" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +}