2012-05-05 10:06:40 +04:00
|
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-12-20 10:48:02 +04:00
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtkmathview/gtkmathview-0.8.0.ebuild,v 1.15 2012/12/19 16:46:43 tetromino Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
|
|
EAPI="3"
|
|
|
|
|
|
|
|
|
|
inherit eutils
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="Rendering engine for MathML documents"
|
|
|
|
|
HOMEPAGE="http://helm.cs.unibo.it/mml-widget/"
|
|
|
|
|
SRC_URI="http://helm.cs.unibo.it/mml-widget/sources/${P}.tar.gz"
|
|
|
|
|
|
|
|
|
|
LICENSE="LGPL-3"
|
|
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
|
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
|
|
|
|
|
IUSE="gtk mathml svg t1lib"
|
|
|
|
|
|
|
|
|
|
RDEPEND=">=dev-libs/glib-2.2.1:2
|
|
|
|
|
>=dev-libs/popt-1.7
|
|
|
|
|
>=dev-libs/libxml2-2.6.7:2
|
|
|
|
|
gtk? ( >=x11-libs/gtk+-2.2.1:2
|
|
|
|
|
>=media-libs/t1lib-5:5
|
|
|
|
|
>=dev-libs/gmetadom-0.1.8
|
2012-12-20 10:48:02 +04:00
|
|
|
|
x11-libs/pango
|
|
|
|
|
|| ( x11-libs/pangox-compat <x11-libs/pango-1.31[X] ) )
|
2012-02-06 16:39:49 +04:00
|
|
|
|
mathml? ( media-fonts/texcm-ttf )
|
|
|
|
|
t1lib? ( >=media-libs/t1lib-5:5 )"
|
|
|
|
|
DEPEND="${RDEPEND}
|
2012-05-05 10:06:40 +04:00
|
|
|
|
virtual/pkgconfig"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
|
epatch "${FILESDIR}"/${P}-gcc43.patch \
|
|
|
|
|
"${FILESDIR}"/${P}-gcc44.patch \
|
|
|
|
|
"${FILESDIR}"/${P}-cond-t1.patch
|
|
|
|
|
|
|
|
|
|
# Fix building against libxml2[icu], bug #356095
|
|
|
|
|
epatch "${FILESDIR}"/${P}-fix-template.patch
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
|
# --disable-popt will build only the library and not the frontend
|
|
|
|
|
# TFM is needed for SVG, default value is 2
|
|
|
|
|
econf $(use_enable gtk) $(use_enable gtk gmetadom) \
|
|
|
|
|
$(use_enable svg) \
|
|
|
|
|
$(use_with t1lib) \
|
|
|
|
|
--enable-popt \
|
|
|
|
|
--enable-libxml2 \
|
|
|
|
|
--enable-libxml2-reader \
|
|
|
|
|
--enable-ps \
|
|
|
|
|
--enable-tfm=2 \
|
|
|
|
|
--enable-builder-cache \
|
|
|
|
|
--enable-breaks \
|
|
|
|
|
--enable-boxml
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
|
emake install DESTDIR="${D}" || die "install failed"
|
|
|
|
|
dodoc ANNOUNCEMENT AUTHORS BUGS CONTRIBUTORS ChangeLog HISTORY NEWS TODO \
|
|
|
|
|
|| die "dodoc failed"
|
|
|
|
|
}
|