X-Git-Url: https://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/9ac81e171740c64d7516411e8f179c015ccb2383..c76639b23f01dc685f8d534990f91a7f5db4a320:/media-plugins/gimp-python/gimp-python-2.10.20-r2.ebuild diff --git a/media-plugins/gimp-python/gimp-python-2.10.20-r2.ebuild b/media-plugins/gimp-python/gimp-python-2.10.20-r2.ebuild new file mode 100644 index 0000000..479a897 --- /dev/null +++ b/media-plugins/gimp-python/gimp-python-2.10.20-r2.ebuild @@ -0,0 +1,67 @@ +# Copyright © 2020-2021 Nick Bowler +# License GPLv3+: GNU General Public License version 3 or any later version. +# This is free software: you are free to change and redistribute it. +# There is NO WARRANTY, to the extent permitted by law. + +EAPI=7 + +_PYTHON_ALLOW_PY27=1 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools python-single-r1 + +MY_P=${P/-python/} + +DESCRIPTION="Python plugin support for GIMP" +HOMEPAGE="https://www.gimp.org/" +SRC_URI="mirror://gimp/v2.10/$MY_P.tar.bz2" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_ppc_altivec cpu_flags_x86_mmx cpu_flags_x86_sse" + +DEPEND="dev-lang/python:2.7 + >=media-gfx/gimp-$PV + $(python_gen_cond_dep ' + >=dev-python/pycairo-1.0.2:2[${PYTHON_USEDEP}] + >=dev-python/pygtk-2.10.4:2[${PYTHON_USEDEP}]') + !media-gfx/gimp[python(-)]" +RDEPEND=$DEPEND +REQUIRED_USE=$PYTHON_REQUIRED_USE + +S=$WORKDIR/$MY_P + +PATCHES=("$FILESDIR/$PV-no-mypaint-brushes.patch") + +src_prepare () { + sed -i '/^libgimp/s|[^ ]*/lib\(gimp[^-]*\)-[^ ]*\.la|-l\1-2.0|' \ + plug-ins/pygimp/Makefile.am + + default + + eautoreconf +} + +src_configure () { + local myconf=( + GDBUS_CODEGEN="/bin/false" + GEGL="$EPREFIX/usr/bin/gegl-0.4" + + $(use_enable cpu_flags_ppc_altivec altivec) + $(use_enable cpu_flags_x86_mmx mmx) + $(use_enable cpu_flags_x86_sse sse) + --enable-python + ) + + econf "${myconf[@]}" +} + +src_compile () { + cd plug-ins/pygimp && emake +} + +src_install () { + cd plug-ins/pygimp && emake DESTDIR="$D" install + find "$D" -name '*.la' -delete +}