Skip to content

Commit

Permalink
mm-common: configure to use our python37
Browse files Browse the repository at this point in the history
Default python3 may not exist.
  • Loading branch information
dbevans committed Feb 16, 2020
1 parent af953b7 commit 3699630
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gnome/mm-common/Portfile
Expand Up @@ -5,6 +5,7 @@ PortGroup meson 1.0

name mm-common
version 1.0.0
revision 1
license GPL-2
set branch [join [lrange [split ${version} .] 0 1] .]

Expand Down Expand Up @@ -37,4 +38,12 @@ depends_build-append \
port:curl \
port:wget

depends_lib-append port:python37

patchfiles patch-use-our-python3.diff

post-patch {
reinplace "s|@@PYTHON3_BIN@@|${prefix}/bin/python3.7|" ${worksrcpath}/meson.build
}

livecheck.type gnome
11 changes: 11 additions & 0 deletions gnome/mm-common/files/patch-use-our-python3.diff
@@ -0,0 +1,11 @@
--- meson.build.orig 2020-02-15 20:59:57.000000000 -0800
+++ meson.build 2020-02-15 21:02:07.000000000 -0800
@@ -6,7 +6,7 @@
license: 'GPLv2+'
)

-python3 = import('python').find_installation('python3')
+python3 = import('python').find_installation('@@PYTHON3_BIN@@')
python_version = python3.language_version()
python_version_req = '>= 3.5'
if not python_version.version_compare(python_version_req)

0 comments on commit 3699630

Please sign in to comment.