Ticket #29446: spidermonkey185.diff
File spidermonkey185.diff, 3.5 KB (added by ryandesign (Ryan Carsten Schmidt), 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 5 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} 27 22 23 checksums rmd160 23e6ddc81d5b63e015aecc1a104b2d3d3ced5005 \ 24 sha256 5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687 25 28 26 depends_build port:readline 29 27 depends_lib port:nspr 30 worksrcdir js/src31 28 32 patchfiles spidermonkey-1.5-build.patch \ 33 spidermonkey-1.5-threadsafe.diff \ 34 spidermonkey-1.5-header.diff \ 35 patch-config-Darwin.mk \ 36 patch-jsprf.c 29 worksrcdir js-${js_version}/js/src 37 30 38 post-patch { 39 reinplace "s|__PREFIX__|${prefix}|g" \ 40 ${worksrcpath}/Makefile.ref 41 reinplace "s|__USER__|${install.user}|g" \ 42 ${worksrcpath}/Makefile.ref 43 reinplace "s|__GROUP__|${install.group}|g" \ 44 ${worksrcpath}/Makefile.ref 45 } 31 patchfiles patch-DESTDIR.diff patch-includedir.diff 46 32 47 use_configure no 33 configure.args --enable-readline \ 34 --enable-threadsafe \ 35 --enable-macos-target=${macosx_deployment_target} \ 36 --with-system-nspr 48 37 49 use_parallel_build no 38 test.run yes 39 test.target check 50 40 51 build.args -f Makefile.ref \ 52 LIBDIR="/lib" \ 53 SO_SUFFIX=dylib \ 54 JS_THREADSAFE=1 \ 55 JS_READLINE=1 56 57 if { ![variant_isset universal] } { 58 build.args-append CC='${configure.cc} -arch ${build_arch}' 59 } else { 60 set merger_must_run_binaries "yes" 61 foreach arch {i386 x86_64 ppc ppc64} { 62 lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}' 63 } 41 post-destroot { 42 # The script name is not versioned so it would conflict with other 43 # spidermonkey versions. And the script isn't generated correctly on Darwin 44 # anyway: https://developer.mozilla.org/en/SpiderMonkey/1.8.5#js-config 45 # Programs should use "pkg-config mozjs185" instead of js-config. 46 delete ${destroot}${prefix}/bin/js-config 64 47 } 65 48 66 variant fileobject description {add File object support} { 67 build.args-append \ 68 JS_HAS_FILE_OBJECT=1 69 } 49 universal_variant no 70 50 71 destroot.args -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib72 73 51 livecheck.type regex 74 52 livecheck.url http://ftp.mozilla.org/pub/mozilla.org/js/ 75 livecheck.regex {js-(\d+(?:\.\d+){2,})\.}53 livecheck.regex js[strsed ${js_version} {g/\.//}]-(\[0-9.\]+)${extract.suffix}