From ad808918f1ac5b3da439265895c2f8094d4a7e36 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Thu, 12 Sep 2019 14:11:51 -0500 Subject: [PATCH] mono: switch to python3 --- srcpkgs/mono/patches/fix-heapviz-import.patch | 11 +++++++++++ srcpkgs/mono/template | 7 ++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/mono/patches/fix-heapviz-import.patch diff --git a/srcpkgs/mono/patches/fix-heapviz-import.patch b/srcpkgs/mono/patches/fix-heapviz-import.patch new file mode 100644 index 00000000000..1ab78851687 --- /dev/null +++ b/srcpkgs/mono/patches/fix-heapviz-import.patch @@ -0,0 +1,11 @@ +--- scripts/mono-heapviz.orig ++++ scripts/mono-heapviz +@@ -7,7 +7,7 @@ + + from __future__ import print_function + import sys, os +-import Image, ImageDraw ++from PIL import Image, ImageDraw + from xml.sax import ContentHandler, make_parser + from xml.sax.handler import feature_namespaces + from optparse import OptionParser diff --git a/srcpkgs/mono/template b/srcpkgs/mono/template index 66d732403e7..bf28c67e192 100644 --- a/srcpkgs/mono/template +++ b/srcpkgs/mono/template @@ -1,13 +1,13 @@ # Template file for 'mono' pkgname=mono version=6.0.0.327 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-system-aot" # XXX: figure out how to split this up into subpkgs. -hostmakedepends="perl python cmake" +hostmakedepends="perl python3 cmake" makedepends="zlib-devel libX11-devel libgdiplus-devel" -depends="ca-certificates python" +depends="ca-certificates python3-Pillow" short_desc="Free implementation of the .NET platform including runtime and compiler" maintainer="Helmut Pozimski " license="MIT, BSD-3-Clause, GPL-2.0-or-later, LGPL-2.0-or-later, MPL-1.1" @@ -15,6 +15,7 @@ homepage="https://www.mono-project.com" distfiles="https://download.mono-project.com/sources/mono/${pkgname}-${version}.tar.xz" checksum=f51184ce4b90c93fc2bf5ca02775dd2a1ea023e056089d286ea72f1c68586442 lib32disabled=yes +python_version="3" case "$XBPS_TARGET_MACHINE" in *-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;;