1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools fdo-mime gnome2-utils
11 DESCRIPTION="Wysiwyg text processor with high-quality maths"
12 HOMEPAGE="http://www.texmacs.org/"
13 SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/tmftp/source/${MY_P}.tar.gz"
17 IUSE="imlib jpeg netpbm pdf svg spell"
18 KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux"
21 app-text/ghostscript-gpl
22 dev-scheme/guile:12[deprecated]
28 imlib? ( media-libs/imlib2 )
29 jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
30 netpbm? ( media-libs/netpbm )
31 spell? ( app-text/aspell )
32 svg? ( || ( media-gfx/inkscape gnome-base/librsvg:2 ) )
37 S="${WORKDIR}/${MY_P}"
40 # respect LDFLAGS, bug #338459
41 "${FILESDIR}"/${PN}-plugins-1.patch
43 # dont update mime and desktop databases and icon cache
44 "${FILESDIR}"/${PN}-updates.patch
46 "${FILESDIR}"/${PN}-1.99.2-desktop.patch
48 # remove new/delete declarations, bug 590002
49 "${FILESDIR}"/${PN}-1.99-remove-new-declaration.patch
55 mv configure.{in,ac} || die
59 # delete files that contain binary
60 # headers only used on OS X
61 rm src/{Plugins/Ghostscript/._ghostscript.cpp,System/Misc/._sys_utils.cpp} || die
66 --enable-optimize="${CXXFLAGS}" \
67 $(use_with imlib imlib2) \
68 $(use_enable pdf pdf-renderer)
72 fdo-mime_desktop_database_update
73 fdo-mime_mime_database_update
74 gnome2_icon_cache_update
78 fdo-mime_desktop_database_update
79 fdo-mime_mime_database_update
80 gnome2_icon_cache_update