From 792fbcc631c07c590a67b1388ab3d6be90ef6294 Mon Sep 17 00:00:00 2001 From: blue-devil Date: Thu, 21 May 2020 02:21:46 +0300 Subject: [PATCH] flint:first pisi rel --- science/misc/flint/actions.py | 24 ++++++++ .../files/flint-pie-hardening-conflict.patch | 17 ++++++ science/misc/flint/pspec.xml | 61 +++++++++++++++++++ science/misc/flint/translations.xml | 14 +++++ 4 files changed, 116 insertions(+) create mode 100644 science/misc/flint/actions.py create mode 100644 science/misc/flint/files/flint-pie-hardening-conflict.patch create mode 100644 science/misc/flint/pspec.xml create mode 100644 science/misc/flint/translations.xml diff --git a/science/misc/flint/actions.py b/science/misc/flint/actions.py new file mode 100644 index 0000000000..ce682d7ebe --- /dev/null +++ b/science/misc/flint/actions.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools + +def setup(): + autotools.rawConfigure("--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-ntl=/usr") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.dodoc("README*") + +""" +TODO + * fix rpath +""" \ No newline at end of file diff --git a/science/misc/flint/files/flint-pie-hardening-conflict.patch b/science/misc/flint/files/flint-pie-hardening-conflict.patch new file mode 100644 index 0000000000..5689e3633e --- /dev/null +++ b/science/misc/flint/files/flint-pie-hardening-conflict.patch @@ -0,0 +1,17 @@ +Description: invoke $(CC) with -r and not -Wl,-r to fix FTBFS with PIE enabled +Author: Logan Rosen +Forwarded: yes + +diff --git a/Makefile.subdirs b/Makefile.subdirs +index ec05fb0..f2d8b37 100644 +--- a/Makefile.subdirs ++++ b/Makefile.subdirs +@@ -59,7 +59,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c + $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@" + + $(MOD_LOBJ): $(LOBJS) +- $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib ++ $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib + + -include $(LOBJS:.lo=.d) + diff --git a/science/misc/flint/pspec.xml b/science/misc/flint/pspec.xml new file mode 100644 index 0000000000..2107d712d3 --- /dev/null +++ b/science/misc/flint/pspec.xml @@ -0,0 +1,61 @@ + + + + + flint + http://www.flintlib.org/ + + Blue Devil + bluedevil@sctzine.com + + science.misc + LGPLv2+ + library + Fast Library for Number Theory. + FLINT is a C library for doing number theory. FLINT supports arithmetic with numbers, polynomials, power series and matrices over many base rings. + http://www.flintlib.org/flint-2.5.2.tar.gz + + gmp-devel + ntl-devel + mpfr-devel + + + flint-pie-hardening-conflict.patch + + + + + flint + Fast Library for Number Theory. + + gmp + ntl + mpfr + + + /usr/lib + /usr/share/doc/flint + + + + + flint-devel + Development files for flint + + flint + + + /usr/include + + + + + + 2020-05-20 + 2.5.2 + First pisi release. + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/science/misc/flint/translations.xml b/science/misc/flint/translations.xml new file mode 100644 index 0000000000..fbfb14af56 --- /dev/null +++ b/science/misc/flint/translations.xml @@ -0,0 +1,14 @@ + + + + flint + Sayı kuramı için hızlı bir kitaplık. + flint, sayı kuramı için hızlı bir kitaplık sunar. + + + + flint-devel + flint için geliştirme dosyaları + flint-devel, flint için geliştirme dosyalarını içerir. + + \ No newline at end of file