[148484] trunk/dports/math/GiNaC
mps at macports.org
mps at macports.org
Tue May 10 12:05:04 PDT 2016
Revision: 148484
https://trac.macports.org/changeset/148484
Author: mps at macports.org
Date: 2016-05-10 12:05:04 -0700 (Tue, 10 May 2016)
Log Message:
-----------
GiNaC: replace reinplace with patch files. Update description and long description.
Modified Paths:
--------------
trunk/dports/math/GiNaC/Portfile
Added Paths:
-----------
trunk/dports/math/GiNaC/files/
trunk/dports/math/GiNaC/files/patch-ginac-compiler.h.diff
trunk/dports/math/GiNaC/files/patch-ginac-container.h.diff
trunk/dports/math/GiNaC/files/patch-ginac-matrix.h.diff
Modified: trunk/dports/math/GiNaC/Portfile
===================================================================
--- trunk/dports/math/GiNaC/Portfile 2016-05-10 15:21:47 UTC (rev 148483)
+++ trunk/dports/math/GiNaC/Portfile 2016-05-10 19:05:04 UTC (rev 148484)
@@ -9,27 +9,14 @@
platforms darwin
license GPL-2
maintainers mps openmaintainer
-description GiNaC is Not a Computer algebra system
+description GiNaC is C++ library that provides a set of algebraic capabilities.
long_description \
- Currently, GiNaC's capabilities include: \
- 1. Very fast manipulation of large integers and \
- rationals owing to the CLN library (for instance, \
- it uses Karatsuba multiplication and \
- Schoenhage-Strassen multiplication for very large \
- integers). \
- 2. Efficient handling of multivariate polynomials and \
- rational functions. \
- 3. Support for linear algebra includes symbolic \
- matrices, vectors and solving equations. \
- 4. Very fast heuristic polynomial GCD. \
- 5. Many built in functions (sin, cos, atan, sinh, \
- factorial, etc.) \
- 6. Symbolic differentiation and series expansion of \
- all built-in functions. \
- 7. Several forms of output (also as optimized C++, \
- for numerical postprocessing). \
- 8. Memory-efficiency and -safety through the internal \
- use of reference counting for all expressions.
+ GiNaC is an iterated and recursive acronym for GiNaC is Not a CAS, where \
+ CAS stands for Computer Algebra System. Its design is revolutionary in a \
+ sense that contrary to other CAS it does not try to provide extensive \
+ algebraic capabilities and a simple programming language but instead \
+ accepts a given language (C++) and extends it by a set of algebraic \
+ capabilities.
use_bzip2 yes
distname ginac-${version}
@@ -44,12 +31,9 @@
depends_lib port:readline \
port:cln
-post-configure {
- reinplace "s:deprecated:GiNaC_deprecated:g" \
- ${worksrcpath}/ginac/compiler.h \
- ${worksrcpath}/ginac/container.h \
- ${worksrcpath}/ginac/matrix.h
-}
+patchfiles patch-ginac-compiler.h.diff \
+ patch-ginac-container.h.diff \
+ patch-ginac-matrix.h.diff
test.run yes
test.target check
Added: trunk/dports/math/GiNaC/files/patch-ginac-compiler.h.diff
===================================================================
--- trunk/dports/math/GiNaC/files/patch-ginac-compiler.h.diff (rev 0)
+++ trunk/dports/math/GiNaC/files/patch-ginac-compiler.h.diff 2016-05-10 19:05:04 UTC (rev 148484)
@@ -0,0 +1,16 @@
+--- ginac/compiler.h.orig 2016-04-05 15:45:39.000000000 -0500
++++ ginac/compiler.h 2016-05-10 13:50:28.000000000 -0500
+@@ -26,11 +26,11 @@
+ #ifdef __GNUC__
+ #define unlikely(cond) __builtin_expect((cond), 0)
+ #define likely(cond) __builtin_expect((cond), 1)
+-#define deprecated __attribute__ ((deprecated));
++#define GiNaC_deprecated __attribute__ ((GiNaC_deprecated));
+ #else
+ #define unlikely(cond) (cond)
+ #define likely(cond) (cond)
+-#define deprecated
++#define GiNaC_deprecated
+ #endif
+
+ #ifdef _MSC_VER
Added: trunk/dports/math/GiNaC/files/patch-ginac-container.h.diff
===================================================================
--- trunk/dports/math/GiNaC/files/patch-ginac-container.h.diff (rev 0)
+++ trunk/dports/math/GiNaC/files/patch-ginac-container.h.diff 2016-05-10 19:05:04 UTC (rev 148484)
@@ -0,0 +1,55 @@
+--- ginac/container.h.orig 2016-04-05 15:45:39.000000000 -0500
++++ ginac/container.h 2016-05-10 13:50:28.000000000 -0500
+@@ -168,35 +168,35 @@
+ setflag(get_default_flags());
+ }
+
+- explicit container(const ex & p1) deprecated;
+- container(const ex & p1, const ex & p2) deprecated;
+- container(const ex & p1, const ex & p2, const ex & p3) deprecated;
+- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4) deprecated;
+- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5) deprecated;
+- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6) deprecated;
+- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7) deprecated;
+- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8) deprecated;
++ explicit container(const ex & p1) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2, const ex & p3) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7) GiNaC_deprecated;
++ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9) deprecated;
++ const ex & p9) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10) deprecated;
++ const ex & p9, const ex & p10) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10, const ex & p11) deprecated;
++ const ex & p9, const ex & p10, const ex & p11) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10, const ex & p11, const ex & p12) deprecated;
++ const ex & p9, const ex & p10, const ex & p11, const ex & p12) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13) deprecated;
++ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14) deprecated;
++ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15) deprecated;
++ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15) GiNaC_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
+- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15, const ex & p16) deprecated;
++ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15, const ex & p16) GiNaC_deprecated;
+
+ // First step of initialization of container with a comma-separated
+ // sequence of expressions. Subsequent steps are handled by
+ // container_init<>::operator,().
+- container_init<ex, STLT> operator=(const ex & x) deprecated;
++ container_init<ex, STLT> operator=(const ex & x) GiNaC_deprecated;
+
+ // functions overriding virtual functions from base classes
+ public:
Added: trunk/dports/math/GiNaC/files/patch-ginac-matrix.h.diff
===================================================================
--- trunk/dports/math/GiNaC/files/patch-ginac-matrix.h.diff (rev 0)
+++ trunk/dports/math/GiNaC/files/patch-ginac-matrix.h.diff 2016-05-10 19:05:04 UTC (rev 148484)
@@ -0,0 +1,11 @@
+--- ginac/matrix.h.orig 2016-04-05 15:45:39.000000000 -0500
++++ ginac/matrix.h 2016-05-10 13:50:28.000000000 -0500
+@@ -102,7 +102,7 @@
+ matrix(unsigned r, unsigned c, const lst & l);
+ matrix(std::initializer_list<std::initializer_list<ex>> l);
+
+- matrix_init<ex, exvector::iterator> operator=(const ex & x) deprecated;
++ matrix_init<ex, exvector::iterator> operator=(const ex & x) GiNaC_deprecated;
+ protected:
+ matrix(unsigned r, unsigned c, const exvector & m2);
+ matrix(unsigned r, unsigned c, exvector && m2);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160510/5a9bc48b/attachment.html>
More information about the macports-changes
mailing list