source: trunk/dports/devel/cl-ppcre/Portfile

Last change on this file was 84550, checked in by snc@…, 6 years ago

modelines

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- 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
2# $Id: Portfile 84550 2011-09-27 21:05:11Z ryandesign@macports.org $
3
4PortSystem         1.0
5
6name               cl-ppcre
7version            1.3.2
8categories         devel
9maintainers        pobox.com:rlonstein
10
11description        Portable Perl-compatible regular expressions for Common Lisp
12
13long_description   CL-PPCRE is a fast, portable, thread-safe regular expression library \
14                   for Common Lisp compatible with Perl under a BSD license.
15
16homepage           http://weitz.de/cl-ppcre/
17platforms          darwin
18master_sites       http://weitz.de/files/
19
20distfiles          ${name}${extract.suffix}
21
22checksums          md5 23ceea63cb306ead203f5c4f41a4f1d2 \
23                   sha1 4e2fb7e7bf732cbb07b0a87bab5b5d107b48ff69 \
24                   rmd160 2b308153af31386bcd566e9cd2e63ac509b76e8a
25
26universal_variant  no
27
28variant asdf_binary_locations description {Keep compiled Lisp files organized} {
29        depends_lib port:asdf-binary-locations
30}
31
32variant sbcl description {Compile using Steel Bank Common Lisp} {
33        depends_build port:sbcl
34}
35
36
37extract   {}
38use_configure       no
39build     {}
40
41set destroot-lisp "${destroot}${prefix}/share/common-lisp/"
42set lisp-system-path "#p\"${prefix}/share/common-lisp/systems/\""
43
44destroot {
45          xinstall -m 0755 -d ${destroot-lisp}/src
46          xinstall -m 0755 -d ${destroot-lisp}/systems
47          system "cd ${destroot-lisp}/src && \
48              ${extract.cmd} ${extract.pre_args} ${distpath}/${distfiles} ${extract.post_args}"
49          system "find ${destroot-lisp}/src/${name}-${version} -type d -exec chmod 755 {} \\;"
50          system "find ${destroot-lisp}/src/${name}-${version} -type f -exec chmod 644 {} \\;"
51
52         foreach f [glob -dir ${destroot-lisp}/src/${name}-${version} -tails *.asd] {
53             ln -sf ../src/${name}-${version}/$f ${destroot-lisp}/systems/$f
54         }
55}
56
57post-destroot {
58      proc asdf-load {lisp lisp-system-path destroot-system name} {
59          set loadops "${lisp} --no-userinit \
60                       --eval '(require \"asdf\")' \
61                       --eval '(in-package :cl-user)' \
62                       --eval '(setf asdf:*central-registry* (list* (quote *default-pathname-defaults*) ${lisp-system-path} ${destroot-system} asdf:*central-registry*))'"
63          if {[variant_isset asdf_binary_locations]} {
64              append loadops " --eval '(asdf:operate (quote asdf:load-op) (quote asdf-binary-locations))'"
65          }
66          append loadops " --eval '(asdf:operate (quote asdf:load-op) (quote ${name}))'"
67          system "${loadops}"
68     }
69
70     if {[variant_isset sbcl]} {
71         set destroot-system "#p\"${destroot-lisp}/systems/\""
72         asdf-load "${prefix}/bin/sbcl" ${lisp-system-path} ${destroot-system} ${name}
73     }
74
75}
Note: See TracBrowser for help on using the repository browser.