# -*- 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: Portfile 48534 2009-03-24 17:46:21Z jmr@macports.org $

PortSystem 1.0

name             yaml-mode.el
version          0.0.3
categories       editors
maintainers      gmail.com:michael.dagitses
platforms        darwin

description      An emacs major mode for editing yaml files.
long_description This is a major mode for editing files in the YAML \
                 data serialization format. It was initially developed \
                 by Yoshiki Kurihara and many features were added by \
                 Marshall Vandegrift. As YAML and Python share the fact \
                 that indentation determines structure, this mode \
                 provides indentation and indentation command behavior \
                 very similar to that of python-mode. 

distname         yaml-mode-${version}
# homepage seems to be down currently (March 2009)
homepage         http://yaml-mode.clouder.jp
master_sites     freebsd \
                 ${homepage}/attachment/wiki/WikiStart/
extract.suffix   .tar.gz?format=raw

checksums        md5 fe3bddf9c12c2ab69f62ccd4109dc59a \
                 sha1 e1b6b427dd1fb80dfd45c7315b26a7f231d4b7c7 \
                 rmd160 ca88e63209e91a74828b9f96283890087a0c8582

depends_lib      port:emacs

use_configure    no

post-build       { file mkdir ${destroot}${prefix}/share/emacs/site-lisp }

destroot.args    PREFIX=${destroot}${prefix}

post-activate {
    ui_msg "To use this mode, put the following in your ~/.emacs:"
    ui_msg "(require 'yaml-mode)"
    ui_msg ""
    ui_msg "To automatically handle files ending in '.yaml, add something"
    ui_msg "like:"
    ui_msg ""
    ui_msg "(add-to-list 'auto-mode-alist '(\"\\\\.yaml$\" . yaml-mode))"
}
