summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarri Nieminen <moikkis@gmail.com>2017-03-03 12:36:01 +0200
committerDavid Seifert <soap@gentoo.org>2017-03-07 10:09:56 +0100
commit34c000cb3c1e04daf28126095b8aec760e088650 (patch)
tree4cfa16f6b9ff9751c0ce4f1e21ca66ab61949dec /x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild
parentmedia-plugins/kodi-pvr-mythtv: 4.14.1 version bump (diff)
downloadgentoo-34c000cb3c1e04daf28126095b8aec760e088650.tar.gz
gentoo-34c000cb3c1e04daf28126095b8aec760e088650.tar.bz2
gentoo-34c000cb3c1e04daf28126095b8aec760e088650.zip
x11-libs/gtkmathview: Fix build with gcc6, EAPI6
Package-Manager: Portage-2.3.4, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/4119
Diffstat (limited to 'x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild')
-rw-r--r--x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild84
1 files changed, 84 insertions, 0 deletions
diff --git a/x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild b/x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild
new file mode 100644
index 000000000000..be949527b402
--- /dev/null
+++ b/x11-libs/gtkmathview/gtkmathview-0.8.0-r3.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+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 ~arm ~hppa ~ia64 ~mips ~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? (
+ >=media-libs/t1lib-5:5
+ >=x11-libs/gtk+-2.2.1:2
+ x11-libs/pango
+ x11-libs/pangox-compat
+ )
+ mathml? ( media-fonts/texcm-ttf )
+ t1lib? ( >=media-libs/t1lib-5:5 )
+"
+DEPEND="${RDEPEND}
+ dev-libs/libxslt
+ virtual/pkgconfig
+"
+
+DOCS=( ANNOUNCEMENT AUTHORS BUGS ChangeLog CONTRIBUTORS HISTORY NEWS README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-gcc44.patch
+ "${FILESDIR}"/${P}-cond-t1.patch
+ # Fix building against libxml2[icu], bug #356095
+ "${FILESDIR}"/${P}-fix-template.patch
+ # Fix building with gold, bug #369117; requires eautoreconf
+ "${FILESDIR}"/${P}-underlinking.patch
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+ default
+
+ # m4 macros from upstream git, required for eautoreconf
+ if [[ ! -d ac-helpers ]]; then
+ mkdir ac-helpers || die "mkdir failed"
+ cp "${FILESDIR}"/binreloc.m4 ac-helpers || die "cp failed"
+ fi
+
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
+
+ AT_M4DIR=ac-helpers eautoreconf
+}
+
+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 svg) \
+ $(use_with t1lib) \
+ --with-popt \
+ --enable-libxml2 \
+ --enable-libxml2-reader \
+ --enable-ps \
+ --enable-tfm=2 \
+ --enable-builder-cache \
+ --enable-breaks \
+ --enable-boxml \
+ --disable-gmetadom \
+ --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}