2011-12-28 02:38:58 +00:00
|
|
|
# -*- 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
|
2016-05-26 18:15:03 +00:00
|
|
|
PortGroup github 1.0
|
2011-12-28 02:38:58 +00:00
|
|
|
|
2024-08-11 14:18:53 -04:00
|
|
|
github.setup bpython bpython 0.24 "" -release
|
|
|
|
|
github.tarball_from archive
|
2016-05-26 18:15:03 +00:00
|
|
|
name py-${name}
|
2024-08-11 14:18:53 -04:00
|
|
|
revision 0
|
2019-11-25 12:08:15 -05:00
|
|
|
|
2023-01-17 11:14:36 +11:00
|
|
|
platforms {darwin any}
|
2012-12-11 16:28:13 +00:00
|
|
|
supported_archs noarch
|
2017-03-28 09:45:31 -04:00
|
|
|
maintainers {aronnax @lpsinger} openmaintainer
|
2012-11-30 22:04:57 +00:00
|
|
|
license MIT
|
2011-12-28 02:38:58 +00:00
|
|
|
description fancy interface to the Python interpreter
|
|
|
|
|
long_description a fancy interface to the Python interpreter for \
|
|
|
|
|
Unix-like operating systems
|
|
|
|
|
|
2018-03-25 19:05:24 -05:00
|
|
|
homepage https://www.bpython-interpreter.org
|
2024-08-11 14:18:53 -04:00
|
|
|
checksums rmd160 0137002b419d27edd596cb585a655f83a9bd1688 \
|
|
|
|
|
sha256 445468a66353b33f3e91a59e082a35ce24b2ea0ad05820047045611c8ccfd8d4 \
|
|
|
|
|
size 221484
|
2024-11-07 21:26:08 -05:00
|
|
|
python.versions 39 310 311
|
2011-12-28 02:38:58 +00:00
|
|
|
|
2013-12-05 08:44:51 +00:00
|
|
|
if {${name} ne ${subport}} {
|
2023-09-10 01:31:12 +02:00
|
|
|
post-patch {
|
|
|
|
|
# fix version detection
|
|
|
|
|
set versionpath ${worksrcpath}/bpython/_version.py
|
|
|
|
|
copy ${filespath}/_version.py ${versionpath}
|
|
|
|
|
reinplace "s/__VERSION__/${version}/" ${versionpath}
|
|
|
|
|
}
|
2012-11-30 19:00:57 +00:00
|
|
|
|
2024-08-11 14:18:53 -04:00
|
|
|
depends_build-append port:py${python.version}-babel \
|
|
|
|
|
port:py${python.version}-sphinx
|
|
|
|
|
|
2016-10-15 15:30:23 +00:00
|
|
|
depends_lib-append port:py${python.version}-curtsies \
|
2015-12-02 19:51:39 +00:00
|
|
|
port:py${python.version}-greenlet \
|
2013-06-20 19:34:41 +00:00
|
|
|
port:py${python.version}-pygments \
|
2015-12-02 19:51:39 +00:00
|
|
|
port:py${python.version}-requests \
|
2023-09-10 00:15:12 +02:00
|
|
|
port:py${python.version}-pyxdg
|
2013-04-06 20:27:25 +00:00
|
|
|
|
2016-10-15 15:30:23 +00:00
|
|
|
depends_run-append port:py${python.version}-jedi \
|
|
|
|
|
port:py${python.version}-urwid \
|
|
|
|
|
port:py${python.version}-watchdog \
|
2013-04-08 17:52:28 +00:00
|
|
|
port:bpython_select
|
2013-04-06 20:27:25 +00:00
|
|
|
|
2011-12-28 02:38:58 +00:00
|
|
|
post-destroot {
|
2013-04-08 17:52:28 +00:00
|
|
|
set themedir ${destroot}${python.prefix}/share/themes
|
|
|
|
|
xinstall -d ${themedir}
|
2024-08-11 14:18:53 -04:00
|
|
|
xinstall -W ${worksrcpath}/theme sample.theme light.theme \
|
2021-04-29 23:06:37 +03:00
|
|
|
${themedir}
|
2012-12-11 16:28:13 +00:00
|
|
|
}
|
2013-04-06 20:27:25 +00:00
|
|
|
|
2022-01-10 23:38:20 +02:00
|
|
|
test.run yes
|
|
|
|
|
test.args --deselect bpython/test/test_interpreter.py::TestInterpreter::test_syntaxerror
|
|
|
|
|
|
2021-04-29 23:06:37 +03:00
|
|
|
select.group bpython
|
|
|
|
|
select.file ${filespath}/bpython${python.version}
|
|
|
|
|
|
2013-04-06 20:27:25 +00:00
|
|
|
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}]
|
|
|
|
|
"
|
2011-12-28 02:38:58 +00:00
|
|
|
}
|