# -*- 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 PortGroup github 1.0 github.setup Clozure ccl 1.12.1 v name ccl revision 0 dist_subdir ${name}/${version} set shortversion ${version} categories lang license Apache-2 maintainers {easieste @easye} openmaintainer platforms darwin supported_archs x86_64 description The Clozure Common Lisp Implementation long_description \ Clozure CL is an open source Common Lisp implementation. \ Clozure CL used to be called OpenMCL. It is also sometimes \ called CCL. You will see the three names being used interchangeably. homepage https://github.com/Clozure/ccl checksums ${name}-${version}${extract.suffix} \ rmd160 549ca42bde4390f3735b069b279f8e469afe1125 \ sha256 9e369fe0e7983eca68b9a33c68568ec4e16c3d56ac6a801c1e2d9dc758c48aa1 \ size 5017255 worksrcdir ccl-${version} use_configure no compiler.whitelist macports-clang-9.0 platform darwin { global bootimg global ccl_script if { ${configure.build_arch} eq "x86_64" } { master_sites-append https://github.com/Clozure/ccl/releases/download/v${version}/:ccl_x86_64 distfiles-append darwinx86${extract.suffix}:ccl_x86_64 checksums-append darwinx86${extract.suffix} \ rmd160 aa1882d91bc883aad4d420b364d441a08969c1d0 \ sha256 92c5776ba1ba8548361669b50ae1655d7f127ff01d6e2107d8dccb97f2a585cd \ size 18898227 # This tar has no top-level directory, so we have to extract it manually extract.only-delete darwinx86${extract.suffix} set bootimg dx86cl64 set ccl_script ccl64 } else { pre-fetch { return -code error "architecture ${configure.build_arch} has not been ported to ${name}" } } } post-extract { system "cd ${worksrcpath} && tar -x -f ${distpath}/darwinx86${extract.suffix}" } build { system "cd ${worksrcpath}/lisp-kernel/darwinx8664 && make clean && make" system "cd ${worksrcpath} && echo '(ccl::rebuild-ccl :clean t)' | ./${bootimg} --batch" # FIXME: doc target no longer exists with ccl-1.11 # # Generating the manual would involve using ccl with Quicklisp to # run . } set prefixpath \\\"[regsub -all / [strsed ${prefix}/share/asdf-install {g/^\///}] "\\\" \\\""]\\\" destroot { set install_root ${prefix}/share/${name}/${shortversion} set stage_root ${destroot}${install_root} file mkdir ${stage_root} system "cd ${worksrcpath} && tar -c -f - . | ( cd ${stage_root} && tar -x -f -)" set ccl_wrapper ${worksrcpath}/scripts/${ccl_script} reinplace "s|/usr/local/src/ccl|${install_root}|" \ ${ccl_wrapper} system "chmod +x ${ccl_wrapper}" file copy ${ccl_wrapper} ${destroot}${prefix}/bin xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -d ${destroot}${prefix}/share/examples xinstall -m 644 -W ${worksrcpath}/doc \ release-notes-1.1.txt release-notes-1.2.txt release-notes.txt \ compiler-changes-in-CCL-1.12-trunk.pdf \ ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name} }