gentoo-ebuilds/app-text/libgxps/libgxps-0.3.2-r3.ebuild
Alfred Wingate d83e25b6a5
*/*: depend on newer gobject-introspection as a workaround
sed -E '/dev-libs\/gobject-introspection(:=|\s|$|-[0-9]|\[)/ { s/(>=)?dev-libs\/gobject-introspection(-[0-9.r-]*)?/>=dev-libs\/gobject-introspection-1.82.0-r2/ }' */*/*.ebuild -i

+ manually going over to undo the false positives or if the version
  requirement was higher.

Bug: https://bugs.gentoo.org/947058
See-Also: ae37e3f389
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44336
Closes: https://github.com/gentoo/gentoo/pull/44336
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-26 03:26:28 +00:00

51 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnome.org meson xdg-utils
DESCRIPTION="Library for handling and rendering XPS documents"
HOMEPAGE="https://wiki.gnome.org/Projects/libgxps"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86"
IUSE="gtk-doc +introspection jpeg lcms tiff"
RDEPEND="
>=app-arch/libarchive-2.8
>=dev-libs/glib-2.36:2
media-libs/freetype:2
media-libs/libpng:0
>=x11-libs/cairo-1.10[svg(+)]
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
jpeg? ( media-libs/libjpeg-turbo:= )
lcms? ( media-libs/lcms:2 )
tiff? ( media-libs/tiff:=[zlib] )
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
gtk-doc? ( dev-util/gtk-doc )
virtual/pkgconfig
"
# There is no automatic test suite, only an interactive test application
RESTRICT="test"
src_configure() {
local emesonargs=(
-Denable-test=false
$(meson_use gtk-doc enable-gtk-doc)
-Denable-man=true
-Ddisable-introspection=$(usex introspection false true)
$(meson_use lcms with-liblcms2)
$(meson_use jpeg with-libjpeg)
$(meson_use tiff with-libtiff)
)
xdg_environment_reset
meson_src_configure
}