summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2022-07-21 12:16:15 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2022-07-21 14:00:23 -0700
commit5d11c04c1e406b4ad0c382f8eb7b3a8a5d2ef2f8 (patch)
treee1156efc4b1262c643e7d1297ab15b09ccd088cb /dev-lang
parentsys-kernel/gentoo-sources: add 5.15.56 (diff)
downloadgentoo-5d11c04c1e406b4ad0c382f8eb7b3a8a5d2ef2f8.tar.gz
gentoo-5d11c04c1e406b4ad0c382f8eb7b3a8a5d2ef2f8.tar.bz2
gentoo-5d11c04c1e406b4ad0c382f8eb7b3a8a5d2ef2f8.zip
dev-lang/rust-bin: add 1.62.1
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/rust-bin/Manifest33
-rw-r--r--dev-lang/rust-bin/rust-bin-1.62.1.ebuild221
2 files changed, 254 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest
index 24c121d0ffe3..b1e054d1a2da 100644
--- a/dev-lang/rust-bin/Manifest
+++ b/dev-lang/rust-bin/Manifest
@@ -128,7 +128,40 @@ DIST rust-1.62.0-x86_64-unknown-linux-gnu.tar.xz 153662720 BLAKE2B ff19ebb8a0607
DIST rust-1.62.0-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B a1602b9cfbdf1b66c479f13b7171cb445068b5f18eae620435b25c3ab1e762e41977e31f02158d259acf16b0c8cdf895af16d6f68904939333b030f21b6c7a01 SHA512 2d79af9fca5a7e19448aeefd330fcc436c3ecb8e617662f144b12303ef2a214a3ae3ec4d9a42f68a4d0d6e343b81b495deddf3df23031aacfbead0c97b083174
DIST rust-1.62.0-x86_64-unknown-linux-musl.tar.xz 254266584 BLAKE2B f566cdc94726532c50726ccf081eb2b825e52a56c74eb9d9e846f9933dafedef0a8a1b7c485938f96ae9945706192218cc318750738596923329bc23ef770ce1 SHA512 9cd01f0539db8cd344e9dd39fc5ffcd5b65c9c8c95ed692b9f7c23bc19c970c9f0056f8c8bb61813f1402143177a5b1c20bf844e64af8cf0be110e17e30aa4af
DIST rust-1.62.0-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 46f38806b5a6b67953c607d4a3074a9177e14245e746771d876530c398ea98019e534a22a099c087ea2386124cc952f0a488e45f8175922b19b42441d6607938 SHA512 bc30af1e75cbfc8b488782af26d91ccee6e3b3220913af8d2ca3fc6beb5790bd81e3348f8da5c0c542bd13ab6c4cee77f50f4ba0d48e9600620034acc2dafe15
+DIST rust-1.62.1-aarch64-unknown-linux-gnu.tar.xz 228482224 BLAKE2B be3f4de75ca6b7fde932d081c5f20af6c142714946485489ff057139483fe86269e906e51731cf7dd672a307c1819d83c87099a088217603ceaa6d8a2080cdde SHA512 b82e2351c0f7c6112b02e6149536f9dca4a7ece99022f2f80666c9d9947325cd1b0ca3da5efe299c2d4b7e6b518366b986f1a1d946fcd574a73f1e5be5d860b2
+DIST rust-1.62.1-aarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B f96c931e69d060b83b0b714bd640163d10036002ce7b586016be9b535c0156ebf6b0126c51b988fcea621ce5f496bf05bd1f5b3a3084c0a374cd83bd37460169 SHA512 fcce8f187f5f23434ec3acade0c0a1b5fdd382300b496641b16f2ca92778ce1a690b924a73bd206736c7749f208d9cc708b1d68d394f0785316cc375c927cec1
+DIST rust-1.62.1-aarch64-unknown-linux-musl.tar.xz 222963104 BLAKE2B 517d6df8c9146782f519d3acb4da8737f3ceafc4f101d791417de0bf24424ec96922400802f5c1c58174021b1f796f1594d5976a262b267a8fce03531c2d01cd SHA512 628707e8b7db7d7da587f6d3c92c5da0686c6f2127d5a51ba8aaf745e928b9c1bf461d135a81848838edaf16e424e454fc4d22d6e79fadc2d64cedfc15594e44
+DIST rust-1.62.1-aarch64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 5acc71fa738de92a6b826ebcf62c8a402b43c614b74db2495646e42ffa9a34e18d07d7c1896b5e7cdb9b96b76add8c27f04be6875f2271416cf0f4fae7fdf9cc SHA512 2a6f0f26897e5e20490f85dd5fb289163e0ed1e46b671bec38e5166cd8c1fd902e28653fe3605ea3ea77cd38f7ec145719e75e34563f21ee659980ee9559dffa
+DIST rust-1.62.1-arm-unknown-linux-gnueabi.tar.xz 203935888 BLAKE2B 7b27b4873704c323950c64181268282d268c4fd93cd58eef911a13a27c736a3db5d0451fe11c27e87515743efc9b7ddce73906216879c8ddc02389616ac6bdcb SHA512 643e17bde1375ce177acf8e72665de91fca379c572d91154e4dfd1956d65f098d95f9a01e98d533f7a14cf9596530fc128b168c3a724f09b1cfdc03f1eca4091
+DIST rust-1.62.1-arm-unknown-linux-gnueabi.tar.xz.asc 801 BLAKE2B 5c5364df7ee72cb797f21659d51106989dacda0ef504cf2ea1beeee4450819a34d319689c74087b5dd39db7b771ae7d0d4c4d720c10e76097f54476bac62562e SHA512 da9413551fcabe068f373bca24d6329b5fc2a3c18f0da6c8f5cc0376f427a4a913b2db589b8654c2e52c0893213e3a0a0be6f0d6820da318cdc8caef3b7d4fc8
+DIST rust-1.62.1-arm-unknown-linux-gnueabihf.tar.xz 203606576 BLAKE2B 901fc2d25c4e19b07935fed94675c1c81cebd95904bfab4f3319e4c50d1035de4b6533a3e225841212174d57b00d3f123c55a6c6c29f44d642fb308d9249ddf7 SHA512 fef6625ddc25bb009ebe8c83701be27815d5d48943d2f8c42d174f9ec4d1d7b559d998225d9064dcbacf7dea5fb55023f3c88ac942abe887a8f56dc69bed4197
+DIST rust-1.62.1-arm-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 05e207a56039aa371de60c8b1a2b0c507893c30a785716feb7787df5916747d63f66a62d7c9a4a12f1d46e4870ec1ac8a01de04f686e0d7f424db90989b5b9fe SHA512 184ddc6e9812ee474b3a25e52131ba450f53e53a45c3645f7696b08f7a2c24402b3435d480251624d6bf523c1f7d7be2d688b7eadff6cc584cac2500f695bd0e
+DIST rust-1.62.1-armv7-unknown-linux-gnueabihf.tar.xz 210184308 BLAKE2B ff0770cc50fc50d38fb8e23ba78ba32a38893ddda295f196517e1b63c848c04f0f2e8b86f0a3bc3c458d28acf2276653b846d56252482825fd04eccd86aef4fa SHA512 5b965bd6e1ecb72acbc648d50416f38e03a01f80caefe315d841daa97812efde66d7c13c0eaa5ffa5c6f0c10df70efd20a02f9e6cd63c70cb4dc1e60ff4cf8e9
+DIST rust-1.62.1-armv7-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B fa1f6da831c368e37687370086a094accebfb8d6277836112edb5a836c0e96377d2af5b58fd58b2a0324f367271a906f0fac281bfcd1c7aa0751fd71e685d51f SHA512 8071e8da299967607b4bf7bc6327a17598b8bcc68c31cf70e90d8cd731757145193115e0b94c3eea1e28691c4e7b3409d3f4f8de6a0a1baeecd4bbab7e110d84
+DIST rust-1.62.1-i686-unknown-linux-gnu.tar.xz 223686456 BLAKE2B f01d3e84f3a15adf195f502bdef126a8255849d1fd2cbe701005af145b9ce2045c3b2d7c3f8ac463ebdabd7aa776c33b6c5e2ef48fe93fefb0f53e238e072eda SHA512 166477731e36d5c50ba0b2a9ad6acca1b72e3e72025ad5c9bac38059499925a5122c500cb01603d251fe6cd1f6c9ab9f5a6417bbc322a05faabddea9d6d7f5da
+DIST rust-1.62.1-i686-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 495933a609df1f593410a8eb20626e847d755643649d8b06c69c2942a11bee32f47333dfa6a0da7a0a0c2e527737ffda35b4e0071bb39f67d6c8cbb723d283a6 SHA512 c66d74ff9abb71705bbbeb6834585acc91c3c88eeb23f31f69a7a5442b8e5b87cb02077818320669cec20ed6d64d74f76e31c05c470af4e90c1b07415acb0f91
+DIST rust-1.62.1-mips-unknown-linux-gnu.tar.xz 161641252 BLAKE2B 20664aa642b7ea17a43999ff375f689c48dd99d38124420e453d5f5829157eb9774fc562c69657a63b1b27e77fcb28ecc95c7c33c98b24e1bb9dcbb1f486a106 SHA512 43c0a59158025b5ba3f65b524a1de91d32bd4ee1169d40436921353fede4ef9e0be96538493be04fae4770499396efd2e1a500b358bddc3364017fe77f927482
+DIST rust-1.62.1-mips-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 1e120d3d4eb4c31f730893046a021c6cef74e7b9878a746253cb87ef81921751202425a4a3016dd960a823ff6997f8b0f8a7521c0e79fd95a9c952dda8ceff97 SHA512 e9e37ce8365a324a53548cc78f8db63a8514a7766cb96f6d58902f8fc92932e67eb310ad041265b58474d20cbef2b4016bc83438de0062314088d22f1269ae4c
+DIST rust-1.62.1-mips64-unknown-linux-gnuabi64.tar.xz 166162368 BLAKE2B ca10b3a15cfb49f7fecee0c218bf813d073fdd624b0f7961708f840c14fa5030e80bb128e984301e5d1fb0e4b5838df81543016172733f0a909ee7278534090d SHA512 89e1a869960c230aeee03127146745a15bd346de9b9b4355d6c3a78e1d3df80fae814fbdf356803e8d6d38f130defb5f137ad5fd319f91e31a35e2b1cc18d90c
+DIST rust-1.62.1-mips64-unknown-linux-gnuabi64.tar.xz.asc 801 BLAKE2B ced319da4dacf17f7fba07729c235c56d5f199e6d9626ad6c1245ec0fd20eae4823edb5a7dd7e687f074ddf5dff7c255b870efa0f2bd9d6feb36616dbd278fea SHA512 046dd903ba11e8794cf11be756abafe35778223e0477447a1e2771876d9c273c959d5af8efbc255cffd8d98bbc8cc28b3d1eae664ea839db5d05e9dc0e7d55bf
+DIST rust-1.62.1-mipsel-unknown-linux-gnu.tar.xz 165215232 BLAKE2B 01a4a6542015b22bada671cfe46cc613b26742277e36b12b1961581c9cd00fbbc36ef1c05a1d4972ae00a27a6133a322e520317f2a6af5c23fca78dcab7f1508 SHA512 4e8ca5dc16b38ca3ce27c212c93be364d28398c8cbed2f584926d2b2d9dd4ef3659de9b8f737e833d4e8999bb360e6ea930d7756d928a8f99d42f995d2fce6fb
+DIST rust-1.62.1-mipsel-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B ee127fea0315d6c941b4ee3e6319ab1b5416011f0dafedef5c6b773d9ed1ab56d877eeeee8c7ed37271da33a82e9d094621c78907af8f9e0eba059d9c2cc84b7 SHA512 08e9242acac0c0e53700f2b652dceb88096e9cb3931b1bde0167858bbaa7ebd62966c5d972217eb92b639f35cfbdd6e8b82dba442a9793ab9e16ce6022e89cb7
+DIST rust-1.62.1-powerpc-unknown-linux-gnu.tar.xz 184005492 BLAKE2B 97c63c433f7e20e69ef09dbe93b59c8d5d6d2f7df9ff48f92b603eba0a780738f962a77beb06b984b7f18320c29740c43c2c880cf81e5388e6a4024181b4b31c SHA512 a561c9f446a3b1bd18dd991fb0b0635876b28ced3352f4ab10fcfb70577a9b09fe84cf903dafbe436de447c560390a4ef095a7ce90ab2a0f8124d5dc80a64358
+DIST rust-1.62.1-powerpc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 6e20648572ba98eafb26d3d73fe7fde0d9c8751639186ca6e05cc74950c64aad040baffda0d7ac3ea0b698522ad0da1cd26dab00ccdb6fd9ff0c2bfb27aa08cb SHA512 7a20d5835cee113a244e4be5b6b7f18823258f5790c6027105a04cb5a5475bc21bf5cff57c9b13c876137c551392a8e76c525e73e31a9f22ccd1df2eca711a6a
+DIST rust-1.62.1-powerpc64-unknown-linux-gnu.tar.xz 191419260 BLAKE2B 2468ee54add41a8e2d92634486c6893797e75e8bd3603e788d1a5e698b5563c96b248f93603e410f1a7f7c638e8f93d990e6a3ea442c22c7bdf356f6e120367b SHA512 6c5e76948ed947bdaeded6015bd5ab817fb03f5d0ce090519931a31dd531084f191902e0ba5dbf1019ced0a3ff3d67f62b386af277056c6c3116f491c9ce2cb2
+DIST rust-1.62.1-powerpc64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 09dfea745c75ac5f5f7a3ef25acdb16190597504071cbc3335a9dae7afdd1b038f4bdbd65e03d20109f9c68e14492010ae93ab328e3e37031e60e81e447f1889 SHA512 374fd299a36437961d0f81c75bb6a589ad70273208b6bea46770f42020d22ef81d0ac635cb92a5027cb60be5c5eb1fb21256799f1aa911266c7e6cccc888dc00
+DIST rust-1.62.1-powerpc64le-unknown-linux-gnu.tar.xz 201453108 BLAKE2B 843d5f6b8c6324442b91e9d1af8d11bcbe99e45908c4bac8de2527c1e291ecf97de6eb75cc6718d86df389ae3b54440c0180e7367d659143293b5354d16d5c6f SHA512 a6090b576a2bd5e4cd3e32c067470b1839314c07d5926959895351e3efcbb74aa4fc1df72aedd1b3244f35e9c30f302bdc32f8bd7d6f707c88c27b94d5468ac6
+DIST rust-1.62.1-powerpc64le-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 3318a82642259f4c3d6103d5c9ba2d34c4949c95ef22356591cf4e1642fc5b5685503456927f9f7f18cc6572486cb049dee29e28ac4a52ace153ba8ddea7c7b4 SHA512 8e3c8d7dc3c2dc62ea2e90bc9fb1ce49ff7af05a6d4f8cc316dd20e3d0bf5fe2f3563f34e27ca20060e30a50dd59ab8b21b0c2c564a2571454c4d29a6ee7d294
+DIST rust-1.62.1-riscv64gc-unknown-linux-gnu.tar.xz 195470972 BLAKE2B 2aceecfdf299304394c43aba23167f55493b2ae3359c06b891ab537f62ba660ea9896178ce44140844b9a64a57c4d44775768e7319277fefee10583652b598bc SHA512 462ec8f06399387781b1e9e55981a4874ddf82614c977b68ed45a098b3788c49f473c67be0653a0251d4791830bef6b615cf1041ccac0731a5a0d25c8d620181
+DIST rust-1.62.1-riscv64gc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 86af3cf9f48252c0e0e89c3670c2ddedfbbb00f0ea02ecd8db0bced8cd5fb5024b2fe91e416a0a16a1f1ca52e04e0a1ddbca4710f81a3039166fae0abb591e41 SHA512 092a2df12dfa22adceb9989035119b065592b9240362a0a2ab9caaf859ecdccce3452fb1bb4ad7beaebb2777fefd65429c5fc1f6f865453db33fca284540e491
+DIST rust-1.62.1-s390x-unknown-linux-gnu.tar.xz 219184192 BLAKE2B b65c52a8507b69c20d3012555d01464490d9f878326b52b39b39b7325f7f1a2eac4748aeb76a7069c456eef237215656e216beeed902cff28e01e57832141036 SHA512 2c0ffd123dc9a613d6af6215edc87264f912da0650a02fd83c962685661f917543142b8eee62134e60f7544c5ac59a414eb16823aa290973838e014094ce26c8
+DIST rust-1.62.1-s390x-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B a16b2dbfc30b255a429426ba802c5137398cb1ad52cd80917fd6ff215a0457faa926903e59aedd9af274632c69569a29b596a854717f56f970d54ef75c62c79e SHA512 3b65295a6fb4c6b4f6cfaa1594cc856c881d59321012207e9db1751628bcc347be776d48f42efe30ac538ff1c17fef2cbcd2a614bf6a5bf18f925d2164a2a84d
+DIST rust-1.62.1-x86_64-unknown-linux-gnu.tar.xz 154112528 BLAKE2B 8843b7837f380db98d4f545401d402bdd8b76aa1bab7a401c173551e97ec327bd075d69006e3da0ef577cdf798e0af4a9dbcced4462667c216923627eb9f458b SHA512 2180d819731803f789097ee274202cc0964e3242effbdec41bafa3d67cdbe866e584cf0956380e99cda269b7c2a51beb672f328ba4427b37f16f9733541c2330
+DIST rust-1.62.1-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 51d37c6313aee4cc1a972df80e3e2b373b78198e88905f63bc81417eb1275872df6a689ad61250fd2fdae667e8c6bb2a2ff0d6b67056d11a58db516e5597dac9 SHA512 e7f1ef525306380114bb7e2dc4ef80e29e3f0bea2f4dfddda4da8681553eeda28cc7938c9dbbb08ab2446fff498c73878ceef1c26b93d5995fc7d5eb86c93599
+DIST rust-1.62.1-x86_64-unknown-linux-musl.tar.xz 254113564 BLAKE2B 0f16d4054bd869d3226517349f6b1d7e6722c6c4c208b2c6cef540fefec5afb3763d821be8f436c17fdba4e35c7f2a3c7d70d7584af546b5fbd7b7e769245d1f SHA512 af99627a2e50fbb066747041fbe64c05cdf277beaade48ab3e43f8c0d78e146b6f0c729d76517d83b5be76b33c1051637d51cbaeacb65139f37244511693a7a3
+DIST rust-1.62.1-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B f810303e14116ec3968d621baab776ecfcd42b4c214affd761a9f68c0062a5cd0db16a26ed499c9981b63ec12b56b580ee2335ae69a2fb8c7e1eadf0b9bd09d4 SHA512 9bde24b4db99b956f22aa9919ee962052c93e67ec03ff9f2da5651a044405369f49345796f04f08f77f2d574c0c297e9cd9bfd320ab20ec6240c8b404d2d0b8b
DIST rust-src-1.59.0.tar.xz 2861676 BLAKE2B 83c7c9f222cdc5de787243154aec1b62914badbd65c8defd7c0e48dad9018806d7befb0e419204c5a782d83e386609071c11a6e445df80ab593917b58f7712e5 SHA512 006cb2b29e0db69f4f241a6b44b1491f840503d953919722da5924eba4fbc13d09f8f20d35614e4069bc745facecfb20ef771ddc95560c94b5745b66047c5a0e
DIST rust-src-1.60.0.tar.xz 2898184 BLAKE2B 5810f14110398bc41342ec620a77da34c805b8c2bfb6c45c869c8d41a464b83825936a596f286c9c3f69a7453afd2542eb2971b768c923afdd24444a62359061 SHA512 42a45093bdcfe6ca5fde7701cd17e15438c8f064ac87c5606527b2196258a9285dbd195137ad41c43d77afade34e30061ad36ce58db783fa61037ec146f0e501
DIST rust-src-1.61.0.tar.xz 2353184 BLAKE2B 6f5671173b89eddc4e1a36e58e5937b832ab6952c2601b16427c614c5e7bc7ab60b28d54f33e9c2578ce2d5b3db641097ddbf912ba0145c4f77a1d14115ed703 SHA512 8eb1462896cfd0c731de4f4be6fe68127bb4faa443c53289a34b92ff7778ee8711281cfe29b2c1367c0b3fdb9f6b7dba21dfbd40b968aebaaa51eb219357b4a3
DIST rust-src-1.62.0.tar.xz 2380276 BLAKE2B a7425a18fa52157f4a594e4ba804034c7fa9e6fae33ccfa3c4c2125386cfadf0ea1673bd1c41f8d2f712b06ea45f8dd2ca748d45e009dfd06101a05228a27440 SHA512 4795c7d25c28ce875b418e836c004152d9094cd637ef808900dd1afd3f96dbc4435a6a4e042bdf9843271a2195b961f484a21299bc2f60f3f5f1cc3b676c39bf
+DIST rust-src-1.62.1.tar.xz 2381560 BLAKE2B 61bccb515428605ad9f1b4905e04b9e33034379038d8173a95aeb37cce0f3a38d8c5ffe47ddc515a772373f1d864c53421cee931569d8a31feed402095d35129 SHA512 bb566f5457ce949bf5b13a69892e0d4bef7e307d4e5840c1811a243bb35621c60a1d4eac558f3a0e4a76a7a90e4463bec1703758984965eaecb67cf245172b06
diff --git a/dev-lang/rust-bin/rust-bin-1.62.1.ebuild b/dev-lang/rust-bin/rust-bin-1.62.1.ebuild
new file mode 100644
index 000000000000..d5d390ceabb2
--- /dev/null
+++ b/dev-lang/rust-bin/rust-bin-1.62.1.ebuild
@@ -0,0 +1,221 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib prefix rust-toolchain toolchain-funcs verify-sig multilib-minimal
+
+MY_P="rust-${PV}"
+# curl -L static.rust-lang.org/dist/channel-rust-${PV}.toml 2>/dev/null | grep "xz_url.*rust-src"
+MY_SRC_URI="${RUST_TOOLCHAIN_BASEURL%/}/2022-07-19/rust-src-${PV}.tar.xz"
+GENTOO_BIN_BASEURI="https://dev.gentoo.org/~gyakovlev/distfiles/${CATEGORY}/${PN}" # omit leading slash
+
+DESCRIPTION="Systems programming language from Mozilla"
+HOMEPAGE="https://www.rust-lang.org/"
+SRC_URI="$(rust_all_arch_uris ${MY_P})
+ rust-src? ( ${MY_SRC_URI} )
+"
+# sparc? ( ${GENTOO_BIN_BASEURI}/${MY_P}-sparc64-unknown-linux-gnu.tar.xz )
+
+LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
+SLOT="stable"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~x86"
+IUSE="clippy cpu_flags_x86_sse2 doc prefix rls rust-src rustfmt"
+
+DEPEND=""
+
+RDEPEND="
+ >=app-eselect/eselect-rust-20190311
+ sys-apps/lsb-release
+"
+
+BDEPEND="
+ prefix? ( dev-util/patchelf )
+ verify-sig? ( sec-keys/openpgp-keys-rust )
+"
+
+REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )"
+
+QA_PREBUILT="
+ opt/${P}/bin/.*
+ opt/${P}/lib/.*.so
+ opt/${P}/libexec/.*
+ opt/${P}/lib/rustlib/.*/bin/.*
+ opt/${P}/lib/rustlib/.*/lib/.*
+"
+
+# An rmeta file is custom binary format that contains the metadata for the crate.
+# rmeta files do not support linking, since they do not contain compiled object files.
+# so we can safely silence the warning for this QA check.
+QA_EXECSTACK="opt/${P}/lib/rustlib/*/lib*.rlib:lib.rmeta"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/rust.asc"
+
+pkg_pretend() {
+ if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
+ die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
+ fi
+}
+
+src_unpack() {
+ # sadly rust-src tarball does not have corresponding .asc file
+ # so do partial verification
+ if use verify-sig; then
+ for f in ${A}; do
+ if [[ -f ${DISTDIR}/${f}.asc ]]; then
+ verify-sig_verify_detached "${DISTDIR}/${f}" "${DISTDIR}/${f}.asc"
+ fi
+ done
+ fi
+
+ default_src_unpack
+
+ mv "${WORKDIR}/${MY_P}-$(rust_abi)" "${S}" || die
+}
+
+patchelf_for_bin() {
+ local filetype=$(file -b ${1})
+ if [[ ${filetype} == *ELF*interpreter* ]]; then
+ einfo "${1}'s interpreter changed"
+ patchelf ${1} --set-interpreter ${2} || die
+ elif [[ ${filetype} == *script* ]]; then
+ hprefixify ${1}
+ fi
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi; then
+
+ # start native abi install
+ pushd "${S}" >/dev/null || die
+ local analysis std
+ analysis="$(grep 'analysis' ./components)"
+ std="$(grep 'std' ./components)"
+ local components="rustc,cargo,${std}"
+ use doc && components="${components},rust-docs"
+ use clippy && components="${components},clippy-preview"
+ use rls && components="${components},rls-preview,${analysis}"
+ use rustfmt && components="${components},rustfmt-preview"
+ # Rust component 'rust-src' is extracted from separate archive
+ if use rust-src; then
+ einfo "Combining rust and rust-src installers"
+ mv -v "${WORKDIR}/rust-src-${PV}/rust-src" "${S}" || die
+ echo rust-src >> ./components || die
+ components="${components},rust-src"
+ fi
+ ./install.sh \
+ --components="${components}" \
+ --disable-verify \
+ --prefix="${ED}/opt/${P}" \
+ --mandir="${ED}/opt/${P}/man" \
+ --disable-ldconfig \
+ || die
+
+ if use prefix; then
+ local interpreter=$(patchelf --print-interpreter ${EPREFIX}/bin/bash)
+ ebegin "Changing interpreter to ${interpreter} for Gentoo prefix at ${ED}/opt/${P}/bin"
+ find "${ED}/opt/${P}/bin" -type f -print0 | \
+ while IFS= read -r -d '' filename; do
+ patchelf_for_bin ${filename} ${interpreter} \; || die
+ done
+ eend $?
+ fi
+
+ local symlinks=(
+ cargo
+ rustc
+ rustdoc
+ rust-gdb
+ rust-gdbgui
+ rust-lldb
+ )
+
+ use clippy && symlinks+=( clippy-driver cargo-clippy )
+ use rls && symlinks+=( rls )
+ use rustfmt && symlinks+=( rustfmt cargo-fmt )
+
+ einfo "installing eselect-rust symlinks and paths"
+ local i
+ for i in "${symlinks[@]}"; do
+ # we need realpath on /usr/bin/* symlink return version-appended binary path.
+ # so /usr/bin/rustc should point to /opt/rust-bin-<ver>/bin/rustc-<ver>
+ local ver_i="${i}-bin-${PV}"
+ ln -v "${ED}/opt/${P}/bin/${i}" "${ED}/opt/${P}/bin/${ver_i}"
+ dosym "../../opt/${P}/bin/${ver_i}" "/usr/bin/${ver_i}"
+ done
+
+ # symlinks to switch components to active rust in eselect
+ dosym "../../../opt/${P}/lib" "/usr/lib/rust/lib-bin-${PV}"
+ dosym "../../../opt/${P}/man" "/usr/lib/rust/man-bin-${PV}"
+ dosym "../../opt/${P}/lib/rustlib" "/usr/lib/rustlib-bin-${PV}"
+ dosym "../../../opt/${P}/share/doc/rust" "/usr/share/doc/${P}"
+
+ # musl logic can be improved a bit, but fine as is for now
+ cat <<-_EOF_ > "${T}/50${P}"
+ LDPATH="${EPREFIX}/usr/lib/rust/lib"
+ MANPATH="${EPREFIX}/usr/lib/rust/man"
+ $(use amd64 && usex elibc_musl 'CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static"' '')
+ $(use arm64 && usex elibc_musl 'CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static"' '')
+ _EOF_
+ doenvd "${T}/50${P}"
+
+ # note: eselect-rust adds EROOT to all paths below
+ cat <<-_EOF_ > "${T}/provider-${P}"
+ /usr/bin/cargo
+ /usr/bin/rustdoc
+ /usr/bin/rust-gdb
+ /usr/bin/rust-gdbgui
+ /usr/bin/rust-lldb
+ /usr/lib/rustlib
+ /usr/lib/rust/lib
+ /usr/lib/rust/man
+ /usr/share/doc/rust
+ _EOF_
+
+ if use clippy; then
+ echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
+ echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
+ fi
+ if use rls; then
+ echo /usr/bin/rls >> "${T}/provider-${P}"
+ fi
+ if use rustfmt; then
+ echo /usr/bin/rustfmt >> "${T}/provider-${P}"
+ echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
+ fi
+
+ insinto /etc/env.d/rust
+ doins "${T}/provider-${P}"
+ popd >/dev/null || die
+ #end native abi install
+
+ else
+ local rust_target
+ rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
+ dodir "/opt/${P}/lib/rustlib"
+ cp -vr "${WORKDIR}/rust-${PV}-${rust_target}/rust-std-${rust_target}/lib/rustlib/${rust_target}"\
+ "${ED}/opt/${P}/lib/rustlib" || die
+ fi
+
+ # BUG: installs x86_64 binary on other arches
+ rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die
+}
+
+pkg_postinst() {
+ eselect rust update
+
+ elog "Rust installs a helper script for calling GDB now,"
+ elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}."
+
+ if has_version app-editors/emacs; then
+ elog "install app-emacs/rust-mode to get emacs support for rust."
+ fi
+
+ if has_version app-editors/gvim || has_version app-editors/vim; then
+ elog "install app-vim/rust-vim to get vim support for rust."
+ fi
+}
+
+pkg_postrm() {
+ eselect rust cleanup
+}