[27302] trunk/dports/math
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 27 22:22:31 PDT 2007
Revision: 27302
http://trac.macosforge.org/projects/macports/changeset/27302
Author: takanori at macports.org
Date: 2007-07-27 22:22:31 -0700 (Fri, 27 Jul 2007)
Log Message:
-----------
New port: wxMaxima
Ticket: #12246
Submitted by: usami-k at yc5 dot so-net dot ne dot jp
Reviewed by: takanori@
Added Paths:
-----------
trunk/dports/math/wxMaxima/
trunk/dports/math/wxMaxima/Portfile
trunk/dports/math/wxMaxima/files/
trunk/dports/math/wxMaxima/files/patch-src_main.cpp.diff
Added: trunk/dports/math/wxMaxima/Portfile
===================================================================
--- trunk/dports/math/wxMaxima/Portfile (rev 0)
+++ trunk/dports/math/wxMaxima/Portfile 2007-07-28 05:22:31 UTC (rev 27302)
@@ -0,0 +1,43 @@
+# $Id$
+PortSystem 1.0
+name wxMaxima
+version 0.7.2
+revision 3
+maintainers usami-k at yc5.so-net.ne.jp
+platforms darwin
+categories math aqua
+description Graphical user interface for Maxima
+long_description \
+ wxMaxima is a cross platform GUI for the computer algebra \
+ system maxima based on wxWidgets.
+homepage http://wxmaxima.sourceforge.net/
+master_sites sourceforge:wxmaxima
+checksums md5 4a0c6099a60d5f54e262cc505d8caca7
+patchfiles patch-src_main.cpp.diff
+
+depends_lib port:libiconv \
+ port:libsdl \
+ port:libxml2 \
+ port:wxWidgets \
+ port:zlib
+depends_run port:maxima
+
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp
+}
+
+configure.args --enable-dnd --enable-printing --enable-unicode-glyphs
+build.target-append wxMaxima.app
+
+destroot {
+ set appPath "/Applications/MacPorts/"
+ xinstall -m 755 -d ${destroot}${appPath}
+ file copy ${worksrcpath}/wxMaxima.app ${destroot}${appPath}
+
+ set docPath ${prefix}/share/doc/${name}
+ xinstall -m 755 -d ${destroot}${docPath}
+ foreach f { AUTHORS COPYING README } {
+ xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath}
+ }
+}
+
Property changes on: trunk/dports/math/wxMaxima/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/math/wxMaxima/files/patch-src_main.cpp.diff
===================================================================
--- trunk/dports/math/wxMaxima/files/patch-src_main.cpp.diff (rev 0)
+++ trunk/dports/math/wxMaxima/files/patch-src_main.cpp.diff 2007-07-28 05:22:31 UTC (rev 27302)
@@ -0,0 +1,19 @@
+--- src/main.cpp.orig 2007-02-22 18:32:23.000000000 +0900
++++ src/main.cpp 2007-07-28 14:08:23.000000000 +0900
+@@ -40,6 +40,16 @@
+
+ bool MyApp::OnInit()
+ {
++ {
++ wxString oldpath;
++ wxGetEnv(wxT("PATH"), &oldpath);
++ if (oldpath.Find(wxT("@@PREFIX@@/bin")) == -1)
++ {
++ wxString newpath = oldpath.Prepend(wxT("@@PREFIX@@/bin:"));
++ wxSetEnv(wxT("PATH"), newpath);
++ }
++ }
++
+ wxConfig *config = new wxConfig(wxT("wxMaxima"));
+ wxConfig::Set(config);
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070727/1fe0b283/attachment.html
More information about the macports-changes
mailing list