# $Id: Portfile 28541 2007-09-03 11:46:50Z mww@macports.org $ PortSystem 1.0 name TeXmacs version 1.0.6.10 revision 1 distname ${distname}-src categories editors maintainers gwright@macports.org platforms darwin description GNU TeXmacs: A Scientific Text Editor long_description \ GNU TeXmacs is a free scientific text editor, \ which was both inspired by TeX and GNU Emacs. \ The editor allows you to write structured documents \ via a wysiwyg (what-you-see-is-what-you-get) and \ user friendly interface. New styles may be created by \ the user. The program implements high-quality \ typesetting algorithms and TeX fonts, which help you \ to produce professionally looking documents. \ \ The high typesetting quality still goes through for \ automatically generated formulas, which makes TeXmacs \ suitable as an interface for computer algebra systems. \ TeXmacs also supports the Guile/Scheme extension \ language, so that you may customize the interface and \ write your own extensions to the editor. #user_notes If texmacs can't find guile's modules, you will have to \ # set GUILE_LOAD_PATH explicitly (usually \ # ${prefix}/share/guile/1.6). \ # \ # Also, don't forget to set DISPLAY to localhost:0.0 if \ # launching TeXmacs from a non-X11 terminal. #bugs Some of the computer algebra system sessions (e.g., \ # maxima) will hang if you try to use the online help \ # function. A known issue that is being worked on. homepage http://www.texmacs.org/ master_sites ftp://ftp.texmacs.org/pub/TeXmacs/targz/ distfiles ${name}-${version}-src${extract.suffix} \ ${name}-600dpi-fonts${extract.suffix} checksums ${name}-${version}-src.tar.gz md5 073a2de1448b24ef215d6d0d39139dc8 \ ${name}-600dpi-fonts.tar.gz md5 945dfd3f76b20082aeea8131d87a260f patchfiles patch-configure \ patch-Makefile.9 depends_lib port:guile16 \ port:libiconv \ bin:tex:teTeX \ lib:libX11:XFree86 depends_run bin:gs:ghostscript extract.only ${name}-${version}-src${extract.suffix} platform darwin 6 { depends_lib-append lib:libdl:dlcompat } configure.cflags-append "-no-cpp-precomp" # TeXmacs is ignorant of "make all", so we just "make" with no target: build.target { } post-destroot { file mkdir ${destroot}/${prefix}/share/${name} cd ${destroot}/${prefix}/share/${name} system "${extract.cmd} ${extract.pre_args} ${distpath}/${name}-600dpi-fonts${extract.suffix} ${extract.post_args}" cd ${destroot}/${prefix}/share/ system "chown -R root:admin ${name}" file rename ${destroot}${prefix}/share/${name}/plugins/cadabra \ ${destroot}${prefix}/share/${name}/plugins/cadabra.texmacs }