[arch-commits] Commit in (4 files)

Antonio Rojas arojas at archlinux.org
Sat Dec 20 08:18:39 UTC 2014


    Date: Saturday, December 20, 2014 @ 09:18:39
  Author: arojas
Revision: 124156

Splitting sage-mathematics

Added:
  singular/
  singular/trunk/
  singular/trunk/PKGBUILD
  singular/trunk/templates.patch

-----------------+
 PKGBUILD        |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 templates.patch |   19 ++++++++++++
 2 files changed, 100 insertions(+)

Added: singular/trunk/PKGBUILD
===================================================================
--- singular/trunk/PKGBUILD	                        (rev 0)
+++ singular/trunk/PKGBUILD	2014-12-20 08:18:39 UTC (rev 124156)
@@ -0,0 +1,81 @@
+
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Rémy Oudompheng <oudomphe at clipper.ens.fr>
+
+pkgname=singular
+pkgver=3.1.7
+_majver=3-1-7
+pkgrel=2
+pkgdesc="Computer Algebra System for polynomial computations"
+arch=('i686' 'x86_64')
+url="http://www.singular.uni-kl.de/"
+license=('GPL')
+depends=('flint') #polymake
+#options=('!libtool')
+source=("http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/src/$_majver/Singular-$_majver.tar.gz" 'templates.patch')
+md5sums=('b28c1b406a4203369ea484d87ffe113c'
+         'a267423f3b25f0b91853f9cf607974a7')
+
+prepare() {
+  cd Singular-$_majver
+  patch -p1 -i ../templates.patch
+}
+
+build() {
+  cd Singular-$_majver
+
+  export CPP=/usr/bin/cpp
+  export CXXCPP=/usr/bin/cpp
+  export CFLAGS="-fPIC"
+  export CXXFLAGS="-fPIC"
+
+# force using system ntl
+  rm -r ntl
+
+  mkdir -p build
+
+  ./configure --prefix=$PWD/build/usr/lib/Singular \
+     --bindir=$PWD/build/usr/lib/Singular --libdir=$PWD/build/usr/lib/Singular --includedir=$PWD/build/usr/include \
+     --with-apint=gmp --with-gmp=/usr --with-malloc=system --with-ntl=/usr --with-flint=/usr --disable-doc --with-NTL --without-MP --without-lex \
+     --enable-Singular --enable-factory --enable-libfac --enable-IntegerProgramming
+
+  pushd omalloc
+    make install
+  popd
+
+  pushd factory
+    make install
+  popd
+
+  pushd libfac
+    make install
+  popd
+
+  pushd kernel
+    make install
+  popd  
+
+  export CFLAGS="$CFLAGS -DPIC -DLIBSINGULAR"
+  export CXXFLAGS="$CXXFLAGS -DPIC -DLIBSINGULAR"
+
+  ./configure --prefix=$PWD/build/usr/lib/Singular \
+     --bindir=$PWD/build/usr/lib/Singular --libdir=$PWD/build/usr/lib/Singular --includedir=$PWD/build/usr/include \
+     --with-apint=gmp --with-gmp=/usr --with-malloc=system --with-ntl=/usr --with-flint=/usr --disable-doc --with-NTL --without-MP \
+     --enable-Singular --enable-factory --enable-libfac --enable-IntegerProgramming --disable-doc
+  make clean
+  make install-libsingular
+
+# needed by Sage, not installed by default
+  cp Singular/sing_dbm.h build/usr/include/singular/
+}
+
+package() {
+  cd Singular-$_majver
+
+  cp -r build/* "$pkgdir"/ 
+
+  mkdir -p "$pkgdir"/usr/bin
+  ln -s /usr/lib/Singular/Singular "$pkgdir"/usr/bin/
+  ln -s /usr/lib/Singular/libsingular.so "$pkgdir"/usr/lib/
+}
+


Property changes on: singular/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: singular/trunk/templates.patch
===================================================================
--- singular/trunk/templates.patch	                        (rev 0)
+++ singular/trunk/templates.patch	2014-12-20 08:18:39 UTC (rev 124156)
@@ -0,0 +1,19 @@
+diff -druN latest.orig/factory/GNUmakefile.in latest/factory/GNUmakefile.in
+--- latest.orig/factory/GNUmakefile.in	2014-08-06 08:59:15.000000000 -0700
++++ latest/factory/GNUmakefile.in	2014-10-20 04:21:24.914606325 -0700
+@@ -98,11 +98,13 @@
+ 		 @FLINT_CFLAGS@ $(DEFS) $(CPPFLAGS) $(CFLAGS)
+ 
+ # flags to translate library c++ files
+-LIBCXXFLAGS =	$(WARNFLAGS) -fno-implicit-templates \
++#LIBCXXFLAGS =	$(WARNFLAGS) -fno-implicit-templates
++LIBCXXFLAGS =	$(WARNFLAGS) \
+ 		-I. -I.. -I$(srcdir) -I${prefix} -I$(includedir) \
+ 		 @FLINT_CFLAGS@ $(DEFS) $(CPPFLAGS) $(CXXFLAGS)
+ 
+-LIBCGGFLAGS =	$(WARNFLAGS) -fno-implicit-templates \
++#LIBCGGFLAGS =	$(WARNFLAGS) -fno-implicit-templates
++LIBCGGFLAGS =	$(WARNFLAGS) \
+ 		-I. -I.. -I$(srcdir) -I${prefix} -I$(includedir) \
+ 		 @FLINT_CFLAGS@ $(DEFS) $(CPPFLAGS)
+ 



More information about the arch-commits mailing list