| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtkmathview/gtkmathview-0.8.0-r2.ebuild,v 1.11 2012/10/28 16:34:41 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit autotools eutils
|
| 8 |
|
| 9 |
DESCRIPTION="Rendering engine for MathML documents"
|
| 10 |
HOMEPAGE="http://helm.cs.unibo.it/mml-widget/"
|
| 11 |
SRC_URI="http://helm.cs.unibo.it/mml-widget/sources/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="LGPL-3"
|
| 14 |
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86"
|
| 17 |
IUSE="gtk mathml svg t1lib"
|
| 18 |
|
| 19 |
RDEPEND=">=dev-libs/glib-2.2.1:2
|
| 20 |
>=dev-libs/popt-1.7
|
| 21 |
>=dev-libs/libxml2-2.6.7:2
|
| 22 |
gtk? ( >=x11-libs/gtk+-2.2.1:2
|
| 23 |
>=media-libs/t1lib-5:5
|
| 24 |
x11-libs/pango
|
| 25 |
|| ( x11-libs/pangox-compat <x11-libs/pango-1.31[X] ) )
|
| 26 |
mathml? ( media-fonts/texcm-ttf )
|
| 27 |
t1lib? ( >=media-libs/t1lib-5:5 )"
|
| 28 |
DEPEND="${RDEPEND}
|
| 29 |
dev-libs/libxslt
|
| 30 |
virtual/pkgconfig"
|
| 31 |
|
| 32 |
pkg_setup() {
|
| 33 |
DOCS="ANNOUNCEMENT AUTHORS BUGS ChangeLog CONTRIBUTORS HISTORY NEWS README TODO"
|
| 34 |
}
|
| 35 |
|
| 36 |
src_prepare() {
|
| 37 |
epatch "${FILESDIR}"/${P}-gcc43.patch \
|
| 38 |
"${FILESDIR}"/${P}-gcc44.patch \
|
| 39 |
"${FILESDIR}"/${P}-cond-t1.patch
|
| 40 |
|
| 41 |
# Fix building against libxml2[icu], bug #356095
|
| 42 |
epatch "${FILESDIR}"/${P}-fix-template.patch
|
| 43 |
|
| 44 |
# Fix building with gold, bug #369117; requires eautoreconf
|
| 45 |
epatch "${FILESDIR}/${P}-underlinking.patch"
|
| 46 |
|
| 47 |
epatch "${FILESDIR}/${P}-gcc47.patch"
|
| 48 |
|
| 49 |
# m4 macros from upstream git, required for eautoreconf
|
| 50 |
if [[ ! -d ac-helpers ]]; then
|
| 51 |
mkdir ac-helpers || die "mkdir failed"
|
| 52 |
cp "${FILESDIR}/binreloc.m4" ac-helpers || die "cp failed"
|
| 53 |
fi
|
| 54 |
|
| 55 |
AT_M4DIR=ac-helpers eautoreconf
|
| 56 |
}
|
| 57 |
|
| 58 |
src_configure() {
|
| 59 |
# --disable-popt will build only the library and not the frontend
|
| 60 |
# TFM is needed for SVG, default value is 2
|
| 61 |
econf $(use_enable gtk) \
|
| 62 |
$(use_enable svg) \
|
| 63 |
$(use_with t1lib) \
|
| 64 |
--with-popt \
|
| 65 |
--enable-libxml2 \
|
| 66 |
--enable-libxml2-reader \
|
| 67 |
--enable-ps \
|
| 68 |
--enable-tfm=2 \
|
| 69 |
--enable-builder-cache \
|
| 70 |
--enable-breaks \
|
| 71 |
--enable-boxml \
|
| 72 |
--disable-gmetadom \
|
| 73 |
--disable-static
|
| 74 |
}
|
| 75 |
|
| 76 |
src_install() {
|
| 77 |
default
|
| 78 |
find "${D}" -name '*.la' -exec rm -f {} +
|
| 79 |
}
|