blob: 11c0ef599bfc2afdf2078ec594b67530d5c431f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/texmacs/texmacs-1.0.2.4.ebuild,v 1.3 2004/02/20 19:50:21 usata Exp $
# flag-o-matic functions now in portage, no need to inherit it
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"
KEYWORDS="x86 ~ppc"
RDEPEND="virtual/tetex
>=dev-util/guile-1.4
>=sys-apps/sed-4
virtual/x11
spell? ( >=app-text/ispell-3.2 )"
DEPEND="${DEPEND}
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
make || die
}
src_install() {
make DESTDIR=${D} install || die
dodoc COMPILE COPYING LICENSE
# now install the fonts
cd ${WORKDIR}
dodir /usr/share/texmf
cp -r fonts ${D}/usr/share/texmf/
}
|