diff options
author | Tarn Burton | 2016-03-02 07:20:01 -0500 |
---|---|---|
committer | Tarn Burton | 2016-03-02 07:20:01 -0500 |
commit | 300ef453585e994cbaa17d871e74b10d81fba5a7 (patch) | |
tree | a7a2d7a2becc9d536b40794773d3fe5509821e83 | |
parent | 48aa2eb7d399abbfdd098bf5311d477713741c64 (diff) | |
download | aur-300ef453585e994cbaa17d871e74b10d81fba5a7.tar.gz |
Updated rel and added compilation patches
-rw-r--r-- | .SRCINFO | 6 | ||||
-rwxr-xr-x | PKGBUILD | 4 | ||||
-rw-r--r-- | package.patch | 76 |
3 files changed, 48 insertions, 38 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Mar 1 17:32:29 UTC 2016 +# Wed Mar 2 12:19:00 UTC 2016 pkgbase = cadabra pkgdesc = Cadabra is a computer algebra system (CAS) pkgver = 1.33 - pkgrel = 3 + pkgrel = 4 url = http://cadabra.phi-sci.com/ install = cadabra.install arch = i686 @@ -14,7 +14,9 @@ pkgbase = cadabra depends = gmp depends = pcre source = http://cadabra.phi-sci.com/cadabra-1.33.tar.gz + source = package.patch md5sums = cee8ae23c169958aba09b64e4ea479ce + md5sums = c3ed39abb74ec433ce38ba99b7a60d4a pkgname = cadabra @@ -3,7 +3,7 @@ pkgname=cadabra pkgver=1.33 -pkgrel=3 +pkgrel=4 pkgdesc="Cadabra is a computer algebra system (CAS)" arch=('i686' 'x86_64') url="http://cadabra.phi-sci.com/" @@ -12,7 +12,7 @@ depends=('conlie' 'modglue' 'gmp' 'pcre') # for gui: 'gtkmm' 'dvipng' 'texlive' install="$pkgname.install" source=("http://cadabra.phi-sci.com/$pkgname-$pkgver.tar.gz" "package.patch") md5sums=('cee8ae23c169958aba09b64e4ea479ce' - '4e7d46604748a7f5df1ad982115d969b') + 'c3ed39abb74ec433ce38ba99b7a60d4a') prepare() { cd "$srcdir/$pkgname-$pkgver" diff --git a/package.patch b/package.patch index 3a865537dfff..eca5b1c1ff95 100644 --- a/package.patch +++ b/package.patch @@ -1,6 +1,6 @@ diff -aur -bZwB cadabra-1.33.old/gui/Makefile.in cadabra-1.33/gui/Makefile.in ---- cadabra-1.33.old/gui/Makefile.in 2016-03-01 15:20:41.350168657 -0500 -+++ cadabra-1.33/gui/Makefile.in 2016-03-01 15:20:46.286725541 -0500 +--- cadabra-1.33.old/gui/Makefile.in 2016-03-02 07:13:04.277941346 -0500 ++++ cadabra-1.33/gui/Makefile.in 2016-03-02 07:13:08.864580761 -0500 @@ -14,7 +14,7 @@ TIMESTAMP = -D"RELEASE=\"${RELEASE}\"" -D"DATETIME=\"`date | sed -e 's/ / /'`\"" -DHOSTNAME=\"`hostname`\" @@ -20,8 +20,8 @@ diff -aur -bZwB cadabra-1.33.old/gui/Makefile.in cadabra-1.33/gui/Makefile.in include .depend diff -aur -bZwB cadabra-1.33.old/src/Makefile.in cadabra-1.33/src/Makefile.in ---- cadabra-1.33.old/src/Makefile.in 2016-03-01 15:20:41.353501917 -0500 -+++ cadabra-1.33/src/Makefile.in 2016-03-01 15:20:46.286725541 -0500 +--- cadabra-1.33.old/src/Makefile.in 2016-03-02 07:13:04.277941346 -0500 ++++ cadabra-1.33/src/Makefile.in 2016-03-02 07:13:08.864580761 -0500 @@ -27,7 +27,7 @@ @@ -49,9 +49,21 @@ diff -aur -bZwB cadabra-1.33.old/src/Makefile.in cadabra-1.33/src/Makefile.in done include .depend +diff -aur -bZwB cadabra-1.33.old/src/manipulator.cc cadabra-1.33/src/manipulator.cc +--- cadabra-1.33.old/src/manipulator.cc 2016-03-02 07:13:04.277941346 -0500 ++++ cadabra-1.33/src/manipulator.cc 2016-03-02 07:14:09.617682321 -0500 +@@ -283,7 +283,7 @@ + if(getline_precut_buffer.size()==0 || getline_was_eof) { + std::string input_now; + getline_was_eof=false; +- if(std::getline(str, input_now)==false) ++ if(std::getline(str, input_now).fail()) + return false; + getline_precut_buffer+=input_now; + } diff -aur -bZwB cadabra-1.33.old/src/manipulator.hh cadabra-1.33/src/manipulator.hh ---- cadabra-1.33.old/src/manipulator.hh 2016-03-01 15:20:41.353501917 -0500 -+++ cadabra-1.33/src/manipulator.hh 2016-03-01 15:21:52.291923925 -0500 +--- cadabra-1.33.old/src/manipulator.hh 2016-03-02 07:13:04.277941346 -0500 ++++ cadabra-1.33/src/manipulator.hh 2016-03-02 07:13:08.864580761 -0500 @@ -21,17 +21,17 @@ #ifndef manipulator_hh_ #define manipulator_hh_ @@ -88,23 +100,7 @@ diff -aur -bZwB cadabra-1.33.old/src/manipulator.hh cadabra-1.33/src/manipulator /// between streams, feeds data to the parser, and calls the algorithm objects /// to perform action on the expression tree. class manipulator : public sigc::trackable { -@@ -92,11 +92,13 @@ - /// automatically call handle_input to start parsing. - bool receive_command(modglue::ipipe&); - -- /// Set the prompt to the indicated string. Should be called before the entry points -+ /// Set the prompt to the indicated string. Should be called before the entry -+ /// points - /// handle_input or receive_command are called. - void set_prompt(const std::string&); - -- /// Display the prompt. Used when a prompt is needed before any input handling takes -+ /// Display the prompt. Used when a prompt is needed before any input handling -+ /// takes - /// place. - void print_prompt() const; - -@@ -109,15 +111,18 @@ +@@ -109,15 +109,18 @@ std::stack<std::istream *> streamstack; @@ -126,17 +122,7 @@ diff -aur -bZwB cadabra-1.33.old/src/manipulator.hh cadabra-1.33/src/manipulator /// in the global cmdline_arguments vector. void replace_cmdline_args(std::string& oneline); -@@ -131,7 +136,8 @@ - bool is_whitespace_(const std::string& str) const; - - /// Activate all '@' nodes. The returned iterator points inside the -- /// expression which has to be printed (though not necessarily to the top node), -+ /// expression which has to be printed (though not necessarily to the top -+ /// node), - /// or to expressions.end() if the expression has been removed. - exptree::iterator handle_active_nodes_(exptree::iterator); - nset_t::iterator collect_labels_(exptree&, exptree::iterator); -@@ -140,7 +146,8 @@ +@@ -140,7 +143,8 @@ exptree::iterator apply_post_default_rules_(exptree::iterator); void extract_properties_(exptree::iterator); exptree::iterator run_procedure(exptree::iterator, long); @@ -146,3 +132,25 @@ diff -aur -bZwB cadabra-1.33.old/src/manipulator.hh cadabra-1.33/src/manipulator std::string texify(const std::string&) const; /// Class to hold information about a dynamically added algorithm class. +Only in cadabra-1.33/src: manipulator.hh.orig +diff -aur -bZwB cadabra-1.33.old/src/modules/substitute.cc cadabra-1.33/src/modules/substitute.cc +--- cadabra-1.33.old/src/modules/substitute.cc 2016-03-02 07:13:04.277941346 -0500 ++++ cadabra-1.33/src/modules/substitute.cc 2016-03-02 07:13:56.064395400 -0500 +@@ -876,7 +876,7 @@ + } + std::string nm=*to_->name + fnd->first.begin()->name->substr(from_->name->size()); + nset_t::iterator to_it=name_set.insert(nm).first; +- to_rename.insert(std::make_pair(to_it, fnd->second)); ++ to_rename.insert(index_map_t::value_type((const exptree)to_it, fnd->second)); + } + ++fnd; + } +@@ -885,7 +885,7 @@ + std::pair<index_map_t::iterator, index_map_t::iterator> eq=ind_free.equal_range(exptree(from_)); + index_map_t::iterator fnd=eq.first; + while(fnd!=eq.second) { +- to_rename.insert(std::make_pair(to_->name, fnd->second)); ++ to_rename.insert(index_map_t::value_type((const exptree)to_->name, fnd->second)); + ++fnd; + } + } |