# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python2_7 ) # vala and introspection support is broken, bug #468208 VALA_USE_DEPEND=vapigen inherit meson gnome2-utils python-any-r1 vala if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gegl.git" SRC_URI="" else SRC_URI="http://download.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.bz2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" fi DESCRIPTION="A graph based image processing framework" HOMEPAGE="http://www.gegl.org/" LICENSE="|| ( GPL-3+ LGPL-3 )" SLOT="0.4" IUSE="cairo cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_f16c debug ffmpeg +introspection lcms lensfun libav openexr pdf raw sdl svg test tiff umfpack vala v4l webp zlib" REQUIRED_USE=" svg? ( cairo ) vala? ( introspection ) " # NOTE: Even current libav 11.4 does not have AV_CODEC_CAP_VARIABLE_FRAME_SIZE # so there is no chance to support libav right now (Gentoo bug #567638) # If it returns, please check prior GEGL ebuilds for how libav was integrated. Thanks! RDEPEND=" >=dev-libs/glib-2.44:2 dev-libs/json-glib >=media-libs/babl-0.1.62 >=media-libs/libpng-1.6.0:0= virtual/jpeg:0= >=x11-libs/gdk-pixbuf-2.32:2 x11-libs/pango cairo? ( >=x11-libs/cairo-1.12.2 ) ffmpeg? ( libav? ( media-video/libav:0= ) !libav? ( media-video/ffmpeg:0= ) ) introspection? ( >=dev-libs/gobject-introspection-1.32:= ) lcms? ( >=media-libs/lcms-2.8:2 ) lensfun? ( >=media-libs/lensfun-0.2.5 ) openexr? ( >=media-libs/openexr-2.2.0:= ) pdf? ( >=app-text/poppler-0.71.0[cairo] ) raw? ( >=media-libs/libraw-0.15.4:0= ) sdl? ( >=media-libs/libsdl-1.2.0 ) svg? ( >=gnome-base/librsvg-2.40.6:2 ) tiff? ( >=media-libs/tiff-4:0 ) umfpack? ( sci-libs/suitesparse ) v4l? ( >=media-libs/libv4l-1.0.1 ) webp? ( >=media-libs/libwebp-0.5.0:= ) zlib? ( >=sys-libs/zlib-1.2.0 ) " DEPEND="${RDEPEND} dev-lang/perl >=dev-util/gtk-doc-am-1 >=sys-devel/gettext-0.19.8 virtual/pkgconfig >=sys-devel/libtool-2.2 test? ( ffmpeg? ( media-libs/gexiv2 ) introspection? ( $(python_gen_any_dep '>=dev-python/pygobject-3.2[${PYTHON_USEDEP}]') ) ) vala? ( $(vala_depend) ) " pkg_setup() { use test && use introspection && python-any-r1_pkg_setup } src_prepare() { default gnome2_environment_reset use vala && vala_src_prepare } src_configure() { local emesonargs=( $(meson_feature cpu_flags_x86_mmx mmx) $(meson_feature cpu_flags_x86_f16c f16c) $(meson_feature cpu_flags_x86_sse sse) $(meson_feature cpu_flags_x86_sse2 sse2) $(meson_feature cpu_flags_x86_sse3 ssse3) $(meson_feature cpu_flags_x86_sse4_1 sse4_1) -Ddocs=false -Dgdk-pixbuf=enabled -Dpango=enabled -Dgraphviz=disabled -Dlibspiro=disabled -Dlua=disabled -Dmrg=disabled $(meson_use introspection) $(meson_feature cairo) $(meson_feature cairo pangocairo) $(meson_feature ffmpeg libav) -Djasper=disabled $(meson_feature lcms) $(meson_feature lensfun) $(meson_feature openexr) $(meson_feature pdf popplerglib) $(meson_feature raw libraw) $(meson_feature sdl) $(meson_feature svg librsvg) $(meson_feature tiff libtiff) $(meson_feature umfpack) $(meson_feature v4l libv4l) $(meson_feature v4l libv4l2) $(meson_feature vala) $(meson_feature webp) $(meson_feature zlib) ) meson_src_configure } src_compile() { meson_src_compile } src_install() { meson_src_install find "${ED}" -name '*.la' -delete || die }