source: trunk/dports/math/imaxima/Portfile

Last change on this file was 137624, checked in by mojca@…, 2 years ago

imaxima: remove the ptex variant (#41980)

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