Ticket #29446: spidermonkey185.2.diff
File spidermonkey185.2.diff, 3.4 KB (added by neverpanic (Clemens Lang), 12 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup muniversal 1.06 5 7 name spidermonkey 8 epoch 1 9 version 1.7.0 10 revision 6 6 set js_version 1.8.5 7 name spidermonkey[strsed ${js_version} {g/\.//}] 8 version 1.0.0 11 9 categories lang 12 10 platforms darwin 13 11 maintainers akitada openmaintainer … … 20 18 ftp://ftp.mozilla.org/pub/mozilla.org/js/ \ 21 19 http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ \ 22 20 ftp://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ 23 distname js-${version} 24 checksums md5 5571134c3863686b623ebe4e6b1f6fe6 \ 25 sha1 1a99e8e10cb6600a03ea98895583a8ed42136d1f \ 26 rmd160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb 21 distname js[strsed ${js_version} {g/\.//}]-${version} 22 checksums rmd160 23e6ddc81d5b63e015aecc1a104b2d3d3ced5005 \ 23 sha256 5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687 27 24 28 25 depends_lib port:nspr \ 29 26 port:readline 30 27 31 worksrcdir js /src28 worksrcdir js-${js_version}/js/src 32 29 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 30 configure.args --enable-readline \ 31 --enable-threadsafe \ 32 --enable-macos-target=${macosx_deployment_target} \ 33 --with-system-nspr 34 35 test.run yes 36 test.target check 37 38 post-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 46 44 } 47 45 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 46 universal_variant no 73 47 74 48 livecheck.type regex 75 49 livecheck.url http://ftp.mozilla.org/pub/mozilla.org/js/ 76 livecheck.regex {js-(\d+(?:\.\d+){2,})\.}50 livecheck.regex js[strsed ${js_version} {g/\.//}]-(\[0-9.\]+)${extract.suffix}