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
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup python 1.0
|
|
|
|
|
PortGroup select 1.0
|
|
|
|
|
|
|
|
|
|
name py-bpython
|
2012-12-12 18:07:48 +00:00
|
|
|
version 0.12
|
2013-04-08 17:52:28 +00:00
|
|
|
revision 2
|
2011-12-28 02:38:58 +00:00
|
|
|
platforms darwin
|
2012-12-11 16:28:13 +00:00
|
|
|
supported_archs noarch
|
2012-12-12 18:07:48 +00:00
|
|
|
maintainers aronnax 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
|
|
|
|
|
|
|
|
|
|
homepage http://www.bpython-interpreter.org/
|
2012-11-30 19:00:57 +00:00
|
|
|
master_sites ${homepage}releases/
|
2011-12-28 02:38:58 +00:00
|
|
|
distname bpython-${version}
|
2012-12-12 18:07:48 +00:00
|
|
|
checksums rmd160 7e52c0ec1fa56f42b9660496776876eaf09e9cc5 \
|
|
|
|
|
sha256 74a9074c5d5448e09ea9efe6b5305a4f580617d73c38f21eab5fe983312a8ec6
|
2011-12-28 02:38:58 +00:00
|
|
|
|
2013-04-08 17:52:28 +00:00
|
|
|
python.versions 26 27 31 32 33
|
2011-12-28 02:38:58 +00:00
|
|
|
|
|
|
|
|
if {$name != $subport} {
|
2012-11-30 19:00:57 +00:00
|
|
|
livecheck.type none
|
|
|
|
|
|
2011-12-28 02:38:58 +00:00
|
|
|
depends_lib-append port:py${python.version}-parsing \
|
2013-06-19 21:07:25 +00:00
|
|
|
port:py${python.version}-pygments
|
2011-12-28 02:38:58 +00:00
|
|
|
|
2013-04-08 17:52:28 +00:00
|
|
|
# py-babel is only available for Python 2.x
|
2013-06-19 21:07:25 +00:00
|
|
|
if {[expr ${python.branch} < 3]} {
|
2013-04-08 17:52:28 +00:00
|
|
|
depends_build-append \
|
|
|
|
|
port:py${python.version}-babel
|
|
|
|
|
}
|
2013-04-06 20:27:25 +00:00
|
|
|
|
2013-06-19 21:07:25 +00:00
|
|
|
depends_build-append port:py${python.version}-sphinx \
|
|
|
|
|
port:py${python.version}-setuptools
|
2013-04-08 17:52:28 +00:00
|
|
|
|
|
|
|
|
depends_run-append port:py${python.version}-urwid \
|
|
|
|
|
port:bpython_select
|
2013-04-06 20:27:25 +00:00
|
|
|
|
2012-01-14 23:44:32 +00:00
|
|
|
select.group bpython
|
|
|
|
|
select.file ${filespath}/bpython${python.version}
|
|
|
|
|
|
2011-12-28 02:38:58 +00:00
|
|
|
post-destroot {
|
2013-04-08 17:52:28 +00:00
|
|
|
set pyetc ${destroot}${python.prefix}/etc
|
|
|
|
|
xinstall -d ${pyetc}
|
|
|
|
|
set themedir ${destroot}${python.prefix}/share/themes
|
|
|
|
|
xinstall -d ${themedir}
|
2011-12-28 02:38:58 +00:00
|
|
|
|
|
|
|
|
xinstall -W ${worksrcpath} sample-config ${pyetc}
|
|
|
|
|
xinstall -W ${worksrcpath} sample.theme light.theme \
|
|
|
|
|
${themedir}
|
2012-12-11 16:28:13 +00:00
|
|
|
}
|
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}]
|
|
|
|
|
"
|
2012-11-30 19:00:57 +00:00
|
|
|
} else {
|
|
|
|
|
livecheck.type regex
|
|
|
|
|
livecheck.url [lindex ${master_sites} 0]
|
|
|
|
|
livecheck.regex bpython-(\\d+(\\.\\d+)*)[quotemeta ${extract.suffix}]
|
2011-12-28 02:38:58 +00:00
|
|
|
}
|