# -*- 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 84550 2011-09-27 21:05:11Z snc@macports.org $ PortSystem 1.0 name cl-ppcre version 1.3.2 categories devel maintainers pobox.com:rlonstein 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} 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 {} use_configure no 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}/${distfiles} ${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 "${prefix}/bin/sbcl" ${lisp-system-path} ${destroot-system} ${name} } }