1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
---|
2 | # |
---|
3 | # $Id: Portfile,v 1.7 2008/05/01 12:15:19 lonstein Exp $ |
---|
4 | # |
---|
5 | # |
---|
6 | PortSystem 1.0 |
---|
7 | |
---|
8 | name asdf-binary-locations |
---|
9 | version latest |
---|
10 | categories devel |
---|
11 | maintainers rlonstein@pobox.com |
---|
12 | description keep asdf-compiled lisp files in their places |
---|
13 | long_description Keep asdf-compiled lisp files in directories unique \ |
---|
14 | to the Lisp implementation, Lisp implementation version \ |
---|
15 | operating system and hardware architecture. |
---|
16 | |
---|
17 | homepage http://common-lisp.net/project/cl-containers/asdf-binary-locations/ |
---|
18 | master_sites http://common-lisp.net/project/cl-containers/asdf-binary-locations/ |
---|
19 | |
---|
20 | platforms darwin |
---|
21 | universal_variant no |
---|
22 | |
---|
23 | distfiles ${name}${extract.suffix} |
---|
24 | distname ${name} |
---|
25 | |
---|
26 | checksums md5 190369e507e39131a97e6148c82015b8 \ |
---|
27 | sha1 95953e4e5c2456e9255d9ccafa535452c94773f8 \ |
---|
28 | rmd160 a003b8d4c4670c49a33e3eac7029f66695a498ad |
---|
29 | |
---|
30 | configure { } |
---|
31 | build { } |
---|
32 | |
---|
33 | variant ignore_lisp_version description {Don't include Lisp version when composing path} { |
---|
34 | pre-configure { |
---|
35 | ui_msg "\n\nWarning- Ignoring Lisp version can result in load failures" |
---|
36 | ui_msg "if fasl implementation changes between Lisp releases.\n" |
---|
37 | ui_msg "If this occurs it will be necessary to rebuild affected modules.\n" |
---|
38 | } |
---|
39 | patchfiles-append patch-dev-main.lisp.diff |
---|
40 | } |
---|
41 | |
---|
42 | set destroot-lisp "${destroot}${prefix}/share/common-lisp" |
---|
43 | |
---|
44 | destroot { |
---|
45 | xinstall -m 0755 -d "${destroot-lisp}/src" |
---|
46 | xinstall -m 0755 -d "${destroot-lisp}/systems/${name}" |
---|
47 | |
---|
48 | file copy ${worksrcpath} ${destroot-lisp}/src/${name} |
---|
49 | system "find ${destroot-lisp}/src/${name} -type d -exec chmod 755 {} \\;" |
---|
50 | system "find ${destroot-lisp}/src/${name} -type f -exec chmod 644 {} \\;" |
---|
51 | |
---|
52 | foreach f [glob -dir ${destroot-lisp}/src/$name -tails *.asd] { |
---|
53 | ln -sf ../src/${name}/$f ${destroot-lisp}/systems/$f |
---|
54 | } |
---|
55 | } |
---|