aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2007-02-14 10:23:40 +0000
committergrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2007-02-14 10:23:40 +0000
commitff167abf1c1665d6bfa609b4064ca12038e40254 (patch)
tree5cc8033d4f9c7585fa89a0568d11112199a9f382 /app-office/texmacs/texmacs-1.0.6.9.ebuild
parentremoved matplotlib (now in main tree) (diff)
downloadsci-ff167abf1c1665d6bfa609b4064ca12038e40254.tar.gz
sci-ff167abf1c1665d6bfa609b4064ca12038e40254.tar.bz2
sci-ff167abf1c1665d6bfa609b4064ca12038e40254.zip
TeXmacs-1.0.6.9
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@486 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'app-office/texmacs/texmacs-1.0.6.9.ebuild')
-rw-r--r--app-office/texmacs/texmacs-1.0.6.9.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/app-office/texmacs/texmacs-1.0.6.9.ebuild b/app-office/texmacs/texmacs-1.0.6.9.ebuild
new file mode 100644
index 000000000..f19e6739c
--- /dev/null
+++ b/app-office/texmacs/texmacs-1.0.6.9.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# although flag-o-matic functions in portage, we should inherit it
+inherit flag-o-matic eutils
+
+MY_P=${P/tex/TeX}-src
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="GNU TeXmacs is a free GUI scientific editor, inspired by TeX and GNU Emacs."
+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="spell static"
+# TeXmacs 1.0.X-r? -> stable release, TeXmacs 1.0.X.Y -> development release
+KEYWORDS="~x86 ~amd64"
+
+RDEPEND="virtual/tetex
+ >=dev-scheme/guile-1.4
+ >=sys-apps/sed-4
+ media-libs/freetype
+ || ( ( x11-libs/libX11
+ x11-libs/libICE )
+ virtual/x11
+ )
+ media-libs/imlib2
+ spell? ( || ( >=app-text/ispell-3.2 >=app-text/aspell-0.5 ) )"
+
+DEPEND="${RDEPEND}
+ || ( x11-proto/xproto
+ virtual/x11 )
+ virtual/ghostscript"
+
+src_compile() {
+
+ # we're not trusting texmacs optimisations here, so
+ # we only want the following two
+ strip-flags
+ append-flags -fno-default-inline
+ append-flags -fno-inline
+
+ econf || die
+ # and now replace the detected optimisations with our safer ones
+ sed -i "s:\(^CXXOPTIMIZE = \).*:\1${CXXFLAGS}:" src/common.makefile
+ # emake b0rked
+ if use static ; then
+ emake -j1 STATIC_TEXMACS || die
+ else
+ emake -j1 || die
+ fi
+
+}
+
+
+src_install() {
+
+ make DESTDIR=${D} install || die
+ dodoc COMPILE
+
+ insinto /usr/share/applications
+ doins ${FILESDIR}/TeXmacs.desktop
+
+ # now install the fonts
+ cd ${WORKDIR}
+ dodir /usr/share/texmf
+ cp -r fonts ${D}/usr/share/texmf/
+
+}