# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 87002 2011-11-08 01:32:43Z dports@macports.org $

PortSystem      1.0

name            python-mode.el
set my_name     [lindex [split ${name} .] 0]
version         1.0
categories      lang python editors
license         Permissive
platforms       darwin
maintainers     nomaintainer
description     python-mode is an X/Emacs major mode for editing Python source code

long_description \
    Python-mode makes a number of editing and debugging features available to Python \
    programmers who use GNU Emacs or XEmacs. Included in its basic feature set are \
    syntax coloring, indent/dedent/electric newline support, movement across major \
    functional sections of code, code execution in inferior Python processes, \
    class/function marking, integration with pdb, the Python debugger.

homepage        https://launchpad.net/python-mode/
master_sites    sourceforge:${my_name}

checksums       md5 57fde95d350e010b5a00d98b8ce4a066 \
                sha1 974a7714000238bd0423c5598d781c9987929b83 \
                rmd160 6f2abe80b7eae9123da10a3c0f447f7792caedb6

distname        ${my_name}-${version}

depends_build   port:emacs
depends_run     ${depends_build}

use_configure   no

build {
    system "cd ${worksrcpath} && \
        emacs --batch --eval \
            '(progn (setq load-path (cons \".\" load-path)) \
                (byte-compile-file \"doctest-mode.el\") \
                (byte-compile-file \"pycomplete.el\") \
                (byte-compile-file \"python-mode.el\"))'"
}

destroot {
    xinstall -d ${destroot}${prefix}/share/emacs/site-lisp
    eval xinstall -m 0644 [glob -directory ${worksrcpath} *.el *.elc] \
        ${destroot}${prefix}/share/emacs/site-lisp
}

universal_variant   no

livecheck.url   ${homepage}+download
livecheck.regex {trunk/(\d+(?:\.\d+)*)}
