Skip to content

Commit

Permalink
flint: update to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed Nov 11, 2023
1 parent d065a3e commit 2d4ea68
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 70 deletions.
59 changes: 0 additions & 59 deletions mingw-w64-arb/PKGBUILD

This file was deleted.

11 changes: 11 additions & 0 deletions mingw-w64-flint/001-dont-define-strcpy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/qsieve/factor.c
+++ b/src/qsieve/factor.c
@@ -13,7 +13,7 @@

#define _STDC_FORMAT_MACROS

-#ifdef __GNUC__
+#if defined(__GNUC__) && !(defined(__MINGW32__) && defined(__clang__))
# define strcpy __builtin_strcpy
#else
# include <math.h>
32 changes: 21 additions & 11 deletions mingw-w64-flint/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,34 @@
_realname=flint
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.9.0
pkgrel=2
pkgver=3.0.1
pkgrel=1
pkgdesc="Fast Library for Number Theory (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
depends=("${MINGW_PACKAGE_PREFIX}-mpfr"
url="https://www.flintlib.org/"
license=('spdx:LGPL-2.1-or-later')
msys2_repository_url="https://github.com/flintlib/flint"
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-mpfr"
"${MINGW_PACKAGE_PREFIX}-gmp"
"${MINGW_PACKAGE_PREFIX}-openblas"
"${MINGW_PACKAGE_PREFIX}-libwinpthread-git")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-python")
license=('spdx:LGPL-2.1-or-later')
url="https://www.flintlib.org/"
source=(https://www.flintlib.org/${_realname}-${pkgver}.tar.gz)
sha256sums=('2fc090d51033c93208e6c10d406397a53c983ae5343b958eb25f72a57a4ce76a')
source=(https://www.flintlib.org/${_realname}-${pkgver}.tar.gz
001-dont-define-strcpy.patch)
sha256sums=('7b311a00503a863881eb8177dbeb84322f29399f3d7d72f3b1a4c9ba1d5794b4'
'f1b25323e067f642c1e0ebbd4152b5af683782fa1f08e5e2b2faa2736dbd2a84')

prepare() {
cd ${_realname}-${pkgver}
patch -p1 -i "${srcdir}"/001-dont-define-strcpy.patch
}

build() {
[[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}"
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"

declare -a _extra_config
Expand All @@ -35,7 +44,8 @@ build() {
${MINGW_PREFIX}/bin/cmake.exe \
-G Ninja \
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
${_extra_config[@]} \
"${_extra_config[@]}" \
-DPython_EXECUTABLE=${MINGW_PREFIX}/bin/python \
-DBUILD_TESTING=OFF \
"../${_realname}-${pkgver}"

Expand Down

0 comments on commit 2d4ea68

Please sign in to comment.