# Copyright 1999-2003 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.1-r1.ebuild,v 1.4 2003/12/09 18:04:15 lanius Exp $ inherit flag-o-matic 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.3.4 =sys-apps/sed-4* virtual/x11 spell? ( >=app-text/ispell-3.2 )" DEPEND="${RDEPEND} virtual/ghostscript" src_compile() { strip-flags append-flags -fno-default-inline append-flags -fno-inline econf sed -i "s:\(^CXXOPTIMIZE = \).*:\1${CXXFLAGS}:" src/common.makefile cd ${S} make || die } src_install() { make DESTDIR=${D} install || die cd ${WORKDIR} dodir /usr/share/texmf cp -r fonts ${D}/usr/share/texmf/ cd ${S} dodoc COMPILE COPYING LICENSE }