| 1 | # -*- 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 |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name markdown-mode.el |
|---|
| 7 | version 2.0 |
|---|
| 8 | categories editors |
|---|
| 9 | license GPL-2+ |
|---|
| 10 | maintainers nomaintainer |
|---|
| 11 | platforms darwin |
|---|
| 12 | supported_archs noarch |
|---|
| 13 | |
|---|
| 14 | description An Emacs major mode for editing Markdown-formatted text files |
|---|
| 15 | long_description \ |
|---|
| 16 | Markdown-mode is a major Emacs mode for editing Markdown-formatted \ |
|---|
| 17 | text files. It provides syntax highlighting, indentation, folding, \ |
|---|
| 18 | and shortcuts for applying Markdown formatting. It can also \ |
|---|
| 19 | optionally integrate with a Markdown text processor to compile, \ |
|---|
| 20 | preview, or export the document. |
|---|
| 21 | |
|---|
| 22 | homepage http://jblevins.org/projects/markdown-mode/ |
|---|
| 23 | master_sites ${homepage} |
|---|
| 24 | |
|---|
| 25 | checksums rmd160 353609f429f44b4272cc44ad792cde8d4815a9f9 \ |
|---|
| 26 | sha256 eb183966f5cabb4b0c7e4a344c5bfb6e1524f799e7c921f6b44adb45237b7661 |
|---|
| 27 | |
|---|
| 28 | distfiles ${name} |
|---|
| 29 | |
|---|
| 30 | depends_lib port:emacs |
|---|
| 31 | |
|---|
| 32 | use_configure no |
|---|
| 33 | |
|---|
| 34 | extract.mkdir yes |
|---|
| 35 | extract.cmd cp |
|---|
| 36 | extract.pre_args "" |
|---|
| 37 | extract.post_args . |
|---|
| 38 | |
|---|
| 39 | build.cmd emacs |
|---|
| 40 | |
|---|
| 41 | variant emacs_app description "If your Emacs is emacs-app" { |
|---|
| 42 | depends_lib-append port:emacs-app |
|---|
| 43 | depends_lib-delete port:emacs |
|---|
| 44 | |
|---|
| 45 | build.cmd ${applications_dir}/Emacs.app/Contents/MacOS/Emacs |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | build { |
|---|
| 49 | system "${build.cmd} --batch --funcall batch-byte-compile \ |
|---|
| 50 | ${worksrcpath}/markdown-mode.el" |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | destroot { |
|---|
| 54 | xinstall -d ${destroot}${prefix}/share/emacs/site-lisp |
|---|
| 55 | |
|---|
| 56 | xinstall -m 0644 ${worksrcpath}/markdown-mode.el \ |
|---|
| 57 | ${worksrcpath}/markdown-mode.elc \ |
|---|
| 58 | ${destroot}${prefix}/share/emacs/site-lisp |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | livecheck.type regex |
|---|
| 62 | livecheck.url ${homepage} |
|---|
| 63 | livecheck.regex {The latest stable version is markdown-mode (\d+(?:\.\d+)*)} |
|---|