diff options
author | grozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-03-21 21:41:52 +0000 |
---|---|---|
committer | grozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb> | 2008-03-21 21:41:52 +0000 |
commit | c30ef799bb9d856cf96d91bae98412521b8f1ba3 (patch) | |
tree | 4a36f287d8c1ab14f2dd90f3553b6169e8ce8aa5 /app-office/texmacs/texmacs-1.0.6.14.ebuild | |
parent | breqn-0.97a (diff) | |
download | sci-c30ef799bb9d856cf96d91bae98412521b8f1ba3.tar.gz sci-c30ef799bb9d856cf96d91bae98412521b8f1ba3.tar.bz2 sci-c30ef799bb9d856cf96d91bae98412521b8f1ba3.zip |
texmacs-1.0.6.14
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@984 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'app-office/texmacs/texmacs-1.0.6.14.ebuild')
-rw-r--r-- | app-office/texmacs/texmacs-1.0.6.14.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app-office/texmacs/texmacs-1.0.6.14.ebuild b/app-office/texmacs/texmacs-1.0.6.14.ebuild new file mode 100644 index 000000000..9ff2aa66f --- /dev/null +++ b/app-office/texmacs/texmacs-1.0.6.14.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +inherit eutils +MY_P=${P/tex/TeX}-src +DESCRIPTION="Wysiwyg text processor with high-quality maths" + +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="imlib jpeg svg netpbm spell" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/latex-base + virtual/ghostscript + >=dev-scheme/guile-1.4 + media-libs/freetype + x11-libs/libXext + imlib? ( media-libs/imlib2 ) + jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) ) + svg? ( || ( media-gfx/inkscape gnome-base/librsvg ) ) + netpbm? ( media-libs/netpbm ) + spell? ( || ( >=app-text/ispell-3.2 >=app-text/aspell-0.5 ) )" + +DEPEND="${RDEPEND} + x11-proto/xproto" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if has_version ">=dev-scheme/guile-1.8"; then + if ! built_with_use dev-scheme/guile deprecated; then + eerror "Please re-emerge dev-scheme/guile with the USE flag +deprecated" + die "Bad guile version" + fi + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}.patch +} + +src_compile() { + econf $(use_with imlib imlib2 ) \ + --enable-optimize="${CXXFLAGS}" \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc TODO || die "dodoc failed" + domenu "${FILESDIR}/TeXmacs.desktop" || die "domenu failed" + + # now install the fonts + insinto /usr/share/texmf + doins -r "${WORKDIR}/fonts" || die "installing fonts failed" +} |