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

Last change on this file since 146338 was 146338, checked in by ryandesign@…, 5 years ago

org-mode: disable build on Snow Leopard to prevent hang during build (#50736)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
RevLine 
[59959]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 146338 2016-03-05 16:35:04Z ryandesign@macports.org $
3
4PortSystem          1.0
[106036]5PortGroup           elisp 1.0
[59959]6
7name                org-mode
[144810]8version             8.3.3
[59959]9categories          editors
[80628]10license             GPL-3+
[68450]11maintainers         dports
[59959]12platforms           darwin
[70583]13supported_archs     noarch
[59959]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
[144810]24checksums           rmd160  dea6daaf2e2a5aab25ec26de31aeee838695b40a \
25                    sha256  c560064ab9a52ac682ce452c62fee90113e67e9950b67e0ab1eaec405aad1eee
[59959]26
[106036]27depends_lib         path:${emacs_binary}:${emacs_binary_provider}
[59959]28depends_build       port:texinfo
29
30
[106036]31configure {
32    system -W ${worksrcpath} "make local.mk"
33    reinplace "s|EMACS  = emacs|EMACS   = ${emacs_binary}|g" ${worksrcpath}/local.mk
34}
35
[103113]36destroot.destdir    prefix=${destroot}${prefix}/share
[59959]37destroot.target     install-lisp install-info
[64008]38
[106061]39variant contrib description "Include additional contributed packages" {
40    # Install all contrib elisp files except those listed in org_skip_contrib
[106089]41    #   org-jira and ob-oz have build dependencies not available in MacPorts
[106061]42    post-configure {
[106089]43        set org_skip_contrib "ob-oz org-jira"
[106061]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
[146338]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
[64008]66livecheck.type      regex
[97721]67livecheck.url       ${homepage}
68livecheck.regex     {Stable version <b>([\w.]+)</b>}
Note: See TracBrowser for help on using the repository browser.