Ticket #14430: Portfile

File Portfile, 2.0 KB (added by rlonstein@…, 17 years ago)

revised Portfile

Line 
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#
6PortSystem        1.0
7
8name              asdf-binary-locations
9version           latest
10categories        devel
11maintainers       rlonstein@pobox.com
12description       keep asdf-compiled lisp files in their places
13long_description  Keep asdf-compiled lisp files in directories unique \
14                  to the Lisp implementation, Lisp implementation version \
15                  operating system and hardware architecture.
16
17homepage          http://common-lisp.net/project/cl-containers/asdf-binary-locations/
18master_sites      http://common-lisp.net/project/cl-containers/asdf-binary-locations/
19
20platforms         darwin
21universal_variant no
22
23distfiles         ${name}${extract.suffix}
24distname          ${name}
25
26checksums         md5    190369e507e39131a97e6148c82015b8 \
27                  sha1   95953e4e5c2456e9255d9ccafa535452c94773f8 \
28                  rmd160 a003b8d4c4670c49a33e3eac7029f66695a498ad
29
30configure { }
31build     { }
32
33variant 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
42set destroot-lisp "${destroot}${prefix}/share/common-lisp"
43
44destroot {
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}