1 # Copyright © 2020-2022 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.
12 DESCRIPTION="Python plugin support for GIMP"
13 HOMEPAGE="https://www.gimp.org/"
14 SRC_URI="mirror://gimp/v2.10/$MY_P.tar.bz2"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse"
21 DEPEND="dev-lang/python:2.7
23 >=dev-python/pycairo-1.0.2:2[python_targets_python2_7(+)]
24 >=dev-python/pygtk-2.10.4:2[python_targets_python2_7(+)]
25 !media-gfx/gimp[python(-)]"
31 "$FILESDIR/2.10.20-no-mypaint-brushes.patch"
35 sed -i '/^libgimp/s|[^ ]*/lib\(gimp[^-]*\)-[^ ]*\.la|-l\1-2.0|' \
36 plug-ins/pygimp/Makefile.am
45 GDBUS_CODEGEN="/bin/false"
46 GEGL="$EPREFIX/usr/bin/gegl-0.4"
48 $(use_enable cpu_flags_ppc_altivec altivec)
49 $(use_enable cpu_flags_x86_mmx mmx)
50 $(use_enable cpu_flags_x86_sse sse)
59 cd plug-ins/pygimp && emake
63 cd plug-ins/pygimp && emake DESTDIR="$D" install
64 find "$D" -name '*.la' -delete