commit:     72c8855d34035202533fe8d4d59bf17b9d74fee6
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Fri Nov  8 04:12:27 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Nov  8 07:49:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72c8855d

sys-kernel/scx: add 1.0.6

Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/39238
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-kernel/scx/Manifest         |   5 +
 sys-kernel/scx/scx-1.0.6.ebuild | 402 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 407 insertions(+)

diff --git a/sys-kernel/scx/Manifest b/sys-kernel/scx/Manifest
index c15c9d2a3104..d155b95dc672 100644
--- a/sys-kernel/scx/Manifest
+++ b/sys-kernel/scx/Manifest
@@ -39,6 +39,7 @@ DIST cc-1.1.18.crate 83315 BLAKE2B 
a97d24ffdf44f80795f67f7721ed4d2524d92342bfb4b
 DIST cexpr-0.6.0.crate 17966 BLAKE2B 
cb46f066eb1f4dbac00ec86dc3e562db7ee8ea5ff17d16a60004fa020405e455b8aeb3d001f669cb33d1b62525bfd04ec657ffca4ed44a83af4a5e75b2c820e3
 SHA512 
766bff7ca7f9bf0885aee6f014bcfc084e7fdfcd567a49443d5340acfe8f257db109de17b24588504fc35c53f2d4303e2d22da21f73669125cfca984950cf886
 DIST cfg-if-1.0.0.crate 7934 BLAKE2B 
e99a5589c11d79d77a4537b34ce0a45d37b981c123b79b807cea836c89fc3926d693458893baca2882448d3d44e3f64e06141f6d916b748daa10b8cc1ae16d1b
 SHA512 
0fb16a8882fd30e86b62c5143b1cb18ab564e84e75bd1f28fd12f24ffdc4a42e0d2e012a99abb606c12efe3c11061ff5bf8e24ab053e550ae083f7d90f6576ff
 DIST cfg_aliases-0.2.1.crate 6355 BLAKE2B 
a758d9c88527f0e6e7cfd6d4c83eda1bcb4d6e2438189fe08e8ecbcaa78d56afc5a4873f3b82bf7da96afd690b44cdf1e44466b6da0f37c358b340481017103e
 SHA512 
74969d12d5d24002a29e08d52e30fbce014dd481a7c35ee0162e69333c5f2d7755f3b02439b31522e12444cf1ac8e65880ce33fe6778dac03757e362cbf8a72c
+DIST cgroupfs-0.7.1.crate 15667 BLAKE2B 
c491e632de201132cd9fa135d2110796506c38acb94c3dcf2bf023ee6704f6e07f8bfc5e21d0a9d0d08c6be7346731ba9b2a39fb65c294c901c27e05731b72d6
 SHA512 
9e1cdd8075d54a1e059eee70908236b0819ff7c2dd69c8babad8195c37967940007b437167a933a32be787c5505c5f04005dc10ac94aa224fc6b52f8f792011a
 DIST chrono-0.4.38.crate 220559 BLAKE2B 
ab828bfeed56eb737a1797d5e1132cafe87a1e14bf7a1fe4a5098f50e6ceead50ca2e7f041cc2ff63d5f4e41e2853322f6c345bb31ff12a5b412e3e5202f5fea
 SHA512 
858e47e3facebd5383e71898f26b27d92fe4a69027e2cc47da2af59975ead7767355e0b699f4228eabe76a3eff8b2519c7cecf8b60dc3fc60fbf9b28e2f3d4d9
 DIST clang-sys-1.8.1.crate 44009 BLAKE2B 
9173de6dfbd3ef9d5d1fdc559700cd3a52f95cd77302063a97e8cf311a35825825e030b47f252c857853663ae8a16709e1f7bd0c608d67c2a74eb36ed588e778
 SHA512 
a68c426c20110fddb8bba07d6631517b0528fad45802e5a34a22561d7e6dad82dc5001387019a03f275e9a671b09ee0a06b6e86793c4fb4ec655700bb0f5e125
 DIST clap-4.5.17.crate 56802 BLAKE2B 
fcdd23d66ecd27ee3820c4abe681bc997dd6cfd69948e11603aa8c4ca39513d5de901373959328986ef81c046318f240ea87a2f19b38921faf76b6c93d0e4f67
 SHA512 
69f0fe213007a2e0a564945bf58794b891a345c34747e92ec16877253ff60c1a30fab24031b5f56d6e31ea7b0d8c9dc0c815fd1489b2c0df1e2d24b4a2be6406
@@ -116,6 +117,7 @@ DIST libloading-0.8.5.crate 28902 BLAKE2B 
a0fca8f8876092e874964b3dcbaacd41745170
 DIST libredox-0.1.3.crate 6068 BLAKE2B 
cf09f261d3a945d290ecaaa724903e0042d66eca46dde8a40c261ccb1e82c0d6b9926898eadafc6313fdb9f19cde56377b8a9179935482559c4b9707e327511a
 SHA512 
c62142fdca92388664eef83fc89b8607e2df318cbadff6edf9e3d927837853d5cfeb54445299a82054a0ca81853b0a33536966ab26f1f2e0fa43b39aaaf67c49
 DIST linux-raw-sys-0.4.14.crate 1826665 BLAKE2B 
804af73daf396bb20da14f831f26ce06325181de14f0c277350bd22d21789f2bdd663a964cc0e7c5cbd2e084285d02a401a6bfbb3e8a8f079c120f9488b56f99
 SHA512 
28149660bd975ede05624af3582d5c78f498239f5d89713c2c32f5372fc16f4ca024dec35f81ea973a2cf986098890395dbda06ac6cf4ee29df3f9a0e11eaea7
 DIST log-0.4.22.crate 44027 BLAKE2B 
831dc5092db05123bf2e909eafa708339983edece9bc8cb802f0ab418d47ddc5045a72c1b58bc7c46ffa68080eebd0fd55d6e4f5b3d5ad3b0bc6b2ea0dcaace1
 SHA512 
bd7baa9c8a5523fd0864a53bcde955d484cacd782412b5b02c890b89dbf62137624da3a27337a310dd8f62bcc6606925a42bbd4ca161a3b7936ea4ff96bc0d71
+DIST maplit-1.0.2.crate 8871 BLAKE2B 
3cf975d35de2d2fbd50227a6d2c5e72227e99197b620c8f29be97bd3666ec162deeef0d9e6bd327a063f175201beeb73c4ed27272449b1df0b78238b2d36ca22
 SHA512 
917b5cf665e12b687035c895b60b2ae05622963f495f5693515fd24d56f49e95a06ffced68606d061bd20822c655100035930673fd4b0d4790168763b6961a9f
 DIST memchr-2.7.4.crate 96670 BLAKE2B 
da38114beca670467c3e1fbf4e415af6f22d52e3223715d52e181babb89b872b46511563985bcc16d7ff4e82f812c6e83ad904b0fe2501b14445119dfa8240e6
 SHA512 
8d0e8b9c30208897d4b1b920f1bdcccd0c2b75d92a06abe4a1b2407938768abb6487d63de56c6a80419798fe69517210643dfaf11f5f5540185f0eccf220adb2
 DIST memmap2-0.5.10.crate 26847 BLAKE2B 
1cf50f710ffedcebade4f131b8c3103b036778b320da671305c0244077743c53da155d444bcc4d0eece294234bb6e86bffe67da67aaf12a116573c64ce0ebc50
 SHA512 
39bd2734ce4f16c7f5a5e771f9ef92272b26f511421d5f39dfd2aaca072400ee38f2cd38352005c0c8c359095131770ce1c14570790bfe19ce6a17f711deff8a
 DIST memoffset-0.6.5.crate 7686 BLAKE2B 
9a797388702389076c426052c3d54dc62802d5db8bc5c9c83990429f2ffaec4fab4c7dd3f09cd0704d1ea555e87976563bb43408ba54b5e66ce7e406d4604009
 SHA512 
11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f
@@ -178,11 +180,13 @@ DIST rustversion-1.0.17.crate 17621 BLAKE2B 
1f077ca6fd90333724d1ea9df7f5b178f37f
 DIST ryu-1.0.18.crate 47713 BLAKE2B 
409cdf4b4e77685394018371e91ad6fdb175ac57e1df9f902871f13208515e5a2ab1daa226fc1e7291278e64448332845be4cc9409bce3b2f3daed409259e104
 SHA512 
a9b2beac778ec47e6be303148d7512ee681bd2361f6e4ac6db32c8b4baf86a8c5eb5b0d02eacd6131ae88c7b5105c57018c3050676e0b3dd1ed9c4d2fd650e84
 DIST same-file-1.0.6.crate 10183 BLAKE2B 
a320c8343e0b38078ba81c4f0159d886bf47764c74efe0d7cd2b3218426e8341b51e523c00a9e5fbc2ee1057618296bd70b576c68751bd55d6ddb352defaca15
 SHA512 
3ba35309742c8db63210d9ea78bff4ecd80471d69e6238eb96c7bf0673814f221e2d838fe6311bfc5a0e71b4a7ccba33e07859c0b9cff2171969ff08a4214a7c
 DIST scx-1.0.5.tar.gz 1724582 BLAKE2B 
926de0bf39818f1db6d7487b8f21770839f1126ca8c084fde94f4a820e85f46139b9cb28f3601efafc4ba70d0d234c1e79b6ba67cc3912b670de161aa4242c3d
 SHA512 
05517e5d796fb79e8625b17c3ffedafa2eebc17501e05c1fb99319282729e4cae9cfcfbf32c8034d7b4c6ed20f7e37dcbd9db8d074c49eb70185b6186f7db827
+DIST scx-1.0.6.tar.gz 4172710 BLAKE2B 
5d2cf3930c309b2753a08df80943af8c6a3a0d81fafc0f8b8f481aa8c1d8670cea4134f4d64a49b481b64fdcccb368c23eca86cc843fd83b482a22aef938a50d
 SHA512 
16e9960a9411a6f9ed9f3b1a8c70eb8535c5fe79decfd5fccc11fe6463f227bc22a434f3509e14d6e49c66e658d03792f9cb9253bae4875f686310e4a45d5e06
 DIST semver-1.0.23.crate 30622 BLAKE2B 
af5f7401daa2004ac1fc419ff907a65feb9b11743ad0feca0929bf2409eb81e03637ec5f92ba9f38ea386c4ee5cde72bd3d2042083e2fb0d6fa0b839b1c5093a
 SHA512 
5ea1fa17c08d1280c3a4bc8d28494e88ee05acd5dc969ef6f0c6f91fd3b5a8fbe999c9e8bbd2da383413038b8d29fabf02b87bd5265bbb8333f3fcbe409103ec
 DIST serde-1.0.210.crate 78338 BLAKE2B 
b3621d1313312177a346313e6e384fe9660f74eefb18e6cffa39fc2aadc0ab73be84b9037c59b716e5feafcd73f4f054f83e6d17d82746984b3064bf8d3ed338
 SHA512 
0d853ca51543ae8b4a0c70204ff4e559a4eec77af3d3bdcfc75c5905c80d4ffd1bd9eb8258ea4f6ecfbdd26477ecac7dd698d84d86759fa32e03a9cce02fa4ae
 DIST serde_derive-1.0.210.crate 56020 BLAKE2B 
b346e574c99b6a8b12dfc29b20a4fd2daf8abfabd3714ccfde059a3a1f14a5628d4acf6a03f8076174fd28adfdb7cb9bbdb8ac0d4403aa2f43e917eed4b08028
 SHA512 
1c54d70a55007c00d3ff3d8c2096f4f9966431ba7bfd9195bcf41932de71b71c4ab934f9a8c5067cb56a042742cf0efab07377dbabf12feb1af6d20399de00b5
 DIST serde_json-1.0.128.crate 149520 BLAKE2B 
246eb865f64a0f161b79f3d4f783dbadbc930c4a19edb6c0fe8f0c6145c7c47be4b692d3e084b1b500820ece8e94214820978cf898926dd805bd431fb411bbc9
 SHA512 
9e6290d3a6a971b3c37bbc97097b8179e64c655779b43c7b75303a35ef7030f5401b3a5f62cbc95a7bd5f42ecbefb0b469234d78a76c8c1597726d8e08908a7d
 DIST serde_repr-0.1.19.crate 9997 BLAKE2B 
1bfc8e94b8c3cf897813f4749d6a1112c1097c2c257821eb366073a41ac46084a21bdc0ee4e3b99d82444619a894472e24fccb60cbd8a41ab7d5b0469cad7c41
 SHA512 
678216a62702b3300fef850f10ee60d88f31de1fbeb7300e3fbbdc4e4a9cbc95c6890c8e7b9385223ec837d9504edd53e69b620f80609e54579c0994ed1ab0a1
+DIST serde_spanned-0.6.8.crate 9330 BLAKE2B 
630bb2cabd74e8d9736e315ac57c4d2c5c4f72264aab35ecc8e0040cb4186885722051a9f7b8a9006fd121fe58428cbb151e5cf541e7de30b6528c84e968f7ac
 SHA512 
2343a2fda35ff57ed8ff7d8eeadd651821fce7e22f91c2d5797c6af7db9e009b7d637382f6f390c17911912865a5aea1ce87a86fbe36f4b6aeccb065a4c8942d
 DIST sha1-0.10.6.crate 13517 BLAKE2B 
85ad8dcd237125945f6f9c2d7a48bc9802dfe8398a2bac86ddb96763486092fa18e80a2e69f89cfd6e95599d34d60ced33b26a68cbbe39bf158238a79433584b
 SHA512 
fd37be7e3f1d4b6addd313a36b55215fb70abd21be7831b71de28bd3eb03b7352817d8a7b1a166df002c3a23eadc8224e49edd4a37556c0e5357565305d4128f
 DIST shlex-1.3.0.crate 18713 BLAKE2B 
18800c364d3a628f1a3125097ea82fe6286550c2997235df0bf8483a3906aacabc81308cb239887d46ba2f457cc6f8acd5aca78316707eea5098cd5666aea67d
 SHA512 
5c8cedbe666a14b8a0874defb9208146ce64579cde52ed483e4a794cac5dde6a24bf8d684404edff582f842e1fd4fa3fbeddbe074f191e4ec4aa517aa456fe8a
 DIST signal-hook-registry-1.4.2.crate 18064 BLAKE2B 
7274d4c115678eae2640a709bf9d682ce867c1f6295a0c5f49e492f95dd1c457f20b56207a74221df1fd9d744b24c6260e28f705777e3c7d47b7bdd36f1d57fb
 SHA512 
16362d232b1d301007c069198d7716848aa73d898ef92e050422b36c09001b4334390dc95a6650e5315377fd8960d4336e5ae869b0a305e8525e977b8327c508
@@ -213,6 +217,7 @@ DIST time-core-0.1.2.crate 7191 BLAKE2B 
c477ad3410ff29f3bf4a38fc6ac4a043d49b6d2b
 DIST time-macros-0.2.18.crate 24361 BLAKE2B 
09fa325be0b1a5b922285f035484b0de8e339306b49595c87f6374e46459d6777c6db4b12c1a0c6ea9795ae8c741188fbb81208d0499a651760b9f5089323fc7
 SHA512 
557786115add272290be8305ab79c44f5b4425b64eb698492fe300f15879d9e013c66933cae8aa8faad9c109e2917e7a0e43c8a5eed7f4b0f0fdad092089efe4
 DIST tokio-1.40.0.crate 789848 BLAKE2B 
cbb0aba8e31ab37afd21ebfb89b5dc961d3d19d38711786ac0860dfd24cfd7ba8c8998788a1e4e5dd8435c498fa754742c183cb8ead085c0f98a06d851a9dea9
 SHA512 
3026362f2848d9e7fedc9005e8bfa0413efe18c49a07f85b9c7aba619bd9525f6ee8c3c65621e43df3bf37288f5b7a63ea57ecca061e4ae7153834e93108bc10
 DIST tokio-macros-2.4.0.crate 12501 BLAKE2B 
9b358adb86e828faeb956d24a1ebf68b51a69bce519ad9760ec3d3b8eb1cf4435afd4edc5ddbf634fe152bc77b8675182dda3f076f1011c5b5b97850c1fa1689
 SHA512 
f4a445f6c2cc7c1cfb5825919cd3dea3af52720c7793c20601d05870e7efbcfe0c6231fba7ada49b5ce46757f0e1475b3667914ff33c2fcb25e9a40151bd2501
+DIST toml-0.8.19.crate 50974 BLAKE2B 
f68987353837b74421256fd9a76134bfbfe93887cfb25145b65b7e6b31ad2c3a3384829a06f50c771a2a0be0c5467c856cc631af69f586ea056c4f15af9e3b7c
 SHA512 
16fdc58d14516e81badbe8c9a4506db75b559b377c9c4fecee79e76007b31a4abfc8c8868bf9159f79c6f7c0218f93bdcfb92b669b0917db7da42b51ec155751
 DIST toml_datetime-0.6.8.crate 12028 BLAKE2B 
62113366771f22b437b2ed0d3bb2489ae9078cb589cfad2ad2e92c81ddbda48f689e5a573366eea4f54c2b3cbc6b37eaa8b442b6d935b631a992de4917268757
 SHA512 
d38b98db3b2d4eebd3001d88e2135b6fdbae63b200f7e900c6bb9c121dd3f170e557332bd26f237312c1cbef61666716b0cf550c2d730f86fa7cd9eb5f64a16f
 DIST toml_edit-0.22.20.crate 106726 BLAKE2B 
c545e7460ffcff1404dcb77e577121f6ef332645cc0566b2e23af72743cd40e571a74660e8034ddfe75c4ae5b0bac8d9cf2915e8c62c283eb977ed3a43449410
 SHA512 
f1514cb1c89fd0d89bcf13a448cd8f0a0a31e05b9c483d9167e6890d70594175dab570c267cbc6596382c2300299c8d1677a5a331bc407e80832da5b7a580294
 DIST tracing-0.1.40.crate 79459 BLAKE2B 
33693ee71564fe5925a63dca351e838dfd8612b4b1e49a33a70095e56ca63287c13c772661ace0e540d08c92942d7cbdc51ff2cce4f4b372164d9aa20ec05dee
 SHA512 
5622188a45dddc0d6d3a8244a9b12db6221f4180944ce1019d18f4e613e4bd113dae5d45fb57dd0754f6e8e153b047cdf00c8f200782bb2b868bc2d423d99275

diff --git a/sys-kernel/scx/scx-1.0.6.ebuild b/sys-kernel/scx/scx-1.0.6.ebuild
new file mode 100644
index 000000000000..9d15161ace1f
--- /dev/null
+++ b/sys-kernel/scx/scx-1.0.6.ebuild
@@ -0,0 +1,402 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( {16..18} )
+
+# List of crates for pycargoebuild:
+# rust/scx_{loader,rustland_core,stats,utils}
+# scheds/rust/scx_{bpfland,lavd,layered,rlfifo,rustland,rusty}
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+v1.4.5
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+wasi-snapshot-preview1
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+inherit linux-info cargo rust-toolchain llvm-r1 meson
+
+DESCRIPTION="sched_ext schedulers and tools"
+HOMEPAGE="https://github.com/sched-ext/scx";
+SRC_URI="
+       https://github.com/sched-ext/scx/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+       ${CARGO_CRATE_URIS}
+"
+
+LICENSE="GPL-2"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openrc systemd"
+
+DEPEND="
+       virtual/libelf:=
+       sys-libs/zlib:=
+       >=dev-libs/libbpf-1.3:=
+       openrc? ( || (
+               sys-apps/openrc
+               sys-apps/openrc-navi
+       ) )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       app-misc/jq
+       dev-util/bpftool
+       $(llvm_gen_dep '
+               sys-devel/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)]
+       ')
+       >=virtual/rust-1.72
+"
+
+CONFIG_CHECK="
+       ~BPF
+       ~BPF_EVENTS
+       ~BPF_JIT
+       ~BPF_SYSCALL
+       ~DEBUG_INFO_BTF
+       ~FTRACE
+       ~SCHED_CLASS_EXT
+"
+
+pkg_setup() {
+       linux-info_pkg_setup
+       llvm-r1_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       # Inject the rust_abi value into install_rust_user_scheds
+       sed -i "s;\${MESON_BUILD_ROOT};\${MESON_BUILD_ROOT}/$(rust_abi);" \
+               meson-scripts/install_rust_user_scheds || die
+}
+
+src_configure() {
+       BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}"
+
+       local emesonargs=(
+               -Dbpf_clang="$(get_llvm_prefix)/bin/clang"
+               -Dbpftool=disabled
+               -Dlibbpf_a=disabled
+               -Dcargo="${EPREFIX}/usr/bin/cargo"
+               -Dcargo_home="${ECARGO_HOME}"
+               -Doffline=true
+               -Denable_rust=true
+               -Dlibalpm=disabled
+               $(meson_feature openrc)
+               $(meson_feature systemd)
+       )
+
+       cargo_env meson_src_configure
+}
+
+src_compile() {
+       cargo_env meson_src_compile
+}
+
+src_test() {
+       cargo_env meson_src_test
+}
+
+src_install() {
+       cargo_env meson_src_install
+
+       dodoc README.md
+
+       local readme readme_name
+       for readme in scheds/{rust,c}/*/README.md ./rust/*/README.md; do
+               [[ -e ${readme} ]] || continue
+               readme_name="${readme#*/rust/}"
+               readme_name="${readme_name#*/c/}"
+               readme_name="${readme_name%/README.md}"
+               newdoc "${readme}" "${readme_name}.md"
+       done
+}

Reply via email to