/[gentoo-x86]/x11-libs/gtkmathview/gtkmathview-0.8.0-r1.ebuild
Gentoo

Contents of /x11-libs/gtkmathview/gtkmathview-0.8.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Dec 19 16:46:43 2012 UTC (19 months, 1 week ago) by tetromino
Branch: MAIN
Changes since 1.8: +3 -2 lines
Depend on pangox-compat if using pango-1.32.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

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-r1.ebuild,v 1.8 2012/07/15 18:33:46 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 hppa ia64 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 >=dev-libs/gmetadom-0.1.8
25 x11-libs/pango
26 || ( x11-libs/pangox-compat <x11-libs/pango-1.31[X] ) )
27 mathml? ( media-fonts/texcm-ttf )
28 t1lib? ( >=media-libs/t1lib-5:5 )"
29 DEPEND="${RDEPEND}
30 dev-libs/libxslt
31 virtual/pkgconfig"
32
33 pkg_setup() {
34 DOCS="ANNOUNCEMENT AUTHORS BUGS ChangeLog CONTRIBUTORS HISTORY NEWS README TODO"
35 }
36
37 src_prepare() {
38 epatch "${FILESDIR}"/${P}-gcc43.patch \
39 "${FILESDIR}"/${P}-gcc44.patch \
40 "${FILESDIR}"/${P}-cond-t1.patch
41
42 # Fix building against libxml2[icu], bug #356095
43 epatch "${FILESDIR}"/${P}-fix-template.patch
44
45 # Fix building with gold, bug #369117; requires eautoreconf
46 epatch "${FILESDIR}/${P}-underlinking.patch"
47
48 # m4 macros from upstream git, required for eautoreconf
49 if [[ ! -d ac-helpers ]]; then
50 mkdir ac-helpers || die "mkdir failed"
51 cp "${FILESDIR}/binreloc.m4" ac-helpers || die "cp failed"
52 fi
53
54 AT_M4DIR=ac-helpers eautoreconf
55 }
56
57 src_configure() {
58 # --disable-popt will build only the library and not the frontend
59 # TFM is needed for SVG, default value is 2
60 econf $(use_enable gtk) $(use_enable gtk gmetadom) \
61 $(use_enable svg) \
62 $(use_with t1lib) \
63 --with-popt \
64 --enable-libxml2 \
65 --enable-libxml2-reader \
66 --enable-ps \
67 --enable-tfm=2 \
68 --enable-builder-cache \
69 --enable-breaks \
70 --enable-boxml \
71 --disable-static
72 }
73
74 src_install() {
75 default
76 find "${D}" -name '*.la' -exec rm -f {} +
77 }

  ViewVC Help
Powered by ViewVC 1.1.20