Copying maintained ports to personal directory

git-svn-id: https://svn.macports.org/repository/macports/users/easieste@35793 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Mark Evenson
2008-04-06 19:43:45 +00:00
commit 773f6d667b
2 changed files with 154 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
# $Id$
PortSystem 1.0
name nxml-mode
version 20041004
categories editors lang
maintainers evenson@panix.com
description An Emacs mode for editing XML files
long_description A new major mode for GNU Emacs for editing XML documents. It \
supports editing well-formed XML documents and also provides \
schema-sensitive editing of XML documents using RELAX NG Compact \
Syntax.
homepage http://www.thaiopensource.com/nxml-mode/
master_sites http://www.thaiopensource.com/download/
checksums sha1 5d21ca111957f86c9c237af9161f7ca482a1ef9f
use_configure no
depends_lib path:${prefix}/bin/emacs:emacs
build.target all
build.args "EMACS=${prefix}/bin/emacs"
destroot {
cd ${worksrcpath}
set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/nxml-mode
xinstall -m 755 -d ${site_lisp_dest}
foreach file [glob *.el *.elc] {
xinstall -m 644 ${file} ${site_lisp_dest}
}
file copy char-name ${site_lisp_dest}
file copy schema ${site_lisp_dest}
file copy nxml-mode.info ${destroot}${prefix}/share/info
}
post-activate {
ui_msg "To use this mode, put the following in your ~/.emacs:"
ui_msg "(load \"rng-auto.el\")"
ui_msg ""
ui_msg "To automatically visit files in nxml-mode add some flavor of:"
ui_msg "(add-to-list 'auto-mode-alist "
ui_msg " '(\"\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'\" . nxml-mode) nil)"
}
+105
View File
@@ -0,0 +1,105 @@
# $Id$
PortSystem 1.0
name slime
version 20070503
epoch 20070503
categories lang
maintainers evenson@panix.com
description An Emacs mode for unifying Common Lisp development
long_description \
SLIME extends Emacs with new support for interactive \
programming in Common Lisp. The features are \
centred around `slime-mode', an Emacs minor-mode \
that complements the standard `lisp-mode'. While \
`lisp-mode' supports editing Lisp source files, \
`slime-mode' adds support for interacting with a \
running Common Lisp process for compilation,\
debugging, documentation lookup, and so on.
homepage http://common-lisp.net/project/slime/
master_sites ${homepage}
fetch.type cvs
cvs.root :pserver:anonymous@common-lisp.net:/project/slime/cvsroot
cvs.module slime
cvs.password anonymous
cvs.date ${version}
worksrcdir slime
use_configure no
depends_lib port:emacs
depends_run port:sbcl
variant devel { depends_lib-append port:emacs-devel
depends_lib-delete port:emacs
}
variant openmcl { depends_run-append port:openmcl
depends_run-delete port:sbcl
}
variant clisp { depends_run-append port:clisp
depends_run-delete port:sbcl
}
post-patch { reinplace "s|/usr/local|${prefix}/share|g" \
${worksrcpath}/doc/makefile
}
pre-build { global emacs_binary
if {[ variant_isset devel ]} {
set emacs_binary [ glob ${prefix}/bin/emacs\-* ]
ui_msg "emacs binary name is ${emacs_binary}"
} else {
set emacs_binary ${prefix}/bin/emacs
}
}
build { cd ${worksrcpath}
upvar #0 emacs_binary emacs_bin
system "${emacs_bin} \
--batch \
--directory . \
--funcall batch-byte-compile \
slime.el \
hyperspec.el \
tree-widget.el"
cd ${worksrcpath}/doc
system "make slime.info"
}
destroot { cd ${worksrcpath}
set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/slime
xinstall -m 755 -d ${site_lisp_dest}
foreach file [glob *.el *.elc *.lisp ChangeLog] {
xinstall -m 644 ${file} ${site_lisp_dest}
}
xinstall -m 644 ${worksrcpath}/doc/slime.info ${destroot}${prefix}/share/info
}
post-activate { ui_msg "To use SLIME, you need to have a Common Lisp installed with which"
ui_msg "you wish to interact. At the moment, 'openmcl', 'sbcl', and"
ui_msg "'clisp' all work."
ui_msg ""
ui_msg "MacPorts also has 'gcl' (broken on OS X)."
ui_msg ""
ui_msg "Then put the following in your ~/.emacs:"
ui_msg " (require 'slime)"
ui_msg " (slime-setup)"
ui_msg " (setq inferior-lisp-program \"sbcl\")"
ui_msg ""
ui_msg "Replace 'sbcl' with the name of the Common Lisp exectuable"
ui_msg "if you wish to use a different lisp."
ui_msg ""
ui_msg "Then, 'M-x slime' from Emacs should connect you to your chosen"
ui_msg "Lisp environment."
ui_msg ""
ui_msg "You may have to exit and restart Emacs to get slime completely installed."
}