texmacs-aqua _unstable_ port information

Package: texmacs-aqua
Version: 1.0.7.2
Revision: 2
GCC: 4.0
Source: mirror:custom:TeXmacs-%v-src.tar.gz
CustomMirror: <<
Primary: http://www.texmacs.org/Download/ftp/targz/
Secondary: ftp://ftp.texmacs.org/pub/TeXmacs/targz/
<<
Source-MD5: 4f40bededefc44e8927455efe0358780
License: GPL
Depends: x11-shlibs, tetex-base, guile18, ispell | aspell, wget, imlib2-shlibs, libiconv, freetype219-shlibs, gmp-shlibs, libtool14-shlibs, libgettext8-shlibs, qt4-mac-core-shlibs, qt4-mac-gui-shlibs
BuildDepends: x11, guile18-dev, x11-dev, imlib2, libiconv-dev, freetype219, gmp, libtool14, libgettext8-dev, qt4-mac
BuildConflicts: freetype
Recommends: ghostscript, netpbm, xfig, macaulay2, maxima, pari-gp, scilab
Suggests: texmacs-extra-fonts
ConfigureParams: --libexecdir=%p/lib --mandir=%p/share/man --with-iconv=/usr --with-freetype=linked --with-imlib2 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-cocoa
PatchScript: <<
#!/bin/sh -ev
# change hardwired paths for ispell and aspell
perl -pi -e 's|/usr/lib/ispell/|%p/lib/|g' src/Plugins/Ispell/ispell.cpp
perl -pi -e 's|/usr/lib/aspell/|%p/share/aspell/|g' src/Plugins/Ispell/ispell.cpp
# make place for Apple's resize brick in quartz-wm
perl -pi -e 's|(set_right_footer )\(s\)|$1 (s * " ")|g' src/Edit/Interface/edit_footer.cpp
# make the R plugin compile
perl -pi -e 's|\-lutil||g' plugins/r/Makefile
perl -pi -e 's|pty.h|util.h|g' plugins/r/src/tm_r.c
# temporary hack to make the graphviz plugin work:
# Instead of allocating successive pieces of 1kB, we allocate one chunk
# of 1MB which should be sufficient for most postscript figures from graphviz
perl -pi -e '
s,malloc\(1025\),malloc\(1024\*1000\+1\),g ;
s,(fread.*) 1024,$1 1024\*1000,g
' plugins/graphviz/src/tm_graphviz.c
# allow compiling correctly on intel as well as ppc
perl -pi -e 's,powerpc-\*-darwin\*\),i\*86-\*-darwin\* | powerpc-\*-darwin\*\),' configure
# bug in Makefile.in: wrong place for doc directory
/usr/bin/sed -i -e 's|\.\./doc|TeXmacs/doc|; /GUILE/d; /ice/d' Makefile.in
<<
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/share/guile/1.8/scripts/binoverride:%p/lib/freetype219/bin:$PATH
./configure %c
export GUILE_LOAD_PATH=%p/share/guile/1.8
make BUNDLE_MAIN
<<
InstallScript: <<
#!/bin/sh -ev
# all is in the app bundle now, no install needed, in principle...
# add forgotten install command
cp -r -f TeXmacs/plugins/*/bin/* ../distr/TeXmacs.app/Contents/Resources/share/TeXmacs/bin/
# for some versions of 'cp', the commnd 'cp -r -f' does not follow symlinks.
# In this case, we need to copy the plugins directory separately.
if [ -L ./distr/TeXmacs.app/Contents/Resources/share/TeXmacs/plugins ]; then
rm -f ../distr/TeXmacs.app/Contents/Resources/share/TeXmacs/plugins
cp -r -f plugins ../distr/TeXmacs.app/Contents/Resources/share/TeXmacs/
fi
<<
AppBundles: ../distr/TeXmacs.app
DocFiles: COPYING LICENSE TeXmacs/README TeXmacs/TEX_FONTS
Description: TeX-based WYSIWYG editor
DescDetail: <<
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.
<<
DescUsage:<<
There exist now 3 different Fink packages for TeXmacs,
corresponding to different graphics libraries:

1. The "texmacs" package uses X11 graphics.
This is the traditional interface,
and this is the most mature and most stable among the 3 packages.
2. The "texmcs-qt" package uses the qt4-mac graphics library.
This has a more Mac-like look and feel, but this version has still
some bugs.
3. The "texmacs-aqua" package uses the Mac-native cocoa library.
This is a standard Mac app, to be found in
/Applications/Fink/, but it is still very rough around the edges.

TeXmacs provides a unified GUI for clisp, macaulay2, maxima, octave,
pari-gp, scilab if they are installed. No configuration necessary,
they are auto-detected at program startup.

The octave plugin is currently broken.

Ghostscript is needed for importing images. Since even the TeXmacs
documentation contains images, ghostscript is strongly recommended.

For importing non-postscript images, the netpbm package is recommended.
<<
Maintainer: Martin Costabel
Homepage: http://www.texmacs.org