# -*- 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
maintainers {dports @drkp}
description an Emacs Mode for Notes, Project Planning, and Authoring
long_description Org is a mode for keeping notes, maintaining TODO lists, \
and doing project planning with a fast and effective \
homepage http://orgmode.org/
checksums rmd160 c5dda078c7c49cc67b9a234fef96ad7598e4a87b \
sha256 b918ba9819f1faa6182d89672bfe9080d338d32b65d257e4749430d797a08b8e \
depends_lib path:${emacs_binary}:${emacs_binary_provider}
depends_build port:texinfo
system -W ${worksrcpath} "make local.mk"
reinplace "s|EMACS = emacs|EMACS = ${emacs_binary}|g" ${worksrcpath}/local.mk
destroot.destdir prefix=${destroot}${prefix}/share
destroot.target install-lisp install-info
variant contrib description "Include additional contributed packages" {
# Install all contrib elisp files except those listed in org_skip_contrib
# these have build dependencies not available in MacPorts
set org_skip_contrib "ob-arduino ob-clojure-literate ob-sclang"
set localmk [open ${worksrcpath}/local.mk "a"]
puts $localmk "ORG_ADD_CONTRIB="
foreach f [glob -directory ${worksrcpath}/contrib/lisp -tails *.el] {
if {[lsearch -exact $org_skip_contrib $x] == -1} {
puts $localmk "ORG_ADD_CONTRIB+=$x"
ui_error "${name} @${version} does not build on Mac OS X 10.6"
return -code error "incompatible Mac OS X version"