From 3b32ae7547d742f6e65770361188670710bec186 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 21 Feb 2023 02:22:31 +0000 Subject: gentoo auto-resync : 21:02:2023 - 02:22:31 --- x11-libs/gtkmathview/gtkmathview-0.8.0-r5.ebuild | 82 ++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 x11-libs/gtkmathview/gtkmathview-0.8.0-r5.ebuild (limited to 'x11-libs/gtkmathview/gtkmathview-0.8.0-r5.ebuild') diff --git a/x11-libs/gtkmathview/gtkmathview-0.8.0-r5.ebuild b/x11-libs/gtkmathview/gtkmathview-0.8.0-r5.ebuild new file mode 100644 index 000000000000..1159f5c61a22 --- /dev/null +++ b/x11-libs/gtkmathview/gtkmathview-0.8.0-r5.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" +IUSE="mathml svg t1lib" + +RDEPEND=" + >=dev-libs/glib-2.2.1:2 + >=dev-libs/popt-1.7 + >=dev-libs/libxml2-2.6.7:2 + mathml? ( media-fonts/texcm-ttf ) + t1lib? ( >=media-libs/t1lib-5:5 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-libs/libxslt + virtual/pkgconfig +" + +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 + # Fix building against GCC 7, bug #639448 + "${FILESDIR}"/${P}-gcc7.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 + rm README.MacOSX || 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 \ + --disable-gmetadom \ + --disable-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 +} + +src_install() { + default + dodoc ANNOUNCEMENT CONTRIBUTORS HISTORY + + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3