You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
102 lines
3.8 KiB
Tcl
102 lines
3.8 KiB
Tcl
# -*- 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 python 1.0
|
|
PortGroup select 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup bpython bpython 0.23 "" -release
|
|
name py-${name}
|
|
revision 1
|
|
|
|
platforms {darwin any}
|
|
supported_archs noarch
|
|
maintainers {aronnax @lpsinger} openmaintainer
|
|
license MIT
|
|
description fancy interface to the Python interpreter
|
|
long_description a fancy interface to the Python interpreter for \
|
|
Unix-like operating systems
|
|
|
|
homepage https://www.bpython-interpreter.org
|
|
checksums rmd160 6a57d45732b0f756668a481c99e8c3135c741e67 \
|
|
sha256 56e93719d201b1ed120dbcbe424172b0d405cc1926c157775ff2b9d0aa01ed40 \
|
|
size 221006
|
|
|
|
python.versions 27 38 39 310
|
|
|
|
if {${name} ne ${subport}} {
|
|
post-patch {
|
|
# fix version detection
|
|
set versionpath ${worksrcpath}/bpython/_version.py
|
|
copy ${filespath}/_version.py ${versionpath}
|
|
reinplace "s/__VERSION__/${version}/" ${versionpath}
|
|
}
|
|
|
|
depends_lib-append port:py${python.version}-curtsies \
|
|
port:py${python.version}-greenlet \
|
|
port:py${python.version}-pygments \
|
|
port:py${python.version}-requests \
|
|
port:py${python.version}-setuptools \
|
|
port:py${python.version}-six \
|
|
port:py${python.version}-typing_extensions \
|
|
port:py${python.version}-pyxdg
|
|
|
|
depends_build-append port:py${python.version}-babel \
|
|
port:py${python.version}-sphinx
|
|
|
|
depends_run-append port:py${python.version}-jedi \
|
|
port:py${python.version}-urwid \
|
|
port:py${python.version}-watchdog \
|
|
port:bpython_select
|
|
|
|
# Version >= 0.21 requires Python >= 3.6
|
|
if {${python.version} == 27} {
|
|
github.setup bpython bpython 0.20.1 "" -release
|
|
revision 1
|
|
|
|
checksums rmd160 b7d5b088996ba2c1a70677e2c4117ace31b17c4d \
|
|
sha256 481054f9120c025f4621c93bdf6bb797bc9f2858006f545b426a87297054923b \
|
|
size 211239
|
|
|
|
depends_lib-replace port:py${python.version}-cwcwidth \
|
|
port:py${python.version}-wcwidth
|
|
depends_lib-delete port:py${python.version}-typing_extensions
|
|
depends_test-delete port:py${python.version}-pytest
|
|
|
|
test.run no
|
|
}
|
|
|
|
post-destroot {
|
|
set themedir ${destroot}${python.prefix}/share/themes
|
|
xinstall -d ${themedir}
|
|
|
|
if {${python.version} == 27} {
|
|
xinstall -W ${worksrcpath} sample.theme light.theme \
|
|
${themedir}
|
|
} else {
|
|
xinstall -d ${themedir}
|
|
xinstall -W ${worksrcpath}/theme sample.theme light.theme \
|
|
${themedir}
|
|
}
|
|
}
|
|
|
|
test.run yes
|
|
test.args --deselect bpython/test/test_interpreter.py::TestInterpreter::test_syntaxerror
|
|
|
|
if {${python.version} > 27 && ${python.version} < 37} {
|
|
depends_test-delete \
|
|
port:py${python.version}-pytest
|
|
test.run no
|
|
}
|
|
|
|
select.group bpython
|
|
select.file ${filespath}/bpython${python.version}
|
|
|
|
notes "
|
|
To make the Python ${python.branch} version of bpython the one that is run\
|
|
when you execute the commands without a version suffix, e.g. 'bpython', run:
|
|
|
|
port select --set ${select.group} [file tail ${select.file}]
|
|
"
|
|
}
|