Commits
Dan R. K. Ports authored and Dan Ports committed b8f1cd70e2d
1 1 | # -*- 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 |
2 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup github 1.0 |
5 + | PortGroup elisp 1.0 |
6 + | |
5 7 | |
6 8 | platforms darwin |
7 9 | categories editors |
8 10 | license GPL-3+ |
9 11 | maintainers easieste openmaintainer |
10 12 | description An Emacs mode for editing Markdown files |
11 13 | long_description ${description} |
12 14 | |
13 15 | github.setup jrblevin markdown-mode 2.3 v |
14 16 | name markdown-mode.el |
15 17 | epoch 1 |
16 18 | checksums rmd160 3f53e748765f978de86eff6ec83013ecb5dd499e \ |
17 19 | sha256 a8de02e2d2b58ade8fba91b1a89e02461b6e942fc17d0e5b1163cbbf3213bf14 |
18 20 | |
19 - | depends_lib-append port:emacs |
21 + | depends_lib-append path:${emacs_binary}:${emacs_binary_provider} |
20 22 | |
21 23 | use_configure no |
22 24 | |
23 25 | # if the following line is commented out, the build system |
24 26 | # generates a compiled version markdown-mode.elc |
25 27 | # the destroot block needs to be updated in that case |
26 28 | build {} |
27 29 | |
28 30 | destroot { |
29 - | xinstall -d ${destroot}${prefix}/share/emacs/site-lisp |
31 + | xinstall -d ${destroot}${emacs_lispdir} |
30 32 | copy ${workpath}/${worksrcdir}/markdown-mode.el \ |
31 - | ${destroot}${prefix}/share/emacs/site-lisp |
33 + | ${destroot}${emacs_lispdir} |
32 34 | } |
33 35 | |
34 36 | notes { |
35 37 | To use add the following to your ~/.emacs: |
36 38 | |
37 39 | (autoload 'markdown-mode "markdown-mode" |
38 40 | "Major mode for editing Markdown files" t) |
39 41 | (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) |
40 42 | (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) |
41 43 | } |