[arch-commits] Commit in (5 files)

Antonio Rojas arojas at archlinux.org
Sat Dec 20 19:46:56 UTC 2014


    Date: Saturday, December 20, 2014 @ 20:46:55
  Author: arojas
Revision: 124203

Splitting sage-mathematics

Added:
  lcalc/
  lcalc/trunk/
  lcalc/trunk/Lcommon.h.patch
  lcalc/trunk/PKGBUILD
  lcalc/trunk/gcc-4.9.patch

-----------------+
 Lcommon.h.patch |   11 +++++++++++
 PKGBUILD        |   40 ++++++++++++++++++++++++++++++++++++++++
 gcc-4.9.patch   |   24 ++++++++++++++++++++++++
 3 files changed, 75 insertions(+)

Added: lcalc/trunk/Lcommon.h.patch
===================================================================
--- lcalc/trunk/Lcommon.h.patch	                        (rev 0)
+++ lcalc/trunk/Lcommon.h.patch	2014-12-20 19:46:55 UTC (rev 124203)
@@ -0,0 +1,11 @@
+--- src/include/Lcommon.h	2010-01-31 15:16:45.000000000 +0000
++++ src/include/Lcommon.h	2011-03-08 21:19:11.849443238 +0000
+@@ -25,7 +25,7 @@
+ #ifdef USE_MPFR
+ inline double lcalc_to_double(const double& x) { return x; }
+ #endif
+-//inline double lcalc_to_double(const long double& x) { return x; }
++inline double lcalc_to_double(const long double& x) { return x; }
+ inline double lcalc_to_double(const int& x) { return x; }
+ inline double lcalc_to_double(const long long& x) { return x; }
+ inline double lcalc_to_double(const short& x) { return x; }

Added: lcalc/trunk/PKGBUILD
===================================================================
--- lcalc/trunk/PKGBUILD	                        (rev 0)
+++ lcalc/trunk/PKGBUILD	2014-12-20 19:46:55 UTC (rev 124203)
@@ -0,0 +1,40 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lcalc
+pkgver=1.23
+pkgrel=2
+pkgdesc="C++ L-function class library and command line interface"
+arch=('i686' 'x86_64')
+url="http://oto.math.uwaterloo.ca/~mrubinst/L_function_public/L.html"
+license=('GPL2')
+depends=('gcc-libs')
+makedepends=('chrpath')
+source=("http://oto.math.uwaterloo.ca/~mrubinst/L_function_public/CODE/L-$pkgver.tar.gz" 'Lcommon.h.patch' 'gcc-4.9.patch')
+md5sums=('8262d4495e0bbe0283e5341ef8694c23'
+         '717f630a387fb1a4569e843a421f30cc'
+         '436dd35b06766dffad0941bcfb511e89')
+
+prepare() {
+  cd L-$pkgver
+  patch -p1 -i $srcdir/Lcommon.h.patch  
+  patch -p1 -i $srcdir/gcc-4.9.patch
+}
+
+build() {
+  cd L-$pkgver/src
+  make
+}
+
+package() {
+  cd L-$pkgver/src
+  mkdir -p "$pkgdir"/usr/{bin,include,lib}
+  make INSTALL_DIR="$pkgdir"/usr install
+
+# remove leftover files
+  rm "$pkgdir"/usr/include/Lfunction/{Lexplicit_formula.h.swap.crap,.Lexplicit_formula.h.swp}
+# fix wrong permissions
+  chmod 644 "$pkgdir"/usr/include/Lfunction/Ldokchitser.h
+# fix insecure rpath
+  chrpath -d "$pkgdir"/usr/bin/lcalc
+}
+


Property changes on: lcalc/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: lcalc/trunk/gcc-4.9.patch
===================================================================
--- lcalc/trunk/gcc-4.9.patch	                        (rev 0)
+++ lcalc/trunk/gcc-4.9.patch	2014-12-20 19:46:55 UTC (rev 124203)
@@ -0,0 +1,24 @@
+diff -Naur lcalc-1.23-vanilla/include/Ldirichlet_series.h lcalc-1.23-fixed-gcc.4.9/include/Ldirichlet_series.h
+--- lcalc-1.23-vanilla/include/Ldirichlet_series.h	2012-08-08 23:21:55.000000000 +0200
++++ lcalc-1.23-fixed-gcc.4.9/include/Ldirichlet_series.h	2014-04-21 14:37:59.027464849 +0200
+@@ -43,7 +43,7 @@
+  //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+ template <class ttype>
+ Complex L_function <ttype>::
+-dirichlet_series(Complex s, long long N=-1)
++dirichlet_series(Complex s, long long N)
+ {
+     Complex z=0.;
+     long long m,n;
+diff -Naur lcalc-1.23-vanilla/include/L.h lcalc-1.23-fixed-gcc.4.9/include/L.h
+--- lcalc-1.23-vanilla/include/L.h	2012-08-08 23:21:55.000000000 +0200
++++ lcalc-1.23-fixed-gcc.4.9/include/L.h	2014-04-21 14:32:04.003467348 +0200
+@@ -491,7 +491,7 @@
+ 
+     //#include "Ldirichlet_series.h" //for computing Dirichlet series
+     Complex partial_dirichlet_series(Complex s, long long N1, long long N2);
+-    Complex dirichlet_series(Complex s, long long N);
++    Complex dirichlet_series(Complex s, long long N=-1LL);
+ 
+     //#include "Ltaylor_series.h" //for computing taylor series for Dirichlet series
+     //void compute_taylor_series(int N, int K, Complex s_0, Complex *series);



More information about the arch-commits mailing list