| 1 | # $Id$ |
| 2 | |
| 3 | PortSystem 1.0 |
| 4 | |
| 5 | name imaxima |
| 6 | version 1.0 |
| 7 | categories math |
| 8 | maintainers nomaintainer |
| 9 | description GUI front-end for Maxima |
| 10 | long_description \ |
| 11 | Imaxima provides a graphical user interface front-end \ |
| 12 | for the computer algebra system Maxima in an Emacs buffer. |
| 13 | platforms darwin |
| 14 | homepage http://sites.google.com/site/imaximaimath/ |
| 15 | master_sites http://sites.google.com/site/imaximaimath/download-and-install/ |
| 16 | distname ${name}-imath-${version} |
| 17 | patchfiles patch-imaxima.el.diff |
| 18 | checksums md5 1cd6d58ec186d9b0477d99540358953a \ |
| 19 | sha1 7ae8d3a4dffed322ed6c79af6fe2a81df7c253e8 \ |
| 20 | rmd160 8cc125e6d9cd9d678506b856ab71b640bf23c966 |
| 21 | depends_lib path:bin/emacs:emacs |
| 22 | depends_run port:ghostscript \ |
| 23 | port:texlive \ |
| 24 | port:maxima |
| 25 | |
| 26 | set dir_info ${prefix}/share/info |
| 27 | configure.args --infodir=${dir_info} |
| 28 | |
| 29 | notes-append " |
| 30 | Before using ${name}, put the following lines in your .emacs |
| 31 | |
| 32 | ;; for Imaxima |
| 33 | (setq exec-path (cons \"${prefix}/bin\" exec-path)) |
| 34 | (autoload 'imaxima \"imaxima\" \"Image support for Maxima.\" t) |
| 35 | " |
| 36 | |
| 37 | use_parallel_build yes |
| 38 | |
| 39 | test.run yes |
| 40 | test.target check |
| 41 | |
| 42 | post-destroot { |
| 43 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} |
| 44 | set docs {AUTHORS COPYING ChangeLog INSTALL NEWS README} |
| 45 | foreach f ${docs} { |
| 46 | xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name} |
| 47 | } |
| 48 | |
| 49 | delete ${destroot}${dir_info}/dir |
| 50 | if (![variant_isset with_emacs_app]) { |
| 51 | # port:maxima installs ${prefix}/share/info/imaxima.info |
| 52 | delete ${destroot}${dir_info}/imaxima.info |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | universal_variant no |
| 57 | |
| 58 | variant with_emacs_app description {Use this package with Emacs.app} { |
| 59 | depends_lib-delete path:bin/emacs:emacs |
| 60 | depends_lib-append path:${applications_dir}/Emacs.app/Contents/MacOS/Emacs:emacs-app |
| 61 | |
| 62 | set dir_info ${applications_dir}/Emacs.app/Contents/Resources/info |
| 63 | configure.env EMACS=${applications_dir}/Emacs.app/Contents/MacOS/Emacs |
| 64 | configure.args --with-lispdir=${applications_dir}/Emacs.app/Contents/Resources/site-lisp/${name} \ |
| 65 | --infodir=${dir_info} |
| 66 | } |
| 67 | |
| 68 | variant with_ptex description {Use pTeX instead of texlive} { |
| 69 | depends_run-delete port:texlive |
| 70 | depends_run-append port:pTeX |
| 71 | } |
| 72 | |
| 73 | livecheck.type regex |
| 74 | livecheck.url "http://sites.google.com/site/imaximaimath/download-and-install" |
| 75 | livecheck.regex "${name}-imath-(\[0-9.a-z\+\-\]+).tar.gz" |