source: trunk/dports/editors/TeXmacs/Portfile @ 134549

Last change on this file since 134549 was 134549, checked in by ryandesign@…, 5 years ago

TeXmacs: update to 1.99.2 (#43428)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 134549 2015-03-30 01:55:26Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            TeXmacs
6conflicts       fig2ps
7version         1.99.2
8distname        ${distname}-src
9categories      editors
10maintainers     nomaintainer
11platforms       darwin
12
13description     GNU TeXmacs: A Scientific Text Editor
14long_description        \
15                GNU TeXmacs is a free scientific text editor,           \
16                which was both inspired by TeX and GNU Emacs.           \
17                The editor allows you to write structured documents     \
18                via a wysiwyg (what-you-see-is-what-you-get) and        \
19                user friendly interface. New styles may be created by   \
20                the user. The program implements high-quality           \
21                typesetting algorithms and TeX fonts, which help you    \
22                to produce professionally looking documents.            \
23                                                                        \
24                The high typesetting quality still goes through for     \
25                automatically generated formulas, which makes TeXmacs   \
26                suitable as an interface for computer algebra systems.  \
27                TeXmacs also supports the Guile/Scheme extension        \
28                language, so that you may customize the interface and   \
29                write your own extensions to the editor.
30
31#user_notes     If texmacs can't find guile's modules, you will have to \
32#               set GUILE_LOAD_PATH explicitly (usually                 \
33#               ${prefix}/share/guile/1.8).                             \
34#                                                                       \
35#               Also, you may need to set DISPLAY to localhost:0.0 if   \
36#               launching TeXmacs from a non-X11 terminal.
37
38#bugs           Some of the computer algebra system sessions (e.g.,     \
39#               maxima) will hang if you try to use the online help     \
40#               function.
41
42homepage        http://www.texmacs.org/
43master_sites    ${homepage}Download/ftp/tmftp/source/:source \
44                ftp://ftp.texmacs.org/pub/${name}/fonts/:fonts
45
46distfiles       ${name}-${version}-src${extract.suffix}:source \
47                ${name}-extra-fonts-1.0-noarch${extract.suffix}:fonts
48
49checksums       ${name}-${version}-src${extract.suffix} \
50                md5     544ee0ada9a7fe0ea39e33d94e8d5ff5 \
51                sha1    5298e9bd3f61cd8f2117fe1d96a7435f8a788cc8 \
52                rmd160  f4dbbbd80832f3527e4e0c58f651da1adf8a0df5 \
53                ${name}-extra-fonts-1.0-noarch${extract.suffix} \
54                md5     4666d29252da18bbc3fa7e162bb00b17 \
55                sha1    c7a1af56b1af4c18c0792cec69330bd6daea002b \
56                rmd160  ae539c873f16463a3c19fcaf69fd338a1eadd7ce
57
58depends_lib     port:freetype \
59                port:guile18            \
60                port:libiconv           \
61                port:texlive            \
62                port:xorg-libXext       \
63                port:zlib
64
65depends_run     bin:gs:ghostscript
66
67extract.only    ${name}-${version}-src${extract.suffix}
68
69post-extract    { system "${extract.cmd} ${extract.pre_args} ${distpath}/${name}-extra-fonts-1.0-noarch${extract.suffix} ${extract.post_args} -C ${worksrcpath}/${name}"
70                }
71
72patchfiles-append patch-Makefile.in.diff
73patchfiles-append patch-aclocal.m4.diff
74patchfiles-append patch-configure.in.diff
75patchfiles-append patch-src-Scheme-Guile-guile_tm.hpp.diff
76
77use_autoconf    yes
78
79configure.ldflags-append -lz
80
81build.target
82
83post-destroot   { file mkdir ${destroot}${prefix}/share/${name}
84                  system "chown -R root:admin ${destroot}${prefix}/share/${name}"
85
86                  file rename ${destroot}${prefix}/share/${name}/plugins/cadabra \
87                              ${destroot}${prefix}/share/${name}/plugins/cadabra.texmacs
88                }
89
90post-activate {
91    system "${prefix}/bin/update-mime-database ${prefix}/share/mime || true"
92}
93
94post-deactivate {
95    system "${prefix}/bin/update-mime-database ${prefix}/share/mime || true"
96}
97
98livecheck.type  regex
99livecheck.url   ${homepage}tmweb/download/sources.en.html
100livecheck.regex /${name}-(\[0-9.\]+)-src${extract.suffix}">latest stable version
101
Note: See TracBrowser for help on using the repository browser.