Date: Saturday, December 20, 2014 @ 09:19:25 Author: arojas Revision: 124157
archrelease: copy trunk to community-i686, community-x86_64 Added: singular/repos/ singular/repos/community-i686/ singular/repos/community-i686/PKGBUILD (from rev 124156, singular/trunk/PKGBUILD) singular/repos/community-i686/templates.patch (from rev 124156, singular/trunk/templates.patch) singular/repos/community-x86_64/ singular/repos/community-x86_64/PKGBUILD (from rev 124156, singular/trunk/PKGBUILD) singular/repos/community-x86_64/templates.patch (from rev 124156, singular/trunk/templates.patch) ----------------------------------+ community-i686/PKGBUILD | 81 +++++++++++++++++++++++++++++++++++++ community-i686/templates.patch | 19 ++++++++ community-x86_64/PKGBUILD | 81 +++++++++++++++++++++++++++++++++++++ community-x86_64/templates.patch | 19 ++++++++ 4 files changed, 200 insertions(+) Copied: singular/repos/community-i686/PKGBUILD (from rev 124156, singular/trunk/PKGBUILD) =================================================================== --- repos/community-i686/PKGBUILD (rev 0) +++ repos/community-i686/PKGBUILD 2014-12-20 08:19:25 UTC (rev 124157) @@ -0,0 +1,81 @@ + +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Rémy Oudompheng <oudom...@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/ +} + Copied: singular/repos/community-i686/templates.patch (from rev 124156, singular/trunk/templates.patch) =================================================================== --- repos/community-i686/templates.patch (rev 0) +++ repos/community-i686/templates.patch 2014-12-20 08:19:25 UTC (rev 124157) @@ -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) + Copied: singular/repos/community-x86_64/PKGBUILD (from rev 124156, singular/trunk/PKGBUILD) =================================================================== --- repos/community-x86_64/PKGBUILD (rev 0) +++ repos/community-x86_64/PKGBUILD 2014-12-20 08:19:25 UTC (rev 124157) @@ -0,0 +1,81 @@ + +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Rémy Oudompheng <oudom...@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/ +} + Copied: singular/repos/community-x86_64/templates.patch (from rev 124156, singular/trunk/templates.patch) =================================================================== --- repos/community-x86_64/templates.patch (rev 0) +++ repos/community-x86_64/templates.patch 2014-12-20 08:19:25 UTC (rev 124157) @@ -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) +