[36941] trunk/dports/devel
wsiegrist at apple.com
wsiegrist at apple.com
Tue May 20 09:11:57 PDT 2008
Revision: 36941
http://trac.macosforge.org/projects/macports/changeset/36941
Author: wsiegrist at apple.com
Date: 2008-05-20 09:11:54 -0700 (Tue, 20 May 2008)
Log Message:
-----------
New port: Portable Perl-compatible regular expressions for Common Lisp
Closes #14432
Added Paths:
-----------
trunk/dports/devel/cl-ppcre/
trunk/dports/devel/cl-ppcre/Portfile
Added: trunk/dports/devel/cl-ppcre/Portfile
===================================================================
--- trunk/dports/devel/cl-ppcre/Portfile (rev 0)
+++ trunk/dports/devel/cl-ppcre/Portfile 2008-05-20 16:11:54 UTC (rev 36941)
@@ -0,0 +1,76 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
+# $Id$
+
+PortSystem 1.0
+
+name cl-ppcre
+version 1.3.2
+categories devel
+maintainers rlonstein at pobox.com
+
+description Portable Perl-compatible regular expressions for Common Lisp
+
+long_description CL-PPCRE is a fast, portable, thread-safe regular expression library \
+ for Common Lisp compatible with Perl under a BSD license.
+
+homepage http://weitz.de/cl-ppcre/
+platforms darwin
+master_sites http://weitz.de/files/
+
+distfiles ${name}${extract.suffix}
+distname ${name}-${version}
+
+checksums md5 23ceea63cb306ead203f5c4f41a4f1d2 \
+ sha1 4e2fb7e7bf732cbb07b0a87bab5b5d107b48ff69 \
+ rmd160 2b308153af31386bcd566e9cd2e63ac509b76e8a
+
+universal_variant no
+
+variant asdf_binary_locations description {Keep compiled Lisp files organized} {
+ depends_lib port:asdf-binary-locations
+}
+
+variant sbcl description {Compile using Steel Bank Common Lisp} {
+ depends_build port:sbcl
+}
+
+
+extract {}
+configure {}
+build {}
+
+set destroot-lisp "${destroot}${prefix}/share/common-lisp/"
+set lisp-system-path "#p\"${prefix}/share/common-lisp/systems/\""
+
+destroot {
+ xinstall -m 0755 -d ${destroot-lisp}/src
+ xinstall -m 0755 -d ${destroot-lisp}/systems
+ system "cd ${destroot-lisp}/src && \
+ ${extract.cmd} ${extract.pre_args} ${distpath}/${distfile} ${extract.post_args}"
+ system "find ${destroot-lisp}/src/${name}-${version} -type d -exec chmod 755 {} \\;"
+ system "find ${destroot-lisp}/src/${name}-${version} -type f -exec chmod 644 {} \\;"
+
+ foreach f [glob -dir ${destroot-lisp}/src/${name}-${version} -tails *.asd] {
+ ln -sf ../src/${name}-${version}/$f ${destroot-lisp}/systems/$f
+ }
+}
+
+post-destroot {
+ proc asdf-load {lisp lisp-system-path destroot-system name} {
+ set loadops "${lisp} --no-userinit \
+ --eval '(require \"asdf\")' \
+ --eval '(in-package :cl-user)' \
+ --eval '(setf asdf:*central-registry* (list* (quote *default-pathname-defaults*) ${lisp-system-path} ${destroot-system} asdf:*central-registry*))'"
+ if {[variant_isset asdf_binary_locations]} {
+ append loadops " --eval '(asdf:operate (quote asdf:load-op) (quote asdf-binary-locations))'"
+ }
+ append loadops " --eval '(asdf:operate (quote asdf:load-op) (quote ${name}))'"
+ system "${loadops}"
+ }
+
+ if {[variant_isset sbcl]} {
+ set destroot-system "#p\"${destroot-lisp}/systems/\""
+ asdf-load "/opt/local/bin/sbcl" ${lisp-system-path} ${destroot-system} ${name}
+ }
+
+}
Property changes on: trunk/dports/devel/cl-ppcre/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080520/cba9f82c/attachment.htm
More information about the macports-changes
mailing list