44 | | master_sites-append https://static.rust-lang.org/dist/:stage0 |
45 | | distfiles-append ${stage0(distfile)}:stage0 |
| 67 | # avoid downloading files from online repository during build phase |
| 68 | # see https://doc.rust-lang.org/cargo/reference/source-replacement.html |
| 69 | post-extract { |
| 70 | xinstall -d -m 0755 ${workpath}/.home/.cargo |
| 71 | set config [open ${workpath}/.home/.cargo/config w] |
| 72 | puts ${config} "\[source\]" |
| 73 | puts ${config} "\[source.macports\]" |
| 74 | puts ${config} "directory = '${workpath}/dependencies'" |
| 75 | puts ${config} "\[source.crates-io\]" |
| 76 | puts ${config} "replace-with = 'macports'" |
| 77 | close ${config} |
| 78 | } |
| 79 | |
| 80 | # in worksrcdir, run |
| 81 | # cargo fetch |
| 82 | # grep \"checksum Cargo.lock | perl -pe 's/"checksum (\S*) (\S*) \S* = "(\S*)"/ $1-$2.crate $1 $2 $3/' |
| 83 | set crate_files { |
| 84 | aho-corasick-0.5.3.crate aho-corasick 0.5.3 ca972c2ea5f742bfce5687b9aef75506a764f61d37f8f649047846a9686ddb66 |
| 85 | aho-corasick-0.6.4.crate aho-corasick 0.6.4 d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4 |
| 86 | atty-0.2.8.crate atty 0.2.8 af80143d6f7608d746df1520709e5d141c96f240b0e62b0aa41bdfb53374d9d4 |
| 87 | backtrace-0.3.5.crate backtrace 0.3.5 ebbbf59b1c43eefa8c3ede390fcc36820b4999f7914104015be25025e0d62af2 |
| 88 | backtrace-sys-0.1.16.crate backtrace-sys 0.1.16 44585761d6161b0f57afc49482ab6bd067e4edef48c12a152c237eb0203f7661 |
| 89 | bitflags-0.9.1.crate bitflags 0.9.1 4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5 |
| 90 | bitflags-1.0.1.crate bitflags 1.0.1 b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf |
| 91 | bufstream-0.1.3.crate bufstream 0.1.3 f2f382711e76b9de6c744cc00d0497baba02fb00a787f088c879f01d09468e32 |
| 92 | cc-1.0.9.crate cc 1.0.9 2b4911e4bdcb4100c7680e7e854ff38e23f1b34d4d9e079efae3da2801341ffc |
| 93 | cfg-if-0.1.2.crate cfg-if 0.1.2 d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de |
| 94 | cmake-0.1.29.crate cmake 0.1.29 56d741ea7a69e577f6d06b36b7dff4738f680593dc27a701ffa8506b73ce28bb |
| 95 | commoncrypto-0.2.0.crate commoncrypto 0.2.0 d056a8586ba25a1e4d61cb090900e495952c7886786fc55f909ab2f819b69007 |
| 96 | commoncrypto-sys-0.2.0.crate commoncrypto-sys 0.2.0 1fed34f46747aa73dfaa578069fd8279d2818ade2b55f38f22a9401c7f4083e2 |
| 97 | core-foundation-0.4.6.crate core-foundation 0.4.6 8047f547cd6856d45b1cdd75ef8d2f21f3d0e4bf1dab0a0041b0ae9a5dda9c0e |
| 98 | core-foundation-sys-0.4.6.crate core-foundation-sys 0.4.6 152195421a2e6497a8179195672e9d4ee8e45ed8c465b626f1606d27a08ebcd5 |
| 99 | crossbeam-0.2.12.crate crossbeam 0.2.12 bd66663db5a988098a89599d4857919b3acf7f61402e61365acfd3919857b9be |
| 100 | crossbeam-0.3.2.crate crossbeam 0.3.2 24ce9782d4d5c53674646a6a4c1863a21a8fc0cb649b3c94dfc16e45071dea19 |
| 101 | crypto-hash-0.3.1.crate crypto-hash 0.3.1 09de9ee0fc255ace04c7fa0763c9395a945c37c8292bb554f8d48361d1dcf1b4 |
| 102 | curl-0.4.11.crate curl 0.4.11 b70fd6394677d3c0e239ff4be6f2b3176e171ffd1c23ffdc541e78dea2b8bb5e |
| 103 | curl-sys-0.4.1.crate curl-sys 0.4.1 f46e49c7125131f5afaded06944d6888b55cbdf8eba05dae73c954019b907961 |
| 104 | docopt-0.8.3.crate docopt 0.8.3 d8acd393692c503b168471874953a2531df0e9ab77d0b6bbc582395743300a4a |
| 105 | dtoa-0.4.2.crate dtoa 0.4.2 09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab |
| 106 | env_logger-0.4.3.crate env_logger 0.4.3 3ddf21e73e016298f5cb37d6ef8e8da8e39f91f9ec8b0df44b7deb16a9f8cd5b |
| 107 | failure-0.1.1.crate failure 0.1.1 934799b6c1de475a012a02dab0ace1ace43789ee4b99bcfbf1a2e3e8ced5de82 |
| 108 | failure_derive-0.1.1.crate failure_derive 0.1.1 c7cdda555bb90c9bb67a3b670a0f42de8e73f5981524123ad8578aafec8ddb8b |
| 109 | filetime-0.1.15.crate filetime 0.1.15 714653f3e34871534de23771ac7b26e999651a0a228f47beb324dfdf1dd4b10f |
| 110 | flate2-1.0.1.crate flate2 1.0.1 9fac2277e84e5e858483756647a9d0aa8d9a2b7cba517fd84325a0aaa69a0909 |
| 111 | fnv-1.0.6.crate fnv 1.0.6 2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3 |
| 112 | foreign-types-0.3.2.crate foreign-types 0.3.2 f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1 |
| 113 | foreign-types-shared-0.1.1.crate foreign-types-shared 0.1.1 00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b |
| 114 | fs2-0.4.3.crate fs2 0.4.3 9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213 |
| 115 | fuchsia-zircon-0.3.3.crate fuchsia-zircon 0.3.3 2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82 |
| 116 | fuchsia-zircon-sys-0.3.3.crate fuchsia-zircon-sys 0.3.3 3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7 |
| 117 | git2-0.6.11.crate git2 0.6.11 ee5b4bb7cd2a44e6e5ee3a26ba6a9ca10d4ce2771cdc3839bbc54b47b7d1be84 |
| 118 | git2-curl-0.7.0.crate git2-curl 0.7.0 68676bc784bf0bef83278898929bf64a251e87c0340723d0b93fa096c9c5bf8e |
| 119 | glob-0.2.11.crate glob 0.2.11 8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb |
| 120 | globset-0.2.1.crate globset 0.2.1 464627f948c3190ae3d04b1bc6d7dca2f785bda0ac01278e6db129ad383dbeb6 |
| 121 | hamcrest-0.1.1.crate hamcrest 0.1.1 bf088f042a467089e9baa4972f57f9247e42a0cc549ba264c7a04fbb8ecb89d4 |
| 122 | hex-0.2.0.crate hex 0.2.0 d6a22814455d41612f41161581c2883c0c6a1c41852729b17d5ed88f01e153aa |
| 123 | hex-0.3.1.crate hex 0.3.1 459d3cf58137bb02ad4adeef5036377ff59f066dbb82517b7192e3a5462a2abc |
| 124 | home-0.3.2.crate home 0.3.2 8f94f6fbdc000a6eba0c8cf08632b2091bb59141d36ac321a2a96d6365e5e4dc |
| 125 | idna-0.1.4.crate idna 0.1.4 014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d |
| 126 | ignore-0.2.2.crate ignore 0.2.2 b3fcaf2365eb14b28ec7603c98c06cc531f19de9eb283d89a3dff8417c8c99f5 |
| 127 | itoa-0.4.1.crate itoa 0.4.1 c069bbec61e1ca5a596166e55dfe4773ff745c3d16b700013bcaff9a6df2c682 |
| 128 | jobserver-0.1.11.crate jobserver 0.1.11 60af5f849e1981434e4a31d3d782c4774ae9b434ce55b101a96ecfd09147e8be |
| 129 | kernel32-sys-0.2.2.crate kernel32-sys 0.2.2 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d |
| 130 | lazy_static-0.2.11.crate lazy_static 0.2.11 76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73 |
| 131 | lazy_static-1.0.0.crate lazy_static 1.0.0 c8f31047daa365f19be14b47c29df4f7c3b581832407daabe6ae77397619237d |
| 132 | libc-0.2.39.crate libc 0.2.39 f54263ad99207254cf58b5f701ecb432c717445ea2ee8af387334bdd1a03fdff |
| 133 | libgit2-sys-0.6.19.crate libgit2-sys 0.6.19 6eeae66e7b1c995de45cb4e65c5ab438a96a7b4077e448645d4048dc753ad357 |
| 134 | libssh2-sys-0.2.6.crate libssh2-sys 0.2.6 0db4ec23611747ef772db1c4d650f8bd762f07b461727ec998f953c614024b75 |
| 135 | libz-sys-1.0.18.crate libz-sys 1.0.18 87f737ad6cc6fd6eefe3d9dc5412f1573865bded441300904d2f42269e140f16 |
| 136 | log-0.3.9.crate log 0.3.9 e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b |
| 137 | log-0.4.1.crate log 0.4.1 89f010e843f2b1a31dbd316b3b8d443758bc634bed37aabade59c686d644e0a2 |
| 138 | matches-0.1.6.crate matches 0.1.6 100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376 |
| 139 | memchr-0.1.11.crate memchr 0.1.11 d8b629fb514376c675b98c1421e80b151d3817ac42d7c667717d282761418d20 |
| 140 | memchr-1.0.2.crate memchr 1.0.2 148fab2e51b4f1cfc66da2a7c32981d1d3c083a803978268bb11fe4b86925e7a |
| 141 | memchr-2.0.1.crate memchr 2.0.1 796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d |
| 142 | miniz-sys-0.1.10.crate miniz-sys 0.1.10 609ce024854aeb19a0ef7567d348aaa5a746b32fb72e336df7fcc16869d7e2b4 |
| 143 | miow-0.2.1.crate miow 0.2.1 8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919 |
| 144 | net2-0.2.32.crate net2 0.2.32 9044faf1413a1057267be51b5afba8eb1090bd2231c693664aa1db716fe1eae0 |
| 145 | num-0.1.42.crate num 0.1.42 4703ad64153382334aa8db57c637364c322d3372e097840c72000dabdcf6156e |
| 146 | num-bigint-0.1.43.crate num-bigint 0.1.43 81b483ea42927c463e191802e7334556b48e7875297564c0e9951bd3a0ae53e3 |
| 147 | num-complex-0.1.43.crate num-complex 0.1.43 b288631d7878aaf59442cffd36910ea604ecd7745c36054328595114001c9656 |
| 148 | num-integer-0.1.36.crate num-integer 0.1.36 f8d26da319fb45674985c78f1d1caf99aa4941f785d384a2ae36d0740bc3e2fe |
| 149 | num-iter-0.1.35.crate num-iter 0.1.35 4b226df12c5a59b63569dd57fafb926d91b385dfce33d8074a412411b689d593 |
| 150 | num-rational-0.1.42.crate num-rational 0.1.42 ee314c74bd753fc86b4780aa9475da469155f3848473a261d2d18e35245a784e |
| 151 | num-traits-0.2.2.crate num-traits 0.2.2 dee092fcdf725aee04dd7da1d21debff559237d49ef1cb3e69bcb8ece44c7364 |
| 152 | num_cpus-1.8.0.crate num_cpus 1.8.0 c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30 |
| 153 | openssl-0.10.5.crate openssl 0.10.5 1636c9f1d78af9cbcc50e523bfff4a30274108aad5e86761afd4d31e4e184fa7 |
| 154 | openssl-probe-0.1.2.crate openssl-probe 0.1.2 77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de |
| 155 | openssl-sys-0.9.27.crate openssl-sys 0.9.27 d6fdc5c4a02e69ce65046f1763a0181107038e02176233acb0b3351d7cc588f9 |
| 156 | percent-encoding-1.0.1.crate percent-encoding 1.0.1 31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831 |
| 157 | pkg-config-0.3.9.crate pkg-config 0.3.9 3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903 |
| 158 | proc-macro2-0.2.3.crate proc-macro2 0.2.3 cd07deb3c6d1d9ff827999c7f9b04cdfd66b1b17ae508e14fe47b620f2282ae0 |
| 159 | psapi-sys-0.1.1.crate psapi-sys 0.1.1 1f71c7e142c25f297077a8ebc21f10847096b5d21ad7619d7bf0c1fcecb40bb0 |
| 160 | quote-0.3.15.crate quote 0.3.15 7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a |
| 161 | quote-0.4.2.crate quote 0.4.2 1eca14c727ad12702eb4b6bfb5a232287dcf8385cb8ca83a3eeaf6519c44c408 |
| 162 | rand-0.4.2.crate rand 0.4.2 eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5 |
| 163 | redox_syscall-0.1.37.crate redox_syscall 0.1.37 0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd |
| 164 | redox_termios-0.1.1.crate redox_termios 0.1.1 7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76 |
| 165 | regex-0.1.80.crate regex 0.1.80 4fd4ace6a8cf7860714a2c2280d6c1f7e6a413486c13298bbc86fd3da019402f |
| 166 | regex-0.2.10.crate regex 0.2.10 aec3f58d903a7d2a9dc2bf0e41a746f4530e0cab6b615494e058f67a3ef947fb |
| 167 | regex-syntax-0.3.9.crate regex-syntax 0.3.9 f9ec002c35e86791825ed294b50008eea9ddfc8def4420124fbc6b08db834957 |
| 168 | regex-syntax-0.5.3.crate regex-syntax 0.5.3 b2550876c31dc914696a6c2e01cbce8afba79a93c8ae979d2fe051c0230b3756 |
| 169 | remove_dir_all-0.5.0.crate remove_dir_all 0.5.0 dfc5b3ce5d5ea144bb04ebd093a9e14e9765bcfec866aecda9b6dec43b3d1e24 |
| 170 | rustc-demangle-0.1.7.crate rustc-demangle 0.1.7 11fb43a206a04116ffd7cfcf9bcb941f8eb6cc7ff667272246b0a1c74259a3cb |
| 171 | rustc-serialize-0.3.24.crate rustc-serialize 0.3.24 dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda |
| 172 | same-file-0.1.3.crate same-file 0.1.3 d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7 |
| 173 | schannel-0.1.11.crate schannel 0.1.11 fbaffce35eb61c5b00846e73128b0cd62717e7c0ec46abbec132370d013975b4 |
| 174 | scoped-tls-0.1.1.crate scoped-tls 0.1.1 8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4 |
| 175 | scopeguard-0.3.3.crate scopeguard 0.3.3 94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27 |
| 176 | semver-0.8.0.crate semver 0.8.0 bee2bc909ab2d8d60dab26e8cad85b25d795b14603a0dcb627b78b9d30b6454b |
| 177 | semver-parser-0.7.0.crate semver-parser 0.7.0 388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3 |
| 178 | serde-1.0.34.crate serde 1.0.34 0e100d00fb985a5bf16b857a436450e404fa613de3321b2e383947a93cbd75df |
| 179 | serde_derive-1.0.34.crate serde_derive 1.0.34 86daebd995aa948b069d886f2105f2425cd66103049855e45c15c58c573f12c5 |
| 180 | serde_derive_internals-0.22.0.crate serde_derive_internals 0.22.0 6b3f714f52a41e371c5e141e9dafcead60921349bec76b44d79000c88aba3cfc |
| 181 | serde_ignored-0.0.4.crate serde_ignored 0.0.4 190e9765dcedb56be63b6e0993a006c7e3b071a016a304736e4a315dc01fb142 |
| 182 | serde_json-1.0.13.crate serde_json 1.0.13 5c508584d9913df116b91505eec55610a2f5b16e9ed793c46e4d0152872b3e74 |
| 183 | shell-escape-0.1.3.crate shell-escape 0.1.3 dd5cc96481d54583947bfe88bf30c23d53f883c6cd0145368b69989d97b84ef8 |
| 184 | socket2-0.3.4.crate socket2 0.3.4 71ebbe82fcdd697244ba7fe6e05e63b5c45910c3927e28469a04947494ff48d8 |
| 185 | strsim-0.6.0.crate strsim 0.6.0 b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694 |
| 186 | syn-0.11.11.crate syn 0.11.11 d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad |
| 187 | syn-0.12.14.crate syn 0.12.14 8c5bc2d6ff27891209efa5f63e9de78648d7801f085e4653701a692ce938d6fd |
| 188 | synom-0.11.3.crate synom 0.11.3 a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6 |
| 189 | synstructure-0.6.1.crate synstructure 0.6.1 3a761d12e6d8dcb4dcf952a7a89b475e3a9d69e4a69307e01a470977642914bd |
| 190 | tar-0.4.14.crate tar 0.4.14 1605d3388ceb50252952ffebab4b5dc43017ead7e4481b175961c283bb951195 |
| 191 | tempdir-0.3.7.crate tempdir 0.3.7 15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8 |
| 192 | termcolor-0.3.5.crate termcolor 0.3.5 56c456352e44f9f91f774ddeeed27c1ec60a2455ed66d692059acfb1d731bda1 |
| 193 | termion-1.5.1.crate termion 1.5.1 689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096 |
| 194 | thread-id-2.0.0.crate thread-id 2.0.0 a9539db560102d1cef46b8b78ce737ff0bb64e7e18d35b2a5688f7d097d0ff03 |
| 195 | thread_local-0.2.7.crate thread_local 0.2.7 8576dbbfcaef9641452d5cf0df9b0e7eeab7694956dd33bb61515fb8f18cfdd5 |
| 196 | thread_local-0.3.5.crate thread_local 0.3.5 279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963 |
| 197 | toml-0.4.5.crate toml 0.4.5 a7540f4ffc193e0d3c94121edb19b055670d369f77d5804db11ae053a45b6e7e |
| 198 | ucd-util-0.1.1.crate ucd-util 0.1.1 fd2be2d6639d0f8fe6cdda291ad456e23629558d466e2789d2c3e9892bda285d |
| 199 | unicode-bidi-0.3.4.crate unicode-bidi 0.3.4 49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5 |
| 200 | unicode-normalization-0.1.5.crate unicode-normalization 0.1.5 51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f |
| 201 | unicode-xid-0.0.4.crate unicode-xid 0.0.4 8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc |
| 202 | unicode-xid-0.1.0.crate unicode-xid 0.1.0 fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc |
| 203 | unreachable-1.0.0.crate unreachable 1.0.0 382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56 |
| 204 | url-1.7.0.crate url 1.7.0 f808aadd8cfec6ef90e4a14eb46f24511824d1ac596b9682703c87056c8678b7 |
| 205 | userenv-sys-0.2.0.crate userenv-sys 0.2.0 71d28ea36bbd9192d75bd9fa9b39f96ddb986eaee824adae5d53b6e51919b2f3 |
| 206 | utf8-ranges-0.1.3.crate utf8-ranges 0.1.3 a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f |
| 207 | utf8-ranges-1.0.0.crate utf8-ranges 1.0.0 662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122 |
| 208 | vcpkg-0.2.2.crate vcpkg 0.2.2 9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b |
| 209 | void-1.0.2.crate void 1.0.2 6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d |
| 210 | walkdir-1.0.7.crate walkdir 1.0.7 bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff |
| 211 | winapi-0.2.8.crate winapi 0.2.8 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a |
| 212 | winapi-0.3.4.crate winapi 0.3.4 04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3 |
| 213 | winapi-build-0.1.1.crate winapi-build 0.1.1 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc |
| 214 | winapi-i686-pc-windows-gnu-0.4.0.crate winapi-i686-pc-windows-gnu 0.4.0 ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6 |
| 215 | winapi-x86_64-pc-windows-gnu-0.4.0.crate winapi-x86_64-pc-windows-gnu 0.4.0 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f |
| 216 | wincolor-0.1.6.crate wincolor 0.1.6 eeb06499a3a4d44302791052df005d5232b927ed1a9658146d842165c4de7767 |
| 217 | ws2_32-sys-0.2.1.crate ws2_32-sys 0.2.1 d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e |
| 218 | } |
| 219 | |
| 220 | post-extract { |
| 221 | xinstall -d -m 0755 ${workpath}/dependencies |
| 222 | foreach {distfile dep ver sha256} ${crate_files} { |
| 223 | |
| 224 | # extract crate files |
| 225 | system -W ${workpath}/dependencies "/usr/bin/tar -xvf ${distpath}/${distfile} -C ${workpath}/dependencies" |
| 226 | |
| 227 | # cargo requires a checksum verification file |
| 228 | set json [open ${workpath}/dependencies/[file rootname ${distfile}]/.cargo-checksum.json "w"] |
| 229 | puts ${json} "{" |
| 230 | puts ${json} "\t\"package\": \"${sha256}\"," |
| 231 | puts ${json} "\t\"files\": {}" |
| 232 | puts ${json} "}" |
| 233 | close ${json} |
| 234 | } |
| 235 | |
| 236 | # the libssh2-sys crate requires the header files from |
| 237 | # a version of libssh2 that has not been released |
| 238 | # (e.g. channel.c uses the error code LIBSSH2_ERROR_CHANNEL_WINDOW_FULL) |
| 239 | # make sure these header files are found properly |
| 240 | foreach {distfile dep ver sha256} ${crate_files} { |
| 241 | if {${dep} eq "libssh2-sys"} { |
| 242 | foreach f [glob -tail -directory ${workpath}/dependencies/libssh2-sys-${ver}/libssh2/include/ *.h] { |
| 243 | ln -s ../include/${f} ${workpath}/dependencies/libssh2-sys-${ver}/libssh2/src/ |
| 244 | } |
| 245 | } |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | # This is an ugly hack. |
| 250 | # To download the crate file curl-0.4.11.crate, the URL is |
| 251 | # https://crates.io/api/v1/crates/curl/0.4.11/download. |
| 252 | # portfech does not support such a configuration, so |
| 253 | # redefine procedure from fetch_common.tcl. |
| 254 | proc portfetch::assemble_url {site distfile} { |
| 255 | if {[string index $site end] ne "/"} { |
| 256 | append site / |
| 257 | } |
| 258 | if {[lindex [split ${site} /] 2] eq "crates.io"} { |
| 259 | return "${site}download" |
| 260 | } else { |
| 261 | return "${site}[percent_encode ${distfile}]" |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | foreach {distfile dep ver sha256} ${crate_files} { |
| 266 | set tag_name ${sha256} |
| 267 | master_sites-append https://crates.io/api/v1/crates/${dep}/${ver}/:${tag_name} |
| 268 | distfiles-append ${distfile}:${tag_name} |
| 269 | checksums-append ${distfile} sha256 ${sha256} |
| 270 | } |
| 271 | |
| 272 | if {${subport} eq ${name}} { |
| 273 | depends_build-append \ |
| 274 | port:${name}-stage1 |
| 275 | |
| 276 | if {![variant_isset universal]} { |
| 277 | if {${build_arch} eq "i386"} { |
| 278 | set arch_name i686 |
| 279 | } else { |
| 280 | set arch_name ${build_arch} |
| 281 | } |
| 282 | set rust_platform ${arch_name}-apple-${os.platform} |
| 283 | build.args-append \ |
| 284 | --target=${rust_platform} |
| 285 | destroot.env-append \ |
| 286 | CARGO_BUILD_TARGET=${rust_platform} |
| 287 | } else { |
| 288 | foreach arch ${universal_archs} { |
| 289 | if {${arch} eq "i386"} { |
| 290 | set arch_name i686 |
| 291 | } else { |
| 292 | set arch_name ${build_arch} |
| 293 | } |
| 294 | set rust_platform ${arch_name}-apple-${os.platform} |
| 295 | lappend merger_build_args(${arch}) \ |
| 296 | --target=${rust_platform} |
| 297 | lappend merger_destroot_env(${arch}) \ |
| 298 | CARGO_BUILD_TARGET=${rust_platform} |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | build.cmd ${prefix}/libexec/${name}-stage1/bin/cargo |
| 303 | |
| 304 | # muniversal build requires Makefile |
| 305 | post-extract { |
| 306 | set makefile [open ${worksrcpath}/Makefile-Install "w"] |
| 307 | puts ${makefile} {install:} |
| 308 | |
| 309 | puts ${makefile} "\t/usr/bin/install -m 0755 target/\$(CARGO_BUILD_TARGET)/release/cargo \$(DESTDIR)${prefix}/bin" |
| 310 | |
| 311 | puts ${makefile} "\t/usr/bin/install -m 0644 src/etc/man/* \$(DESTDIR)${prefix}/share/man/man1" |
| 312 | |
| 313 | puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/share/doc/${subport}" |
| 314 | puts ${makefile} "\t/usr/bin/install -m 0644 LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY README.md \$(DESTDIR)${prefix}/share/doc/${subport}" |
| 315 | |
| 316 | puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/etc/bash_completion.d" |
| 317 | puts ${makefile} "\t/usr/bin/install -m 0644 src/etc/cargo.bashcomp.sh \$(DESTDIR)${prefix}/etc/bash_completion.d/${subport}" |
| 318 | |
| 319 | puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/share/zsh/site-functions" |
| 320 | puts ${makefile} "\t/usr/bin/install -m 0644 src/etc/_cargo \$(DESTDIR)${prefix}/share/zsh/site-functions" |
| 321 | |
| 322 | close ${makefile} |
| 323 | } |
| 324 | } else { |
| 325 | # --target does not work correctly |
| 326 | # see the patchfile path-dyld.diff |
| 327 | universal_variant no |
| 328 | |
| 329 | depends_build-append \ |
| 330 | port:${name}-bootstrap |
| 331 | |
| 332 | build.cmd ${prefix}/libexec/${name}-bootstrap/bin/cargo |
| 333 | |
| 334 | post-extract { |
| 335 | set makefile [open ${worksrcpath}/Makefile-Install "w"] |
| 336 | puts ${makefile} {install:} |
| 337 | |
| 338 | puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/libexec/${subport}/bin" |
| 339 | puts ${makefile} "\t/usr/bin/install -m 0755 target/\$(CARGO_BUILD_TARGET)/release/cargo \$(DESTDIR)${prefix}/libexec/${subport}/bin" |
| 340 | |
| 341 | puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/share/doc/${subport}" |
| 342 | puts ${makefile} "\t/usr/bin/install -m 0644 LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY README.md \$(DESTDIR)${prefix}/share/doc/${subport}" |
| 343 | |
| 344 | close ${makefile} |
| 345 | } |
| 346 | } |
| 347 | } else { |
| 348 | master_sites-append https://static.rust-lang.org/dist/:stage0 |