Skip to content
Permalink
Browse files

cl-ppcre: Fix whitespace to conform to modeline

  • Loading branch information
ryandesign committed May 14, 2020
1 parent e678b6c commit 8d317651212a55981603cb26a9ab3fb3cd40f538
Showing with 32 additions and 35 deletions.
  1. +32 −35 devel/cl-ppcre/Portfile
@@ -1,6 +1,6 @@
# -*- 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

PortSystem 1.0
PortSystem 1.0
PortGroup github 1.0

github.setup edicl cl-ppcre 2.1.1 v
@@ -9,57 +9,54 @@ checksums rmd160 106346027a81f75e27f11b2719d499ffea606d9e \
sha256 89631179b71648d9e6c565a928f6896a9d5742aa2083b9c1b705fe0b45d85def \
size 159055

categories devel
maintainers nomaintainer
categories devel
platforms darwin
maintainers nomaintainer

description Portable Perl-compatible regular expressions for Common Lisp
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.

platforms darwin
long_description CL-PPCRE is a fast, portable, thread-safe regular expression
library for Common Lisp compatible with Perl under a BSD license.

github.tarball_from archive

universal_variant no
universal_variant no

variant sbcl description {Compile using Steel Bank Common Lisp} {
depends_build port:sbcl
depends_build port:sbcl
}

extract.only
use_configure no
build {}
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
}
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*))'"
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}
}

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*))'"
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}
}
}

0 comments on commit 8d31765

Please sign in to comment.
You can’t perform that action at this time.