Ticket #29446: spidermonkey185.2.diff

File spidermonkey185.2.diff, 3.4 KB (added by neverpanic (Clemens Lang), 11 years ago)

Here's a version of the patch that applies cleanly against the current version of the Portfile

  • Portfile

     
    22# $Id$
    33
    44PortSystem 1.0
    5 PortGroup  muniversal 1.0
    65
    7 name                spidermonkey
    8 epoch               1
    9 version             1.7.0
    10 revision            6
     6set js_version      1.8.5
     7name                spidermonkey[strsed ${js_version} {g/\.//}]
     8version             1.0.0
    119categories          lang
    1210platforms           darwin
    1311maintainers         akitada openmaintainer
     
    2018                    ftp://ftp.mozilla.org/pub/mozilla.org/js/ \
    2119                    http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ \
    2220                    ftp://ftp.mozilla.org/pub/mozilla.org/js/older-packages/
    23 distname            js-${version}
    24 checksums           md5 5571134c3863686b623ebe4e6b1f6fe6 \
    25                     sha1 1a99e8e10cb6600a03ea98895583a8ed42136d1f \
    26                     rmd160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb
     21distname            js[strsed ${js_version} {g/\.//}]-${version}
     22checksums           rmd160  23e6ddc81d5b63e015aecc1a104b2d3d3ced5005 \
     23                    sha256  5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687
    2724
    2825depends_lib         port:nspr \
    2926                    port:readline
    3027
    31 worksrcdir          js/src
     28worksrcdir          js-${js_version}/js/src
    3229
    33 patchfiles          spidermonkey-1.5-build.patch \
    34                     spidermonkey-1.5-threadsafe.diff \
    35                     spidermonkey-1.5-header.diff \
    36                     patch-config-Darwin.mk \
    37                     patch-jsprf.c
    38 
    39 post-patch {
    40     reinplace "s|__PREFIX__|${prefix}|g" \
    41         ${worksrcpath}/Makefile.ref
    42     reinplace "s|__USER__|${install.user}|g" \
    43         ${worksrcpath}/Makefile.ref
    44     reinplace "s|__GROUP__|${install.group}|g" \
    45         ${worksrcpath}/Makefile.ref
     30configure.args      --enable-readline \
     31                    --enable-threadsafe \
     32                    --enable-macos-target=${macosx_deployment_target} \
     33                    --with-system-nspr
     34
     35test.run            yes
     36test.target         check
     37
     38post-destroot {
     39    # The script name is not versioned so it would conflict with other
     40    # spidermonkey versions. And the script isn't generated correctly on Darwin
     41    # anyway: https://developer.mozilla.org/en/SpiderMonkey/1.8.5#js-config
     42    # Programs should use "pkg-config mozjs185" instead of js-config.
     43    delete ${destroot}${prefix}/bin/js-config
    4644}
    4745
    48 use_configure   no
    49 
    50 use_parallel_build  no
    51 
    52 build.args          -f Makefile.ref \
    53                     LIBDIR="/lib" \
    54                     SO_SUFFIX=dylib \
    55                     JS_THREADSAFE=1 \
    56                     JS_READLINE=1
    57 
    58 if { ![variant_isset universal] } {
    59     build.args-append CC='${configure.cc} -arch ${build_arch}'
    60 } else {
    61     set merger_must_run_binaries "yes"
    62     foreach arch {i386 x86_64 ppc ppc64} {
    63         lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}'
    64     }
    65 }
    66 
    67 variant fileobject description {add File object support} {
    68     build.args-append \
    69         JS_HAS_FILE_OBJECT=1
    70 }
    71 
    72 destroot.args       -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib
     46universal_variant   no
    7347
    7448livecheck.type      regex
    7549livecheck.url       http://ftp.mozilla.org/pub/mozilla.org/js/
    76 livecheck.regex     {js-(\d+(?:\.\d+){2,})\.}
     50livecheck.regex     js[strsed ${js_version} {g/\.//}]-(\[0-9.\]+)${extract.suffix}