python.default_version 27
description a system for interactive experimentation with python
long_description Reinteract is a system for interactive experimentation \
with python. You enter Python code and expressions and \
immediately see the results.
homepage http://www.reinteract.org
master_sites http://download.reinteract.org/sources
checksums rmd160 2d86afbf5b7c054181c1eead01bf8f1116cd7a84 \
sha256 d405f70863062ba52b9a075c7a50f465c221e1ded184c14fbecb7c8bf038854d
depends_build port:pkgconfig
depends_lib-append port:py${python.version}-pygtk
configure.python ${python.bin}
configure.pkg_config_path ${python.prefix}/lib/pkgconfig
configure.args-append --exec-prefix=${python.prefix}
reinplace "s|PYTHON_PREFIX='\${prefix}'|PYTHON_PREFIX=${python.prefix}|" \
destroot.destdir "DESTDIR=${destroot}"
variant quartz conflicts x11 description {Enable Quartz rendering} {
build.target build-local-app
configure.args-append --with-appdir=${applications_dir}
file delete "${destroot}${prefix}/share/applications/reinteract.desktop"
file delete "${destroot}${prefix}/share/icons/hicolor/scalable/apps/reinteract.svg"
variant x11 conflicts quartz description {Enable rendering in X11} {
reinplace s/platform_osx=true/platform_osx=false/ ${worksrcpath}/configure
xinstall ${worksrcpath}/bin/reinteract ${destroot}${prefix}/bin/
# junk below copied from gtk2