Skip to content

Commit

Permalink
rsgislib_select: new select port for rsgislib
Browse files Browse the repository at this point in the history
added to enable default selection of Python executables
  • Loading branch information
nilason committed Aug 9, 2023
1 parent 362bf7d commit e4901e4
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gis/rsgislib/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ set python_versions {38 39 310 311}
foreach v ${python_versions} {
subport py${v}-${github.project} {
PortGroup python 1.0
PortGroup select 1.0

categories gis python

Expand Down Expand Up @@ -140,5 +141,12 @@ if {[string match "py*" ${subport}]} {
}
delete ${destroot}${prefix}/include
delete ${destroot}${prefix}/lib

set destroot_sel_dir ${destroot}${prefix}/etc/select/${github.project}
reinplace -q "s|__PYVER__|${python.branch}|" ${destroot_sel_dir}/py-rsgislib
move ${destroot_sel_dir}/py-rsgislib ${destroot_sel_dir}/py${python.version}-rsgislib
}

select.group ${github.project}
select.file ${filespath}/py-rsgislib
}
18 changes: 18 additions & 0 deletions gis/rsgislib/files/py-rsgislib
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisapplycmd.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisbatchconvert2cog.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisbatchconvert2tif.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisbuildimglut.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgiscalcimgstats.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgischkgdalfile.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgiscopybandnames.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisfilehash.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisfilelut.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisimg2kmz.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisimg2webtiles.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisimginfo.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisproj.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisshepsegment.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgistranslate2cog.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgistranslate2tif.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisuserpassfile.py
${frameworks_dir}/Python.framework/Versions/__PYVER__/bin/rsgisvectools.py
26 changes: 26 additions & 0 deletions gis/rsgislib_select/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup stub 1.0
PortGroup select 1.0

name rsgislib_select
version 0.1
revision 0
categories gis python
supported_archs noarch
platforms any
maintainers {@nilason} openmaintainer

description common files for selecting default Python version bindings for RSGISLib
long_description \
This port installs files that allow 'port select' to be used to \
create links to the preferred default Python version bindings for \
RSGISLib.

post-destroot {
select::install rsgislib ${filespath}/base
select::install rsgislib ${filespath}/none
}

livecheck.type none
18 changes: 18 additions & 0 deletions gis/rsgislib_select/files/base
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
bin/rsgisapplycmd.py
bin/rsgisbatchconvert2cog.py
bin/rsgisbatchconvert2tif.py
bin/rsgisbuildimglut.py
bin/rsgiscalcimgstats.py
bin/rsgischkgdalfile.py
bin/rsgiscopybandnames.py
bin/rsgisfilehash.py
bin/rsgisfilelut.py
bin/rsgisimg2kmz.py
bin/rsgisimg2webtiles.py
bin/rsgisimginfo.py
bin/rsgisproj.py
bin/rsgisshepsegment.py
bin/rsgistranslate2cog.py
bin/rsgistranslate2tif.py
bin/rsgisuserpassfile.py
bin/rsgisvectools.py
18 changes: 18 additions & 0 deletions gis/rsgislib_select/files/none
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

0 comments on commit e4901e4

Please sign in to comment.