[20678] trunk/dports/math
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 17 10:24:41 PST 2006
Revision: 20678
http://trac.macosforge.org/projects/macports/changeset/20678
Author: gwright at macports.org
Date: 2006-11-17 10:24:39 -0800 (Fri, 17 Nov 2006)
Log Message:
-----------
Cadabra 0.92, a computer algebra system specialized for tensor
manipulation.
Added Paths:
-----------
trunk/dports/math/cadabra/
trunk/dports/math/cadabra/Portfile
trunk/dports/math/cadabra/files/
trunk/dports/math/cadabra/files/patch-Makefile.in
trunk/dports/math/cadabra/files/patch-src-Makefile.in
Added: trunk/dports/math/cadabra/Portfile
===================================================================
--- trunk/dports/math/cadabra/Portfile (rev 0)
+++ trunk/dports/math/cadabra/Portfile 2006-11-17 18:24:39 UTC (rev 20678)
@@ -0,0 +1,43 @@
+# $Id: $
+
+PortSystem 1.0
+name cadabra
+version 0.92
+categories math
+platforms darwin
+maintainers gwright at macports.org
+description A field theory approach to symbolic computer algebra
+long_description \
+ Cadabra is a computer algebra system for the manipulation \
+ of what could loosely be called tensorial expressions. It is \
+ aimed at, though not necessarily restricted to, theoretical \
+ high energy physicists. Because of its target audience, the \
+ program's interface, storage system and underlying philosophy \
+ differ substantially from other computer algebra systems.
+
+homepage http://www.aei.mpg.de/~peekas/cadabra/
+master_sites ${homepage}/
+
+checksums sha1 7a21ea84dbcd869a7082eea7d951eefa8dc0940d
+
+patchfiles patch-Makefile.in \
+ patch-src-Makefile.in
+
+depends_run port:TeXmacs
+depends_lib port:modglue \
+ port:expect \
+ port:pcre \
+ port:pcre++ \
+ port:gmp \
+ port:LiE
+
+configure.env CPPFLAGS=-I${prefix}/include
+configure.args --prefix=${destroot}${prefix}
+
+build { cd ${worksrcpath}
+ system "LDFLAGS=-L${prefix}/lib ${build.cmd} ${build.target}"
+ system "LDFLAGS=-L${prefix}/lib ${build.cmd} test"
+ system "LDFLAGS=-L${prefix}/lib ${build.cmd} advtest"
+ }
+
+
Added: trunk/dports/math/cadabra/files/patch-Makefile.in
===================================================================
--- trunk/dports/math/cadabra/files/patch-Makefile.in (rev 0)
+++ trunk/dports/math/cadabra/files/patch-Makefile.in 2006-11-17 18:24:39 UTC (rev 20678)
@@ -0,0 +1,13 @@
+--- Makefile.in.sav 2006-11-17 12:26:35.000000000 -0500
++++ Makefile.in 2006-11-17 12:27:45.000000000 -0500
+@@ -51,8 +51,8 @@
+
+ install_program: program
+ ( cd src && $(MAKE) install );
+- install -d @prefix@/man/man1
+- install man/man1/cadabra.1 @prefix@/man/man1
++ install -d @prefix@/share/man/man1
++ install man/man1/cadabra.1 @prefix@/share/man/man1
+ install -d @prefix@/bin
+ install -d @prefix@/share/TeXmacs/plugins/cadabra/progs
+ install texmacs/init-cadabra.scm @prefix@/share/TeXmacs/plugins/cadabra/progs
Added: trunk/dports/math/cadabra/files/patch-src-Makefile.in
===================================================================
--- trunk/dports/math/cadabra/files/patch-src-Makefile.in (rev 0)
+++ trunk/dports/math/cadabra/files/patch-src-Makefile.in 2006-11-17 18:24:39 UTC (rev 20678)
@@ -0,0 +1,77 @@
+--- src/Makefile.in.sav 2006-11-17 10:07:36.000000000 -0500
++++ src/Makefile.in 2006-11-17 10:14:14.000000000 -0500
+@@ -25,13 +25,16 @@
+
+ #`pkg-config glib-2.0 --cflags`
+
++%.o: %.c
++ ${CC} -Wall -g -fnested-functions -c -o $@ $<
++
+ %.o: %.cc
+ ${CXX} -Wall -g ${MCFLAGS} ${TIMESTAMP} -c -o $@ $<
+
+ modules: $(MOBJS)
+
+ cadabra: $(OBJS) $(MOBJS)
+- ${CXX} -o cadabra ${LDFLAGS} `pkg-config modglue --libs` $+ -lgmpxx -lpcre -lpcre++ -lexpect
++ ${CXX} -o cadabra ${LDFLAGS} `pkg-config modglue --libs` $+ -lgmp -lgmpxx -lpcre -lpcre++ -lexpect
+
+ #`pkg-config glib-2.0 --libs`
+ # Static linking now works!
+@@ -40,19 +43,14 @@
+ rm -f main.o
+ ${CXX} -Wall -g ${MCFLAGS} ${TIMESTAMP} -DSTATICBUILD -c -o main.o main.cc
+ ifeq ($(strip $(MACTEST)),)
+- g++ -o cadabra -static $+ -L at prefix@/lib `pkg-config modglue --libs` -lmodglue \
++ g++ -o cadabra -static $+ ${LDFLAGS} `pkg-config modglue --libs` -lmodglue \
+ -lgmpxx -lgmp -lpcre++ -lpcre \
+ -lexpect5.42 \
+ `pkg-config sigc++-2.0 --libs` -lsigc-2.0 -lutil
+ else
+ export MACOSX_DEPLOYMENT_TARGET=10.3
+- g++ -o cadabra $+ @prefix@/lib/libmodglue.a \
+- @prefix@/lib/libgmpxx.a \
+- @prefix@/lib/libgmp.a \
+- @prefix@/lib/libpcre++.a \
+- @prefix@/lib/libpcre.a \
+- @prefix@/lib/libexpect5.43.a \
+- @prefix@/lib/libsigc-2.0.a
++ g++ -o cadabra $+ ${LDFLAGS} `pkg-config modglue --libs` \
++ -lgmp -lgmpxx -lpcre++ -lpcre -lexpect
+ endif
+
+ #-lglib-2.0
+@@ -73,9 +71,9 @@
+
+ test_lie: test_lie.o modules/lie.o
+ ifeq ($(strip $(MACTEST)),)
+- ${CXX} -o test_lie test_lie.o modules/lie.o -L at prefix@/lib -lexpect
++ ${CXX} -o test_lie test_lie.o modules/lie.o ${LDFLAGS} -lexpect
+ else
+- ${CXX} -o test_lie test_lie.o modules/lie.o @prefix@/lib/libexpect5.43.a
++ ${CXX} -o test_lie test_lie.o modules/lie.o ${LDFLAGS} -lexpect5.43
+ endif
+
+ tree_regression_tests: tree_regression_tests.o
+@@ -91,10 +89,10 @@
+ ${CXX} -o test_combinatorics test_combinatorics.o
+
+ test_young: test_young.o youngtab.o
+- ${CXX} -o test_young test_young.o youngtab.o -L at prefix@/lib -lgmpxx -lgmp
++ ${CXX} -o test_young test_young.o youngtab.o ${LDFLAGS} -lgmpxx -lgmp
+
+ test_preprocessor: test_preprocessor.o preprocessor.o
+- ${CXX} -o test_preprocessor test_preprocessor.o preprocessor.o -L at prefix@/lib -lgmpxx -lgmp
++ ${CXX} -o test_preprocessor test_preprocessor.o preprocessor.o ${LDFLAGS} -lgmpxx -lgmp
+
+ mpi_pass_tree: mpi_pass_tree.o
+ ${CXX} -o mpi_pass_tree mpi_pass_tree.o -L/usr/lib/mpich/lib -lmpich++ -lpmpich -lmpich
+@@ -109,7 +107,7 @@
+ # ${CXX} -o test_parser test_parser.o storage.o parser.o preprocessor.o display.o modules/properties.o algorithm.o -lgmpxx
+
+ test_gmp: test_gmp.o
+- ${CXX} -o test_gmp test_gmp.o -L at prefix@/lib -lgmpxx -lgmp
++ ${CXX} -o test_gmp test_gmp.o ${LDFLAGS} -lgmpxx -lgmp
+
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061117/8f35983f/attachment.html
More information about the macports-changes
mailing list