Skip to content
Permalink
Browse files

sigil: tweak procedure to use globals

  • Loading branch information
i0ntempest authored and cjones051073 committed May 16, 2020
1 parent 67e27dc commit 5c0746974839b19eb6e5ae375c7e69aed2bf1845
Showing with 5 additions and 4 deletions.
  1. +5 −4 editors/sigil/Portfile
@@ -56,7 +56,8 @@ destroot {
copy ${destroot.dir}/bin/Sigil.app ${destroot}${applications_dir}
}

proc python-depends {python_branch frameworks_dir PATH} {
proc python-depends {python_branch} {
global frameworks_dir env
set python_version [string map {. ""} ${python_branch}]
depends_lib-append port:python${python_version} \
port:py${python_version}-chardet \
@@ -67,17 +68,17 @@ proc python-depends {python_branch frameworks_dir PATH} {
port:py${python_version}-Pillow \
port:py${python_version}-regex \
port:py${python_version}-six
configure.env-append PATH=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin:${PATH}
configure.env-append PATH=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin:$env(PATH)
}

variant python38 conflicts python37 description {Use Python 3.8 during build} {
set python_branch 3.8
python-depends ${python_branch} ${frameworks_dir} $env(PATH)
python-depends ${python_branch}
}

variant python37 conflicts python38 description {Use Python 3.7 during build} {
set python_branch 3.7
python-depends ${python_branch} ${frameworks_dir} $env(PATH)
python-depends ${python_branch}
}

if {![variant_isset python37]} {

0 comments on commit 5c07469

Please sign in to comment.
You can’t perform that action at this time.