Ticket #32648: patch-reduce-algebra.diff
File patch-reduce-algebra.diff, 4.7 KB (added by pixilla (Bradley Giesbrecht), 12 years ago) |
---|
-
math/reduce-algebra/files/runpsl.in
1 #! /bin/sh 2 3 case `uname -m` in 4 i*) 5 STORE=16000000 6 ;; 7 x86_64) 8 STORE=1000 9 ;; 10 esac 11 12 bin="@LIBEXECDIR@/pslbuild/psl/bpsl" 13 img="@LIBEXECDIR@/pslbuild/red/reduce.img" 14 15 exec $bin -td $STORE -f $img $* 16 -
math/reduce-algebra/Portfile
4 4 PortSystem 1.0 5 5 6 6 name reduce-algebra 7 svn.revision 153 07 svn.revision 1534 8 8 version 3.8.0-r${svn.revision} 9 9 categories math 10 10 platforms darwin … … 13 13 14 14 description REDUCE algebra system 15 15 16 long_description REDUCE is an interactive program designed for general \ 17 algebraic computations of interest to mathematicians, \ 18 scientists and engineers. 16 long_description REDUCE is an interactive program designed for general algebraic \ 17 computations of interest to mathematicians, scientists and \ 18 engineers. It supports numerical approximation with arbitrary \ 19 precision and also interfaces with gnuplot to provide graphics. 19 20 20 21 homepage http://reduce-algebra.sourceforge.net/ 21 22 … … 36 37 use_parallel_build no 37 38 universal_variant no 38 39 39 set dest_dir ${prefix}/libexec/${name} 40 set topdir ${prefix}/libexec/${name} 41 set sharedir ${destroot}${prefix}/share/${name} 42 set libexecdir ${destroot}${prefix}/libexec/${name} 43 set docdir ${destroot}${prefix}/share/doc/${name} 44 set bindir ${destroot}${prefix}/bin 40 45 41 46 destroot { 42 # At present 'make install' is deeply broken, so manually install required files 43 xinstall -d ${destroot}${dest_dir}/doc 47 # 'make install' is outdated, so manually install required files 48 set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]] 49 set pslbuildir ${worksrcpath}/pslbuild/${builddir} 44 50 45 xinstall -m 0644 -W ${worksrcpath} BUGS BUILDING Contributor-Release.txt \ 46 DEPENDENCY_TRACKING INSTALL README ${destroot}${dest_dir}/doc 51 xinstall -d ${bindir} ${docdir} ${sharedir} ${libexecdir}/pslbuild 52 53 eval copy ${worksrcpath}/doc/manual ${docdir}/manual 54 eval copy ${worksrcpath}/packages ${sharedir}/packages 55 eval copy ${worksrcpath}/psl ${libexecdir}/psl 56 foreach d {buildlogs deps psl red} { 57 eval copy ${pslbuildir}/$d ${libexecdir}/pslbuild/$d 58 } 47 59 48 xinstall -d ${destroot}${dest_dir}/bin 49 xinstall ${worksrcpath}/bin/redpsl ${destroot}${dest_dir}/bin 50 51 xinstall -d ${destroot}${dest_dir}/pslbuild 52 eval copy [glob ${worksrcpath}/pslbuild/*] ${destroot}${dest_dir}/pslbuild 53 54 xinstall -d ${destroot}${dest_dir}/scripts 55 eval copy [glob ${worksrcpath}/scripts/*] ${destroot}${dest_dir}/scripts 56 57 xinstall ${worksrcpath}/config.guess ${destroot}${dest_dir} 60 xinstall ${filespath}/runpsl.in ${bindir}/redpsl 61 reinplace "s|@LIBEXECDIR@|${prefix}/libexec/${name}|g" ${bindir}/redpsl 58 62 } 59 63 60 64 variant html description {Install documentation in HTML format} { … … 66 70 } 67 71 68 72 post-destroot { 69 xinstall -d ${destroot}${dest_dir}/doc/html 70 eval xinstall -m 0644 [glob ${worksrcpath}/doc/manual/*.html] ${destroot}${dest_dir}/doc/html 73 eval xinstall -m 0644 [glob ${worksrcpath}/doc/manual/*.html] ${docdir}/manual 71 74 } 72 75 } 73 76 … … 80 83 } 81 84 82 85 post-destroot { 83 xinstall -d ${destroot}${dest_dir}/doc/pdf 84 xinstall -m 0644 ${worksrcpath}/doc/manual/manual-pdf.pdf ${destroot}${dest_dir}/doc/pdf 86 xinstall -m 0644 ${worksrcpath}/doc/manual/manual-pdf.pdf ${docdir}/manual 85 87 } 86 88 } 87 89 90 post-activate { 91 # create a second image after all modules have been built, with the final value of 92 # loaddirectories!*. Otherwise loading a module will always search the build directories 93 # in worksrcpath (which don't exist). 94 set pslbuildir ${topdir}/pslbuild 95 96 system "cd ${pslbuildir}; exec sh -xv ${topdir}/psl/saveimage.sh ${pslbuildir}/red \ 97 ${pslbuildir}" 98 99 file rename -force ${pslbuildir}/log/reduce.blg \ 100 ${pslbuildir}/buildlogs/reduce.img.blg 101 file delete -force ${pslbuildir}/log 102 } 103 88 104 livecheck.type none 89 90 notes "91 To use the PSL version of Reduce, add this directory to your PATH environment variable:92 ${prefix}/libexec/reduce-algebra/bin/93 "