source: trunk/dports/lang/ccl/Portfile

Last change on this file was 145236, checked in by easieste@…, 20 months ago

lang/ecl: fix destroot target

Addresses <https://trac.macports.org/ticket/50447>.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 145236 2016-01-29 10:07:17Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name                ccl
7version         1.11
8revision        0
9
10set shortversion    ${version}
11
12categories      lang
13license         LGPL-2.1
14maintainers     easieste openmaintainer
15platforms       darwin
16description     The Clozure Common Lisp Implementation
17long_description \
18    Clozure CL is an open source Common Lisp implementation.    \
19    Clozure CL used to be called OpenMCL. It is also sometimes  \
20    called CCL. You will see the three names being used interchangeably.
21
22homepage        http://trac.clozure.com/ccl
23
24fetch.type      svn
25worksrcdir      ccl
26depends_build   port:docbook-xsl
27use_configure   no
28
29platform darwin i386 {
30    svn.url http://svn.clozure.com/publicsvn/openmcl/release/${shortversion}/darwinx86/ccl
31    global bootimg
32    global ccl_script
33
34    if { ${configure.build_arch} eq "x86_64" } {
35        set bootimg dx86cl64
36        set ccl_script ccl64
37    } elseif { ${configure.build_arch} eq "i386" } {
38        set bootimg dx86cl
39        set ccl_script ccl
40    } else {
41        pre-fetch {
42            return -code error "architecture ${configure.build_arch} is not supported by ${name}"
43        }
44    }
45   
46#    patchfiles-append   xcode7.patch
47}
48
49platform darwin powerpc {
50    svn.url http://svn.clozure.com/publicsvn/openmcl/release/${shortversion}/darwinppc/ccl
51    global bootimg
52    global ccl_script
53
54    if { ${configure.build_arch} eq "ppc64" } {
55        set bootimg dppccl64
56        set ccl_script ccl64
57    } elseif { ${configure.build_arch} eq "ppc" } {
58        set bootimg dppccl
59        set ccl_script ccl
60    } else {
61        pre-fetch {
62            return -code error "architecture ${configure.build_arch} is not supported by ${name}"
63        }
64    }
65}
66
67build {
68    system "cd ${worksrcpath} && echo '(ccl::rebuild-ccl :full t)' | ./${bootimg} --batch"
69    #  FIXME:  doc target no longer exists with ecl-1.11
70    #  Building documentation now requires CCL+Quicklisp <http://trac.clozure.com/ccldoc>
71    #    system -W ${worksrcpath}/doc/src "make -f Makefile.macports"
72}
73
74set prefixpath  \\\"[regsub -all / [strsed ${prefix}/share/asdf-install {g/^\///}] "\\\" \\\""]\\\"
75
76destroot {
77    file mkdir ${destroot}${prefix}/share/${name}/${shortversion}
78    system "cd ${worksrcpath} && tar cf - . | ( cd ${destroot}${prefix}/share/${name}/${shortversion} && tar xf -)"
79    reinplace "s|/usr/local/src/ccl|${prefix}/share/${name}/${shortversion}|" \
80        ${workpath}/ccl/scripts/${ccl_script}
81    system "chmod +x ${workpath}/ccl/scripts/${ccl_script}"
82          file copy ${workpath}/ccl/scripts/${ccl_script} ${destroot}${prefix}/bin
83
84    xinstall -d ${destroot}${prefix}/share/doc/${name}
85    xinstall -d ${destroot}${prefix}/share/examples
86    xinstall -m 644 -W ${worksrcpath}/doc \
87             release-notes-1.1.txt release-notes-1.2.txt release-notes.txt \
88             ${destroot}${prefix}/share/doc/${name}
89    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
90}
91
92post-activate {
93    # DEPRECATED: ASDF-INSTALL has been superseded by Quicklisp In any
94    #             event, all this target does is make some unused
95    #             directories.
96    #
97    # Prepare asdf install folders and so forth.
98    file mkdir ${prefix}/share/asdf-install
99    system "chgrp admin ${prefix}/share/asdf-install"
100    system "chmod g+w ${prefix}/share/asdf-install"
101}
102
Note: See TracBrowser for help on using the repository browser.