librsvg-2.40.21.ebuild (2697B)
1 # Copyright 1999-2021 Gentoo Authors 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=7 5 GNOME2_EAUTORECONF="yes" 6 VALA_USE_DEPEND="vapigen" 7 8 inherit autotools gnome2 multilib-minimal vala 9 10 DESCRIPTION="Scalable Vector Graphics (SVG) rendering library - with no rust & gtk-doc dependencies" 11 HOMEPAGE="https://github.com/saloniamatteo/librsvg-overlay https://github.com/oaken-source/librsvg-og" 12 COMMIT="586e75f88d2deebfcfaa3f61338ffece26d3f521" 13 SRC_URI="https://github.com/oaken-source/librsvg-og/archive/${COMMIT}.tar.gz -> librsvg.tar.gz" 14 15 LICENSE="LGPL-2+" 16 SLOT="2" 17 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" 18 19 IUSE="introspection vala" 20 REQUIRED_USE="vala? ( introspection )" 21 22 RDEPEND=" 23 >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] 24 >=dev-libs/libcroco-0.6.8-r1[${MULTILIB_USEDEP}] 25 >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}] 26 >=x11-libs/cairo-1.12.14-r4[${MULTILIB_USEDEP}] 27 >=x11-libs/gdk-pixbuf-2.30.7:2[introspection?,${MULTILIB_USEDEP}] 28 >=x11-libs/gtk+-3.10.0:3 29 >=x11-libs/pango-1.38.0[${MULTILIB_USEDEP}] 30 introspection? ( >=dev-libs/gobject-introspection-0.10.8:= ) 31 " 32 DEPEND="${RDEPEND}" 33 BDEPEND=" 34 dev-libs/gobject-introspection-common 35 dev-libs/vala-common 36 dev-util/glib-utils 37 virtual/pkgconfig 38 x11-libs/gdk-pixbuf 39 vala? ( $(vala_depend) ) 40 " 41 # >=gtk-doc-am-1.13, gobject-introspection-common, vala-common needed by eautoreconf 42 43 QA_FLAGS_IGNORED=" 44 usr/bin/rsvg-convert 45 usr/lib.*/librsvg.* 46 " 47 48 RESTRICT="test" # Lots of issues due to freetype changes and more; ever since newer tests got backported into 2.40.19 49 50 PATCHES=( "${FILESDIR}/remove-gtk-doc.patch") 51 52 src_unpack() { 53 unpack "${PN}.tar.gz" 54 mv "librsvg-og-${COMMIT}" "${P}" 55 } 56 57 src_prepare() { 58 use vala && vala_src_prepare 59 gnome2_src_prepare 60 } 61 62 multilib_src_configure() { 63 local myconf=( 64 --disable-static 65 --disable-tools # enabling this flag seems to have no effect... 66 $(multilib_native_use_enable introspection) 67 $(multilib_native_use_enable vala) 68 --enable-pixbuf-loader 69 ) 70 71 # -Bsymbolic is not supported by the Darwin toolchain 72 [[ ${CHOST} == *-darwin* ]] && myconf+=( --disable-Bsymbolic ) 73 74 ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" 75 } 76 77 multilib_src_compile() { 78 # causes segfault if set, see bug #411765 79 unset __GL_NO_DSO_FINALIZER 80 gnome2_src_compile 81 } 82 83 multilib_src_install() { 84 gnome2_src_install 85 } 86 87 pkg_postinst() { 88 # causes segfault if set, see bug 375615 89 unset __GL_NO_DSO_FINALIZER 90 multilib_foreach_abi gnome2_pkg_postinst 91 } 92 93 pkg_postrm() { 94 # causes segfault if set, see bug 375615 95 unset __GL_NO_DSO_FINALIZER 96 multilib_foreach_abi gnome2_pkg_postrm 97 }