texmacs stable port information

Package: texmacs
Version: 1.0.7.15
Revision: 2
Source: mirror:custom:TeXmacs-%v-src.tar.gz
CustomMirror: <<
Primary: http://www.texmacs.org/Download/ftp/tmftp/source/
Secondary: ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/
<<
Source-MD5: ddb57424a925a9cbd19125ff1eeb4bd5
License: GPL
Depends: x11-shlibs, tetex-base, guile18, ispell | aspell, wget, imlib2-shlibs, libiconv, freetype219-shlibs, gmp5-shlibs, libtool2-shlibs
BuildDepends: x11, guile18-dev, x11-dev, imlib2, libiconv-dev, freetype219, gmp5, libtool2
Replaces: texmacs-extra-fonts, texmacs-type1-fonts, texmacs, texmacs-qt
Conflicts: texmacs, texmacs-qt (<= 1.0.7.4)
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 --disable-qt
PatchScript: <<
#!/bin/sh -ev
# change hardwired paths for ispell and aspell
perl -pi.bak -e 's|/usr/lib/ispell/|%p/lib/|g' src/Plugins/Ispell/ispell.cpp
perl -pi.bar -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.bak -e 's|(set_right_footer )\(s\)|$1 (s * " ")|g' src/Edit/Interface/edit_footer.cpp
# make the R plugin compile
# perl -pi.bak -e 's|\-lutil||g' plugins/r/Makefile
# perl -pi.bak -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.bak -e '
s,malloc\(1025\),malloc\(1024\*1000\+1\),g ;
s,(fread.*) 1024,$1 1024\*1000,g
' plugins/graphviz/src/tm_graphviz.c
# work around the eternal 'echo -n' problem with Apple's 150% pseudo-POSIX /bin/sh
perl -pi -e 's|\#\!/bin/sh|#!/bin/bash|' `/usr/bin/grep '\#\!/bin/' -r plugins -l`
# fix tempfile mess in asy and gnuplot plugins
perl -pi.bak -e 's|TEMPDIR=.*|TEMP_DIR=/private/var/tmp/|' plugins/asymptote/bin/tm_asy plugins/gnuplot/bin/tm_gnuplot
# make it compile with clang
perl -pi.bak -e 's|defined OS_WIN32|defined __clang__|g' src/Kernel/Abstractions/basic.hpp
<<
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
<<
InstallScript: make install DESTDIR=%d
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.
It provides the "texmacs" command.
2. The "texmacs-qt" package uses the qt4-mac graphics library.
This has a more Mac-like look and feel, and it is the one
currently most actively developed, but this version has still
some bugs. It comes now as a standard Mac app "TeXmacs-qt",
to be found in /Applications/Fink/.
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,
and it seems to be abandoned.

TeXmacs provides a unified GUI for asymptote, cadabra, gnuplot,
graphviz, macaulay2, maxima, octave, pari-gp, python, scilab and
many other programs if they are installed.

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

texmacs stable port .patch

--- trunk/src/configure 2009/04/16 22:06:09 2593
+++ trunk/src/configure 2009/05/01 20:06:57 2643
@@ -696,6 +696,7 @@
host_vendor
host_os
CONFIG_EXPERIMENTAL
+CONFIG_MACOS
QMAKE
MOC
UIC
@@ -722,7 +723,6 @@
CONFIG_CXXDIALECT
CONFIG_OS
CONFIG_OS_SUFFIX
-CONFIG_MACOS
CONFIG_CXXWARNING
CONFIG_CXXTEMPLATE
CONFIG_CXXOPTIMIZE
@@ -1347,6 +1347,7 @@
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-fastalloc omit fast allocator for small objects
--enable-experimental support new style rewriting code
+ --enable-macosx-extensions support new style rewriting code
--enable-qt replace X11 by Qt interface
--enable-cocoa replace X11 by Cocoa interface
--enable-debug=ARG install a debugging enable executable -ggdb
@@ -8247,7 +8248,6 @@
*apple*darwin*)
echo "$ac_t""final adjustments for a MacOS host" 1>&6
CONFIG_OS="MACOS"
- CONFIG_MACOS="MacOS"
CONFIG_CXXFLAGS="-I${prefix}/include"
CONFIG_BSHARED=""
CONFIG_BFLAGS="-framework Cocoa"
@@ -8430,6 +8430,41 @@


#--------------------------------------------------------------------
+# MacOS X extensions (spellchecker, image loading)
+#--------------------------------------------------------------------
+
+# Check whether --enable-macosx-extensions was given.
+if test "${enable_macosx_extensions+set}" = set; then
+ enableval=$enable_macosx_extensions;
+else
+ enable_macosx_extensions="no"
+fi
+
+case "$enable_macosx_extensions" in
+ yes)
+ { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
+echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define MACOSX_EXTENSIONS 1
+_ACEOF
+
+ CONFIG_MACOS="MacOS"
+ ;;
+ no)
+ { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
+echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
+ CONFIG_MACOS=""
+ ;;
+ *)
+ { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
+echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+esac
+
+
+#--------------------------------------------------------------------
# Gui selection
#--------------------------------------------------------------------

@@ -9334,7 +9369,6 @@



-
#--------------------------------------------------------------------
# Default paths for installation
#--------------------------------------------------------------------
@@ -10167,6 +10201,7 @@
host_vendor!$host_vendor$ac_delim
host_os!$host_os$ac_delim
CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
+CONFIG_MACOS!$CONFIG_MACOS$ac_delim
QMAKE!$QMAKE$ac_delim
MOC!$MOC$ac_delim
UIC!$UIC$ac_delim
@@ -10179,7 +10214,6 @@
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
QT_INCPATH!$QT_INCPATH$ac_delim
QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
-QT_LFLAGS!$QT_LFLAGS$ac_delim
_ACEOF

if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -10221,6 +10255,7 @@
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+QT_LFLAGS!$QT_LFLAGS$ac_delim
QT_LDFLAGS!$QT_LDFLAGS$ac_delim
QT_LIBS!$QT_LIBS$ac_delim
X11_CFLAGS!$X11_CFLAGS$ac_delim
@@ -10234,7 +10269,6 @@
CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
CONFIG_OS!$CONFIG_OS$ac_delim
CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
-CONFIG_MACOS!$CONFIG_MACOS$ac_delim
CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
--- trunk/src/src/Edit/Replace/edit_spell.cpp 2009/04/17 07:30:31 2595
+++ trunk/src/src/Edit/Replace/edit_spell.cpp 2009/05/01 20:06:57 2643
@@ -13,7 +13,7 @@
#include "Replace/edit_replace.hpp"
#include "Interface/edit_interface.hpp"

-#ifdef OS_MACOS
+#ifdef MACOSX_EXTENSIONS
#include "MacOS/mac_spellservice.h"
#define ispell_start mac_spell_start
#define ispell_check mac_spell_check

texmacs _unstable_ port .patch