aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-office')
-rw-r--r--app-office/texmacs/ChangeLog293
-rw-r--r--app-office/texmacs/Manifest8
-rw-r--r--app-office/texmacs/files/TeXmacs.desktop10
-rw-r--r--app-office/texmacs/files/texmacs-maxima-5.14.0.patch24
-rw-r--r--app-office/texmacs/metadata.xml11
-rw-r--r--app-office/texmacs/texmacs-1.0.6.12-r1.ebuild63
-rw-r--r--app-office/texmacs/texmacs-1.0.6.12.ebuild57
7 files changed, 466 insertions, 0 deletions
diff --git a/app-office/texmacs/ChangeLog b/app-office/texmacs/ChangeLog
new file mode 100644
index 000000000..796ad98be
--- /dev/null
+++ b/app-office/texmacs/ChangeLog
@@ -0,0 +1,293 @@
+# ChangeLog for app-office/texmacs
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*texmacs-1.0.6.12-r1 (09 Jan 2008)
+09 Jan 2008; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.12-r1.ebuild, +files/texmacs-maxima-5.14.0.patch:
+ support for maxima-5.14.0
+
+*texmacs-1.0.6.12 (06 Oct 2007)
+06 Oct 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.12.ebuild -texmacs-1.0.6.11.ebuild
+ -files/texmacs-1.0.6.11-maxima-5.13.0.patch:
+ version bump, cleaning
+
+*texmacs-1.0.6.11 (04 Sep 2007)
+04 Sep 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.11.ebuild:
+ version bump
+
+*texmacs-1.0.6.10-r1 (28 Aug 2007)
+28 Aug 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.10-r1.ebuild, +files/texmacs-maxima-5.13.0.patch,
+ -texmacs-1.0.6.9-r1.ebuild, -files/texmacs-maxima-5.12.0.patch:
+ patch to run maxima-5.13.0 included
+
+*texmacs-1.0.6.10 (15 May 2007)
+ 15 May 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.10.ebuild +files/texmacs-1.0.6.10.patch -texmacs-1.0.6.9.ebuild:
+ Version bump
+
+6 May 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ Added a check that, if guile is 1.8, it is emerged with +deprecated
+
+*texmacs-1.0.6.9-r1 (3 May 2007)
+ 3 May 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ -texmacs-1.0.6.6.ebuild -texmacs-1.0.6.7.ebuild -texmacs-1.0.6.8.ebuild
+ +texmacs-1.0.6.9-r1.ebuild +files/texmacs-maxima-5.12.0.patch:
+ patch to run maxima-5.12.0 included
+
+*texmacs-1.0.6.8 (21 Jan 2007)
+
+ 21 Jan 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.8.ebuild:
+ Version bump
+
+*texmacs-1.0.6.7 (26 Dec 2006)
+
+ 26 Dec 2006; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.7.ebuild -texmacs-1.0.6.2.ebuild -texmacs-1.0.6.3.ebuild
+ -texmacs-1.0.6.4.ebuild -texmacs-1.0.6.5.ebuild:
+ Version bump; USE flag aspell removed (now TeXmacs uses
+ either ispell or aspell automatically); cleaning up old versions
+
+*texmacs-1.0.6.6 (22 August 2006)
+
+ 22 August 2006; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.6.ebuild:
+ Version bump
+
+*texmacs-1.0.6.5 (8 August 2006)
+
+ 8 August 2006; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.5.ebuild:
+ Version bump
+
+*texmacs-1.0.6.4 (27 June 2006)
+
+ 27 June 2006; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.4.ebuild:
+ Version bump
+
+*texmacs-1.0.6.3 (20 June 2006)
+
+ 20 June 2006; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.3.ebuild:
+ Version bump
+
+*texmacs-1.0.6.2 (1 June 2006)
+
+ 1 June 2006; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.2.ebuild:
+ Version bump, USE flag to use aspell instead of ispell
+
+ 29 May 2006; Martin Ehmsen <ehmsen@gentoo.org>
+ +files/texmacs-1.0.6-gcc-4.1.patch, texmacs-1.0.6-r1.ebuild:
+ Fixed gcc-4.1 compilation failure, bug #130708.
+
+ 01 May 2006; Martin Ehmsen <ehmsen@gentoo.org> texmacs-1.0.4-r1.ebuild,
+ texmacs-1.0.5.6.ebuild, texmacs-1.0.6-r1.ebuild:
+ Removed libtool from RDEPEND, found by QA script.
+
+*texmacs-1.0.6-r1 (20 Apr 2006)
+
+ 20 Apr 2006; Martin Ehmsen <ehmsen@gentoo.org>
+ +files/texmacs-1.0.6-maxima-5.9.3.patch, -texmacs-1.0.6.ebuild,
+ +texmacs-1.0.6-r1.ebuild:
+ Added patch to make texmacs work with the latest sci-mathematics/maxima
+ (5.9.3), bug #130099.
+
+ 29 Jan 2006; Martin Ehmsen <ehmsen@gentoo.org> files/TeXmacs.desktop,
+ -texmacs-1.0.5.2.ebuild, +texmacs-1.0.6.ebuild:
+ Version bump, bug #112104.
+ Changed the path to the TeXmacs icon in the desktop file.
+ Removed old version that was not ported to modular X.
+
+*texmacs-1.0.6 (29 Jan 2006)
+
+ 25 Jan 2006; Alexandre Buisse <nattfodd@gentoo.org>
+ texmacs-1.0.4-r1.ebuild, texmacs-1.0.5.6.ebuild:
+ Modular X porting.
+
+ 02 Jan 2006; Alexandre Buisse <nattfodd@gentoo.org>
+ texmacs-1.0.4-r1.ebuild, texmacs-1.0.5.2.ebuild, texmacs-1.0.5.6.ebuild:
+ Don't install COPYING and LICENSE files (but COMPILE stays because it has
+ some runtime common bugs explained). Thanks to Markus Ullman in bug #117474.
+
+*texmacs-1.0.5.6 (08 Aug 2005)
+
+ 08 Aug 2005; Mamoru KOMACHI <usata@gentoo.org> -texmacs-1.0.4.7.ebuild,
+ -texmacs-1.0.5.ebuild, +texmacs-1.0.5.6.ebuild:
+ Version bumped.
+
+*texmacs-1.0.5.2 (29 May 2005)
+
+ 29 May 2005; Mamoru KOMACHI <usata@gentoo.org> +texmacs-1.0.5.2.ebuild:
+ Version bumped. This closes bug #94250.
+
+*texmacs-1.0.5 (21 May 2005)
+
+ 21 May 2005; Mamoru KOMACHI <usata@gentoo.org> -texmacs-1.0.4.4.ebuild,
+ -texmacs-1.0.4.5.ebuild, +texmacs-1.0.5.ebuild:
+ Version bumped. This closes bug #91064.
+
+*texmacs-1.0.4.7 (12 Apr 2005)
+
+ 12 Apr 2005; Mamoru KOMACHI <usata@gentoo.org> +texmacs-1.0.4.7.ebuild:
+ Version bumped.
+
+ 21 Feb 2005; Jan Brinkmann <luckyduck@gentoo.org> texmacs-1.0.4.5.ebuild:
+ added ~amd64 to KEYWORDS. fixes #71106
+
+ 02 Jan 2005; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 11 Dec 2004; Jason Wever <weeve@gentoo.org> texmacs-1.0.4-r1.ebuild:
+ Stable on sparc.
+
+*texmacs-1.0.4.5 (11 Dec 2004)
+
+ 11 Dec 2004; Mamoru KOMACHI <usata@gentoo.org> -texmacs-1.0.4.3.ebuild,
+ +texmacs-1.0.4.5.ebuild:
+ Version bumped.
+
+*texmacs-1.0.4.4 (15 Nov 2004)
+
+ 15 Nov 2004; Mamoru KOMACHI <usata@gentoo.org> -texmacs-1.0.3-r1.ebuild,
+ +texmacs-1.0.4.4.ebuild, -texmacs-1.0.4.ebuild:
+ Version bumped. Added static USE flag. This closes bug #71195.
+
+ 04 Nov 2004; Mamoru KOMACHI <usata@gentoo.org> texmacs-1.0.4-r1.ebuild,
+ -texmacs-1.0.4.1.ebuild:
+ Marked 1.0.4-r1 stable on x86, ppc and alpha.
+
+*texmacs-1.0.4.3 (10 Oct 2004)
+*texmacs-1.0.4-r1 (10 Oct 2004)
+
+ 10 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> -texmacs-1.0.3.10.ebuild,
+ +texmacs-1.0.4-r1.ebuild, texmacs-1.0.4.1.ebuild, +texmacs-1.0.4.3.ebuild,
+ texmacs-1.0.4.ebuild:
+ Version bumped.
+
+*texmacs-1.0.4.1 (28 Aug 2004)
+
+ 28 Aug 2004; Mamoru KOMACHI <usata@gentoo.org> -texmacs-1.0.3.9.ebuild,
+ -texmacs-1.0.3.ebuild, +texmacs-1.0.4.1.ebuild, +texmacs-1.0.4.ebuild:
+ Version bumped. Removed old ebuilds.
+
+*texmacs-1.0.3.10 (07 Jul 2004)
+
+ 07 Jul 2004; Mamoru KOMACHI <usata@gentoo.org> +texmacs-1.0.3.10.ebuild,
+ -texmacs-1.0.3.7.ebuild:
+ Version bumped.
+
+*texmacs-1.0.3.9 (23 Jun 2004)
+
+ 23 Jun 2004; Mamoru KOMACHI <usata@gentoo.org> texmacs-1.0.3-r1.ebuild,
+ +texmacs-1.0.3.9.ebuild, texmacs-1.0.3.ebuild:
+ Version bumped. Marked 1.0.3 stable.
+
+ 01 May 2004; Jason Wever <weeve@gentoo.org> texmacs-1.0.3.7.ebuild:
+ Added ~sparc keyword to help resolve #49540.
+
+ 26 Apr 2004; Bryan Østergaard <kloeri@gentoo.org> texmacs-1.0.3.7.ebuild:
+ Keyworded ~alpha, requested by Decade at freenode/#gentoo-alpha.
+
+*texmacs-1.0.3.7 (26 Apr 2004)
+*texmacs-1.0.3-r1 (26 Apr 2004)
+
+ 26 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> texmacs-1.0.1-r1.ebuild,
+ texmacs-1.0.2.4.ebuild, texmacs-1.0.3-r1.ebuild, texmacs-1.0.3.3.ebuild,
+ texmacs-1.0.3.7.ebuild, texmacs-1.0.3.ebuild:
+ Added ebuilds from stable and development branch. Marked 1.0.3
+ stable on x86. Added flag-o-matic back. (it is actually in portage
+ functions but it is recommended to inherit it)
+
+ 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> texmacs-1.0.1-r1.ebuild:
+ Add die following econf for bug 48950
+
+*texmacs-1.0.3.3 (21 Feb 2004)
+*texmacs-1.0.3 (21 Feb 2004)
+
+ 12 Mar 2004; Mamoru KOMACHI <usata@gentoo.org> texmacs-1.0.3.3.ebuild,
+ texmacs-1.0.3.ebuild, files/TeXmacs.desktop:
+ Added TeXmacs appliations menu entry, contributed by Keith Lea
+ <keith@cs.oswego.edu>. Closing bug #43545
+
+ 21 Feb 2004; Mamoru KOMACHI <usata@gentoo.org> texmacs-1.0.1-r1.ebuild,
+ texmacs-1.0.1.23.ebuild, texmacs-1.0.1.ebuild, texmacs-1.0.2.4.ebuild,
+ texmacs-1.0.3.3.ebuild, texmacs-1.0.3.ebuild:
+ Version bumped, closing bug #38894. Removed old versions.
+
+ 09 Dec 2003; Heinrich Wendel <lanius@gentoo.org> texmacs-1.0.1-r1.ebuild,
+ texmacs-1.0.1.23.ebuild, texmacs-1.0.1.ebuild, texmacs-1.0.2.4.ebuild:
+ changed app-text/ghostscript to virtual/ghostscript
+
+*texmacs-1.0.2.4 (28 Oct 2003)
+
+ 28 Oct 2003; Mamoru KOMACHI <usata@gentoo.org> texmacs-1.0.1-r1.ebuild,
+ texmacs-1.0.1.23.ebuild, texmacs-1.0.1.ebuild, texmacs-1.0.2.4.ebuild:
+ Version bumped. Changed app-text/tetex to virtual/tetex.
+ Closing Bug #31032.
+
+ 14 Sep 2003; Mike Gardiner <obz@gentoo.org> texmacs-1.0.0.19.ebuild:
+ Removed old version
+
+*texmacs-1.0.1.23 (14 Sep 2003)
+
+ 14 Sep 2003; Mike Gardiner <obz@gentoo.org> texmacs-1.0.1.23.ebuild:
+ New version
+
+*texmacs-1.0.1-r1 (13 Sep 2003)
+
+ 13 Sep 2003; Mike Gardiner <obz@gentoo.org> texmacs-1.0.1-r1.ebuild:
+ New revision adding spell support through ispell
+
+ 12 Jun 2003; <msterret@gentoo.org> texmacs-1.0.0.19.ebuild,
+ texmacs-1.0.1.ebuild:
+ fix Header
+
+*texmacs-1.0.1 (02 Jan 2002)
+
+ 22 Apr 2003; Brandon Low <lostlogic@gentoo.org> texmacs-1.0.0.19.ebuild,
+ texmacs-1.0.1.ebuild:
+ Change supersed dependencies
+
+ 17 Mar 2003; Graham Forest <vladimir@gentoo.org> texmacs-1.0.1.ebuild:
+ set ~ppc in keywords
+
+ 02 Jan 2002; Matthew Turk <satai@gentoo.org> texmacs-1.0.1.ebuild :
+
+ Included some opts, manually turned off all inlining. Hopefully this'll work
+ nicely. Also bumped version.
+
+*texmacs-1.0.0.19 (23 Oct 2002)
+
+ 06 Nov 2002; Seemant Kulleen <seemant@gentoo.org> texmacs-1.0.0.19.ebuild :
+
+ Changed to use econf so things get installed in the correct locations
+ and custom CXXFLAGS settings. Closes bug #10220 by:
+ jap1@ionet.net (Jacob Perkins)
+
+ 23 Oct 2002; Matthew Turk <satai@gentoo.org> :
+
+ New version, testing. Changing to unstable.
+
+*texmacs-1.0.0.16 (13 Sep 2002)
+
+ 13 Sep 2002; Matthew Turk <satai@gentoo.org> ChangeLog :
+
+ New version, close submission #7860
+
+*texmacs-1.0.0.8 (03 Jul 2002)
+
+ 03 Jul 2002; Dan Armak <danarmak@gentoo.org> ChangeLog :
+
+ New version, close submission #4277
+
+*texmacs-1.0 (29 May 2002)
+
+ 29 May 2002; Dan Armak <danarmak@gentoo.org> changelog:
+
+ Initial ebuild. Based on bug #.
diff --git a/app-office/texmacs/Manifest b/app-office/texmacs/Manifest
new file mode 100644
index 000000000..0249f5e71
--- /dev/null
+++ b/app-office/texmacs/Manifest
@@ -0,0 +1,8 @@
+AUX TeXmacs.desktop 267 RMD160 9c538fb430c4e496a9571e84d0c1622c16279045 SHA1 baca78d1d4965ee4075158953a4c3fed26e855eb SHA256 f6292ac99e7adc8efd006df2dc458b4f8bc075dd5c4be2b8fdeb30a63198ff08
+AUX texmacs-maxima-5.14.0.patch 1591 RMD160 586582af7b7868a001f5891a70b7d4457beac055 SHA1 6979af5888ee29078667ec1b94e2164056cea8b7 SHA256 cb978cee2451c8a5a5405705aa114b024a54e0c66cd129f84d39ebd3a95cb29a
+DIST TeXmacs-1.0.6.12-src.tar.gz 4215464 RMD160 c1d53d8e20f0d701f1e2fb602753d7d85ae7fb53 SHA1 3fbddeb824703c61b5d4a193c4097f68305f9063 SHA256 7a90d5dd2a5d38753371dd37474034d361df019424f5c5b285b30c493adbe6a5
+DIST TeXmacs-600dpi-fonts.tar.gz 2899193 RMD160 b5a27a59ed0c178f94836b828d12d3534b506582 SHA1 0a3a279b842b63f55449856690483d07c6e1219c SHA256 e8eeb3c97a1405fd037b0567f683a6d2225d47c7829893b9768bd6c1c707cc81
+EBUILD texmacs-1.0.6.12-r1.ebuild 1639 RMD160 8a0491d6ae0195e04705814f435c237c8ef64422 SHA1 b7617eb66b6fd51b0209d7de3ca5b2327b6e6ce4 SHA256 88b4a29f99c1bc1bcd28f9ed6ee7d6af7c24392a34cb2eaddaadcba5d18e0ac3
+EBUILD texmacs-1.0.6.12.ebuild 1549 RMD160 c4a7557d529fddba1bf51b3390befbea09554249 SHA1 82a5cda34dde3cf6e4ae8f995bbfdea74ad0114f SHA256 abb5bf884d0b265582d0856418443f9a7471378fe927eb7c3fe639502db36312
+MISC ChangeLog 9768 RMD160 0ebc9161540b008e71248d53a62228c5340e6e0b SHA1 bf56ada7b6e8ff12fcc318b0d0174431d43c2672 SHA256 363da8509b46df2de78b5a219d0354ff0ddd980c851390ec96e80dedead4ef06
+MISC metadata.xml 447 RMD160 e29f6d98fb4ed38a56ef9415b5ce356f7660b8b5 SHA1 45c581010bad5fedc2ad5e2cb01722e51b618269 SHA256 65665d792841d785709329fb8d2770006cc9888a992b0ce64f5572f4b25520ab
diff --git a/app-office/texmacs/files/TeXmacs.desktop b/app-office/texmacs/files/TeXmacs.desktop
new file mode 100644
index 000000000..f51ffe604
--- /dev/null
+++ b/app-office/texmacs/files/TeXmacs.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Exec=texmacs
+Icon=/usr/share/TeXmacs/misc/pixmaps/TeXmacs.xpm
+Name=TeXmacs
+GenericName=Scientific Word Processor
+Comment=A scientific word processing application.
+Categories=Application;Office;WordProcessor
diff --git a/app-office/texmacs/files/texmacs-maxima-5.14.0.patch b/app-office/texmacs/files/texmacs-maxima-5.14.0.patch
new file mode 100644
index 000000000..0281cf9bf
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-maxima-5.14.0.patch
@@ -0,0 +1,24 @@
+diff -U2 --recursive TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/maxima_detect TeXmacs-1.0.6.12-src/plugins/maxima/bin/maxima_detect
+--- TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/maxima_detect 2007-11-05 15:21:32.000000000 +0600
++++ TeXmacs-1.0.6.12-src/plugins/maxima/bin/maxima_detect 2008-01-09 04:43:10.000000000 +0600
+@@ -63,7 +63,8 @@
+ version 5.11
+ version 5.12
+-version 5.13" >/dev/null
++version 5.13
++version 5.14" >/dev/null
+ then
+- # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11 or 5.12 or 5.13
++ # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11 or 5.12 or 5.13 or 5.14
+ maxima -d | grep -F 'maxima-htmldir=' | sed -e \
+ 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
+diff -U2 --recursive TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/tm_maxima TeXmacs-1.0.6.12-src/plugins/maxima/bin/tm_maxima
+--- TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/tm_maxima 2007-11-05 15:21:32.000000000 +0600
++++ TeXmacs-1.0.6.12-src/plugins/maxima/bin/tm_maxima 2008-01-09 04:43:10.000000000 +0600
+@@ -18,5 +18,5 @@
+ 5.9.1.1* | 5.9.2* | 5.9.3*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.2.lisp";;
+ 5.10.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.10.0.lisp";;
+- 5.11.* | 5.12.* | 5.13.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
++ 5.11.* | 5.12.* | 5.13.* | 5.14.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
+ cygwin)
+ exec maxima.bat -p "`echo $TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp|cygpath --windows -f -`";;
diff --git a/app-office/texmacs/metadata.xml b/app-office/texmacs/metadata.xml
new file mode 100644
index 000000000..849d5af06
--- /dev/null
+++ b/app-office/texmacs/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>text-markup</herd>
+<longdescription lang="en">
+GNU TeXmacs is a WYSIWYG text processor with an excellent quality
+of both texts and mathematical formulae. It can import and export
+LaTeX and html. It is used as a GUI for a number of computer algebra
+and numerical mathematics systems.
+</longdescription>
+</pkgmetadata>
diff --git a/app-office/texmacs/texmacs-1.0.6.12-r1.ebuild b/app-office/texmacs/texmacs-1.0.6.12-r1.ebuild
new file mode 100644
index 000000000..087821715
--- /dev/null
+++ b/app-office/texmacs/texmacs-1.0.6.12-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+inherit eutils
+MY_P=${P/tex/TeX}-src
+DESCRIPTION="Wysiwyg text processor with high-quality maths"
+
+SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/targz/${MY_P}.tar.gz
+ ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-600dpi-fonts.tar.gz"
+
+HOMEPAGE="http://www.texmacs.org/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="imlib jpeg svg netpbm spell"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="virtual/latex-base
+ virtual/ghostscript
+ >=dev-scheme/guile-1.4
+ media-libs/freetype
+ x11-libs/libXext
+ imlib? ( media-libs/imlib2 )
+ jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
+ svg? ( || ( media-gfx/inkscape gnome-base/librsvg ) )
+ netpbm? ( media-libs/netpbm )
+ spell? ( || ( >=app-text/ispell-3.2 >=app-text/aspell-0.5 ) )"
+
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if has_version ">=dev-scheme/guile-1.8"; then
+ if ! built_with_use dev-scheme/guile deprecated; then
+ eerror "Please re-emerge dev-scheme/guile with the USE flag +deprecated"
+ die "Bad guile version"
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-maxima-5.14.0.patch
+}
+
+src_compile() {
+ econf $(use_with imlib imlib2 ) \
+ --enable-optimize="${CXXFLAGS}" \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc TODO || die "dodoc failed"
+ domenu "${FILESDIR}/TeXmacs.desktop" || die "domenu failed"
+
+ # now install the fonts
+ insinto /usr/share/texmf
+ doins -r "${WORKDIR}/fonts" || die "installing fonts failed"
+}
diff --git a/app-office/texmacs/texmacs-1.0.6.12.ebuild b/app-office/texmacs/texmacs-1.0.6.12.ebuild
new file mode 100644
index 000000000..6313874f5
--- /dev/null
+++ b/app-office/texmacs/texmacs-1.0.6.12.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+inherit eutils
+MY_P=${P/tex/TeX}-src
+DESCRIPTION="Wysiwyg text processor with high-quality maths"
+
+SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/targz/${MY_P}.tar.gz
+ ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-600dpi-fonts.tar.gz"
+
+HOMEPAGE="http://www.texmacs.org/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="imlib jpeg svg netpbm spell"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="virtual/latex-base
+ virtual/ghostscript
+ >=dev-scheme/guile-1.4
+ media-libs/freetype
+ x11-libs/libXext
+ imlib? ( media-libs/imlib2 )
+ jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
+ svg? ( || ( media-gfx/inkscape gnome-base/librsvg ) )
+ netpbm? ( media-libs/netpbm )
+ spell? ( || ( >=app-text/ispell-3.2 >=app-text/aspell-0.5 ) )"
+
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if has_version ">=dev-scheme/guile-1.8"; then
+ if ! built_with_use dev-scheme/guile deprecated; then
+ eerror "Please re-emerge dev-scheme/guile with the USE flag +deprecated"
+ die "Bad guile version"
+ fi
+ fi
+}
+
+src_compile() {
+ econf $(use_with imlib imlib2 ) \
+ --enable-optimize="${CXXFLAGS}" \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc TODO || die "dodoc failed"
+ domenu "${FILESDIR}/TeXmacs.desktop" || die "domenu failed"
+
+ # now install the fonts
+ insinto /usr/share/texmf
+ doins -r "${WORKDIR}/fonts" || die "installing fonts failed"
+}