summaryrefslogtreecommitdiff
path: root/app-office/texmacs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-office/texmacs
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/texmacs')
-rw-r--r--app-office/texmacs/Manifest13
-rw-r--r--app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch19
-rw-r--r--app-office/texmacs/files/texmacs-1.99.2-desktop.patch23
-rw-r--r--app-office/texmacs/files/texmacs-1.99.2-norpath.patch16
-rw-r--r--app-office/texmacs/files/texmacs-1.99.2-underlinking.patch16
-rw-r--r--app-office/texmacs/files/texmacs-plugins-1.patch48
-rw-r--r--app-office/texmacs/files/texmacs-updates.patch29
-rw-r--r--app-office/texmacs/metadata.xml16
-rw-r--r--app-office/texmacs/texmacs-1.99.2-r1.ebuild83
-rw-r--r--app-office/texmacs/texmacs-1.99.5.ebuild81
10 files changed, 344 insertions, 0 deletions
diff --git a/app-office/texmacs/Manifest b/app-office/texmacs/Manifest
new file mode 100644
index 000000000000..13f04252858c
--- /dev/null
+++ b/app-office/texmacs/Manifest
@@ -0,0 +1,13 @@
+AUX texmacs-1.99-remove-new-declaration.patch 842 SHA256 c108a582606704f77bdb318d7500351ef2ceca6c6d7c20ac685dbe7cd09c8fc2 SHA512 2296a42b907577f44e3b498ffa95cf1a1cc1dc729e340d3238b1e19796854d7405fbab888910f1f305a87477cdd40648a7bd2c5651f65bc642273ef4310df9a9 WHIRLPOOL f7dbbe09c112b1b2df70a831822481c4d6edfe4fa14262aa68e3015d969742f6725c915275d7e218f9c5c3a70685e853d193cb00b7d40b5649d6ad3505e1481c
+AUX texmacs-1.99.2-desktop.patch 632 SHA256 f88c6675b94a96c15efc52b4ab9b3a8d7c8ec3beb463b30cff45afefd794afae SHA512 b523cde99001915ea83b1dfc644f1d4189b7c04ca11d7504e4f63dad1c19c6bb23af1d6b028ff9635594146c7263730a843b833cd77bf9a91023102f68e7cac3 WHIRLPOOL 317295a38a3ad5058e250976502d585754b57e0e52e76417f3055a2d6d5f5fb55a4834b18845728ffb01b97e717dc4d03d93261c66732560ab5d531380a9ba09
+AUX texmacs-1.99.2-norpath.patch 428 SHA256 db8e5d182a9cffe9a6c1c028c689a6aa7921445459f18525a310e8f113a5648c SHA512 7cd81f6199823fb1a50af697d9456db53db18ffb8de84bbbbd35a58020d288239dc7ab5e4e13b7db19189393292cb2d312bae52540999898342f7a505c9eb21d WHIRLPOOL 62ea7c78078d105c3dd3596a6eb1e3f842488654e7e30b50c512acc4a8f2f884cb45b12a341e70afd4d21a3d8524204963576116ecf07f8b248bc7803dfbed9b
+AUX texmacs-1.99.2-underlinking.patch 559 SHA256 dcb7e27170fe90e42f9a63df02e701fba89d642e8d4f0236d82ea59835f68eaf SHA512 4d8805895b02adf107acc32e434a28f7def6fffe0d69d1b49f0d6cffbe94d55dbe31ee4c4c2ae7709313c6ce7b0d5c9cebb11004cf6e9f6a08f46cf3725a223b WHIRLPOOL 4d31c0b622678124f4e2a6cf2f435adbb8d7d510345d71dd2474aeec5ae3ee96c453789aabaa9d1a85bfb3d1e9933abdd519c1093a0cd09bd5dfd1c34977121b
+AUX texmacs-plugins-1.patch 2920 SHA256 235cf18752e3e9e31dda51cff5748528dddad69b1b4b367218ac2b46c82027a9 SHA512 e8d9617166b712dfdf72b4c7b97a8945cbd5d505c092eb59a31de05b44b48d75839cb6344ba96ec378cca322a3fc17d99cb7f8e27c1fed86dc0d3329b02c1ca6 WHIRLPOOL 001549fd7150b1f96c36e7330521afce0d1b783a8173ab4427b99648455a9721d2732c5af14a5c25c1879090cf23164df1473bbdc607810683c64c9efc51e9a7
+AUX texmacs-updates.patch 1387 SHA256 40319fc736ac6a043b726c7551d76c77e71cc29d081282a3546875e4ee23f355 SHA512 209c5f64e21ae76fe41419101afb98ce4f61f040e9d29e3dbe37ec5bb0e16a1f3dd5aebe381db99e8d7278c5c36cd1654f78ba4af69e032670b1fdb62aafbda1 WHIRLPOOL 4802a89a411f0bf1acf892d6ec2882d8dc47615bbc77e44c28281267af126d740ec3af7bd2d561a38db1aa9251cf45c06c3da10cb2f2b4b213efba1caf4a5009
+DIST TeXmacs-1.99.2-src.tar.gz 18957858 SHA256 da017f0d5c927adc33952a6efd773165f63e1eaa509f627857f145434e7a8850 SHA512 e9d2dd0aab2e66470c4ae860e13b6fad2cc07913f14f7bca042c703d4d8b4a62fafafa711b81a0d8f8c125a3641b8bb5f38cd3adac74ec18895671423aa60be9 WHIRLPOOL b0ace20c3df61461f5fcad172b9a3acc69c43800ee600718ba20866452a938f3a5f7d61d33bb4e9f4e67f0666486f6e71387c78fd49d2ff7fb703f4baaf6a326
+DIST TeXmacs-1.99.5-src.tar.gz 25014543 SHA256 f1929f35ee6e4301667433ed2f64de7660a08066e864fcb6fffbc031f667b3a6 SHA512 a7d846fd8823e486cf724bfcbe04ae877dd64995d6131af59b49427a1178e36b52b9fcd9109783b9ae1e39c988ae9ed497b1540dce29645ebf2c4301ca7357a8 WHIRLPOOL 13809c4cbfbcc7dbdb3c84917e00f407484095cbf16863fcc9d92fa0833c6dd5d2cafb25d1f2ac9bc1cc5131aea1f273be4b2a8ff47c33014e1b1d53c4f5ec5e
+EBUILD texmacs-1.99.2-r1.ebuild 1859 SHA256 87aa2936a7915d86f583e649ec0d800b31ff867557eefd7ef87f824c0b162786 SHA512 0d530b0ab47462b964650ad0bd8a28c2c05cb2cd09b2c8054123c5e794fe8093b47645b3713edc1ecc772f846dae37bb821e3925048764480182aa4ac0b63a6a WHIRLPOOL 1bd3f508c26698243b4ed5a8c9942da50083e45658090f7a56e1f7a7b3e5d02e026f5b3a0e15e1618f2d5c15c00acca318b943850fce88038f7ce8cf227680b7
+EBUILD texmacs-1.99.5.ebuild 1840 SHA256 4f310f2cd2e5de9867b1081bce7d6a1f9c7f14191e8b24896ddcf26a6b69fd97 SHA512 cf5241fa735e93f87f5c630a13172c4ef7682ce1303f6a001bab79c2d573bc71322e359dc5a13f3430333fe75ec875ab6c1af921d05ccd4d5ff1dfacf719edef WHIRLPOOL 34e78fc39ede4f3dd2c3515b6d2aa1ad2d8225cd8ac88f4c2526dd1a5c2443be1b3cbc6e5c4da5e1c419c65c3ca4e7130ec40fd32b1a6b2b7726a4a7ab260e97
+MISC ChangeLog 4432 SHA256 921520e0f0687d8723b8a5d9e3afbf733006ce367b81f38086bfad36e29e0e7c SHA512 57bf86f92fa3a2306e2db6abd67797b34f31c82c01bed81978fc10f7c7fd24fe5eb713107f7ea1154c73955459a19ba1c1acfd7a1b5bd3b2149596e07a31d4f7 WHIRLPOOL 4f2f4f1f222f5dd89d77115c7beae134dd3714b9f868cb0bec3ace152b87ff7420b369e5470601522ef594b7405eb49c7e2da348980625a9446fc68cdcb97e53
+MISC ChangeLog-2015 20552 SHA256 5d214666ae3edfd9d9f7d6a445ee45abb6c0195bd6833614129b546fc2beb1b7 SHA512 aff92d554b048563eda90d494fc3a1a7d259166c50d0ce164e96457f90f94882676a18cd589fec7b627282c9abb3556db565c3d8bf9ce9d2fa764afbae2a04f7 WHIRLPOOL 65ec7a8575fa40c83f2fa2c7ffc383b60aea9082c92da509fdee23897dc74401df6151917ce51b9caeee1547a94e89639f4f304c358b3c39b7d77808910850cf
+MISC metadata.xml 532 SHA256 cca0772554d71f842af962e9f8ee1d79e1453545994c3eed40d67f4d3fd356f4 SHA512 f7a15d31b19285e863c32dbe1a6e77b10d4a9295dc2f9444a69173eb13e5334acedb0b547253dbe0734a33402e11cd9859c07d8d5db1be3370e547cd96266601 WHIRLPOOL cdd86ebca533e13faac14137695575bb151af9ff7026f58c0193f25ddf30d08cd6d9e6c7ab46fac634cb049fabf9520827fc034dab287acdfffd8d7bcf4fc2df
diff --git a/app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch b/app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch
new file mode 100644
index 000000000000..45b08226f652
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-1.99-remove-new-declaration.patch
@@ -0,0 +1,19 @@
+Remove new/delete declarations, which cause problems with recent GCC versions:
+* /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/new:135:41: error: declaration of ‘void operator delete [](void*) throw ()’ has a different exception specifier
+
+See also: https://bugs.gentoo.org/show_bug.cgi?id=590002
+
+--- TeXmacs-1.99.5-src/src/System/Misc/fast_alloc.hpp
++++ TeXmacs-1.99.5-src/src/System/Misc/fast_alloc.hpp
+@@ -384,11 +384,6 @@
+ void operator delete (register void* ptr) throw();
+ void* operator new[] (register size_t s) throw(std::bad_alloc);
+ void operator delete[] (register void* ptr) throw();
+-#else
+-void* operator new (register size_t s);
+-void operator delete (register void* ptr);
+-void* operator new[] (register size_t s);
+-void operator delete[] (register void* ptr);
+ #endif
+ #endif // not defined NO_FAST_ALLOC
+
diff --git a/app-office/texmacs/files/texmacs-1.99.2-desktop.patch b/app-office/texmacs/files/texmacs-1.99.2-desktop.patch
new file mode 100644
index 000000000000..275f5571ebd8
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-1.99.2-desktop.patch
@@ -0,0 +1,23 @@
+ TeXmacs/misc/mime/texmacs.desktop | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/TeXmacs/misc/mime/texmacs.desktop b/TeXmacs/misc/mime/texmacs.desktop
+index 493103c..cfd66b3 100644
+--- a/TeXmacs/misc/mime/texmacs.desktop
++++ b/TeXmacs/misc/mime/texmacs.desktop
+@@ -1,14 +1,9 @@
+ [Desktop Entry]
+ Name=GNU TeXmacs
+ Comment=A structured wysiwyg scientific text editor
+-BinaryPattern=texmacs
+-Protocols=
+ MimeType=text/x-texmacs;text/plain;text/x-tex;
+ Exec=texmacs %f
+ Icon=TeXmacs
+-TerminalOptions=
+-Path=
+ Type=Application
+-Terminal=0
+-MapNotify=false
++Terminal=false
+ Categories=Education;Science;Math;
diff --git a/app-office/texmacs/files/texmacs-1.99.2-norpath.patch b/app-office/texmacs/files/texmacs-1.99.2-norpath.patch
new file mode 100644
index 000000000000..b210a78c6d01
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-1.99.2-norpath.patch
@@ -0,0 +1,16 @@
+ configure.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+index d79d4b2..8a558af 100644
+--- a/configure.in
++++ b/configure.in
+@@ -691,7 +691,7 @@ CONFIG_CXXOPTIMIZE="-O2"
+ CONFIG_BSTATIC="-lXdmcp -lXau -lXrender"
+ CONFIG_BSHARED="-Wl,-Bdynamic"
+ CONFIG_BFLAGS=""
+-CONFIG_BPATH="-Wl,-rpath,"
++CONFIG_BPATH=""
+ CONFIG_LDRT=""
+ CONFIG_WORD_LENGTH="4"
+ CONFIG_WORD_LENGTH_INC="3"
diff --git a/app-office/texmacs/files/texmacs-1.99.2-underlinking.patch b/app-office/texmacs/files/texmacs-1.99.2-underlinking.patch
new file mode 100644
index 000000000000..69a37aae71e5
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-1.99.2-underlinking.patch
@@ -0,0 +1,16 @@
+ src/makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/makefile.in b/src/makefile.in
+index f5666c2..b9a10d6 100644
+--- a/src/makefile.in
++++ b/src/makefile.in
+@@ -399,7 +399,7 @@ TEXMACS_objects := $(strip $(call uses,system kernel data graphics\
+
+ link_options:=-L$(tmsrc)/lib $(LDRT) -lm $(LDPATH) $(LDGUI) $(LDICONV) \
+ $(LDGUILE) $(LDAXEL) $(LDCAIRO) $(LDIMLIB2) $(LDSQLITE3) $(LDFREETYPE) \
+- $(LDDL) $(LDSPARKLE)
++ $(LDDL) $(LDSPARKLE) -lz
+
+ $(tmsrc)/bin/texmacs.bin: Objects/texmacs-$(link).bin
+ $(CP) $^ $@
diff --git a/app-office/texmacs/files/texmacs-plugins-1.patch b/app-office/texmacs/files/texmacs-plugins-1.patch
new file mode 100644
index 000000000000..1d3299f407ce
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-plugins-1.patch
@@ -0,0 +1,48 @@
+diff -r -U1 TeXmacs-1.0.7.21-src.orig/plugins/axiom/Makefile TeXmacs-1.0.7.21-src/plugins/axiom/Makefile
+--- TeXmacs-1.0.7.21-src.orig/plugins/axiom/Makefile 2013-11-04 06:09:24.000000000 +0700
++++ TeXmacs-1.0.7.21-src/plugins/axiom/Makefile 2013-12-29 02:40:24.263756226 +0700
+@@ -16,3 +16,3 @@
+ bin/tm_axiom: src/tm_axiom.c
+- $(CC) $(CPPFLAGS) $(CFLAGS) src/tm_axiom.c -o bin/tm_axiom
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/tm_axiom.c -o bin/tm_axiom
+
+diff -r -U1 TeXmacs-1.0.7.21-src.orig/plugins/graphviz/Makefile TeXmacs-1.0.7.21-src/plugins/graphviz/Makefile
+--- TeXmacs-1.0.7.21-src.orig/plugins/graphviz/Makefile 2013-11-04 06:09:18.000000000 +0700
++++ TeXmacs-1.0.7.21-src/plugins/graphviz/Makefile 2013-12-29 02:41:10.245753123 +0700
+@@ -16,3 +16,3 @@
+ bin/tm_graphviz: src/tm_graphviz.c
+- $(CC) $(CPPFLAGS) $(CFLAGS) src/tm_graphviz.c -o bin/tm_graphviz
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/tm_graphviz.c -o bin/tm_graphviz
+
+diff -r -U1 TeXmacs-1.0.7.21-src.orig/plugins/maple/Makefile TeXmacs-1.0.7.21-src/plugins/maple/Makefile
+--- TeXmacs-1.0.7.21-src.orig/plugins/maple/Makefile 2013-11-04 06:09:23.000000000 +0700
++++ TeXmacs-1.0.7.21-src/plugins/maple/Makefile 2013-12-29 02:41:45.834750721 +0700
+@@ -17,3 +17,3 @@
+ bin/tm_maple_5: src/tm_maple_5.cpp
+- $(CXX) $(CPPFLAGS) $(CXXFLAGS) src/tm_maple_5.cpp -o bin/tm_maple_5
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) src/tm_maple_5.cpp -o bin/tm_maple_5
+
+diff -r -U1 TeXmacs-1.0.7.21-src.orig/plugins/mathematica/Makefile TeXmacs-1.0.7.21-src/plugins/mathematica/Makefile
+--- TeXmacs-1.0.7.21-src.orig/plugins/mathematica/Makefile 2013-11-04 06:09:22.000000000 +0700
++++ TeXmacs-1.0.7.21-src/plugins/mathematica/Makefile 2013-12-29 02:42:33.470747506 +0700
+@@ -14,3 +14,3 @@
+ bin/realpath: src/realpath.c
+- $(CC) $(CPPFLAGS) $(CFLAGS) src/realpath.c -o bin/realpath
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) src/realpath.c -o bin/realpath
+
+diff -r -U1 TeXmacs-1.0.7.21-src.orig/plugins/r/Makefile TeXmacs-1.0.7.21-src/plugins/r/Makefile
+--- TeXmacs-1.0.7.21-src.orig/plugins/r/Makefile 2013-11-04 06:09:24.000000000 +0700
++++ TeXmacs-1.0.7.21-src/plugins/r/Makefile 2013-12-29 02:43:32.538743520 +0700
+@@ -16,3 +16,3 @@
+ bin/tm_r: src/tm_r.c
+- $(CC) $(CPPFLAGS) $(CFLAGS) -I../../src/System src/tm_r.c -o bin/tm_r -lutil
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -I../../src/System src/tm_r.c -o bin/tm_r -lutil
+
+diff -r -U1 TeXmacs-1.0.7.21-src.orig/plugins/shell/Makefile TeXmacs-1.0.7.21-src/plugins/shell/Makefile
+--- TeXmacs-1.0.7.21-src.orig/plugins/shell/Makefile 2013-11-04 06:09:21.000000000 +0700
++++ TeXmacs-1.0.7.21-src/plugins/shell/Makefile 2013-12-29 02:44:07.584741155 +0700
+@@ -16,3 +16,3 @@
+ bin/tm_shell: src/tm_shell.cpp
+- $(CXX) $(CPPFLAGS) $(CXXFLAGS) -I../../src/System src/tm_shell.cpp -o bin/tm_shell -lutil
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -I../../src/System src/tm_shell.cpp -o bin/tm_shell -lutil
+
diff --git a/app-office/texmacs/files/texmacs-updates.patch b/app-office/texmacs/files/texmacs-updates.patch
new file mode 100644
index 000000000000..f9517cd25edc
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-updates.patch
@@ -0,0 +1,29 @@
+diff -r -U1 TeXmacs-1.0.7.16-src.orig/Makefile.in TeXmacs-1.0.7.16-src/Makefile.in
+--- TeXmacs-1.0.7.16-src.orig/Makefile.in 2012-07-09 21:33:36.000000000 +0700
++++ TeXmacs-1.0.7.16-src/Makefile.in 2012-09-16 11:20:06.000000000 +0700
+@@ -171,3 +171,2 @@
+ $(DESTDIR)$(datadir)/applications
+- @update-desktop-database 2>/dev/null || :
+ $(MKDIR) $(DESTDIR)$(datadir)/application-registry
+@@ -181,3 +180,2 @@
+ $(CP) $(tmdir)/misc/mime/texmacs.xml $(DESTDIR)$(datadir)/mime/packages
+- @update-mime-database $(DESTDIR)$(datadir)/mime/ 2>/dev/null || :
+ $(MKDIR) $(DESTDIR)$(datadir)/pixmaps
+@@ -193,4 +191,2 @@
+ $(DESTDIR)$(datadir)/icons/gnome/scalable/mimetypes
+- @gtk-update-icon-cache -t --force \
+- $(DESTDIR)$(datadir)/icons/gnome 2>/dev/null || :
+ @echo installed TeXmacs mime info in $(DESTDIR)$(datadir)
+@@ -223,3 +219,2 @@
+ $(RM) $(datadir)/applications/texmacs.desktop
+- @update-desktop-database 2>/dev/null || :
+ $(RM) $(datadir)/application-registry/texmacs.applications
+@@ -228,3 +223,2 @@
+ $(RM) $(datadir)/mime/packages/texmacs.xml
+- @update-mime-database $(DESTDIR)$(datadir)/mime/ 2>/dev/null || :
+ $(RM) $(datadir)/pixmaps/TeXmacs.xpm
+@@ -232,4 +226,2 @@
+ $(RM) $(datadir)/icons/gnome/scalable/mimetypes/text-texmacs.svg
+- @gtk-update-icon-cache -t --force \
+- $(DESTDIR)$(datadir)/icons/gnome 2>/dev/null || :
+ @echo removed TeXmacs mime info from $(datadir)
diff --git a/app-office/texmacs/metadata.xml b/app-office/texmacs/metadata.xml
new file mode 100644
index 000000000000..d6df84643b71
--- /dev/null
+++ b/app-office/texmacs/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <use>
+ <flag name="netpbm">Add support for <pkg>media-libs/netpbm</pkg></flag>
+ <flag name="pdf">Add the experimental native pdf export</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-office/texmacs/texmacs-1.99.2-r1.ebuild b/app-office/texmacs/texmacs-1.99.2-r1.ebuild
new file mode 100644
index 000000000000..f408b0358af2
--- /dev/null
+++ b/app-office/texmacs/texmacs-1.99.2-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils fdo-mime gnome2-utils
+
+MY_P=${P/tex/TeX}-src
+
+DESCRIPTION="Wysiwyg text processor with high-quality maths"
+HOMEPAGE="http://www.texmacs.org/"
+SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="imlib jpeg netpbm pdf qt4 svg spell"
+KEYWORDS="alpha amd64 ppc x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ app-text/ghostscript-gpl
+ dev-scheme/guile:12[deprecated]
+ media-libs/freetype
+ x11-apps/xmodmap
+ x11-libs/libXext
+ virtual/latex-base
+ imlib? ( media-libs/imlib2 )
+ jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
+ netpbm? ( media-libs/netpbm )
+ qt4? ( dev-qt/qtgui:4 )
+ spell? ( app-text/aspell )
+ svg? ( || ( media-gfx/inkscape gnome-base/librsvg:2 ) )
+"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ # respect LDFLAGS, bug #338459
+ "${FILESDIR}"/${PN}-plugins-1.patch
+
+ # dont update mime and desktop databases and icon cache
+ "${FILESDIR}"/${PN}-updates.patch
+
+ # underlinking 540600
+ "${FILESDIR}"/${P}-underlinking.patch
+
+ # scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH
+ "${FILESDIR}"/${P}-norpath.patch
+
+ "${FILESDIR}"/${P}-desktop.patch
+
+ # remove new/delete declarations, bug 590002
+ "${FILESDIR}"/${PN}-1.99-remove-new-declaration.patch
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+
+ mv configure.{in,ac} || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-optimize="${CXXFLAGS}" \
+ $(use_with imlib imlib2) \
+ $(use_enable qt4 qt) \
+ $(use_enable pdf pdf-renderer)
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/app-office/texmacs/texmacs-1.99.5.ebuild b/app-office/texmacs/texmacs-1.99.5.ebuild
new file mode 100644
index 000000000000..38d576fe4680
--- /dev/null
+++ b/app-office/texmacs/texmacs-1.99.5.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools fdo-mime gnome2-utils qmake-utils
+
+MY_P=${P/tex/TeX}-src
+
+DESCRIPTION="Wysiwyg text processor with high-quality maths"
+HOMEPAGE="http://www.texmacs.org/"
+SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="imlib jpeg netpbm pdf svg spell"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ app-text/ghostscript-gpl
+ <dev-scheme/guile-1.9[deprecated]
+ media-libs/freetype
+ x11-apps/xmodmap
+ x11-libs/libXext
+ virtual/latex-base
+ dev-qt/qtgui:4
+ imlib? ( media-libs/imlib2 )
+ jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
+ netpbm? ( media-libs/netpbm )
+ spell? ( app-text/aspell )
+ svg? ( || ( media-gfx/inkscape gnome-base/librsvg:2 ) )
+"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ # respect LDFLAGS, bug #338459
+ "${FILESDIR}"/${PN}-plugins-1.patch
+
+ # dont update mime and desktop databases and icon cache
+ "${FILESDIR}"/${PN}-updates.patch
+
+ "${FILESDIR}"/${PN}-1.99.2-desktop.patch
+
+ # remove new/delete declarations, bug 590002
+ "${FILESDIR}"/${PN}-1.99-remove-new-declaration.patch
+)
+
+src_prepare() {
+ default
+
+ mv configure.{in,ac} || die
+
+ eautoreconf
+
+ # delete files that contain binary
+ # headers only used on OS X
+ rm src/{Plugins/Ghostscript/._ghostscript.cpp,System/Misc/._sys_utils.cpp} || die
+}
+
+src_configure() {
+ econf \
+ --enable-optimize="${CXXFLAGS}" \
+ --with-qt="$(qt4_get_bindir)" \
+ $(use_with imlib imlib2) \
+ $(use_enable pdf pdf-renderer)
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}