diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2023-04-20 14:17:18 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2023-04-20 15:16:22 -0700 |
commit | 82212d9676832b76ee8ff6206e2ad535e9aee071 (patch) | |
tree | 64e95d66b98a39da8f08c2c67c1ce40af9b015a1 /dev-lang | |
parent | app-text/lowdown: add 1.0.1 (diff) | |
download | gentoo-82212d9676832b76ee8ff6206e2ad535e9aee071.tar.gz gentoo-82212d9676832b76ee8ff6206e2ad535e9aee071.tar.bz2 gentoo-82212d9676832b76ee8ff6206e2ad535e9aee071.zip |
dev-lang/rust-bin: add 1.69.0
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/rust-bin/Manifest | 33 | ||||
-rw-r--r-- | dev-lang/rust-bin/rust-bin-1.69.0.ebuild | 226 |
2 files changed, 259 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest index 7fb3649651c8..28a2f491f86a 100644 --- a/dev-lang/rust-bin/Manifest +++ b/dev-lang/rust-bin/Manifest @@ -160,8 +160,41 @@ DIST rust-1.68.2-x86_64-unknown-linux-gnu.tar.xz 185953856 BLAKE2B 11fc1f284c772 DIST rust-1.68.2-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 06f3d90126dfe5dcfb8147c8529f333bf635c5c669cc0b5d45156fed85e87aaaa67d8d9c4b250f77e1f0998e77e5635d3f3056447a032eac07bf847fc532a383 SHA512 1d826f0f8ed896d54139b4ae78205aee5cee3ce6f5449d94b8edb8fc19ab589bde6720eb1644502fc45fe0bd452e2e5209de83c99f7c4285a896cfaacbfdad36 DIST rust-1.68.2-x86_64-unknown-linux-musl.tar.xz 270073164 BLAKE2B 7d69a578e1d4a8fa75cfea6e630265f1c73cca08ed86ddc7858e7770755431dbf13ddaadcf8035fc2b7d2d7b7144a08b3e3a9fa20afcb5cfed7a31d82098fe5e SHA512 b0294141f1e51176664ae841ea55991826ccd15d0d36b03471831baa202ecb97434bf96479e167772bd62f05b80b49878f89a065a91e00026f0aabe7c02fe552 DIST rust-1.68.2-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 7de58f292729b349fe0694c724aa88ae5bec5a313952fbf7e62a361c7fba4cdedbd99238a4a826d7b627af30ddf4aca8646f6b061f44983a52dcf2ae8d52e56a SHA512 867e0c20049352fb696b99de9d0d8c5df8da0f1ea8eb9a0446884c2d741df7434bf83303694de208e75e64cd73664b979cf117d02db804bff9b4d6de8ee43638 +DIST rust-1.69.0-aarch64-unknown-linux-gnu.tar.xz 207128044 BLAKE2B 884ed5dab3b4f18e25eb1461178828f8945a4db81da212680134b834c1bbac300314f65f9a6310de1b980ec9deed20b5651369a835cc067e8450e65c373fcda8 SHA512 981ab5a7a221b381e766f09a3172e18eedddfeaec27814ef7e15cf5969b721c4191cfe1f734995f96e8ec5cd403be2e8824fa4b501926b58d42b71d11c0b56b4 +DIST rust-1.69.0-aarch64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 1bf54eb4df4f8fa28dc2afafd2ee50b72f0c235e817e31147cf3777d5e82f09b92d516e985ea9901ca8fdb233ea4fe6e231148bda858c83a8ead7f4e40719a0f SHA512 a26efbfc2cef15be20759e4cf2ad71a6eccc200ca8362cb8bddea0877e91ac82cc4f393111054d1fab161c1483ed0c054ca38c02ddc91fa8d986235459948e8b +DIST rust-1.69.0-aarch64-unknown-linux-musl.tar.xz 189395128 BLAKE2B 333082be0e62375a8dacd9e1ebfbd754876950e0f3d31fc591dcc7476754463fa804aa8b6063d7649cd0ae280ac96b10e4ce5ba29a3c973f3e9b1f7528a998e8 SHA512 c5ee5bba97b48e1a5d313d88eed8df8f492b4a8b962b91516cb883af16d359150db6727f01dcc933d19e8bba0cb75a2015a09cb26d4d03afd54c13a52d454003 +DIST rust-1.69.0-aarch64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B 8cf01b352a5d007922b65d01959ff1255eaa4b5957f97a8c83641fc77cc24a8820016da3bb73e1a8097737df639dc614f5609e64b9eca8c97991be5d08470b79 SHA512 f0ca993cd6516128e28b69eec0d924c2f6012cf7de4d3a83c4c85df0c04a4457667ac9b79e922222f67f269d81d1fcd04b2e960e1668e6dcf0efc765cbfa27ec +DIST rust-1.69.0-arm-unknown-linux-gnueabi.tar.xz 171128532 BLAKE2B 1f07df78da360395f87998e9403253d903c3a236d7fb9213fb96f27c80e2b9bb3214473b077d4bed71f3d2dcc8630ed12b2c19938f2127f4cfd167b4c21ca334 SHA512 c8faf0a3145b26a5abf74dbd5875cb7cd440b9a992db70d1996f454ca8343c4f18d8cbb8e6560b3224de0a324ef813aab63b7e99abcfc0e80ed3844f994f0733 +DIST rust-1.69.0-arm-unknown-linux-gnueabi.tar.xz.asc 801 BLAKE2B 0addeaf1934fcdd92081204b28314b1ddac661e7ab147cdc023e88fa4560bf2e2ecda1fefd977afef759e32faca1abb022c6256634692ddd0e551b6a903fa2db SHA512 00e05ea2a89171ed66d2221177f8c140226583cf88fab6e4243403a845b899c8e86552bf49bee4083f0b4ec5091fea0f34281cae40aafa58bfc3c5b00e3e9907 +DIST rust-1.69.0-arm-unknown-linux-gnueabihf.tar.xz 171080940 BLAKE2B 3b38493b46b97d52c5b5fd71bec210f1cd6eae2a0d80dc87af17ea5cc47cae430caae3e59ecc25c39dc33f5f08c949025df3e96088f8e7bef70ea9ae4b154c24 SHA512 7292479f7e120f280a5b72013e848ec507baaec439a8418de66016632644aee5d4a8459b6c207de3b664b8fabc4457f94bafd6b9b5a87f2737cecb30f1fa5832 +DIST rust-1.69.0-arm-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B 96fb133bfea0c8d84df18b179731d967112ef7a8d741ef9f8cf6cdb6117ae101128b885b59b379c95d6d96687335e52b2a59e4c28ffb63a2db618d22847e7bfa SHA512 152d290b4915f11465557da8cd4850e4d744d8aa53df81b25d7da5eabad2d7738c9a3f3d1b0fa6ff7bacbd0fcb55dc4641c6b4edff52d2bfdb2f79eca59cdb68 +DIST rust-1.69.0-armv7-unknown-linux-gnueabihf.tar.xz 175695416 BLAKE2B 5c01d80e65b06ebd0625677e997590632afab0a7c5a96bbb91def50d107f307282ed92fd394de81de5ebe801fce583405199975566f801c75bf831d4b24a45d0 SHA512 d2d235adcc7e280dd14d2dbe01c718095f5c138246eca8e6df4e2ef5b74ec1add3300776c09d184047956a9163d24f9c5aae75d4ac611f57490684299cfa929a +DIST rust-1.69.0-armv7-unknown-linux-gnueabihf.tar.xz.asc 801 BLAKE2B d939f3c29eb916c7e2c94776736d052ddead2e071e068ec94e180d4f5f922abbb165cf596574a3e3e2954d7cd79ecc20619f563ad9495cef0f9ee84fae2fbacc SHA512 13692854268ec690ac9307d118ef27d2e81693f1e33583e934e387ab2538a9b778e46d84f326aafe239272d7941489877a9cd43f31ccf37a294b0be466ea3498 +DIST rust-1.69.0-i686-unknown-linux-gnu.tar.xz 199132360 BLAKE2B 1e0b79d6883ef72335a41dad4a9811c27de1c9c926bbf3140c6201140f53d4d68c1ad5c8002b040b29c74d6454508cdf48cb583b0fa4317ab645d8945fba3f63 SHA512 345ad4da1443abc8fe160c40cbe42a02e6e1e93c8be7e09e8d025ade744d02ccb4a4d07379f27f8e70f694199359451b402cfdd37045c390e4f8013ff5b59228 +DIST rust-1.69.0-i686-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 4371d5ff495bd9f9dad690a411ea1455fa4275b2324d6d8d0fc7a6c93baa44dc32448c122a4e8d6206ddf23e22e687614e94fac6ba8b4ca630328c02c8f7732c SHA512 7fc72cdc552e3c8474478352cd4ec450cab19660d5dd148680293f9ca6adf6ea370abcb707407c9975f9bd213cfd02fc2d32c1c11bf6a32c892e02d9ee6c246d +DIST rust-1.69.0-mips-unknown-linux-gnu.tar.xz 151257112 BLAKE2B 098ec6973981845f7fa96a3a32051ceee0859abfdef3ce6d9486fb5c170ed194dca688013c8666c135db5f8d6ba468ec5e42db7d57265f0618909fa14c69adf1 SHA512 d5605d87cab05f499959f03c4bbb607c8e51d4c4e93f83bedd5ab7f8fd0fffd11cafc59f6b866bffd30f76ea37f5a69512491d46fbb613a82eadba63e17ce13f +DIST rust-1.69.0-mips-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B f39075809e42bc83d2be8057095f4cb95bed16a63a9d10f898ba878852f2b4f25fb734a34510be506b0efafe39d450719d5f59a5f4c52bea6f6d5299993c0526 SHA512 ccf22fe8ee696b7402ec0afa9a5564d514ce423fc62220eb3429d366e5c526786d82919ce4740a9d0af61b1fccf457dc2bd4328d863820918614e8edd4c21c1c +DIST rust-1.69.0-mips64-unknown-linux-gnuabi64.tar.xz 149208900 BLAKE2B e68ebbd8ed27384097d1a847a51e7f60c5ef353b21b1c595ac7398762699117f24d43bd8f968b4f8ce48da9646f818d4252e13dcb2c68dc8ad976318a65e033f SHA512 b26304ebaf78655cf5c7966473f9d65c2c969ce61109d3fcaa852ec09de11eedb144a55feaf19695387ff82aa604aeefc20ef59f315bde56bbaa66303432cb6b +DIST rust-1.69.0-mips64-unknown-linux-gnuabi64.tar.xz.asc 801 BLAKE2B 219cdecb36deabaf099c09e665fb44f44dd16a49097f4bc101c9d5201f21e6f0ba91ee4751b8d336929d7a270cbf4d58ea48827f80a3c3c74003addfe2b2974e SHA512 aa866c1caac3b35ae1d3b846db7a92dc2c826de4b3671bf7cd3c0fb21f6aba68adfeee843fb351284c3cf816dfae8faef165b12f1821b2d63efd37c149b2eeed +DIST rust-1.69.0-mipsel-unknown-linux-gnu.tar.xz 154656916 BLAKE2B d3c20130eecee206cca2c017f30e842b155cb4774129790347c6ae11276ff12dc31e6636a7c82e8064129d68bac275141c652a25234b157658d053162f28b4b9 SHA512 dad06c90b20d9f343a87dccfd9379c7fa8a914eccd77bb4e6f3a6f322e165db25001c13f78dee85055b7aea29b01f72f7cc1602a39ea911183ffd768c7e601da +DIST rust-1.69.0-mipsel-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 4d5b46911d51b7fd1494318552b43bfe7448566fb0870229d90f0a237a863f3638a1b1b455c17016021f5b1d94acbe7ac048e71f7a1894cdd6b318431c64a6e2 SHA512 d089842013c4054c74929a4ad4d1cf6362b32e87a4bb5cf3613b260110d7fef69209605795d97484c8fd34287297ec70d6826d19693417cc9ac56b24079fc29b +DIST rust-1.69.0-powerpc-unknown-linux-gnu.tar.xz 168723248 BLAKE2B b39871cac143d16565e777301ec17d41fc9887c7355c5c2b97c969c87910ece8531cb11ada056b6c94977ad3db81fb9304308065e07be570ecbcecd8529e64be SHA512 9211aa19c792ae12cfeb646a214761b3c2b012b33402a6b881b2d8bbf12a5da1f528b2b9adeeb42afcf18eb5161d430e9dd08ff96e3f048f5e6ae94a7abcdfbc +DIST rust-1.69.0-powerpc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B e697fb9abb9f497214eca3d54550c6e11a713d70f996b5f2ab9fab0833b0d2c20ee5da1407f8b0a862c39f35e9eb85a731529c828ce1530954c29a33bd0ea215 SHA512 b2f1adafdc9632dc553d4c88d1eced2f73eef5ae76a3b051e4e338cb99b0a1ef1280dd2a8783c55d40688c05f4ebd2e77fc785a4e3827ae5f1a0f3734cffec64 +DIST rust-1.69.0-powerpc64-unknown-linux-gnu.tar.xz 168097900 BLAKE2B 1e476381ec036a23fae6a469471a31998461df22f4eefa3faefe286a6ffdc40aa29fdcb07702cf162261820e00161b95d3a4c04bcd23d843e70221d233237106 SHA512 5e9787f2c92373d044a99a23419ae8adbdd83beeec32f5403e2011b650e8a5020e16a9aecab21079dc1e4c906dca6ffc5c581e47a75e841df86f478b5c2e7d0a +DIST rust-1.69.0-powerpc64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 89928b51bfbbbdfa22cff5baa78a8b33d54f98c523302e12632d4180aca17f1c37ad5f57907422cad3ea5a5eb54e667478078a8af36511ad6657aa0fd5bd5e34 SHA512 bf08e394b3797baf388c4f9753e0a57e51f110e65128817b1e48ac066a4db3c60b9ea988b6af5c6ee7651656ff98a1785cb349ea4557a14cd40ef5071770fde8 +DIST rust-1.69.0-powerpc64le-unknown-linux-gnu.tar.xz 177527584 BLAKE2B 1c9efdc5098384b9f2b8ba44e3704bb380fee70a6653ef5dace2773c7083de60ec9814f43253db5febe43746e0ed054cecc30763f8a92ca70a4b4ce0d83ada64 SHA512 132c95339994171cc3ee71b844cd29c1ca4c2b9cb2e55d8d2b6dab0b43efabb6674b19b0298ee18fab2f6b137c2b4baa3574e3d5985a46f622f489222647499e +DIST rust-1.69.0-powerpc64le-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 209bf72584da1c9bd224ffd070562b72f4240ba802dbb9b3079f330767df90490c4dc808a87d04a31834123b6583ebb62faaecc082edfe2130643f2e577cc274 SHA512 1345173b8b52afa3584e5351a1f2996c823e202ec60d020e43bd0bc8078ba99251586c63e12e9874fa8cae8153fa50c111fe1f27f5d7f27f3df9e11bd2d794f7 +DIST rust-1.69.0-riscv64gc-unknown-linux-gnu.tar.xz 162502700 BLAKE2B 148788555052d5578837e63d9e3a78bb18e9b6e3928b7ec86664c278147f2429342244cc66422807290a61d3f0ed2291aba297dd74562db0b60db0b9f801959b SHA512 af4a7f8ed69aa9e75c457f5c808e3f465dcfa38c9f224f4962a309a1f6352aecd75a1a434d43f15a16382f54d99e7d162a496ab7ab89dd41ab0481f07e4c0546 +DIST rust-1.69.0-riscv64gc-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B e02800b42cdee6d7e78fc5ace9f4b8d7f50b6c02aa1107ef1e025bbd1bf91a2dbc200b7f5198e8fffe3b1f81192acd3b8e8eb8af60c0603f03d449ec17c4d4d9 SHA512 79fb21ef8e1049cbdab2f148b8b5ad5f81f93ed338dd76a69ff457200c32acfaef1ddc76bb462e3317aea55aeefe1593073c637c26ced417767f86ffb311e6e1 +DIST rust-1.69.0-s390x-unknown-linux-gnu.tar.xz 192163756 BLAKE2B 9191b2276af1fd2872ae77f0a366b71a56efb4a7507d6a5c3fe301ed2a8165b417abf8a5c85f08b7e8a171318f9f27abb31a777e347f24e59272df95e1448959 SHA512 36fb7ea2b6bd61d0a05cf5dadbbfc4d623271baa3819ee3f6c91389e39da6c22c4a568eb78c4a3ab5e270bba163afd742d0d585f0d381c758709405c3292c5e9 +DIST rust-1.69.0-s390x-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B 5191016cf56b106230791dafa2baaaa9ee9c40009b304831eb81ba5f536588eca43840c66e927f80f677780c15ac19278f710b12a5753e063af6257cc2c1fb6b SHA512 10625fa96fcdc2f19abace688a7c5f6aa8078959d52e7f1a635bb5624d32eb71ba055fa14d89f8724813385d52f7e55f307a9b1b76236c999c2b36634acc14cc +DIST rust-1.69.0-x86_64-unknown-linux-gnu.tar.xz 152594196 BLAKE2B f46e89bb76033bddaf8dd96d6abc5ad45965c4235bd97bef9d827d528bb385348c11a8916e9443d888dea6d6637a7460d2d0b61d3b1d642e5d908d0551ee64c6 SHA512 6031403e7009d758074e76a0aa9d4d90c236799439832e0b6fe1e481afb20a330952d92a3627efa28029958ee36f2b93e123a0f4e1e446bca2f1ede2e4bfc621 +DIST rust-1.69.0-x86_64-unknown-linux-gnu.tar.xz.asc 801 BLAKE2B b12e73829cef5aed2f1fef7c51122d4f4db11622d53860013e3a396ea7a1bf945ce2142aed3d4720c89f0bda223d5fd8f1665da11be185faff949f45a4d65206 SHA512 79d5315ee87e2a02425671376d1a5ed0d947e85fd5bd5a09c6634ac4bc9baa31f1ae57380e3ed00f597f8594c67a319a86ed4f9bd34aafcca43aba388cd0ec39 +DIST rust-1.69.0-x86_64-unknown-linux-musl.tar.xz 227932404 BLAKE2B d28f150fe1adc4ca4dc6d7fe74396d24bff699fd010cd05f4bdbc2c0061e3b10b0b1c6ca1a87bba9de8f8e45c5af20a339f01e96982f3aa77f90f879a54b482c SHA512 8879f9031a98169880433c18f71ec08ea1770e59e27279b0d96dcf8aafa67594b2c50f322a5d9b5eb766d6b4da00c969111142e9d4ddd000daf4b3b2ac0b848a +DIST rust-1.69.0-x86_64-unknown-linux-musl.tar.xz.asc 801 BLAKE2B cd06fb7b95c997cb6ba84a662733a629397a93ba226daf3cb8e0ec3b76ca7a4ec2b264f3b6ea2960ebd4863db259ffaf0cb5ec90a579a910c8c77ea392238b7a SHA512 5f7741db315cf88965a372243a1d0111e5061cc23365980cb80adebc7ed40e5bd12ce981c1e0e9ea802d941f75a8bd917a89d793f49a35a2633c6f807758802e DIST rust-src-1.65.0.tar.xz 2488012 BLAKE2B d48f5591e72e14084f2fb0d66c1365f1648060d514af23c0498e02adfd7223b1a79bd1f512859b058f9cabc4b88b9230d15960df7c30762a5263d1785b877a68 SHA512 247f822a9c2f16d1de29d1cf6fa7ff393b7c7fe01da66a7c0b4add6259d72403922b8b1bd1b511ed8a9cc0b2c12ff574945aa7fc76c731fba620b466bcdc2eac DIST rust-src-1.66.1.tar.xz 2512096 BLAKE2B 514b8f9170d8a0e9b9deeeda27c5b83c18b7f038cb27a867fc4df1a0375b5c492793e67d0f0a2c26354ed1b58c699e1ff3e19f536dec10fc8b8211325dd4999a SHA512 3b77e29bf0803278d46aa5a484a2d74f242bf7f1ce6f5a6d1e84107630aa238620c91459f385f1b9f1bfb67c593ea5a274950a4db2975307cabc3a009b89f157 DIST rust-src-1.67.1.tar.xz 2522656 BLAKE2B 28f67cbac3d09af16f572c102890b49ffb4c610ebf379cf48ff4d0107afbb39587d2bcb7c5a4f811542f84dc3157557c762b006a6e89c54cd121d22bb677a770 SHA512 839266d2046b12954fd46f258a975a37c81cb61b6d2d9a5905fd6c83961d97c197f1b467c881d5078f3725293eb73ca402b002af3f47b6f7d431828f01d49a15 DIST rust-src-1.68.1.tar.xz 2536020 BLAKE2B a12e2037546f7139d2e5446e2652c6aca9c5709eba756673188910799e6e3f8c444fb2969ec446b7b8e904f0828b7f85fe57a1c3027693da7ef8180415709a54 SHA512 e9a77ed30f65dfcabd630d5546de22d831031bb27ba72f27ed952df30c76827a5cc363f521d99b6fa3d204965a29e10ab1b0b79d36114c5d7bf887bb849fc21e DIST rust-src-1.68.2.tar.xz 2535692 BLAKE2B e56c0e48546479be30e3a22c36ccc620a69fc97486bab7fd3a45b942c6fadd160f126a805f4213cabc5d2fcf92d9fda1daa9b320d428958351ead861f617785f SHA512 0ec51c6ab2720dca0790eda81460a73857a68ca5517e959fe66b4b106a5158791493e729c0aa23e64a970102d071bca0684fb748340ac90a727035c4ef74814a +DIST rust-src-1.69.0.tar.xz 2405440 BLAKE2B 685ae443aab2a1ccf3c4024be9a96f476ba56b635d4e3377670c7293d16e56fc6a21f8054155c9408a71a34ba37aea61071c50f75baa9ff0193b3199d7ca431c SHA512 87866577ac94636749c17c30b50866ab047ed35817d20e5b9e1356de573e01d6dee24518c4f85c0b1d0f4dd9ce9a87873fd2a635937fd202f4baeeaa82bb99cd diff --git a/dev-lang/rust-bin/rust-bin-1.69.0.ebuild b/dev-lang/rust-bin/rust-bin-1.69.0.ebuild new file mode 100644 index 000000000000..10ed7b6cb1f4 --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-1.69.0.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2023 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%/}/2023-04-20/rust-src-${PV}.tar.xz" +GENTOO_BIN_BASEURI="https://dev.gentoo.org/~sam/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} ) +" +# Keep this separate to allow easy commenting out if not yet built +#SRC_URI+=" sparc? ( ${GENTOO_BIN_BASEURI}/${MY_P}-sparc64-unknown-linux-gnu.tar.xz ) " + +LICENSE="|| ( MIT Apache-2.0 ) BSD BSD-1 BSD-2 BSD-4 UoI-NCSA" +SLOT="stable" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86" +IUSE="clippy cpu_flags_x86_sse2 doc prefix rust-analyzer rust-src rustfmt" + +DEPEND="" + +RDEPEND=" + >=app-eselect/eselect-rust-20190311 + dev-libs/openssl + sys-apps/lsb-release + sys-devel/gcc:* +" + +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 rustfmt && components="${components},rustfmt-preview" + use rust-analyzer && components="${components},rust-analyzer-preview,${analysis}" + # 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 rustfmt && symlinks+=( rustfmt cargo-fmt ) + use rust-analyzer && symlinks+=( rust-analyzer ) + + 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}" || die + 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}" + + # make all capital underscored variable + local CARGO_TRIPLET="$(rust_abi)" + CARGO_TRIPLET="${CARGO_TRIPLET//-/_}" + CARGO_TRIPLET="${CARGO_TRIPLET^^}" + cat <<-_EOF_ > "${T}/50${P}" + LDPATH="${EPREFIX}/usr/lib/rust/lib" + MANPATH="${EPREFIX}/usr/lib/rust/man" + $(usev elibc_musl "CARGO_TARGET_${CARGO_TRIPLET}_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 rustfmt; then + echo /usr/bin/rustfmt >> "${T}/provider-${P}" + echo /usr/bin/cargo-fmt >> "${T}/provider-${P}" + fi + if use rust-analyzer; then + echo /usr/bin/rust-analyzer >> "${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 +} |