# -*- 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           github 1.0
PortGroup           elisp 1.0

github.setup        pinard Pymacs 0.25 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-pymacs
platforms           {darwin any}
supported_archs     noarch
license             GPL-2+
maintainers         nomaintainer
description         python/emacs integration
long_description    Pymacs is a powerful tool which, once started from Emacs, \
allows both-way communication between Emacs Lisp and Python. Pymacs aims Python \
as an extension language for Emacs rather than the other way around, and this \
asymmetry is reflected in some design choices. Within Emacs Lisp code, one may \
load and use Python modules. Python functions may themselves use Emacs services, \
and handle Emacs Lisp objects kept in Emacs Lisp space.

homepage            http://pymacs.progiciels-bpi.ca/pymacs.html

checksums           rmd160  29ec7709e7dc7a138651bcea85fcc521277c96f8 \
                    sha256  51dc21b33316e6e244e78e5e88d8ae9a88afc0dcef34ba702ea9be589839bec2

python.versions     27

build.cmd           make
build.target

if {${name} ne ${subport}} {
    depends_lib-append   path:${emacs_binary}:${emacs_binary_provider}
    livecheck.type       none

    post-destroot {
        system -W ${worksrcpath} "${emacs_binary} -batch -eval '(byte-compile-file \"pymacs.el\")'"
        xinstall -d ${destroot}${emacs_lispdir}
        xinstall -W ${worksrcpath} pymacs.el pymacs.elc ${destroot}${emacs_lispdir}
    }
}