source: trunk/dports/editors/TeXmacs/Portfile

Last change on this file was 141284, checked in by michaelld@…, 2 years ago

texmacs: tweak to use qt4 PortGroup, to work with any qt4 install location. Addresses ticket #49154.

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