Commits

Mitsuhiro Nakamura committed 6c55a39

Add editors/{auctex,org-mode}

Comments (0)

Files changed (2)

editors/auctex/Portfile

+# -*- 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
+# $Id: Portfile 94574 2012-06-23 00:03:34Z jmr@macports.org $
+
+PortSystem	1.0
+
+name		auctex
+version		11.87
+revision	0
+categories	editors print
+maintainers	loria.fr:reilles openmaintainer
+license		GPL-3+
+description	A major emacs mode for editing TeX files.
+long_description	\
+		AUCTeX is an extensible package for writing\
+		and formatting TeX files in GNU Emacs and XEmacs.\
+		It supports many different TeX macro packages,\
+		including AMS-TeX, LaTeX, Texinfo, ConTeXt, and docTeX.
+
+platforms	darwin
+supported_archs	noarch
+homepage	http://www.gnu.org/software/auctex/
+master_sites	gnu
+
+checksums           sha1    0be92c7d8f89d57346fe07f05a1a045ffd11cd71 \
+                    rmd160  89226e8307c3830b6061d152b42fd5324bb13aec
+
+# We want emacs from MacPorts since this will install stuff in emacs'
+# site-lisp and we want it to go into ${prefix}'s site-lisp.
+depends_lib	port:emacs
+depends_run	bin:tex:texlive
+
+configure.args	--with-lispdir=${prefix}/share/emacs/site-lisp \
+		--with-auto-dir=${prefix}/share/emacs/site-lisp/auctex/auto
+
+variant emacs_app description "If your Emacs is emacs-app" {
+	depends_lib-append	port:emacs-app
+	depends_lib-delete	port:emacs
+	configure.args-append	--with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
+}
+
+variant mactex description "If your TeX distribution is MacTeX" {
+	# Note: This also needs /usr/texbin in binpath in macports.conf
+	configure.args-append --with-texmf-dir=/usr/local/texlive/texmf-local
+}
+
+notes "To use this, put the following into your ~/.emacs:\n\
+    (require 'tex-site)"

editors/org-mode/Portfile

+# -*- 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
+# $Id: Portfile 98371 2012-10-03 20:50:18Z dports@macports.org $
+
+PortSystem          1.0
+
+name                org-mode
+version             7.9.2
+revision            1
+categories          editors
+license             GPL-3+
+maintainers         dports
+platforms           darwin
+supported_archs     noarch
+
+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     \
+                    plain-text system.
+
+homepage            http://orgmode.org/
+master_sites        ${homepage}
+distname            org-${version}
+
+checksums           rmd160  733034572ff24a8a7a7b8418639c99aae8bdf303 \
+                    sha256  14c91bf456c271ac17f2f083f86227d4e5f09483fdb69adbf314de4392e25469
+
+depends_lib         port:emacs
+depends_build       port:texinfo
+
+use_configure       no
+
+destroot.destdir    prefix=${destroot}${prefix}/share
+destroot.target     install-lisp install-info
+
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     {Stable version <b>([\w.]+)</b>}
+
+variant emacs_app description "If your Emacs is emacs-app" {
+	depends_lib-append	port:emacs-app
+	depends_lib-delete	port:emacs
+	configure.args-append	--with-emacs=${applications_dir}/Emacs.app/Contents/MacOS/Emacs
+}
+