Ticket #35716: Portfile

File Portfile, 1.8 KB (added by cubranic@…, 10 years ago)

Portfile with the emacs_app variant and upgraded to version 2.0

Line 
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
4PortSystem      1.0
5
6name            markdown-mode.el
7version         2.0
8categories      editors
9license         GPL-2+
10maintainers     nomaintainer
11platforms       darwin
12supported_archs noarch
13
14description     An Emacs major mode for editing Markdown-formatted text files
15long_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
22homepage        http://jblevins.org/projects/markdown-mode/
23master_sites    ${homepage}
24
25checksums       rmd160  353609f429f44b4272cc44ad792cde8d4815a9f9 \
26                sha256  eb183966f5cabb4b0c7e4a344c5bfb6e1524f799e7c921f6b44adb45237b7661
27
28distfiles       ${name}
29
30depends_lib     port:emacs
31
32use_configure   no
33
34extract.mkdir   yes
35extract.cmd     cp
36extract.pre_args ""
37extract.post_args .
38
39build.cmd       emacs
40
41variant 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
48build {
49    system "${build.cmd} --batch --funcall batch-byte-compile \
50        ${worksrcpath}/markdown-mode.el"
51}
52
53destroot {
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
61livecheck.type  regex
62livecheck.url   ${homepage}
63livecheck.regex {The latest stable version is markdown-mode (\d+(?:\.\d+)*)}