mono: switch to python3

This commit is contained in:
Andrew Benson 2019-09-12 14:11:51 -05:00 committed by Helmut Pozimski
parent ae16c791f9
commit 96b64ad2cd
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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 <helmut@pozimski.eu>"
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" ;;