py-pip: add select groups for pip2 and pip3

This commit is contained in:
Dan Villiom Podlaski Christiansen
2019-05-01 14:21:23 +02:00
committed by Chris Jones
parent a6ec670797
commit 12df949b45
5 changed files with 15 additions and 7 deletions
+5 -3
View File
@@ -5,7 +5,7 @@ PortGroup select 1.0
name pip_select
version 0.1
revision 0
revision 1
categories python
license BSD
@@ -26,8 +26,10 @@ distfiles
use_configure no
build {}
destroot {
select::install pip ${filespath}/base
select::install pip ${filespath}/none
foreach bin {pip pip2 pip3} {
select::install $bin ${filespath}/$bin base
select::install $bin ${filespath}/none
}
}
livecheck.type none
+1
View File
@@ -0,0 +1 @@
bin/pip2
+1
View File
@@ -0,0 +1 @@
bin/pip3
+8 -4
View File
@@ -6,7 +6,7 @@ PortGroup select 1.0
name py-pip
version 19.1
revision 0
revision 1
categories-append www
platforms darwin
license MIT
@@ -74,15 +74,19 @@ if {${name} ne ${subport}} {
delete ${destroot}${prefix}/bin/pip${python.branch}-${python.branch}
}
select.group ${python.rootname}
select.file ${filespath}/${python.rootname}${python.version}
select.entries \
[list ${python.rootname} ${python.rootname}${python.version}] \
[list ${python.rootname}[string index ${python.version} 0] ${python.rootname}${python.version}]
notes "
To make the Python ${python.branch} version of pip the one that is run\
when you execute the commands without a version suffix, e.g. 'pip', run:
port select --set ${select.group} [file tail ${select.file}]
"
foreach entry ${select.entries} {
notes-append "port select --set $entry"
}
livecheck.type none
}