[arch-commits] Commit in giac/repos (6 files)

Antonio Rojas arojas at archlinux.org
Wed Jan 11 22:57:23 UTC 2017


    Date: Wednesday, January 11, 2017 @ 22:57:22
  Author: arojas
Revision: 206865

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  giac/repos/community-staging-i686/
  giac/repos/community-staging-i686/PKGBUILD
    (from rev 206864, giac/trunk/PKGBUILD)
  giac/repos/community-staging-i686/giac-pari-thread.patch
    (from rev 206864, giac/trunk/giac-pari-thread.patch)
  giac/repos/community-staging-x86_64/
  giac/repos/community-staging-x86_64/PKGBUILD
    (from rev 206864, giac/trunk/PKGBUILD)
  giac/repos/community-staging-x86_64/giac-pari-thread.patch
    (from rev 206864, giac/trunk/giac-pari-thread.patch)

-------------------------------------------------+
 community-staging-i686/PKGBUILD                 |   51 ++++++++++++++++++++++
 community-staging-i686/giac-pari-thread.patch   |   11 ++++
 community-staging-x86_64/PKGBUILD               |   51 ++++++++++++++++++++++
 community-staging-x86_64/giac-pari-thread.patch |   11 ++++
 4 files changed, 124 insertions(+)

Copied: giac/repos/community-staging-i686/PKGBUILD (from rev 206864, giac/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-01-11 22:57:22 UTC (rev 206865)
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 175037 2016-05-12 15:18:07Z arojas $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=giac
+pkgname=(xcas libgiac)
+_pkgver=1.2.3-9
+pkgver=${_pkgver//-/.}
+pkgrel=2
+pkgdesc="A free computer algebra system"
+arch=(i686 x86_64)
+url="http://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
+license=(GPL3)
+makedepends=(mpfi gsl pari ntl lapack libpng libjpeg fltk)
+source=("http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgbase}_${_pkgver}.tar.gz" giac-pari-thread.patch)
+md5sums=('a493209fa45384632c07fe37d9be9162'
+         '1e871126c1c6b5be2447984ee7749e8e')
+
+prepare() {
+  cd $pkgbase-${pkgver%.*}
+# Fix build against thread enabled pari
+  patch -p1 -i ../giac-pari-thread.patch
+}
+
+build() {
+  cd $pkgbase-${pkgver%.*}
+
+  ./configure --prefix=/usr
+  make
+}
+
+package_xcas() {
+  depends=(libgiac fltk)
+  conflicts=(giac)
+  provides=(giac)
+  replaces=(giac)
+
+  cd $pkgbase-${pkgver%.*}
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/{lib,include}
+}
+
+package_libgiac() {
+  pkgdesc="Giac shared library"
+  depends=(mpfi gsl pari ntl lapack libpng)
+
+  cd $pkgbase-${pkgver%.*}
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/{bin,share}
+}

Copied: giac/repos/community-staging-i686/giac-pari-thread.patch (from rev 206864, giac/trunk/giac-pari-thread.patch)
===================================================================
--- community-staging-i686/giac-pari-thread.patch	                        (rev 0)
+++ community-staging-i686/giac-pari-thread.patch	2017-01-11 22:57:22 UTC (rev 206865)
@@ -0,0 +1,11 @@
+--- giac-1.2.2/src/pari.cc.orig	2016-12-21 22:36:08.403918549 +0000
++++ giac-1.2.2/src/pari.cc	2016-12-21 22:36:30.450537200 +0000
+@@ -53,7 +53,7 @@
+ extern "C" {
+ #include <pari/pari.h>
+ #include <pari/paripriv.h>
+-  extern void *PARI_stack_limit;
++  extern THREAD void *PARI_stack_limit;
+   extern entree functions_basic[];
+ }
+ #if PARI_VERSION_CODE<PARI_VERSION(2,4,0) // 132096

Copied: giac/repos/community-staging-x86_64/PKGBUILD (from rev 206864, giac/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-01-11 22:57:22 UTC (rev 206865)
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 175037 2016-05-12 15:18:07Z arojas $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=giac
+pkgname=(xcas libgiac)
+_pkgver=1.2.3-9
+pkgver=${_pkgver//-/.}
+pkgrel=2
+pkgdesc="A free computer algebra system"
+arch=(i686 x86_64)
+url="http://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
+license=(GPL3)
+makedepends=(mpfi gsl pari ntl lapack libpng libjpeg fltk)
+source=("http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgbase}_${_pkgver}.tar.gz" giac-pari-thread.patch)
+md5sums=('a493209fa45384632c07fe37d9be9162'
+         '1e871126c1c6b5be2447984ee7749e8e')
+
+prepare() {
+  cd $pkgbase-${pkgver%.*}
+# Fix build against thread enabled pari
+  patch -p1 -i ../giac-pari-thread.patch
+}
+
+build() {
+  cd $pkgbase-${pkgver%.*}
+
+  ./configure --prefix=/usr
+  make
+}
+
+package_xcas() {
+  depends=(libgiac fltk)
+  conflicts=(giac)
+  provides=(giac)
+  replaces=(giac)
+
+  cd $pkgbase-${pkgver%.*}
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/{lib,include}
+}
+
+package_libgiac() {
+  pkgdesc="Giac shared library"
+  depends=(mpfi gsl pari ntl lapack libpng)
+
+  cd $pkgbase-${pkgver%.*}
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/{bin,share}
+}

Copied: giac/repos/community-staging-x86_64/giac-pari-thread.patch (from rev 206864, giac/trunk/giac-pari-thread.patch)
===================================================================
--- community-staging-x86_64/giac-pari-thread.patch	                        (rev 0)
+++ community-staging-x86_64/giac-pari-thread.patch	2017-01-11 22:57:22 UTC (rev 206865)
@@ -0,0 +1,11 @@
+--- giac-1.2.2/src/pari.cc.orig	2016-12-21 22:36:08.403918549 +0000
++++ giac-1.2.2/src/pari.cc	2016-12-21 22:36:30.450537200 +0000
+@@ -53,7 +53,7 @@
+ extern "C" {
+ #include <pari/pari.h>
+ #include <pari/paripriv.h>
+-  extern void *PARI_stack_limit;
++  extern THREAD void *PARI_stack_limit;
+   extern entree functions_basic[];
+ }
+ #if PARI_VERSION_CODE<PARI_VERSION(2,4,0) // 132096



More information about the arch-commits mailing list