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


categories             editors
license                GPL-3+
platforms              any
supported_archs        noarch
maintainers            {easieste @easye} openmaintainer
description            An Emacs mode for editing Markdown files
long_description       {*}${description}

github.setup           jrblevin markdown-mode 2.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from    tarball
name                   markdown-mode.el
epoch                  1
checksums              rmd160  1f58ac332cad0a58ed1221fbe0f318a6322a8a8c \
                       sha256  887e479d9aeb4813e7f6b12630079b0590a5b305c9d7118c06b4ca89d7e7ac58 \
                       size    222217

depends_lib-append     path:${emacs_binary}:${emacs_binary_provider}

use_configure          no

# if the following line is commented out, the build system
# generates a compiled version markdown-mode.elc
# the destroot block needs to be updated in that case
build {}

destroot {
    xinstall -d ${destroot}${emacs_lispdir}
    copy        ${workpath}/${worksrcdir}/markdown-mode.el  \
                ${destroot}${emacs_lispdir}
}

notes {
To use add the following to your ~/.emacs:

(autoload 'markdown-mode "markdown-mode"
  "Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
}
