[142617] trunk/dports/math

ryandesign at macports.org ryandesign at macports.org
Sat Dec 12 06:30:57 PST 2015


Revision: 142617
          https://trac.macports.org/changeset/142617
Author:   ryandesign at macports.org
Date:     2015-11-17 10:48:41 -0800 (Tue, 17 Nov 2015)
Log Message:
-----------
reduce-algebra: renamed to reduce (#45740) and updated to 20141022 (#45739)

Modified Paths:
--------------
    trunk/dports/math/reduce/Portfile
    trunk/dports/math/reduce-algebra/Portfile

Added Paths:
-----------
    trunk/dports/math/reduce/
    trunk/dports/math/reduce/files/
    trunk/dports/math/reduce/files/patch-csl-cslbase-crlibm-configure.diff
    trunk/dports/math/reduce/files/patch-src-redline.c.diff
    trunk/dports/math/reduce/files/runcsl.in
    trunk/dports/math/reduce/files/runpsl.in

Modified: trunk/dports/math/reduce/Portfile
===================================================================
--- trunk/dports/math/reduce-algebra/Portfile	2015-11-16 14:41:30 UTC (rev 142589)
+++ trunk/dports/math/reduce/Portfile	2015-11-17 18:48:41 UTC (rev 142617)
@@ -1,94 +1,430 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem          1.0
+PortSystem              1.0
 
-name                reduce-algebra
-svn.revision        1530
-version             3.8.0-r${svn.revision}
-revision            1
-categories          math
-platforms           darwin
-license             BSD
-maintainers         gmail.com:mark.brethen
+name                    reduce
+version                 20141022
+svn.revision            2744
+categories              math
+platforms               darwin
+maintainers             gmail.com:mark.brethen openmaintainer
 
-description         REDUCE algebra system
+# The BULK of the files are subject to the (modified) BSD license.
+# There are some components that are subject to more restrictive
+# terms (notably the FOX GUI Toolkit, used in one version of the
+# code, is under LGPL).
+# See http://sourceforge.net/p/reduce-algebra/code/HEAD/tree/trunk/README
+license                 BSD LGPL-2.1
+fetch.type              svn
+svn.url                 http://svn.code.sf.net/p/reduce-algebra/code/trunk
+svn.args-append         --depth files
+worksrcdir              trunk
 
-long_description    REDUCE is an interactive program designed for general \
-                    algebraic computations of interest to mathematicians, \
-                    scientists and engineers.
+description             REDUCE Computer Algebra System
 
-homepage            http://reduce-algebra.sourceforge.net/
+long_description        REDUCE is a graphical Computer Algebra System. It\
+    allows for solving differential equations, integration,\
+    matrix manipulation and 3D plotting. It also contains a\
+    large number of additional packages.
 
-fetch.type          svn
-svn.url             https://reduce-algebra.svn.sourceforge.net/svnroot/reduce-algebra/trunk
-svn.method          checkout
-worksrcdir          trunk
+homepage                http://reduce-algebra.sourceforge.net/
 
-depends_build       port:pkgconfig
+depends_lib-append \
+    port:libedit\
+    port:xorg-libXcursor\
+    port:Xft2\
+    port:xorg-libXrandr\
+    port:freetype\
+    port:ncurses
 
-depends_lib         port:ncurses \
-                    port:Xft2 \
-                    port:xorg-libX11 \
-                    port:xorg-libXext
+depends_build-append    port:autoconf
 
-configure.args      --with-psl
+depends_run             port:gnuplot
 
-use_parallel_build  no
-universal_variant   no
+universal_variant       no
+use_parallel_build      no
 
-set dest_dir        ${prefix}/libexec/${name}
+set docsrcdir        ${worksrcpath}/doc/manual
+set docprimersdir    ${worksrcpath}/doc/primers
 
-destroot {
-# At present 'make install' is deeply broken, so manually install required files
-    xinstall -d ${destroot}${dest_dir}/doc
+set docbasename      manual
 
-    xinstall -m 0644 -W ${worksrcpath} BUGS BUILDING Contributor-Release.txt \
-        DEPENDENCY_TRACKING INSTALL README ${destroot}${dest_dir}/doc
+set genericdir       ${worksrcpath}/generic
+set redfrontsrcdir   ${genericdir}/redfront/src
+set redfrontbuilddir ${genericdir}/redfront
 
-    xinstall -d ${destroot}${dest_dir}/bin
-    xinstall ${worksrcpath}/bin/redpsl ${destroot}${dest_dir}/bin
+set libexecdir       ${destroot}${prefix}/libexec/${name}
+set sharedir         ${destroot}${prefix}/share/${name}
+set redfrontsharedir ${destroot}${prefix}/share/reduce-addons/redfront
+set fontdir          ${destroot}${prefix}/share/${name}/fonts
+set resourcesdir     ${destroot}${prefix}/share/${name}/resources
+set testlogsdir      ${destroot}${prefix}/share/${name}/testlogs
+set docdir           ${destroot}${prefix}/share/doc/${name}
+set addondocdir      ${destroot}${prefix}/share/doc/reduce-addons
+set mandir           ${destroot}${prefix}/share/man/man1
+set sitelispdir      ${destroot}${prefix}/share/emacs/site-lisp/${name}
+set bindir           ${destroot}${prefix}/bin
 
-    xinstall -d ${destroot}${dest_dir}/pslbuild
-    eval copy [glob ${worksrcpath}/pslbuild/*] ${destroot}${dest_dir}/pslbuild
+pre-fetch {
+    if {${os.major} < 13} {
+        ui_error "${name} is only supported on OS X 10.9 Mavericks or later."
+        return -code error "unsupported platform version"
+    }
+}
 
-    xinstall -d ${destroot}${dest_dir}/scripts
-    eval copy [glob ${worksrcpath}/scripts/*] ${destroot}${dest_dir}/scripts
+# This is just a stub that installs all REDUCE subports.
+if {${name} eq ${subport}} {
+    supported_archs noarch
+    distfiles
+    archive_sites
 
-    xinstall ${worksrcpath}/config.guess ${destroot}${dest_dir}
+    use_configure   no
+
+    build           {}
+
+    depends_run-append\
+        port:reduce-common\
+        port:reduce-csl\
+        port:reduce-psl\
+        port:reduce-addons
+
+    destroot {
+        # Create a dummy file so the port can be successfully activated.
+        xinstall -d ${docdir}
+        set docfile [open ${docdir}/README.${name}.txt "w"]
+        puts $docfile "REDUCE ${version} (MacPorts revision ${version}_${revision})\n"
+        puts $docfile "${long_description}\n"
+        close $docfile
+    }
 }
 
-variant html description {Install documentation in HTML format} {
-    depends_build-append bin:makeindex:texlive-basic
-    depends_build-append bin:mk4ht:texlive-htmlxml
+subport reduce-common {
+    license                 BSD
+    description             ${description} -- common files
 
-    post-build {
-        system -W ${worksrcpath}/doc/manual "./mkhtml.sh"
+    long_description        "${long_description}
+
+This installs the files that are independent of the Lisp system used.
+"
+    use_configure           no
+
+    build.dir               ${worksrcpath}/doc/manual
+    # Build errors were caused by broken symlinks in the texlive-bin port.
+    # Fixed in r142269.
+    depends_lib-append \
+        bin:makeindex:texlive-basic\
+        bin:pdftex:texlive-basic\
+        bin:mk4ht:texlive-htmlxml\
+        bin:htlatex:texlive-htmlxml
+
+    patch {
+        reinplace "s|'\${JOBNAME}'|'\"\${JOBNAME}\"'|g" ${docsrcdir}/mkhtml.sh
     }
 
-    post-destroot {
-        xinstall -d ${destroot}${dest_dir}/doc/html
-        eval xinstall -m 0644 [glob ${worksrcpath}/doc/manual/*.html] ${destroot}${dest_dir}/doc/html
+    post-fetch {
+        set urlfrom {
+            http://svn.code.sf.net/p/reduce-algebra/code/trunk/csl/reduce.doc/BSD-LICENSE.txt\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/csl/reduce.doc/LGPL-2.1.txt\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/doc/manual\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/doc/primers\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/packages/package.map
+        }
+
+        set pathto [list ${worksrcdir}/csl/reduce.doc\
+                        ${worksrcdir}/csl/reduce.doc\
+                        ${worksrcdir}/doc/manual\
+                        ${worksrcdir}/doc/primers\
+                        ${worksrcdir}/packages
+                    ]
+        
+        foreach u $urlfrom p $pathto {
+            set cmdstring "${svn.cmd} ${svn.method} -r ${svn.revision} --force $u . 2>&1"
+            file mkdir ${workpath}/$p
+            ui_debug "Executing ${cmdstring}"
+            if {[catch {system -W ${workpath}/$p ${cmdstring}} -]} {
+                return -code error [msgcat::mc "svn export failed"]
+            }
+        }
     }
+
+    pre-build {
+        system -W ${docsrcdir} "${build.cmd} clean"
+    }
+
+    destroot {
+        # Create target directory
+        xinstall -d ${docdir} ${resourcesdir}
+
+        # Copy common files
+        xinstall -m 644 -W ${docprimersdir}\
+            primer.pdf\
+            sl.pdf\
+            insidereduce.pdf ${docdir}
+        xinstall -m 644 -W ${worksrcpath}/csl/reduce.doc\
+            BSD-LICENSE.txt\
+            LGPL-2.1.txt ${docdir}
+        xinstall -m 644 {*}[glob ${docsrcdir}/${docbasename}*.tex] ${docdir}
+        xinstall -m 644 {*}[glob ${docsrcdir}/${docbasename}*.html] ${docdir}
+        xinstall -m 644 {*}[glob ${docsrcdir}/${docbasename}*.png] ${docdir}
+        xinstall -m 644 -W ${docsrcdir}\
+            ${docbasename}.pdf\
+            index.html\
+            redlogo.png\
+            ${docbasename}.css ${docdir}
+        xinstall -m 644 ${worksrcpath}/README ${docdir}
+        xinstall -m 644 ${worksrcpath}/packages/package.map ${resourcesdir}
+    }
 }
 
-variant pdf description {Install documentation in PDF format} {
-    depends_build-append bin:makeindex:texlive-basic
-    depends_build-append bin:pdflatex:texlive-basic
 
-    post-build {
-        system -W ${worksrcpath}/doc/manual "./mkpdf.sh"
+subport reduce-csl {
+    license                 {BSD LGPL-2.1}
+    description             ${description} -- CSL version
+
+    long_description        "${long_description}
+
+This installs the Codemist Standard Lisp version of REDUCE.
+"
+
+    patchfiles-append       patch-csl-cslbase-crlibm-configure.diff
+
+    configure.args-append   --with-csl
+
+    post-fetch {
+        set urlfrom {
+            http://svn.code.sf.net/p/reduce-algebra/code/trunk/csl\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/debianbuild/reduce/debian/redcsl.1\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/packages\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/scripts
+        }
+
+        set pathto [list ${worksrcdir}/csl\
+                        ${worksrcdir}/debianbuild/reduce/debian\
+                        ${worksrcdir}/packages\
+                        ${worksrcdir}/scripts
+                   ]
+
+        foreach u $urlfrom p $pathto {
+            set cmdstring "${svn.cmd} ${svn.method} -r ${svn.revision} --force $u . 2>&1"
+            file mkdir ${workpath}/$p
+            ui_debug "Executing ${cmdstring}"
+            if {[catch {system -W ${workpath}/$p ${cmdstring}} -]} {
+                return -code error [msgcat::mc "svn export failed"]
+            }
+        }
     }
 
-    post-destroot {
-        xinstall -d ${destroot}${dest_dir}/doc/pdf
-        xinstall -m 0644 ${worksrcpath}/doc/manual/manual-pdf.pdf ${destroot}${dest_dir}/doc/pdf
+    destroot {
+        set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]
+        set cslbuilddir ${worksrcpath}/cslbuild/${builddir}
+        # Create target directories
+        xinstall -d \
+            ${libexecdir}/cslbuild/csl\
+            ${sharedir}\
+            ${fontdir}\
+            ${resourcesdir}\
+            ${mandir}
+        # Copy CSL files
+        xinstall -p -W ${cslbuilddir}/csl\
+            reduce\
+            reduce.img\
+            csl\
+            csl.img ${libexecdir}/cslbuild/csl
+        ln -s ${prefix}/share/doc/${name} ${libexecdir}/cslbuild/csl/reduce.doc
+        ln -s ${prefix}/share/${name}/fonts ${libexecdir}/cslbuild/csl/reduce.fonts
+        ln -s ${prefix}/share/${name}/resources ${libexecdir}/cslbuild/csl/reduce.resources
+        ln -s ${prefix}/libexec/${name}/cslbuild ${sharedir}/cslbuild
+        # Font files
+        foreach f [glob -tails -directory ${cslbuilddir}/csl/reduce.fonts/ *] {
+            if {![string equal $f "src"]} {
+                file copy ${cslbuilddir}/csl/reduce.fonts/$f ${fontdir}
+            }
+        }
+        # Resource files
+        xinstall -m 644 -W ${cslbuilddir}/csl/reduce.resources\
+            mma.awk\
+            qepcad.awk ${resourcesdir}
+        # Copy man files
+        xinstall -m 644 ${worksrcpath}/debianbuild/reduce/debian/redcsl.1 ${mandir}
+        # Shell script for running REDUCE
+        xinstall ${filespath}/runcsl.in ${bindir}/redcsl
+        reinplace "s|@LIBEXECDIR@|${prefix}/libexec/${name}|g" ${bindir}/redcsl
     }
 }
 
-livecheck.type      none
 
-notes "
-To use the PSL version of Reduce, add this directory to your PATH environment variable:
-    ${prefix}/libexec/reduce-algebra/bin/
+subport reduce-psl {
+    license                 BSD
+    description             ${description} -- PSL version
+
+    long_description        "${long_description}
+
+This installs the Portable Standard Lisp version of REDUCE.
 "
+
+    configure.args-append   --with-psl
+
+    post-fetch {
+        set urlfrom {
+            http://svn.code.sf.net/p/reduce-algebra/code/trunk/psl\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/debianbuild/reduce/debian/redpsl.1\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/packages\
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/scripts
+        }
+
+        set pathto [list ${worksrcdir}/psl\
+                        ${worksrcdir}/debianbuild/reduce/debian\
+                        ${worksrcdir}/packages\
+                        ${worksrcdir}/scripts
+                   ]
+
+        foreach u $urlfrom p $pathto {
+            set cmdstring "${svn.cmd} ${svn.method} -r ${svn.revision} --force $u . 2>&1"
+            file mkdir ${workpath}/$p
+            ui_debug "Executing ${cmdstring}"
+            if {[catch {system -W ${workpath}/$p ${cmdstring}} -]} {
+                return -code error [msgcat::mc "svn export failed"]
+            }
+        }
+    }
+
+    destroot {
+        set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]
+        set pslbuilddir ${worksrcpath}/pslbuild/${builddir}
+        # create target directories
+        xinstall -d \
+            ${libexecdir}/pslbuild/psl\
+            ${libexecdir}/pslbuild/red\
+            ${sharedir}\
+            ${mandir}
+        ### Create a second image after all (psl) modules have been built, with
+        ### the final value of loaddirectories!*.
+        ui_debug "Saving a new image..."
+        system "cd ${pslbuilddir}; exec ${worksrcpath}/psl/saveimage.sh\
+           ${pslbuilddir} \
+           ${pslbuilddir}/red \
+           ${prefix}/libexec/${name}/pslbuild"
+        # copy PSL files
+        copy {*}[glob ${pslbuilddir}/psl/*] ${libexecdir}/pslbuild/psl
+        copy {*}[glob ${pslbuilddir}/red/*] ${libexecdir}/pslbuild/red
+        ln -s ${prefix}/libexec/${name}/pslbuild ${sharedir}/pslbuild
+        # copy man files
+        xinstall -m 644 ${worksrcpath}/debianbuild/reduce/debian/redpsl.1 ${mandir}
+        # shell script for running REDUCE
+        xinstall ${filespath}/runpsl.in ${bindir}/redpsl
+        reinplace "s|@LIBEXECDIR@|${prefix}/libexec/${name}|g" ${bindir}/redpsl
+    }
+}
+
+
+subport reduce-addons {
+    license                 GPL
+    svn.dir                 ${workpath}
+    description             Useful addons for the REDUCE Computer Algebra System
+
+    long_description        "${description}
+These include:
+  reduce-mode, an emacs mode
+  redfront, a frontend with line editing and color output
+  breduce, a REDUCE batch processing utility"
+
+    depends_lib-append      bin:makeinfo:texinfo
+
+    depends_build-append    port:emacs-app
+
+    worksrcdir              ${redfrontbuilddir}
+
+    patchfiles-append       patch-src-redline.c.diff
+
+    configure.cmd           ./src/configure
+    configure.args-append\
+        --with-libedit\
+        --with-package-map=${prefix}/share/${name}/resources/package.map\
+        --with-csl-reduce=${prefix}/libexec/${name}/cslbuild/csl/reduce\
+        --with-bpsl=${prefix}/libexec/${name}/pslbuild/psl/bpsl\
+        --with-reduce-img=${prefix}/libexec/${name}/pslbuild/red/reduce.img
+
+    post-fetch {
+        set urlfrom {
+                http://svn.code.sf.net/p/reduce-algebra/code/trunk/bin\
+                    http://svn.code.sf.net/p/reduce-algebra/code/trunk/generic\
+                    http://svn.code.sf.net/p/reduce-algebra/code/trunk/scripts
+        }
+
+        set pathto [list ${svn.dir}/trunk/bin\
+                        ${svn.dir}/trunk/generic\
+                        ${svn.dir}/trunk/scripts
+                   ]
+        foreach u $urlfrom p $pathto {
+            set cmdstring "${svn.cmd} ${svn.method} -r ${svn.revision} --force $u . 2>&1"
+            file mkdir $p
+            ui_debug "Executing ${cmdstring}"
+            if {[catch {system -W $p ${cmdstring}} -]} {
+                return -code error [msgcat::mc "svn export failed"]
+            }
+        }
+    }
+
+    post-patch {
+        reinplace "s|/usr/share/doc/reduce-addons|${prefix}/share/doc/reduce-addons|g"\
+            ${genericdir}/breduce/breduce.1
+    }
+
+    pre-configure {
+        system -W ${redfrontbuilddir} "${build.cmd} maintainer-clean"
+        system -W ${redfrontsrcdir} "autoconf ; autoheader"
+    }
+
+    post-build {
+        system -W ${genericdir}/emacs\
+            "${applications_dir}/Emacs.app/Contents/MacOS/Emacs -q --no-site-file -batch -f batch-byte-compile reduce-mode.el reduce-run.el"
+        system -W ${genericdir}/emacs "makeinfo reduce-ide.texinfo"
+    }
+
+    destroot {
+        # create target directories
+        xinstall -d \
+            ${addondocdir}\
+            ${mandir}\
+            ${sitelispdir}
+        # copy addons
+        xinstall -m 644 ${redfrontsrcdir}/README ${addondocdir}
+        xinstall -m 644 -W ${genericdir}/breduce\
+            breduce.bbl\
+            breduce.pdf\
+            breduce.tex ${addondocdir}
+        xinstall -m 644 ${redfrontsrcdir}/redfront.1 ${mandir}
+        ln -s ${prefix}/share/man/man1/redfront.1 ${mandir}/rfcsl.1
+        ln -s ${prefix}/share/man/man1/redfront.1 ${mandir}/rfpsl.1
+        xinstall -m 644 ${genericdir}/breduce/breduce.1 ${mandir}
+        xinstall ${redfrontbuilddir}/redfront ${bindir}
+        ln -s ${prefix}/bin/redfront ${bindir}/rfcsl
+        ln -s ${prefix}/bin/redfront ${bindir}/rfpsl
+        xinstall ${genericdir}/breduce/breduce ${bindir}
+        xinstall -m 644 -W ${genericdir}/emacs\
+            reduce-ide.info\
+            reduce-ide.texinfo ${addondocdir}
+        xinstall -m 644 -W ${genericdir}/emacs \
+            reduce-mode.el \
+            reduce-mode.elc \
+            reduce-run.el \
+            reduce-run.elc \
+            ${sitelispdir}
+    }
+
+    notes-append    "
+REDUCE edit mode is provided by a file called 'reduce-mode.el'. This file\
+is byte-compiled, and the compiled file 'reduce-mode.elc' is installed in\
+${prefix}/share/emacs/site-lisp/${name}. To automatically load this file,\
+put the following lines in your '.emacs' file:
+
+\(autoload ’reduce-mode \"reduce-mode\" \"Major mode for REDUCE code editing\" t)
+
+;; Automatically start .red files in reduce mode.
+\(add-to-list ’auto-mode-alist ’(\"\\\.red\\\’\" . reduce-mode))
+
+Installation of REDUCE run mode is documented separately. See\
+'${prefix}/share/doc/reduce-addons/reduce-ide.info'.
+"
+}

Added: trunk/dports/math/reduce/files/patch-csl-cslbase-crlibm-configure.diff
===================================================================
--- trunk/dports/math/reduce/files/patch-csl-cslbase-crlibm-configure.diff	                        (rev 0)
+++ trunk/dports/math/reduce/files/patch-csl-cslbase-crlibm-configure.diff	2015-11-17 18:48:41 UTC (rev 142617)
@@ -0,0 +1,11 @@
+--- csl/cslbase/crlibm/configure.orig	2015-11-16 20:19:32.000000000 -0600
++++ csl/cslbase/crlibm/configure	2015-11-17 12:25:05.000000000 -0600
+@@ -2761,7 +2761,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+ $as_echo "$MKDIR_P" >&6; }
+ 
+-for ac_prog in gawk mawk nawk awk
++for ac_prog in gawk mawk awk
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2

Added: trunk/dports/math/reduce/files/patch-src-redline.c.diff
===================================================================
--- trunk/dports/math/reduce/files/patch-src-redline.c.diff	                        (rev 0)
+++ trunk/dports/math/reduce/files/patch-src-redline.c.diff	2015-11-17 18:48:41 UTC (rev 142617)
@@ -0,0 +1,38 @@
+--- src/redline.c.orig	2014-08-07 08:34:58.000000000 -0500
++++ src/redline.c	2014-11-01 13:43:27.000000000 -0500
+@@ -63,7 +63,7 @@
+ int fn_complete(EditLine *,
+     char *(*)(const char *, int),
+     char **(*)(const char *, int, int),
+-    const char *, const char *, const char *(*)(const char *), size_t,
++    const wchar_t *, const wchar_t *, const char *(*)(const char *), size_t,
+     int *, int *, int *, int *);
+ 
+ void fn_display_match_list(EditLine *, char **, size_t, size_t);
+@@ -84,7 +84,7 @@
+ static HistEvent ev;
+ static char line_prompt[50];
+ 
+-static char line_break_chars[] = {' ', '\t', '\n', '"', '\\', '\'', '`', '@',
++static wchar_t line_break_chars[] = {' ', '\t', '\n', '"', '\\', '\'', '`', '@',
+ 				  '$', '>', '<', '=', ';', '|', '&', '{', '(',
+ 				  ',', '\0'};
+ 
+@@ -96,7 +96,7 @@
+ char *line_get_rprompt(EditLine *);
+ unsigned char line_complete(EditLine *,int);
+ unsigned char line_fn_complete(EditLine *,char *(*)(const char *, int),
+-			       const char *, const char *(*)(const char *),
++			       const wchar_t *, const char *(*)(const char *),
+ 			       size_t);
+ char *line_filename_completion_function(const char *, int);
+ const char *line_append_char_function(const char *);
+@@ -207,7 +207,7 @@
+ 
+ unsigned char line_fn_complete(EditLine *el,
+ 			       char *(*complet_func)(const char *, int),
+-			       const char *word_break,
++			       const wchar_t *word_break,
+ 			       const char *(*app_func)(const char *),
+ 			       size_t query_items) {
+   return (unsigned char )fn_complete(el,

Added: trunk/dports/math/reduce/files/runcsl.in
===================================================================
--- trunk/dports/math/reduce/files/runcsl.in	                        (rev 0)
+++ trunk/dports/math/reduce/files/runcsl.in	2015-11-17 18:48:41 UTC (rev 142617)
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+exec @LIBEXECDIR@/cslbuild/csl/reduce $*
+


Property changes on: trunk/dports/math/reduce/files/runcsl.in
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/math/reduce/files/runpsl.in
===================================================================
--- trunk/dports/math/reduce/files/runpsl.in	                        (rev 0)
+++ trunk/dports/math/reduce/files/runpsl.in	2015-11-17 18:48:41 UTC (rev 142617)
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+case `uname -m` in
+i*)
+      STORE=16000000
+      ;;
+x86_64)
+      STORE=1000
+      ;;
+esac
+
+bin="@LIBEXECDIR@/pslbuild/psl/bpsl"
+img="@LIBEXECDIR@/pslbuild/red/reduce.img"
+
+exec $bin -td $STORE -f $img $*
+


Property changes on: trunk/dports/math/reduce/files/runpsl.in
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: trunk/dports/math/reduce-algebra/Portfile
===================================================================
--- trunk/dports/math/reduce-algebra/Portfile	2015-11-17 16:23:17 UTC (rev 142616)
+++ trunk/dports/math/reduce-algebra/Portfile	2015-11-17 18:48:41 UTC (rev 142617)
@@ -2,93 +2,12 @@
 # $Id$
 
 PortSystem          1.0
-
+replaced_by         reduce
+PortGroup           obsolete 1.0
 name                reduce-algebra
-svn.revision        1530
-version             3.8.0-r${svn.revision}
-revision            1
+version             20141022
 categories          math
-platforms           darwin
-license             BSD
-maintainers         gmail.com:mark.brethen
-
-description         REDUCE algebra system
-
-long_description    REDUCE is an interactive program designed for general \
-                    algebraic computations of interest to mathematicians, \
-                    scientists and engineers.
-
+license             BSD LGPL-2.1
+maintainers         gmail.com:mark.brethen\
+    openmaintainer
 homepage            http://reduce-algebra.sourceforge.net/
-
-fetch.type          svn
-svn.url             https://reduce-algebra.svn.sourceforge.net/svnroot/reduce-algebra/trunk
-svn.method          checkout
-worksrcdir          trunk
-
-depends_build       port:pkgconfig
-
-depends_lib         port:ncurses \
-                    port:Xft2 \
-                    port:xorg-libX11 \
-                    port:xorg-libXext
-
-configure.args      --with-psl
-
-use_parallel_build  no
-universal_variant   no
-
-set dest_dir        ${prefix}/libexec/${name}
-
-destroot {
-# At present 'make install' is deeply broken, so manually install required files
-    xinstall -d ${destroot}${dest_dir}/doc
-
-    xinstall -m 0644 -W ${worksrcpath} BUGS BUILDING Contributor-Release.txt \
-        DEPENDENCY_TRACKING INSTALL README ${destroot}${dest_dir}/doc
-
-    xinstall -d ${destroot}${dest_dir}/bin
-    xinstall ${worksrcpath}/bin/redpsl ${destroot}${dest_dir}/bin
-
-    xinstall -d ${destroot}${dest_dir}/pslbuild
-    eval copy [glob ${worksrcpath}/pslbuild/*] ${destroot}${dest_dir}/pslbuild
-
-    xinstall -d ${destroot}${dest_dir}/scripts
-    eval copy [glob ${worksrcpath}/scripts/*] ${destroot}${dest_dir}/scripts
-
-    xinstall ${worksrcpath}/config.guess ${destroot}${dest_dir}
-}
-
-variant html description {Install documentation in HTML format} {
-    depends_build-append bin:makeindex:texlive-basic
-    depends_build-append bin:mk4ht:texlive-htmlxml
-
-    post-build {
-        system -W ${worksrcpath}/doc/manual "./mkhtml.sh"
-    }
-
-    post-destroot {
-        xinstall -d ${destroot}${dest_dir}/doc/html
-        eval xinstall -m 0644 [glob ${worksrcpath}/doc/manual/*.html] ${destroot}${dest_dir}/doc/html
-    }
-}
-
-variant pdf description {Install documentation in PDF format} {
-    depends_build-append bin:makeindex:texlive-basic
-    depends_build-append bin:pdflatex:texlive-basic
-
-    post-build {
-        system -W ${worksrcpath}/doc/manual "./mkpdf.sh"
-    }
-
-    post-destroot {
-        xinstall -d ${destroot}${dest_dir}/doc/pdf
-        xinstall -m 0644 ${worksrcpath}/doc/manual/manual-pdf.pdf ${destroot}${dest_dir}/doc/pdf
-    }
-}
-
-livecheck.type      none
-
-notes "
-To use the PSL version of Reduce, add this directory to your PATH environment variable:
-    ${prefix}/libexec/reduce-algebra/bin/
-"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/6b1a5ffe/attachment-0001.html>


More information about the macports-changes mailing list