1 # Copyright © 2020-2021 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
9 PYTHON_COMPAT=( python2_7 )
11 inherit autotools python-single-r1
15 DESCRIPTION="Python plugin support for GIMP"
16 HOMEPAGE="https://www.gimp.org/"
17 SRC_URI="mirror://gimp/v2.10/$MY_P.tar.bz2"
21 KEYWORDS="~amd64 ~x86"
22 IUSE="cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse"
24 DEPEND="dev-lang/python:2.7
26 $(python_gen_cond_dep '
27 >=dev-python/pycairo-1.0.2:2[${PYTHON_USEDEP}]
28 >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]')
29 !media-gfx/gimp[python(-)]"
31 REQUIRED_USE=$PYTHON_REQUIRED_USE
35 PATCHES=("$FILESDIR/$PV-no-mypaint-brushes.patch")
38 sed -i '/^libgimp/s|[^ ]*/lib\(gimp[^-]*\)-[^ ]*\.la|-l\1-2.0|' \
39 plug-ins/pygimp/Makefile.am
48 GDBUS_CODEGEN="/bin/false"
49 GEGL="$EPREFIX/usr/bin/gegl-0.4"
51 $(use_enable cpu_flags_ppc_altivec altivec)
52 $(use_enable cpu_flags_x86_mmx mmx)
53 $(use_enable cpu_flags_x86_sse sse)
61 cd plug-ins/pygimp && emake
65 cd plug-ins/pygimp && emake DESTDIR="$D" install
66 find "$D" -name '*.la' -delete