Ticket #60377: ccl-1.12.patch

File ccl-1.12.patch, 3.8 KB (added by easye, 5 years ago)
  • lang/ccl/Portfile

    # HG changeset patch
    # Parent  91039c66461c65db072737f4fc961753cc3a9854
    
    diff -r 91039c66461c lang/ccl/Portfile
    a b  
    22
    33PortSystem      1.0
    44
     5PortGroup       github 1.0
     6github.setup    Clozure ccl 1.12 v
     7
    58name                ccl
    6 version         1.11
     9#version         1.11.8
    710revision        0
    811
    912set shortversion    ${version}
     
    1215license         LGPL-2.1
    1316maintainers     {easieste @easye} openmaintainer
    1417platforms       darwin
    15 supported_archs x86_64 i386
     18supported_archs x86_64
    1619description     The Clozure Common Lisp Implementation
    1720long_description \
    1821    Clozure CL is an open source Common Lisp implementation.    \
    1922    Clozure CL used to be called OpenMCL. It is also sometimes  \
    2023    called CCL. You will see the three names being used interchangeably.
    2124
    22 homepage        http://trac.clozure.com/ccl
     25homepage         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
    2329
    24 fetch.type      svn
    25 worksrcdir      ccl
    26 depends_build   port:docbook-xsl-nons
     30checksums ${name}-${version}${extract.suffix} \
     31    rmd160  d4548d9b53784541271730b20fb81e33ef04a403 \
     32    sha256  655389f1f57f80f377e491469913e385cd9ecf87b19c1513e024b2386720d0f8 \
     33    size    5017237
     34
     35worksrcdir      ccl-${version}
     36#depends_build   port:docbook-xsl-nons
    2737use_configure   no
    2838
    29 platform darwin i386 {
    30     svn.url http://svn.clozure.com/publicsvn/openmcl/release/${shortversion}/darwinx86/ccl
    31     global bootimg
     39compiler.whitelist        macports-clang-9.0
     40
     41platform darwin  {
     42    #    svn.url http://svn.clozure.com/publicsvn/openmcl/release/${shortversion}/darwinx86/ccl
     43    # global bootimg_url
     44    global bootimg
    3245    global ccl_script
    3346
    3447    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}
    3556        set bootimg dx86cl64
    3657        set ccl_script ccl64
    37     } elseif { ${configure.build_arch} eq "i386" } {
    38         set bootimg dx86cl
    39         set ccl_script ccl
    4058    } else {
    4159        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}"
    4361        }
    4462    }
    45    
    46 #    patchfiles-append   xcode7.patch
     63}
     64
     65post-extract {
     66    system "cd ${worksrcpath} && tar xfv ${distpath}/darwinx86${extract.suffix}"
    4767}
    4868
    4969build {
     70    system "cd ${worksrcpath}/lisp-kernel/darwinx8664 && make clean && make"
    5071    system "cd ${worksrcpath} && echo '(ccl::rebuild-ccl :full t)' | ./${bootimg} --batch"
    5172    #  FIXME:  doc target no longer exists with ecl-1.11
    5273    #  Building documentation now requires CCL+Quicklisp <http://trac.clozure.com/ccldoc>
     
    7192    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
    7293}
    7394
    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#}