source: trunk/dports/editors/org-mode/Portfile

Last change on this file was 153088, checked in by dports@…, 12 months ago

org-mode: update to v8.3.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
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# $Id: Portfile 153088 2016-09-24 03:14:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           elisp 1.0
6
7name                org-mode
8version             8.3.6
9categories          editors
10license             GPL-3+
11maintainers         dports
12platforms           darwin
13supported_archs     noarch
14
15description         an Emacs Mode for Notes, Project Planning, and Authoring
16long_description    Org is a mode for keeping notes, maintaining TODO lists, \
17                    and doing project planning with a fast and effective     \
18                    plain-text system.
19
20homepage            http://orgmode.org/
21master_sites        ${homepage}
22distname            org-${version}
23
24checksums           rmd160  723f7f9b1091c97d08ee1d18752c91bfaa07aede \
25                    sha256  d95d295b44c7632f416f8844a5be7bdecd18592216961de69a9d47e6db8b6581
26
27depends_lib         path:${emacs_binary}:${emacs_binary_provider}
28depends_build       port:texinfo
29
30
31configure {
32    system -W ${worksrcpath} "make local.mk"
33    reinplace "s|EMACS  = emacs|EMACS   = ${emacs_binary}|g" ${worksrcpath}/local.mk
34}
35
36destroot.destdir    prefix=${destroot}${prefix}/share
37destroot.target     install-lisp install-info
38
39variant contrib description "Include additional contributed packages" {
40    # Install all contrib elisp files except those listed in org_skip_contrib
41    #   org-jira and ob-oz have build dependencies not available in MacPorts
42    post-configure {
43        set org_skip_contrib "ob-oz org-jira"
44       
45        set localmk [open ${worksrcpath}/local.mk "a"]
46        puts $localmk "ORG_ADD_CONTRIB="
47
48        foreach f [glob -directory ${worksrcpath}/contrib/lisp -tails *.el] {
49            set x [file rootname $f]
50            if {[lsearch -exact $org_skip_contrib $x] == -1} {
51                puts $localmk "ORG_ADD_CONTRIB+=$x"
52            }
53        }
54       
55        close $localmk
56    }
57}
58
59platform darwin 10 {
60    pre-fetch {
61        ui_error "${name} @${version} does not build on Mac OS X 10.6"
62        return -code error "incompatible Mac OS X version"
63    }
64}
65
66livecheck.type      regex
67livecheck.url       ${homepage}
68livecheck.regex     {Stable version <b>([\w.]+)</b>}
Note: See TracBrowser for help on using the repository browser.