summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2016-06-28 10:54:56 -0500
committerDoug Goldstein <cardoe@gentoo.org>2016-06-29 16:59:11 -0500
commit4ca5a10de4c0581c8dea28f8a82289057818a340 (patch)
tree806e009384964fee4405e8db9ba3762e5e4779bf /dev-util/cargo
parenteclass: initial cargo support eclass (diff)
downloadgentoo-4ca5a10de4c0581c8dea28f8a82289057818a340.tar.gz
gentoo-4ca5a10de4c0581c8dea28f8a82289057818a340.tar.bz2
gentoo-4ca5a10de4c0581c8dea28f8a82289057818a340.zip
dev-util/cargo: initial version
Add an initial version of the Rust package manager, Cargo. Package-Manager: portage-2.2.28 Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
Diffstat (limited to 'dev-util/cargo')
-rw-r--r--dev-util/cargo/Manifest57
-rw-r--r--dev-util/cargo/cargo-0.10.0.ebuild166
-rw-r--r--dev-util/cargo/files/0001-build-strip-CFG_PREFIX-from-CFG_-DATADIR-MANDIR-INFO.patch39
-rw-r--r--dev-util/cargo/files/0002-build-write-updated-variables-to-config.mk.patch43
-rw-r--r--dev-util/cargo/files/0003-build-respect-datadir-infodir-mandir-libdir-and-sysc.patch51
-rw-r--r--dev-util/cargo/files/0004-build-add-docdir-to-configure.patch75
-rw-r--r--dev-util/cargo/metadata.xml8
7 files changed, 439 insertions, 0 deletions
diff --git a/dev-util/cargo/Manifest b/dev-util/cargo/Manifest
new file mode 100644
index 00000000000..c31fd3407d0
--- /dev/null
+++ b/dev-util/cargo/Manifest
@@ -0,0 +1,57 @@
+DIST advapi32-sys-0.1.2.crate 7052 SHA256 307c92332867e586720c0222ee9d890bbe8431711efed8a1b06bc5b40fc66bd7 SHA512 98a1d2cb6cbd8a3ea53abefd97a991d4e5788d32127017c680c78b414d59f70bba179df1cc21d6fbd08fa9c951eb267d6e3f078b52baf530bef4e22c8ddc9c26 WHIRLPOOL 67067b898bed51d2bbb06f43a525b293dfaf5b98be615391fa2a381fb838165fa8e22570a0212a91a026657aada820e7cde0e4446e88bd66705060b13a349ff9
+DIST aho-corasick-0.5.1.crate 29015 SHA256 67077478f0a03952bed2e6786338d400d40c25e9836e08ad50af96607317fd03 SHA512 81dbcf720613671880c5f28066a1368ee7e953c5d9f44253dc1f9c31b601e87bac518baa48cfaa34b905a4f687ec30233c1dcb00da093dbe502ce8a2f96b9619 WHIRLPOOL 33ddea81b7768c02a14d4a461b0f8e0175567ffbf70dc0aa849bbd46830df0607212c2c5d51efa1b3902ad156b20f22c14fa07be2d03b848a202b66579639d54
+DIST bitflags-0.1.1.crate 8719 SHA256 2a6577517ecd0ee0934f48a7295a89aaef3e6dfafeac404f94c0b3448518ddfe SHA512 aa85c6adda0e9d192f2ae817e3c727167bac8609eb85c8153d99bb42d990de3f931e890924841ca11ba8dbd1413d1c5bf20acd584d182292e8828ed56fcedc18 WHIRLPOOL c93a45bb238b32e551dee23f9023db97eab10c2418a59dd9e3c44ca8cf7c8916de90ffbb5e84b7bff4863ce7a71de54e9fa760967989be906a90bec509a2956a
+DIST bufstream-0.1.1.crate 7437 SHA256 7e493de6a8aed51697088e36dc5245ea3edd34e6872e32c732e5f996ed5b23b2 SHA512 e1d378a5dd9d6b096f9b8d9de018c17652615ff373d1644b0978b74325f22fba2157ce0aa9fba423e1f452119af1485a72c2e44f7b3b8c5350dfd3f8f2e93436 WHIRLPOOL de26e042bbb6323946d8570c682fa9ea08292508910ca7c928206935d6c1f6c888d3cb04bf285f1404b59c109cf813cc79ecbc64a6d16dfabf72412aabfc6be9
+DIST cargo-0.10.0.tar.gz 553862 SHA256 1e73c038681fe308195427b71322a6350c65d3b8cbea199e45c7b672b4754e0e SHA512 5fd4b517f251299bb19ba49392d544d92a96eb7ffb30ee59ccfcf7debe87d619042966d2b6198e250a0d96c8bb8e9a68f2b23361312b825d633617486f0d9540 WHIRLPOOL 5b06cbce387953892f155f7cba71eb24d0bd2e12d0492e0a92daae5922c8e92503276585225c981c64c26399f546bcb932917f62351207fcac06a8ce89b2ab67
+DIST cargo-registry-13b4aa0e3062a3938ed958adccd49e62614f509b.tar.gz 1936818 SHA256 7b76689604ad8c0fc1978dd7c9cb5d01e7ab5e97d673b4595280db786b9b8014 SHA512 87d0d60eccd924769057f5ef6bb013409cfdb9d4c658e10a18caf3954f74b2bf725170d9cded36ece6c3cf4385a8b8c05e72f1882ece3579d4fb3bdda77b5348 WHIRLPOOL 2f0a7b1789ad2916d822e1ae9ef0b8bb7dbf8d73d82b3b90f68ea85b28a607e71ad3faa41d7100b56a438a33e91f2fe18921e793556e988adbd870047acc8204
+DIST cargo-snapshot-amd64-2016-03-21.tar.gz 4163903 SHA256 55ad9a8929303b4e06c18d0dd30b0d6296da784606d9c55cce98d5d7fc39a0b2 SHA512 475087ff1905fc42bd875488696d8f67fc68f9fb3e48ef9f25bbd6d8f949aa9a3984f61a8bd1741ce8c98e33c6910e020ea7fd5cb67cf2b7fc1703947561ae0e WHIRLPOOL ddda8983c38f238237fbb78fd8242e08df44c31bd0c29d2e75b53dcb0ecc601660f4c765b00e066781da6feb9ccccf8df494b99228b126f3cdd89d028253c2c5
+DIST cargo-snapshot-x86-2016-03-21.tar.gz 3889095 SHA256 b2a1c4c33fb9274771c8d830cd8ac07f7ae96af341fa30399d6929ffd6c8b425 SHA512 3c6d6a9c6ee2a93abec5c9c3d79f86a623db6429e192d028729279c07d5769548d6f716afbd8e984ab2f6449f75cd24efb32b87f97b6b90c0e7b3b25779e8624 WHIRLPOOL 8bafd298e6cf54d22c420859c105be98047b556802494d2ccf9b13b06837f85902cf61fd1846dcff3e527d0ce0ee188723f44f4cb598cc34e0fedb6c2f2b3d41
+DIST cmake-0.1.16.crate 10125 SHA256 eb61a8d3b65f8e0af52ac579923ec48bdd5ca4e335c0fde4071e5860eb650532 SHA512 80f8f33fc66402b1a5a31f993349d9c6a6237ebe461e1aa24064eb31328e7f5901303b5753d1f62ece0881de9f7c1c42077488ce682a3889a8a74642a8b84f84 WHIRLPOOL 5a02bbda79faa44f3e3696f490e146fabf1a3a06a5563ea53040fa949086c5469afb82b8cb49cc52c360f7c2a31587f30039a49717574189a0062e575658502f
+DIST crossbeam-0.2.8.crate 31266 SHA256 348228ce9f93d20ffc30c18e575f82fa41b9c8bf064806c65d41eba4771595a0 SHA512 5dfb05b1213993d9577190952ed854b397774f1f33704a418a5b2525e2d2c4c872c50858dbb5d7ff3ecabda91091adf99684e4ec21ea865a744307e764fd6e73 WHIRLPOOL e330dd241631ec9cbaf35e830d287cb398785f084cdfe067fea6f1675bbaa7ab6e69603fb32def59c72269920a951bc9a53b432007fc16f6ab8def3dfe203222
+DIST curl-0.2.18.crate 19455 SHA256 2a48b72c66a1b8fc6767fe4f3cda7d6b9bdfab8f3f168344b830eddbbe8e2da0 SHA512 077b937a95e08af81f857a9604e77afc7f06caebed854d3a8bf36d0fb90a4cec3d1ca728d616b3ef9b534582e913ae070ad10b1f3e898eb88b9d733da3feb3c7 WHIRLPOOL eb1647f7ae146b3ae7d695e58f2f0e66b46d0c629294a4b4884ecf0b6dcfe624c3a9363c5ec7dc63f174fc27ce1cead5ca2f175d64cfb749687ee8b11bfbd25f
+DIST curl-sys-0.1.34.crate 3374363 SHA256 93196668f75a947d849e1f2db9277223884ece3af169cbff3d36ceeeaf7736b0 SHA512 52946a51da827c514ee9aa2091c14a096734649e33721d5036b66435ae07771ed77861c1779f0b45c6640f216034ca3bd3ebd2ee846b60c7cb7667417eca3478 WHIRLPOOL 7011ff3081fef6716a0d511a6b84245c72f43966366f65aa54f1283e95bd2d4c63d184aae0f8e114b09962c2c8d880992865ce7db266f7d46a2800851d609bd6
+DIST docopt-0.6.78.crate 40287 SHA256 55792ca5bb933e55a3e17888838883f854b029945310c9a0ea4f65ebda366155 SHA512 16e0c972a90a9f5efc8cfc0eaaa48cb8a4ef4c95f4b484b536933453f542097c18e02ab046a7f567bc610f425e9c5fb95f26fb2b3cf8cd2af44e88a0158f5601 WHIRLPOOL 693bee9f338645831d007a20eaa79bd554cad07711b717e734d0de58fc6eab9ee13b4b62b6116a864faded4eec5e2c530699ae36063ab5d9bf2a3e00db812acd
+DIST env_logger-0.3.2.crate 5144 SHA256 b6bbe7c0b619c81b9a1fd122ab3c7ef19a7b27cdba3c8486314b6f275ca211a4 SHA512 ad6c4da0f2bcf12fa770419bf21d8fb91654bf4527e9c13904f738a4b56e1a07a56ee5068e83939e15eef4354a0fa8981a7aba70ca3e6f1c3fa2658e2fa29630 WHIRLPOOL 09bad00e5b37e9a1260cc602d26b138566589b6e0efbb2abea312832bacd2825d942c2587158f6c365da8c6a78864acbb4b398ccf0cf922bd5669d5af6867c8b
+DIST filetime-0.1.10.crate 8884 SHA256 5363ab8e4139b8568a6237db5248646e5a8a2f89bd5ccb02092182b11fd3e922 SHA512 19245d71f60f144828adb6f9336adc5371e559decc8740338122327d28b7c548d011d9e6454b12475f0eb2db7dacdb1e2bfbef01311f59e8338f44d27c3345eb WHIRLPOOL 2af8d65033a9cef609d6688a32953c8ec9ac591ed6c357b62f86a028124d1a0c50199daadf839079771c00b4201971bacecc3928094fd77f9d4c872be8e01c10
+DIST flate2-0.2.13.crate 45773 SHA256 f9e6fc69e0509336ff58a2e5ab91c7a9629cb78bad26e67d8c4489f5a648addb SHA512 68b35b7e1e3a8c637497220be69add34fc63a98689545ff69c7ff51d34ea79388a781aed078566d55f262f34abf5ee1c63e56017b7a5240cf1144a9285a7ad82 WHIRLPOOL af6b03203d320c0d6c988b5521ef8b80565af5be0b33da4abb62d212621b381e5f81a3095a85f649b97ddea14d6ed47106365655dc3b6753edf6a6cc7f1d6fff
+DIST fs2-0.2.3.crate 12692 SHA256 a24f693fd93d04099962297dcdba0578b490d79ef26e0105204179520698bf91 SHA512 4164762069ef1035ea422b9894f2710cb6eeb11a579c6558cd0b1b3ec798b82a06e43c427011db72977937f27434733ca0336a6e92c93ccc8721a1629f53c804 WHIRLPOOL 3c634d19f5fcf700331126b02c3eaf6203765ef1739f7617f118ca97a59274f339603316a13660c832ed01af03349cb54fce7d31f383f675bb719d631a1f29b8
+DIST gcc-0.3.26.crate 21465 SHA256 3337bf4deec8dd33c331a62b59708f5b438779b8089b1888d56976ac2c325d3e SHA512 d05490df031078b79a97902a9283c7b62951453b9ddeb3f8bf612d13bf8ca8bcebb331dd69424323f7e55ada528db6ade28e7fb715ae4b1b9653abbe85b0bd22 WHIRLPOOL b60f22cc26fbf6d56297da26732bb52154c27a92f27724629c754b17c92d72a497eec15b3a2efee0b4c9f30e82e6433a94a10f045ed1b0733dc81dea6499ae27
+DIST git2-0.4.2.crate 113631 SHA256 1c663e06498eaced90ccd830ac23332b5b521b9a9ee82d095520b3394b5e9098 SHA512 00fe6cb1ea92e42688848a2dd996cf09756e39eb154fc822f7610c04f7f90d72ac045d773bf435c56443adfa659203b663e34d9ac01eb479d8c4d06b524a720d WHIRLPOOL be960957f7b0d149667459641114e9f1dcdffb0763762f930e0157fbadfd94b6643d8634887d60c577365b8fa8ae3e54e1a7296aa5880bce0be6798a3a31080a
+DIST git2-curl-0.4.0.crate 3810 SHA256 c13dafba61b79dc9fa45b40b0478a5196cab2b571a355128667fae951bb2d0cc SHA512 5472500d546050990c622059947e20363c8363463e82c4f523ccb6a276213afe4bce065af456600f8fe339c6c8b5064850024b268a2ae5a98f776ac48ed19542 WHIRLPOOL 825fef26f100b057d9723abc6504a573f7ab895d7ce48c99845719d471ac09fa50ba1055e3af4facbb3133080e9bbe15f67ed74b2e09eb47dd34b94afe170f99
+DIST glob-0.2.11.crate 18065 SHA256 8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb SHA512 91a1a751bc4ed3b13154aa056180f2b8123c33627cbe972bdd7986fb0b6f1ef90e59abd4128d6e4db5e69523d757440c7df9b9721a61f5ea5a091ffc9843e10e WHIRLPOOL 5f9b80d74ffcda693a008367d73fa0646b1dd73068fcd0075227d15c9bfcc86a05fe8a34163fe9d12806ef10d35f27649459ae05de71abd3a044f99baae041d1
+DIST hamcrest-0.1.0.crate 4027 SHA256 27c180b409b988760a018e5cb5f0812bd67e87f40236e41d3b9375d3046e04ab SHA512 c343a36d346a1128628f31661d196cd9e91254a71b1d9d64f5ea4a16fb439b74032239985056b993b81f79cdf8a1a4e0e6f435c00b864ed2be8044c57a5f3d7d WHIRLPOOL ffb793b767cb97fb50237547709af92782e5903552ddb65b3e7827b8cfda9da2748b44ead5790af62a0ab5030805d030d13a7ec164695b12697714234a943e5a
+DIST kernel32-sys-0.2.1.crate 24530 SHA256 b5b5e7edf375e6d26243bde172f1d5ed1446f4a766fc9b7006e1fd27258243f1 SHA512 7d63fda3200fc565853e5c2733f06c97f48f94ddfb13db73f889197917478948c3f73b61a9c0efc42cd4f8a4355af4c1790e3145ea18f35ccf29a2be997f5bad WHIRLPOOL 80af653642291337ba9a3d581f8c98f042f26c6138e650a563eae8b7e41064934c565dab2b50b55e93482cb0567a14ae2fd46bb89beda528675e59ba47bdf7c5
+DIST libc-0.2.8.crate 76683 SHA256 52f45f4d4d75de96cf7f8b0e37b6a8e2f96619749b80bd79aa9f5a3100d63208 SHA512 ffb3ab540844c2614cbe22348deb3614adae5101bdb6feb1d4718d7d376dd0990a0897ecb6e120851d6fe8ce74feb8a1a9930343200b77052d46f72a18258602 WHIRLPOOL 745ae7bebd284109ad2cbc3c893db44ae2c7fd06ca3d763420ac8a5c6e3cf2905910ad9f47178cd5f411ed4c44f449fc390869c91d03690fccfb694da0813151
+DIST libgit2-sys-0.4.2.crate 2505947 SHA256 71064054e4a63d5558793ec3a96c5e352eb39817b1f99afaaaa9f22a691cb538 SHA512 52d5af86b1f960da0a0db377f84780fc0cbfe490dd2bd4888daba35502b215985fa8824888d4c7a64c3569e4dba6af611ae0e0a54cb867acdb49533ccf24534c WHIRLPOOL 1432ed76c04413c9e9dc849c3859bed13686c33fc6cdd1f322cc1a184364f66b2a783f665adc62d94302bdfdb7874f9a230409b40ecd8b89b68dc276094b44aa
+DIST libressl-pnacl-sys-2.1.6.crate 2697179 SHA256 cbc058951ab6a3ef35ca16462d7642c4867e6403520811f28537a4e2f2db3e71 SHA512 b4e315900e88d4e00b99c76388658f1b1e6761dc4b9de72804dc9ab946a2fb1bcdb8711de0c99a123f3180143c55625cafbec9db69837d2d5e1a79b2df87d983 WHIRLPOOL 7b43eb64694c187ef3c915406f3a1b016b6441a1c8814653564487fd5d14afb6b840b6ce2a49d2ab4918e9be1f129814390c8b07d64ddf1d7795838e3519c833
+DIST libssh2-sys-0.1.37.crate 337082 SHA256 c45fba84ee1fa05b830cb471741ef30d41eb1c3b97160b8ad8d955af824de880 SHA512 025fb2be5a4ca4d77d756e905fc1bb86edc78dc576a6a3c976053c7787edfb45dc856c4c1379895f7df533f40119125c1735e10ebe371678d65025262cf454d2 WHIRLPOOL 519d26caa17cf7c00b5dd519aa9978cba9f4d62cb0cc8ce4679d8b58f250c26252cd1e49293c3d551e968b0b439178577a112fcc9a80118699302582aec2e8da
+DIST libz-sys-1.0.2.crate 601095 SHA256 aa6b53f9806f503569bbf3c29b6f0e3fdc86e7eff36f0c9e55381fb400f8b4fd SHA512 39b96c1a71d104cb92b9df7f4d4a30d62723310df8d0b370d0623505e65bab88845ace9593dc289789ae7b56b5931f8790a4b39d03206add1d2d8912a3813852 WHIRLPOOL 7b45f77febfec3a2e50b45378c355a2359727521e7a40fb5df342d82fa4fe9b190a517bab6b066ca724a28174c46005ecf12884fcb6331ef6dfade75c2334dda
+DIST log-0.3.5.crate 16181 SHA256 038b5d13189a14e5b6ac384fdb7c691a45ef0885f6d2dddbf422e6c3506b8234 SHA512 bab0db66b727c0291e1bfcb0dae2f252717be934815592cefcbe2b639dd1e84ae5cccba8bb09ed19caa7271e9aaef08a4423a94afc1a8726e72a75c0647da141 WHIRLPOOL 3ad0a703a353013b9824c3848201518e722dfdbe834560e52c751819c047335f4f6607b7c9f1eb1843e7105b0a416ce6afe4bb0221f747dda7ea785a8cab1e61
+DIST matches-0.1.2.crate 665 SHA256 15305656809ce5a4805b1ff2946892810992197ce1270ff79baded852187942e SHA512 2b2c5355905b1f38ae0f3dc9c6593a516be0da493f586bf2d12e24bda9b228ce8f80975f582e5a5f475a74acfe5efc803568a0ecd536eeb064fec13ff1be7378 WHIRLPOOL c92ddd1f86a04e1e4af47cf5503712ecbcbe8a8e7a6ee42f3b0394f86ec030070b1a9c027681bdf9f0c5502afb1fc239746a69095c884c0069ba81c25c7a25d3
+DIST memchr-0.1.10.crate 6771 SHA256 c98adb597263e245c6ffe48dc50d338b51acb8cc53e8e7b3e9c21f53c0a411cb SHA512 51e1368e3bbfac1f5edb12e7cf8821e9ea0d76b822f49c631f741900a2c170f8959fc007ca054e0ddd7349b29ffe03c3f244b967e2aa5f22b332c8d4cf1c204e WHIRLPOOL b8f890c73401152cbd233e160669f2cd6aa1b5408a98a7db31bec786570b27a6100ebe7be9df93d7ea4f420005c812a0fd825dc16891cb967799a4a6378a0fe6
+DIST miniz-sys-0.1.7.crate 53361 SHA256 9d1f4d337a01c32e1f2122510fed46393d53ca35a7f429cb0450abaedfa3ed54 SHA512 30fbd5a040cc55642a023ac45915081af5b91c7929e1d5c27f15aec6fbd714886d17b8d41396ab13329f150288fae52a1ec21e41fc3e660fb1a6bd388b38b028 WHIRLPOOL ef69781aa8ccbcce8b5ba8519233a1fcc47b9459b21a9fd1d4e48d5ac58496e5eb382b94b5b671e152531293c74121ae0ceb46ab38dbdca2377a63cf52ebea31
+DIST nom-1.2.2.crate 64533 SHA256 6caab12c5f97aa316cb249725aa32115118e1522b445e26c257dd77cad5ffd4e SHA512 5c277f00b9ec59459c24a196e1f4e3bd993083fa865c0a41eb0f2dce1f44f41d454355508ac43005c95ca6b16efe05cbb9511fbd458e9815d5e71144f166a9f0 WHIRLPOOL 2dbd7a682b303b7ad93901e8e4517e7acb592749913e7db0dcb9b675c0a3848697799d942f1c26c3314afc714064f0f836ffaa1fc3873c2b8d4698f58fe4f9ca
+DIST num-0.1.31.crate 88366 SHA256 be45b3e341522564415a07118d7cf44896d0919e7a1bb21d59ad82af48256324 SHA512 f5800c5fd53129f008556e2e23a26f2157a93d85ee7d95583fd23d15b45ee6ad7e087506945d7170b357a83c73c6ba8ad018aa90db3fadce4fc33a96ad80a2e3 WHIRLPOOL 618f9966f3cbec53821d8870403cbc7c0a6c65df0836176a653c986644a84a73d9d8896615ec3b03dd4f1f97ae39fcf3a7762baf882a8ed43d2f55d157445532
+DIST num_cpus-0.2.11.crate 2043 SHA256 51fedae97a05f7353612fe017ab705a37e6db8f4d67c5c6fe739a9e70d6eed09 SHA512 1f933148dc114f5204f54fa9dedb1e6feafb7780373e8444dfc2edfceac8ee331c448fa45a0f029aa719daf5b3695412b926f820ef705f4ae67bffec1c644a85 WHIRLPOOL 413738a7a4bddc23accfa71ba89e3365c717043daaa9edfeb1d5bbce42d8200b09c5da705759fe2c51d65ca0a12825a78cbd0bc7efa2f1576c3c83b81814e1ce
+DIST openssl-sys-0.7.8.crate 9668 SHA256 065e99c2dca7abfe305bd8254d221952b46d47ea9a1c85b6d674c38f083765e6 SHA512 4d5000b4ee64bd67c749cad35fe41c3a8f7a375c647faacc0e3b7f140c0c21ed7b022e3233c2b420ce45c6bf2722720feebe74bab9076a21e1026a6b6ff2fc49 WHIRLPOOL d01a227dd5d940baa313a885c1d7020e1baa212fc01d4020588e5f91a0045a7dd6c6d830d60bb32ff4d1171c01f944eb87b9928f569994e5db3052ca313774ae
+DIST pkg-config-0.3.8.crate 10814 SHA256 8cee804ecc7eaf201a4a207241472cc870e825206f6c031e3ee2a72fa425f2fa SHA512 a58102ea0c6063c53e45e2f5005888fcac7a8e27dceeae4fae8d672ed0690f062386fe175c968b17c127b622b80fd319448faf9fe8ba3422e24f6fa17e8ccb77 WHIRLPOOL b8921e822910523910fb1e9437dedecf55f640bec605f96cade50783f58ace3f8931d76f5a573b3c0ebd5f4134268d17eb7dcff134accf88a880b9064e67680e
+DIST pnacl-build-helper-1.4.10.crate 5470 SHA256 61c9231d31aea845007443d62fcbb58bb6949ab9c18081ee1e09920e0cf1118b SHA512 c170589b379378a4f33ee1ae40de6f649d573e9c9288ad9603a958c9dedf04f09b268539e922a91c060f40374bb697f190fde055ea057de57bfae2308b512707 WHIRLPOOL 9d2da27d66ddc14f31e4815f6ff5b7daa099b37d23bef73d4c3edef4da2b9eb322c646d1acd404db29f4eb9a3c1382fe0f15f0e034af6138cd030f6f8f3f9f12
+DIST rand-0.3.14.crate 54768 SHA256 2791d88c6defac799c3f20d74f094ca33b9332612d9aef9078519c82e4fe04a5 SHA512 f727b61f29567b7f322bb9500f01c81588b3681c379f366ef80792ea80c200747b136389a91e32bcff346b24894e7f015090c86960c74b72ced3187a709dfbee WHIRLPOOL 9a8c22f6e0dc63853b8acdbd5e4de1e668de25617f7ec9ecbd2c8727d8cc1a71fdbf99aa247c0141e58a23c6e7fc431b66921c38d46062a0149c750e0c8bbb02
+DIST regex-0.1.58.crate 155004 SHA256 3dd7659f81431206880b8e6eafae79bf060e646de2737125cc08c30f6ad1aebe SHA512 f02810a69455c56fe35dc09bb45867101e429eca225de5bb697e87c223d7e31e1bbcd755a8977ecaf14921ccaa2a9d25dffc6035d5f9e3c017f213788dc19e6f WHIRLPOOL 9c09c0131d2157ad9694ea989e1711d3178fa8825c33792d7fae9a51edcab67213862e74ce6621e3f3dbd810f730494de63147ce3e6c005fa232d8255e70ca3d
+DIST regex-syntax-0.3.0.crate 106499 SHA256 91f025592c64aca084b1eb1f556fcac9c016da96a66dbebd5f9a7bda6f92b540 SHA512 ba8caade56be04495eaae33a31e80e44c99db845d74bfc3b3aa697b3ced2661cbbe84b83fcf5bdb32d6a0ff3bd024ab1607ec9fff4cbfdc57fc17858cf84e4c0 WHIRLPOOL fb626ab2e999a418ef5218879f3408e60619927bfaa8d8ac90ed9b8b67742c52175b2a9018300097407efcc39bd61aaa405ac4f9b8d3cd1a616524dd66143b9f
+DIST rustc-serialize-0.3.18.crate 40116 SHA256 9cf81518cd579f8a9c58c0a71328bdb9be15c754181261da82583092dc8a7ff0 SHA512 5d208ca9f9d5b5a2f701044fab0292dbfa15f07224f897244a7dcae3251d1321e47de4274c8ea6d1b72c36265c5900453188319b10deae8356631b6ebf441866 WHIRLPOOL 7c034889affea9e3ab94db09e93245df07bbc581d1fd7b41f342566bdd811324f968ff1edf9092dc97d6f6753ba5877fec8116943b90ad78955ec7cd58d841af
+DIST semver-0.2.3.crate 18500 SHA256 2d5b7638a1f03815d94e88cb3b3c08e87f0db4d683ef499d1836aaf70a45623f SHA512 6c777a8e1456c122a0a5b6d388293604e3036dcde5370d02d7fe3075b8791eb127cda319bbc40aa863c1636c1b584c2dfb9dbd1154b736c321d698582462ab14 WHIRLPOOL 56317007842ec731673aaf22caeeb06d9b26d202ee818514351d978da3727d21951db4b3707d454943db3f19137b1743192227bffcf6394e53ec40110d02d41b
+DIST strsim-0.3.0.crate 4320 SHA256 e4d73a2c36a4d095ed1a6df5cbeac159863173447f7a82b3f4757426844ab825 SHA512 2d0026c6b37b599272de98954c9462271f3fba3c9c7a2256c960023e9173c986adabac1a2931b22128141b9914fe9e668225a2152b9a09b4e66afbfb14c91fab WHIRLPOOL b96a5bede6934bd09cb5fd25f10ad85ff164b20bcbf43b2c53ec293a8a30ff0a6718fc0d92d56f0f5332bf5110be9d5c8129073669131b6eda9eb3a293eb0737
+DIST tar-0.4.4.crate 259223 SHA256 c82692d9a0e663b8c8f942eab088901d80cb7365f360967562f237148d1792d3 SHA512 246ff869b0badc28a20a788707e08ac55bf4239efb45c8eddde291170408a5dac9b6eb86656b0465abab2c12d4d1dabc0199d65f09dcbd1b90da7f7a2ddc3412 WHIRLPOOL 16b2a93ef12992fb98128ebc64e180e26ce458e3a11adec5c80f71e286afddc938d25d81cf88bfaf3ad5c4caca936f168f9689837800f5897074621a94b131dd
+DIST tempdir-0.3.4.crate 8469 SHA256 0b62933a3f96cd559700662c34f8bab881d9e3540289fb4f368419c7f13a5aa9 SHA512 80ad9e98ecbad7be6717e02ea12c46c37491773f524522ec0714e4a424cc8d529ad6912056d8aa895b567ce2a16189f8274960f711f1af9ccea40ac43321ed02 WHIRLPOOL 922640e9ce487addc5ce4f6be5956892fdc039ac825dc01cb96ec35af305938c9b1a9762bbfd5c83185873a44fd4bdd22aec4a655643b39a2384420736b4a9d9
+DIST term-0.4.4.crate 35853 SHA256 3deff8a2b3b6607d6d7cc32ac25c0b33709453ca9cceac006caac51e963cf94a SHA512 df99c7273ca6f97ec3d9206f98601540d26370124a7a5404cc072bf2e6621bc48fa74101e60f29bea10869278401193648e253fc2029f4cf8e3c8303625b11f7 WHIRLPOOL 57de8f4d686d6806fd18a3de9ead347d2c4c8b63af5175d3c2df4e894ffe13b62caa93774bd320e3d2c42108849012071bce8c07414856af8374884661bd164a
+DIST time-0.1.34.crate 26771 SHA256 8c4aeaa1c95974f5763c3a5ac0db95a19793589bcea5d22e161b5587e3aad029 SHA512 6d16b2556bcbd1ca153f29061303c76fb606ca6e926767f58a8affc8926b6bb762cb11fffb42d2c234d5913a12de329ae9b0a96c7546373c036eb84c7154b872 WHIRLPOOL 683f39f2ddca741985cf76d4b737ef3f313d8d0fb0060ca710acf7e3ac1d3bd490cec8363732251a70fcc3fd404a3c0377a45d005be37993826301efe55af15b
+DIST toml-0.1.28.crate 42323 SHA256 fcd27a04ca509aff336ba5eb2abc58d456f52c4ff64d9724d88acb85ead560b6 SHA512 4b4af8fa2f9079259e2c4ebddde70e82f96603c4ec69a266394366671a5c42c61a6ea13fd51145a97c286ca48cbe731650065fac1c20822f818aff48f2a2b13c WHIRLPOOL 7746b110241648466382a1e73ccf7569ed996f49270e2552443f7ff23bbe4bae3fc22e87513239828387efb1ba984220957dabe6b70bbaee14463a38cbea6d75
+DIST unicode-bidi-0.2.3.crate 1744003 SHA256 c1f7ceb96afdfeedee42bade65a0d585a6a0106f681b6749c8ff4daa8df30b3f SHA512 fb067746b4788c7110bc2687850dc11183c7e596453b42c0c4764c59c1686faf4d03a52b6c147c6578d88b8a2f3f1257d88010874b6ff0bb942b41e055c00a08 WHIRLPOOL cea3be7073b65971b303213f2eec72035c80b65bc306231e2af067ec58cfab3ce2d2a1b38a2e4a5a537a94e7458573b1cc7cc8b44aa3b62a2595ffc532343b11
+DIST unicode-normalization-0.1.2.crate 612931 SHA256 26643a2f83bac55f1976fb716c10234485f9202dcd65cfbdf9da49867b271172 SHA512 b6dc4316a875de59ee00f89ac0e9b255d0111dc2e2e45395ed726282502ab7b6cfcd56acff7f409b97a2f36d5278e16936359791be6bc8fba1213ca6c8a888df WHIRLPOOL 89b477db1efd9ff153140c485cce0d4c0457ccf30fa8ad765fe14a27e94f8506521b64dbbee7b300da2786e139738583ce255b78192534d63aac9d2fd833cc92
+DIST url-0.2.38.crate 48716 SHA256 cbaa8377a162d88e7d15db0cf110c8523453edcbc5bc66d2b6fffccffa34a068 SHA512 c9bd32c8a50de3a41b25197af8441007a6d552074beb7d1c5cd8bdd47548df19990010f735bfae64822df8454e26e9b08c6d5d633517109958c59e93f6d1b966 WHIRLPOOL a13a2e31f949343533461035e53dc9c44939eb84ec361ac546ff33668d3a2d1072887e641a833034e7f356cb8a810b4e3564f8a7921ad6c37bcbb0fcc2247c4b
+DIST url-0.5.7.crate 281829 SHA256 0cfad3f2f6c8bdeca794aba1a40f5b4b38ce4994844f5feb7466a0addbf5a36d SHA512 6deaa737fd050288e6b32167c685c549b56d122e82bc9916bac8f3395d5aeba3238d5de5daa5cf2816e4e8c9f9d67368a21ce804d01c4d2081ede7b7ccd58e71 WHIRLPOOL 6273aab138cfbdab1c6e6f019ea05c682763b1eaba4cc4f43094858e1e5868847f06e3a54c920b5727b0377a354077116bfaf4079e6fd1a09e0190b2da6be0f7
+DIST utf8-ranges-0.1.3.crate 8422 SHA256 a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f SHA512 84bd9b67c423923b856452e113f0d786ac438bc7f9b4d4d9f31f6f91f141a8ac4c93f45f722ac5a8a4bac8eac0e355fe7db1eebc62391709326e9817eda8c374 WHIRLPOOL 05b6f88e1ba81a2139d38d0feb60781976859adfc46731ef322a552b17db71e0bf61c6626432812fb2e0ca45ce10a5438d9dcf218a962ef7415187adaa0280fa
+DIST uuid-0.1.18.crate 13316 SHA256 78c590b5bd79ed10aad8fb75f078a59d8db445af6c743e55c4a53227fc01c13f SHA512 9abc25458eb5f5c4ec76f6e391694f531e6956040491049677a7fb61570594c02483416bd00e04813788b1271df02fa9c51b93df9e472602bb8eb49868cf20c2 WHIRLPOOL 3422e2679d6404f9c976be29b3a1ac5bfed0d0a27483230be4ec00e94595c60773fcee800a0c3be20b22b5150e8a914c4d44099560f6548ac0aaca315066faa8
+DIST winapi-0.2.6.crate 741153 SHA256 4dfaaa8fbdaa618fa6914b59b2769d690dd7521920a18d84b42d254678dd5fd4 SHA512 ee81295e8154b0656b2ec892a38c69b3e1f839d6915ff68439ab5fe9ef9cf2d85cdadc9e8c9779d0eb3046821cafbc1f6e7977057178c85b29a21a86781bcc38 WHIRLPOOL 60e95e757262cab7eb8dc2fbefbf6ecb9578ce77a5841a7221eedf78b42a4faa0ce4a56c2a35726a85fa8105b84464468cb23b9c855853f9e777b69e601c66cb
+DIST winapi-build-0.1.1.crate 669 SHA256 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc SHA512 8b0a239e205a5368892f41c870a8a7ea16e3468c364b03382bef7fa3a2e7159b09c07661e95b1227578f6d72c14879daa4444b28c51ae20ef15d985d59ca5a77 WHIRLPOOL 036080513776fe806cc9dd68bbf5b797776b98ca9fdceaa4bd77c87c66d2e5bd0eec8b0e7f0100dab8f2ced754da058f67e651002c786b4992c2be416a5d52ff
diff --git a/dev-util/cargo/cargo-0.10.0.ebuild b/dev-util/cargo/cargo-0.10.0.ebuild
new file mode 100644
index 00000000000..5cdfe93c4de
--- /dev/null
+++ b/dev-util/cargo/cargo-0.10.0.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+CARGO_SNAPSHOT_DATE="2016-03-21"
+CARGO_INDEX_COMMIT="13b4aa0e3062a3938ed958adccd49e62614f509b"
+CRATES="advapi32-sys-0.1.2
+aho-corasick-0.5.1
+bitflags-0.1.1
+bufstream-0.1.1
+cmake-0.1.16
+crossbeam-0.2.8
+curl-0.2.18
+curl-sys-0.1.34
+docopt-0.6.78
+env_logger-0.3.2
+filetime-0.1.10
+flate2-0.2.13
+fs2-0.2.3
+gcc-0.3.26
+git2-0.4.2
+git2-curl-0.4.0
+glob-0.2.11
+hamcrest-0.1.0
+kernel32-sys-0.2.1
+libc-0.2.8
+libgit2-sys-0.4.2
+libressl-pnacl-sys-2.1.6
+libssh2-sys-0.1.37
+libz-sys-1.0.2
+log-0.3.5
+matches-0.1.2
+memchr-0.1.10
+miniz-sys-0.1.7
+nom-1.2.2
+num-0.1.31
+num_cpus-0.2.11
+openssl-sys-0.7.8
+pkg-config-0.3.8
+pnacl-build-helper-1.4.10
+rand-0.3.14
+regex-0.1.58
+regex-syntax-0.3.0
+rustc-serialize-0.3.18
+semver-0.2.3
+strsim-0.3.0
+tar-0.4.4
+tempdir-0.3.4
+term-0.4.4
+time-0.1.34
+toml-0.1.28
+unicode-bidi-0.2.3
+unicode-normalization-0.1.2
+url-0.2.38
+url-0.5.7
+utf8-ranges-0.1.3
+uuid-0.1.18
+winapi-0.2.6
+winapi-build-0.1.1
+"
+
+inherit cargo bash-completion-r1
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/rust-lang/crates.io-index/archive/${CARGO_INDEX_COMMIT}.tar.gz -> cargo-registry-${CARGO_INDEX_COMMIT}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ x86? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-i686-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-x86-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )
+ amd64? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-amd64-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+
+COMMON_DEPEND="sys-libs/zlib
+ dev-libs/openssl:0=
+ net-libs/libssh2
+ net-libs/http-parser"
+RDEPEND="${COMMON_DEPEND}
+ !dev-util/cargo-bin
+ net-misc/curl[ssl]"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/rust-1.1.0:stable
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+PATCHES=(
+"${FILESDIR}/0001-build-strip-CFG_PREFIX-from-CFG_-DATADIR-MANDIR-INFO.patch"
+"${FILESDIR}/0002-build-write-updated-variables-to-config.mk.patch"
+"${FILESDIR}/0003-build-respect-datadir-infodir-mandir-libdir-and-sysc.patch"
+"${FILESDIR}/0004-build-add-docdir-to-configure.patch"
+)
+
+src_configure() {
+ # Cargo only supports these GNU triples:
+ # - Linux: <arch>-unknown-linux-gnu
+ # - MacOS: <arch>-apple-darwin
+ # - Windows: <arch>-pc-windows-gnu
+ # where <arch> could be 'x86_64' (amd64) or 'i686' (x86)
+ use amd64 && CTARGET="x86_64-unknown-linux-gnu"
+ use x86 && CTARGET="i686-unknown-linux-gnu"
+
+ # NOTE: 'disable-nightly' is used by crates (such as 'matches') to entirely
+ # skip their internal libraries that make use of unstable rustc features.
+ # Don't use 'enable-nightly' with a stable release of rustc as DEPEND,
+ # otherwise you could get compilation issues.
+ # see: github.com/gentoo/gentoo-rust/issues/13
+ local myeconfargs=(
+ --host=${CTARGET}
+ --build=${CTARGET}
+ --target=${CTARGET}
+ --enable-optimize
+ --disable-nightly
+ --disable-verify-install
+ --disable-debug
+ --disable-cross-tests
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Building sources
+ export CARGO_HOME="${ECARGO_HOME}"
+ emake VERBOSE=1 PKG_CONFIG_PATH=""
+
+ # Building HTML documentation
+ use doc && emake doc
+}
+
+src_install() {
+ emake prepare-image-${CTARGET} IMGDIR_${CTARGET}="${ED}/usr"
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ dobashcomp "${ED}"/usr/etc/bash_completion.d/cargo
+ rm -rf "${ED}"/usr/etc || die
+}
+
+src_test() {
+ # Running unit tests
+ # NOTE: by default 'make test' uses the copy of cargo (v0.0.1-pre-nighyly)
+ # from the installer snapshot instead of the version just built, so the
+ # ebuild needs to override the value of CFG_LOCAL_CARGO to avoid false
+ # positives from unit tests.
+ emake test \
+ CFG_ENABLE_OPTIMIZE=1 \
+ VERBOSE=1 \
+ CFG_LOCAL_CARGO="${WORKDIR}"/${P}/target/${CTARGET}/release/cargo
+}
diff --git a/dev-util/cargo/files/0001-build-strip-CFG_PREFIX-from-CFG_-DATADIR-MANDIR-INFO.patch b/dev-util/cargo/files/0001-build-strip-CFG_PREFIX-from-CFG_-DATADIR-MANDIR-INFO.patch
new file mode 100644
index 00000000000..26b7d1418ba
--- /dev/null
+++ b/dev-util/cargo/files/0001-build-strip-CFG_PREFIX-from-CFG_-DATADIR-MANDIR-INFO.patch
@@ -0,0 +1,39 @@
+From 7afdd06f631763cc91699b77d5e03fc2d1ed97ee Mon Sep 17 00:00:00 2001
+From: Doug Goldstein <cardoe@cardoe.com>
+Date: Tue, 28 Jun 2016 16:27:25 -0500
+Subject: [PATCH 1/4] build: strip CFG_PREFIX from
+ CFG_{DATADIR,MANDIR,INFODIR,LIBDIR}
+
+While these variables are not yet used by the Makefile, to be used
+CFG_PREFIX must be stripped from them. The 'make install' rule creates
+a tarball and then the install.sh script extracts it relative to the
+prefix argument --prefix, which in the case of a Cargo install is
+relative to CFG_PREFIX. This is why CFG_PREFIX needs to be stripped out
+of CFG_DATADIR, CFG_MANDIR, CFG_INFODIR, and CFG_LIBDIR.
+
+Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
+---
+ configure | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/configure b/configure
+index d8dc591..91b4f7d 100755
+--- a/configure
++++ b/configure
+@@ -357,6 +357,13 @@ CFG_MANDIR=${CFG_MANDIR%/}
+ CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
+ CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
+
++# strip CFG_PREFIX from variables used for installation so that
++# install.sh's --prefix value can be used instead
++CFG_DATADIR=${CFG_DATADIR#${CFG_PREFIX}}
++CFG_INFODIR=${CFG_INFODIR#${CFG_PREFIX}}
++CFG_MANDIR=${CFG_MANDIR#${CFG_PREFIX}}
++CFG_LIBDIR=${CFG_LIBDIR#${CFG_PREFIX}}
++
+ # copy host-triples to target-triples so that hosts are a subset of targets
+ V_TEMP=""
+ for i in $CFG_HOST $CFG_TARGET;
+--
+2.7.3
+
diff --git a/dev-util/cargo/files/0002-build-write-updated-variables-to-config.mk.patch b/dev-util/cargo/files/0002-build-write-updated-variables-to-config.mk.patch
new file mode 100644
index 00000000000..9bdb561f5e1
--- /dev/null
+++ b/dev-util/cargo/files/0002-build-write-updated-variables-to-config.mk.patch
@@ -0,0 +1,43 @@
+From 555414c1da9acc1b59a08a316d0d4b5f87514025 Mon Sep 17 00:00:00 2001
+From: Doug Goldstein <cardoe@cardoe.com>
+Date: Tue, 28 Jun 2016 16:59:32 -0500
+Subject: [PATCH 2/4] build: write updated variables to config.mk
+
+Write the CFG_PREFIX stripped CFG_DATADIR, CFG_MANDIR, and CFG_INFODIR
+to config.mk
+
+Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
+---
+ configure | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/configure b/configure
+index 91b4f7d..0b23dcd 100755
+--- a/configure
++++ b/configure
+@@ -353,7 +353,10 @@ fi
+
+ # a little post-processing of various config values
+ CFG_PREFIX=${CFG_PREFIX%/}
++CFG_DATADIR=${CFG_DATADIR%/}
++CFG_INFODIR=${CFG_INFODIR%/}
+ CFG_MANDIR=${CFG_MANDIR%/}
++CFG_LIBDIR=${CFG_LIBDIR%/}
+ CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
+ CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
+
+@@ -406,8 +409,10 @@ putvar CFG_PREFIX
+ putvar CFG_BUILD
+ putvar CFG_HOST
+ putvar CFG_TARGET
+-putvar CFG_LIBDIR
++putvar CFG_DATADIR
++putvar CFG_INFODIR
+ putvar CFG_MANDIR
++putvar CFG_LIBDIR
+ putvar CFG_RUSTC
+ putvar CFG_RUSTDOC
+
+--
+2.7.3
+
diff --git a/dev-util/cargo/files/0003-build-respect-datadir-infodir-mandir-libdir-and-sysc.patch b/dev-util/cargo/files/0003-build-respect-datadir-infodir-mandir-libdir-and-sysc.patch
new file mode 100644
index 00000000000..a72c920471d
--- /dev/null
+++ b/dev-util/cargo/files/0003-build-respect-datadir-infodir-mandir-libdir-and-sysc.patch
@@ -0,0 +1,51 @@
+From 0d6304b5922b712694fa82979cdf1ed85bc9c778 Mon Sep 17 00:00:00 2001
+From: Doug Goldstein <cardoe@cardoe.com>
+Date: Mon, 27 Jun 2016 08:46:36 -0500
+Subject: [PATCH 3/4] build: respect datadir, infodir, mandir, libdir, and
+ sysconfdir
+
+The configure script exposes datadir, infodir, mandir, libdir, and
+sysconfdir but then they are unused so distros or users with
+non-standard paths are not able to change things as would be expected by
+the configure script.
+
+Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
+---
+ Makefile.in | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index fadcb4b..2503cd5 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -271,18 +271,18 @@ prepare-image-$(1):
+ @[ -f $$(TARGET_$(1))/cargo$$(X) ] || echo 'Please run `make` first'
+ @[ -f $$(TARGET_$(1))/cargo$$(X) ]
+ rm -rf $$(IMGDIR_$(1))
+- mkdir -p $$(IMGDIR_$(1))/bin $$(IMGDIR_$(1))/lib/cargo \
+- $$(IMGDIR_$(1))/share/man/man1 \
+- $$(IMGDIR_$(1))/share/doc/cargo \
+- $$(IMGDIR_$(1))/share/zsh/site-functions \
+- $$(IMGDIR_$(1))/etc/bash_completion.d
++ mkdir -p $$(IMGDIR_$(1))/bin $$(IMGDIR_$(1))/$(CFG_LIBDIR)/cargo \
++ $$(IMGDIR_$(1))$(CFG_MANDIR)/man1 \
++ $$(IMGDIR_$(1))$(CFG_DATADIR)/doc/cargo \
++ $$(IMGDIR_$(1))$(CFG_DATADIR)/zsh/site-functions \
++ $$(IMGDIR_$(1))$(CFG_SYSCONFDIR)/bash_completion.d
+ cp $$(TARGET_$(1))/cargo$$(X) $$(IMGDIR_$(1))/bin
+- cp $(S)src/etc/cargo.1 $$(IMGDIR_$(1))/share/man/man1
+- cp $(S)src/etc/_cargo $$(IMGDIR_$(1))/share/zsh/site-functions/_cargo
+- cp $(S)src/etc/cargo.bashcomp.sh $$(IMGDIR_$(1))/etc/bash_completion.d/cargo
++ cp $(S)src/etc/cargo.1 $$(IMGDIR_$(1))$(CFG_MANDIR)/man1
++ cp $(S)src/etc/_cargo $$(IMGDIR_$(1))$(CFG_DATADIR)/zsh/site-functions/_cargo
++ cp $(S)src/etc/cargo.bashcomp.sh $$(IMGDIR_$(1))$(CFG_SYSCONFDIR)/bash_completion.d/cargo
+ cp $(S)README.md $(S)LICENSE-MIT $(S)LICENSE-APACHE \
+ $(S)LICENSE-THIRD-PARTY \
+- $$(IMGDIR_$(1))/share/doc/cargo
++ $$(IMGDIR_$(1))$(CFG_DATADIR)/doc/cargo
+
+ prepare-overlay-$(1):
+ rm -Rf $$(OVERLAYDIR_$(1))
+--
+2.7.3
+
diff --git a/dev-util/cargo/files/0004-build-add-docdir-to-configure.patch b/dev-util/cargo/files/0004-build-add-docdir-to-configure.patch
new file mode 100644
index 00000000000..bc210db94e8
--- /dev/null
+++ b/dev-util/cargo/files/0004-build-add-docdir-to-configure.patch
@@ -0,0 +1,75 @@
+From 4c3450ebebfe677e35ed11109ee4f4208f68c86b Mon Sep 17 00:00:00 2001
+From: Doug Goldstein <cardoe@cardoe.com>
+Date: Mon, 27 Jun 2016 08:56:26 -0500
+Subject: [PATCH 4/4] build: add docdir to configure
+
+Add a docdir argument to the configure script to allow distros or users
+with non-standard paths to customize the installation as needed.
+
+Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
+---
+ Makefile.in | 4 ++--
+ configure | 4 ++++
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 2503cd5..a0e20c2 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -273,7 +273,7 @@ prepare-image-$(1):
+ rm -rf $$(IMGDIR_$(1))
+ mkdir -p $$(IMGDIR_$(1))/bin $$(IMGDIR_$(1))/$(CFG_LIBDIR)/cargo \
+ $$(IMGDIR_$(1))$(CFG_MANDIR)/man1 \
+- $$(IMGDIR_$(1))$(CFG_DATADIR)/doc/cargo \
++ $$(IMGDIR_$(1))$(CFG_DOCDIR) \
+ $$(IMGDIR_$(1))$(CFG_DATADIR)/zsh/site-functions \
+ $$(IMGDIR_$(1))$(CFG_SYSCONFDIR)/bash_completion.d
+ cp $$(TARGET_$(1))/cargo$$(X) $$(IMGDIR_$(1))/bin
+@@ -282,7 +282,7 @@ prepare-image-$(1):
+ cp $(S)src/etc/cargo.bashcomp.sh $$(IMGDIR_$(1))$(CFG_SYSCONFDIR)/bash_completion.d/cargo
+ cp $(S)README.md $(S)LICENSE-MIT $(S)LICENSE-APACHE \
+ $(S)LICENSE-THIRD-PARTY \
+- $$(IMGDIR_$(1))$(CFG_DATADIR)/doc/cargo
++ $$(IMGDIR_$(1))$(CFG_DOCDIR)
+
+ prepare-overlay-$(1):
+ rm -Rf $$(OVERLAYDIR_$(1))
+diff --git a/configure b/configure
+index 0b23dcd..1634dd3 100755
+--- a/configure
++++ b/configure
+@@ -325,6 +325,7 @@ valopt localstatedir "/var/lib" "local state directory"
+ valopt sysconfdir "/etc" "install system configuration files"
+ valopt datadir "${CFG_PREFIX}/share" "install data"
+ valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
++valopt docdir "${CFG_PREFIX}/share/doc/cargo" "install extra docs"
+ valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
+ valopt libdir "${CFG_PREFIX}/lib" "install libraries"
+ valopt local-cargo "" "local cargo to bootstrap from"
+@@ -355,6 +356,7 @@ fi
+ CFG_PREFIX=${CFG_PREFIX%/}
+ CFG_DATADIR=${CFG_DATADIR%/}
+ CFG_INFODIR=${CFG_INFODIR%/}
++CFG_DOCDIR=${CFG_DOCDIR%/}
+ CFG_MANDIR=${CFG_MANDIR%/}
+ CFG_LIBDIR=${CFG_LIBDIR%/}
+ CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
+@@ -364,6 +366,7 @@ CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
+ # install.sh's --prefix value can be used instead
+ CFG_DATADIR=${CFG_DATADIR#${CFG_PREFIX}}
+ CFG_INFODIR=${CFG_INFODIR#${CFG_PREFIX}}
++CFG_DOCDIR=${CFG_DOCDIR#${CFG_PREFIX}}
+ CFG_MANDIR=${CFG_MANDIR#${CFG_PREFIX}}
+ CFG_LIBDIR=${CFG_LIBDIR#${CFG_PREFIX}}
+
+@@ -410,6 +413,7 @@ putvar CFG_BUILD
+ putvar CFG_HOST
+ putvar CFG_TARGET
+ putvar CFG_DATADIR
++putvar CFG_DOCDIR
+ putvar CFG_INFODIR
+ putvar CFG_MANDIR
+ putvar CFG_LIBDIR
+--
+2.7.3
+
diff --git a/dev-util/cargo/metadata.xml b/dev-util/cargo/metadata.xml
new file mode 100644
index 00000000000..85cf4eb9205
--- /dev/null
+++ b/dev-util/cargo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>rust@gentoo.org</email>
+ <name>Rust Project</name>
+ </maintainer>
+</pkgmetadata>