# -*- 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
github.setup           kurtjx n3-mode-for-emacs f20dfa2684f601e1c46f115980c7f4c7af4c82fb
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from    tarball

name                   n3-mode.el
categories             editors
version                201410300
license                none
maintainers            {easieste @easye} openmaintainer
description            An Emacs mode for editing N3 ("Notation 3") and Turtle RDF
long_description       {*}${description}
homepage               https://github.com/kurtjx/n3-mode-for-emacs
platforms              any
supported_archs        noarch

checksums           rmd160  9b8659daf292ec900f8c81afb56d5a6e1d92d306 \
                    sha256  9d55d474470175203899ae8757eb4c0d81d787bdf99e43842d57b5c97d62a33d

depends_lib port:emacs

patchfiles patch-n3-mode.el.diff

use_configure no
build {}
destroot {
    file mkdir ${destroot}${prefix}/share/emacs/site-lisp
    file copy  ${workpath}/${worksrcdir}/n3-mode.el  \
        ${destroot}${prefix}/share/emacs/site-lisp
}

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

(autoload 'n3-mode "n3-mode" "Major mode for OWL or N3 files" t)

(add-hook 'n3-mode-hook 'turn-on-font-lock)
(setq auto-mode-alist
 (append
  (list
  '("\\.n3" . n3-mode)
  '("\\.owl" . n3-mode))
    auto-mode-alist))
}
