diff --git a/srcpkgs/cropgui/patches/python3-support.patch b/srcpkgs/cropgui/patches/python3-support.patch new file mode 100644 index 00000000000..ca6ebb2f9ed --- /dev/null +++ b/srcpkgs/cropgui/patches/python3-support.patch @@ -0,0 +1,11 @@ +--- install.sh ++++ install.sh +@@ -12,7 +12,7 @@ + } + + site_packages () { +- $PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()' ++ $PYTHON -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())' + } + + usage () { diff --git a/srcpkgs/cropgui/template b/srcpkgs/cropgui/template index 831938e30f1..dcacba5970d 100644 --- a/srcpkgs/cropgui/template +++ b/srcpkgs/cropgui/template @@ -1,18 +1,18 @@ # Template file for 'cropgui' pkgname=cropgui version=0.4 -revision=2 -hostmakedepends="which" -makedepends="python" -depends="python python-Pillow python-gobject2 - pygtk libjpeg-turbo-tools ImageMagick exiftool" +revision=3 +hostmakedepends="which python3" +depends="python3 python3-Pillow python3-gobject + libjpeg-turbo-tools ImageMagick exiftool" short_desc="Gtk frontend for lossless cropping of jpeg images" maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://github.com/jepler/cropgui" distfiles="https://github.com/jepler/cropgui/archive/v${version}.tar.gz" checksum=bf5a5b14032d01799f8d942790e316203f33a7c007eedf23e57c79d5a47d6fb1 +python_version=3 do_install() { - ./install.sh -f gtk -t "$PKGDESTDIR" -P python -p /usr + ./install.sh -f gtk -t "$PKGDESTDIR" -P python3 -p /usr }