# HG changeset patch
# Parent 91039c66461c65db072737f4fc961753cc3a9854
diff -r 91039c66461c lang/ccl/Portfile
a
|
b
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | |
| 5 | PortGroup github 1.0 |
| 6 | github.setup Clozure ccl 1.12 v |
| 7 | |
5 | 8 | name ccl |
6 | | version 1.11 |
| 9 | #version 1.11.8 |
7 | 10 | revision 0 |
8 | 11 | |
9 | 12 | set shortversion ${version} |
… |
… |
|
12 | 15 | license LGPL-2.1 |
13 | 16 | maintainers {easieste @easye} openmaintainer |
14 | 17 | platforms darwin |
15 | | supported_archs x86_64 i386 |
| 18 | supported_archs x86_64 |
16 | 19 | description The Clozure Common Lisp Implementation |
17 | 20 | long_description \ |
18 | 21 | Clozure CL is an open source Common Lisp implementation. \ |
19 | 22 | Clozure CL used to be called OpenMCL. It is also sometimes \ |
20 | 23 | called CCL. You will see the three names being used interchangeably. |
21 | 24 | |
22 | | homepage http://trac.clozure.com/ccl |
| 25 | homepage https://github.com/Clozure/ccl |
| 26 | #master_sites ${homepage}/releases/download/v${version} |
| 27 | |
| 28 | #https://github.com/Clozure/ccl/archive/v1.11.8.tar.gz |
23 | 29 | |
24 | | fetch.type svn |
25 | | worksrcdir ccl |
26 | | depends_build port:docbook-xsl-nons |
| 30 | checksums ${name}-${version}${extract.suffix} \ |
| 31 | rmd160 d4548d9b53784541271730b20fb81e33ef04a403 \ |
| 32 | sha256 655389f1f57f80f377e491469913e385cd9ecf87b19c1513e024b2386720d0f8 \ |
| 33 | size 5017237 |
| 34 | |
| 35 | worksrcdir ccl-${version} |
| 36 | #depends_build port:docbook-xsl-nons |
27 | 37 | use_configure no |
28 | 38 | |
29 | | platform darwin i386 { |
30 | | svn.url http://svn.clozure.com/publicsvn/openmcl/release/${shortversion}/darwinx86/ccl |
31 | | global bootimg |
| 39 | compiler.whitelist macports-clang-9.0 |
| 40 | |
| 41 | platform darwin { |
| 42 | # svn.url http://svn.clozure.com/publicsvn/openmcl/release/${shortversion}/darwinx86/ccl |
| 43 | # global bootimg_url |
| 44 | global bootimg |
32 | 45 | global ccl_script |
33 | 46 | |
34 | 47 | if { ${configure.build_arch} eq "x86_64" } { |
| 48 | master_sites-append https://github.com/Clozure/ccl/releases/download/v${version}/:ccl_x86_64 |
| 49 | distfiles-append darwinx86${extract.suffix}:ccl_x86_64 |
| 50 | checksums-append darwinx86${extract.suffix} \ |
| 51 | rmd160 5dc96b8b8cf9a104f20238f0e5c7daabf50be7ff \ |
| 52 | sha256 9434fb5ebc01fc923625ad56726fdd217009e2d3c107cfa3c5435cb7692ba7ca \ |
| 53 | size 18909744 |
| 54 | # This tar has no top-level directory, so we have to extract it manually |
| 55 | extract.only-delete darwinx86${extract.suffix} |
35 | 56 | set bootimg dx86cl64 |
36 | 57 | set ccl_script ccl64 |
37 | | } elseif { ${configure.build_arch} eq "i386" } { |
38 | | set bootimg dx86cl |
39 | | set ccl_script ccl |
40 | 58 | } else { |
41 | 59 | pre-fetch { |
42 | | return -code error "architecture ${configure.build_arch} is not supported by ${name}" |
| 60 | return -code error "architecture ${configure.build_arch} has not been ported to ${name}" |
43 | 61 | } |
44 | 62 | } |
45 | | |
46 | | # patchfiles-append xcode7.patch |
| 63 | } |
| 64 | |
| 65 | post-extract { |
| 66 | system "cd ${worksrcpath} && tar xfv ${distpath}/darwinx86${extract.suffix}" |
47 | 67 | } |
48 | 68 | |
49 | 69 | build { |
| 70 | system "cd ${worksrcpath}/lisp-kernel/darwinx8664 && make clean && make" |
50 | 71 | system "cd ${worksrcpath} && echo '(ccl::rebuild-ccl :full t)' | ./${bootimg} --batch" |
51 | 72 | # FIXME: doc target no longer exists with ecl-1.11 |
52 | 73 | # Building documentation now requires CCL+Quicklisp <http://trac.clozure.com/ccldoc> |
… |
… |
|
71 | 92 | file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name} |
72 | 93 | } |
73 | 94 | |
74 | | post-activate { |
75 | | # DEPRECATED: ASDF-INSTALL has been superseded by Quicklisp In any |
76 | | # event, all this target does is make some unused |
77 | | # directories. |
78 | | # |
79 | | # Prepare asdf install folders and so forth. |
80 | | file mkdir ${prefix}/share/asdf-install |
81 | | system "chgrp admin ${prefix}/share/asdf-install" |
82 | | system "chmod g+w ${prefix}/share/asdf-install" |
83 | | } |
| 95 | #post-activate { |
| 96 | #} |