[117444] trunk/dports/lang/slime/Portfile
easieste at macports.org
easieste at macports.org
Wed Feb 26 05:00:52 PST 2014
Revision: 117444
https://trac.macports.org/changeset/117444
Author: easieste at macports.org
Date: 2014-02-26 05:00:52 -0800 (Wed, 26 Feb 2014)
Log Message:
-----------
lang/slime: now pulls a version from new github repository.
Use the included Makefile to byte compile the elisp code.
Modified Paths:
--------------
trunk/dports/lang/slime/Portfile
Modified: trunk/dports/lang/slime/Portfile
===================================================================
--- trunk/dports/lang/slime/Portfile 2014-02-26 10:35:20 UTC (rev 117443)
+++ trunk/dports/lang/slime/Portfile 2014-02-26 13:00:52 UTC (rev 117444)
@@ -4,8 +4,8 @@
PortSystem 1.0
name slime
-version 20130630
-epoch 20130630
+version 20140226
+epoch 20140226
revision 0
categories lang
platforms darwin
@@ -28,11 +28,10 @@
homepage http://common-lisp.net/project/slime/
master_sites ${homepage}
-fetch.type cvs
-cvs.root :pserver:anonymous at common-lisp.net:/project/slime/cvsroot
-cvs.module slime
-cvs.password anonymous
-cvs.date ${version}
+fetch.type git
+git.url https://github.com/slime/slime.git
+git.branch 322d2a1cd891
+
worksrcdir slime
use_configure no
@@ -70,69 +69,33 @@
${worksrcpath}/doc/Makefile
}
-set slime_emacs_binary ""
set slime_site_lisp_dir "${destroot}${prefix}/share/emacs/site-lisp/slime"
set slime_site_lisp_contrib_dir "${slime_site_lisp_dir}/contrib"
-set slime_byte_compile_p 0
-
-configure {
- set slime_emacs_binary [
- if { [ variant_isset app ]
- && [file exist ${applications_dir}/Emacs.app/Contents/MacOS/Emacs] } {
- list "${applications_dir}/Emacs.app/Contents/MacOS/Emacs"
- } else {
- list "${prefix}/bin/emacs"
- }
- ]
-
- set slime_byte_compile_p 0
-
- # Byte compiling doesn't seem to be working
- if {! [file executable ${slime_emacs_binary}]} {
- set slime_byte_compile_p 0
-# ui_msg "Couldn't find an executable Emacs image so won't byte compile the Elisp files."
- } else {
- set slime_byte_compile_p 1
-# ui_msg "Emacs binary used for byte compilation is ${slime_emacs_binary}."
- }
-
- # Comment next line out to try byte compilation
- set slime_byte_compile_p 0
-}
-
build {
- if { ${slime_byte_compile_p} } {
- system "cd ${worksrcpath} && ${slime_emacs_binary} \
- --batch \
- --directory ${worksrcpath} \
- --directory ${worksrcpath}/contrib \
- --funcall batch-byte-compile \
- contrib/*.el"
- system "cd ${worksrcpath} && ${slime_emacs_binary} \
- --batch \
- --directory ${worksrcpath} \
- --directory ${worksrcpath}/contrib \
- --funcall batch-byte-compile \
- *.el"
- }
+ system "cd ${worksrcpath} && make compile"
system "cd ${worksrcpath}/doc && make slime.info"
}
destroot {
xinstall -W ${worksrcpath} -m 755 -d ${slime_site_lisp_dir}
- foreach file [glob *.el *.elc *.lisp ChangeLog] {
+ foreach file [glob *.el *.elc *.lisp *.md ChangeLog] {
xinstall -W ${worksrcpath} -m 644 ${file} ${slime_site_lisp_dir}
}
xinstall -W ${worksrcpath}/contrib -m 755 -d ${slime_site_lisp_contrib_dir}
- foreach file [glob *.el *.elc *.lisp ChangeLog] {
+ foreach file [glob *.el *.elc *.lisp *.md ChangeLog] {
xinstall -W ${worksrcpath}/contrib -m 644 ${file} ${slime_site_lisp_contrib_dir}
}
xinstall -m 644 ${worksrcpath}/doc/slime.info ${destroot}${prefix}/share/info
+
+ xinstall -W ${worksrcpath}/lib -m 755 -d ${slime_site_lisp_dir}/lib
+ foreach file [glob *.el *.elc .nosearch] {
+ xinstall -W ${worksrcpath}/lib -m 644 ${file} ${slime_site_lisp_dir}/lib
+ }
}
notes "
@@ -145,12 +108,12 @@
Then put the following in your ~/.emacs:
(add-to-list 'load-path \"${prefix}/share/emacs/site-lisp/slime\")
+(require 'slime-autoloads)
(setq slime-lisp-implementations
\`((sbcl (\"${prefix}/bin/sbcl\"))
(abcl (\"${prefix}/bin/abcl\"))
(clisp (\"${prefix}/bin/clisp\"))))
-(require \'slime)
-(slime-setup \'(slime-repl slime-asdf slime-fancy slime-banner))
+(slime-setup '(slime-repl slime-asdf slime-fancy slime-banner))
Populate the initialization list in SLIME-LISP-IMPLEMENTATIONS with
the correct paths to the Common Lisp exectuables you wish to use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140226/2497b707/attachment-0001.html>
More information about the macports-changes
mailing list