mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
gimp: disable python 2 support
python 2. maybe it can be re-enabled in gimp 3 (which will use python 3)
This commit is contained in:
parent
71b17f8639
commit
c828fe44b7
2 changed files with 6 additions and 22 deletions
|
@ -1,17 +1,17 @@
|
||||||
# Template file for 'gimp'
|
# Template file for 'gimp'
|
||||||
pkgname=gimp
|
pkgname=gimp
|
||||||
version=2.10.34
|
version=2.10.34
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-check-update --datadir=/usr/share"
|
configure_args="--disable-check-update --datadir=/usr/share --disable-python"
|
||||||
hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
|
hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
|
||||||
libtool pkg-config pygtk-devel perl-XML-Parser gtk-doc iso-codes"
|
libtool pkg-config perl-XML-Parser gtk-doc iso-codes"
|
||||||
makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
|
makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
|
||||||
ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
|
ghostscript-devel jasper-devel lcms2-devel libXcursor-devel libXpm-devel
|
||||||
libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
|
libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
|
||||||
libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
|
libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes1
|
||||||
poppler-glib-devel pygtk-devel glib-networking libwebp-devel
|
poppler-glib-devel glib-networking libwebp-devel
|
||||||
libheif-devel libopenjpeg2-devel x265-devel"
|
libheif-devel libopenjpeg2-devel x265-devel gtk+-devel"
|
||||||
depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
|
depends="desktop-file-utils hicolor-icon-theme iso-codes mypaint-brushes1"
|
||||||
short_desc="GNU image manipulation program"
|
short_desc="GNU image manipulation program"
|
||||||
conf_files="/etc/gimp/${version%%.*}.0/*"
|
conf_files="/etc/gimp/${version%%.*}.0/*"
|
||||||
|
@ -20,15 +20,11 @@ license="GPL-3.0-only"
|
||||||
homepage="https://www.gimp.org"
|
homepage="https://www.gimp.org"
|
||||||
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
|
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
|
||||||
checksum=84004642d351b398a4293cd7fd3592044a944f05bb52850ee6068f247c657aa3
|
checksum=84004642d351b398a4293cd7fd3592044a944f05bb52850ee6068f247c657aa3
|
||||||
python_version=2
|
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
no_generic_pkgconfig_link=yes
|
no_generic_pkgconfig_link=yes
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
NOCONFIGURE=1 autoreconf -fi
|
NOCONFIGURE=1 autoreconf -fi
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
vsed -i 's:^py_prefix=\x60:py_prefix='"$XBPS_CROSS_BASE"'\x60:' configure
|
|
||||||
fi
|
|
||||||
# don't allow configure to set DATADIRNAME=lib
|
# don't allow configure to set DATADIRNAME=lib
|
||||||
vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
|
vsed -i 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
|
||||||
}
|
}
|
||||||
|
@ -51,16 +47,3 @@ gimp-devel_package() {
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gimp-python_package() {
|
|
||||||
lib32disabled=yes
|
|
||||||
depends="pygtk"
|
|
||||||
pycompile_dirs="usr/lib/gimp/2.0"
|
|
||||||
short_desc+=" - Python2 bindings"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/gimp/2.0/python
|
|
||||||
for file in $(find ${DESTDIR}/usr/lib/gimp/2.0/plug-ins -name *.py); do
|
|
||||||
vmove ${file/$DESTDIR/}
|
|
||||||
done
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -134,6 +134,7 @@ replaces="
|
||||||
geth<=1.10.1_2
|
geth<=1.10.1_2
|
||||||
getmail<=5.14_2
|
getmail<=5.14_2
|
||||||
gfbgraph<=0.2.5_1
|
gfbgraph<=0.2.5_1
|
||||||
|
gimp-python<=2.10.32_4
|
||||||
giti<=1.0.0_1
|
giti<=1.0.0_1
|
||||||
gksu<=2.0.2_4
|
gksu<=2.0.2_4
|
||||||
glibmm-doc<=2.64.2_2
|
glibmm-doc<=2.64.2_2
|
||||||
|
|
Loading…
Add table
Reference in a new issue