diff options
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/Manifest.gz | bin | 8372 -> 8372 bytes | |||
-rw-r--r-- | sci-chemistry/gromacs/Manifest | 22 | ||||
-rw-r--r-- | sci-chemistry/gromacs/files/gromacs-gcc-15.patch | 36 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2023.5.ebuild | 2 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2024.3.ebuild | 4 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2024.4.ebuild (renamed from sci-chemistry/gromacs/gromacs-2024.ebuild) | 8 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2024.9999.ebuild | 2 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2025.0_beta.ebuild | 354 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2025.9999.ebuild | 352 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-9999.ebuild | 5 |
10 files changed, 771 insertions, 14 deletions
diff --git a/sci-chemistry/Manifest.gz b/sci-chemistry/Manifest.gz Binary files differindex 9cca0db79d75..85127ca606e1 100644 --- a/sci-chemistry/Manifest.gz +++ b/sci-chemistry/Manifest.gz diff --git a/sci-chemistry/gromacs/Manifest b/sci-chemistry/gromacs/Manifest index d2d1863db84d..77ba15562bc5 100644 --- a/sci-chemistry/gromacs/Manifest +++ b/sci-chemistry/gromacs/Manifest @@ -2,31 +2,37 @@ AUX gromacs-2020-pytest.patch 1346 BLAKE2B 4b0b34bf4f46ec1acc3d0088ac11323938ee4 AUX gromacs-2021-cstdint-include.patch 361 BLAKE2B 98c09c5c82d722fc2fcc320741d8f8ed4f661eed7acd66e72ff1423aa2f0eac316add28f5b2b8b65a3b82c160d36aef6948078d3bad3248ffbd7bd63211980d1 SHA512 decf900c565ad9afed33e9a257a2364b63f0f872a5521dc6de4bdf6c7335e15b1cadaf06041f963573c116f1ffcf289a73d0b482df86740ff0874e0ee598825f AUX gromacs-2021-cuda-detection.patch 21849 BLAKE2B 4976321e5f2c5bc9b45feeaa29206d77d04d6148ca910652bd3f7923b6e74b7b10f039b5bcc4430826745f6d64b232c536a8ef75cce61556275942e94945acc0 SHA512 6a1d1f0467d27267d214bc4df95c4b15438fffcae6b84e03763425f869e2551490c0f5e2d28774f9dda2daa07da8b5555617721d46e8b4f067eba2b2b86b353d AUX gromacs-2021-musl-stdint.patch 601 BLAKE2B 2e871d22655950ee9b9951229e78bc022f74ce7a8aa8063bafa30e0fd97cd0451e0621ab48f985d813fd5d890c0f2d0c9ced6d4b26d86e9d1f6774c084f169af SHA512 d36497423beb86a26ad011432dd6da7169ae42dc00d15bc90ba14de6ecf5eb3217ac987260dce479e5f92d5f3a40fa28c5eb1b51816a92b6a37745f674581280 +AUX gromacs-gcc-15.patch 1003 BLAKE2B 557d2ca23180c0e7eb8d19518ba1b22a4fde9f1ccf225e05d00f21e3e6afaecc7f34c3614f783ac812fd03f0fe108099985f72dd6f6fa01d01a2daf6c17c0cc7 SHA512 b3c5430c21025b11a4fbb47785de1fe898183b9e5876e47648f3ddb47be69a808fd53bc96aee0f73bdfafefc4784e42a0a16870e57c92541d59063c2d822fa42 DIST gromacs-2020.7.tar.gz 29175554 BLAKE2B 98f1aa415946f8eb113febc81105f0c1b0919b96fc3c55a0ab83bf3950ff509b81eade92e645adb0bc2b407df239e20cf3f19828b6e08616437c8693c1fddcc8 SHA512 1d375c44cec38445e56cea252623b5b6c565680268999d4b6c14d6dc38759a27227655b2d29efaab9f9115d3677b446cb555e11cddafa0dc10c4827caaa2477b DIST gromacs-2021.7.tar.gz 38028032 BLAKE2B 2dc1b15ca8692ca5cf4ad1c7a266b9e2ced064d34a63cef61fea69e48231dd0310cfd8484d29c56cdb599f795d7655959f40038ac933b46ad2841d57bf2b3646 SHA512 ca478533da3bcb377fda30682660db8eb13beef6456fac6013a1a97ec3be60b5594567412e1e2a31392e484f9a40a22da1f12336f4738cf0422ff4f3e8814609 DIST gromacs-2022.6.tar.gz 40330705 BLAKE2B fdafbd5b2a92d6022dec3e79e961fef220f1eba42850916e7cb70ef459a8d9c6ebc8c1bbe3c105f5b23161dd5c552ec00505d7c0036649b782cf52c311498743 SHA512 91217394f534ca8f78f73189059712e1c2cd354b658722f23768b12748f7bfaf1a5e95227c5ed1b69c1a9b72c3174e9600a712c157ea2f27156387efb823dd67 DIST gromacs-2023.5.tar.gz 42079310 BLAKE2B e50dbe76396230f4a886280bdebcf7b131506679240e77d2a2263c3b5dbfe7ef754c4265fc04e9acad7932c7691de7f694cc23140a25d0d5be649a4120f45b0c SHA512 f3a34cf0d379d6d4964d7494af6c6617c0c092293ea38a3a248af2dd2a90cae04696d52e68126176065efc480977942b00efa441028e526e1555c7e84551fc0c DIST gromacs-2024.3.tar.gz 42373103 BLAKE2B f45af72ecdf119b423d98b84818eaca1aa2e3f43eaf1aff7435de2a5891079a880f19a654627ee2f43e3a38c9dcfa0638bc6eb6da201b3c9ce89b2dc32fc683b SHA512 13f23e581c2b63f6262e8359e7bed6a1a5f3164047ea38d2b6a44bcd2b20b61332705167435fe2ad30fe6f24f8ab49b982388550cdecb49167e4156e36286d3d -DIST gromacs-2024.tar.gz 42455653 BLAKE2B 86446c5e95f9ddaf718126c409389730ee1642f36c3e0d844eb4b3a640c275e7979581365dacb57ac66daec296bbd94be6d5c0376f7255d3d3950f6759f8d69a SHA512 d64bf3cbe579003ce37dfd3d27c68746a04360d9d5491c638f3f2bd9af2c938504b0c9710c62e85225370ddf5418e6ebc2422033e46af5eee6e4aaa53699fed7 +DIST gromacs-2024.4.tar.gz 42356162 BLAKE2B 3a1019128a2cfd47fb3ab23962a6fcd5bac3b5519d4bfa1239956740226468986ba93e645eb3bc20117968c024823e948fd819a603315399d573275c91c6e51b SHA512 32a08e9417d4d36a29bdfde4e0448bc136bd3db79b5d5c84fa99d9f022ffca6a94b7bd1c7e7a335430fb6bdcf0181e3cbabeb46d13978c0f87b5d88787ea8d63 +DIST gromacs-2025.0-beta.tar.gz 45067499 BLAKE2B 661607007af6d1f697f5aec72a88cefec5546dee2c0facaf2776354665f56fd71b1a7a2ea92185b4d64e764cd0ac10e865b740dda6d7438318acbbadd1bd7fd0 SHA512 831b4ba2631f5dd65c1b48d4ba0455af0b101af22d8cc78c246e7b36f4ce3c8f33f1cb8d94e42559741dbe1585c75a6e05a2538708d7e57c86ac2174aca302b9 DIST manual-2020.7.pdf 11850780 BLAKE2B 38594e87993badfbbcf47d6010a7f67d3c3426dab85e1462916b4d62be27b5764953f912cf2b71ee24877e0bfa27b3f74431da2da81b4977d58cb66b2cc795a3 SHA512 4f184f2c90e0bac01a48069cc546cd5b04fa5f543f90dd2d68c6d17be278152fd09456b6a6c5c8236f8fb85a174d6ec7a1c7b44d437b4e6fea5d0ada73cec0f6 DIST manual-2021.7.pdf 12256526 BLAKE2B 6f298d7dac142f66914bbc2ea7d6ca70c4aeafaf33ccf12336d5cec64b1f1097b5332c767bb411ccef706ec6184479a84bcf59bda21c4249d45d8ce3dea08e79 SHA512 197765accb8ab6c5f1cc94b2697ff1817e157d85fa231dfe36a85036076e04da2a8035de66aba4f46c6dd7f553176357b94c92e1da5d1dabc574c627deee5279 DIST manual-2022.6.pdf 13081140 BLAKE2B e7ae3f23ddc076c295be2c464fe2177d6d6848d070ee5eba2b572e996ae08adead898ec6432b123802907f64983aa4d2e17426be8d540c48d12398a479519f9e SHA512 4724888b3c33c4fa4a035d5fb2f8c51496f67e1ee312676510d5ba74bc3cc1571e71e84464585b87ad0133e8e736343ae382bf8f7b556633f86a99560213d271 DIST manual-2023.5.pdf 13579081 BLAKE2B 42f687ebcdb79bfc77aabac4fd382940c23ba27da380b8eff342c2e9255a58fc11a0458220d1f71f3c13ab1cf6fdabad00ac1bad741781d0b787899165bea2cc SHA512 0661f166f7a8dc24b4244c0139f366832ddfc1298129df2a6e29800b5d1567318781ab547bc7e9ee54de7a62abba4996f8e3010c91d6917c248117e5711d7dbb DIST manual-2024.3.pdf 13676383 BLAKE2B fa5b310ee8977c525781492c70a18d40f8842f5fa43831ad0283c033f39968ba98e74ea618a4a9c25d88c3ed694071327220617b17f316ba2f29777c3edc95ca SHA512 8dd09913b89213a6673a5f5e3462fb963d1f30d68e0d58b846b7e2cf2f73baacb14fabab6591b680849607f4ca617cf288899729939b2c32021b4ee5ba06835f -DIST manual-2024.pdf 13644437 BLAKE2B 19d547686d5c5be5e1236aba648e8afb174b281802ab76e020466953ab5d2dd98701f21eb4736cb449b61960b5b7aadce6711b2b0309a41dd1997d7383bce09e SHA512 b00048651f1f81f9024ba5c4c02ad66d2b07eb7b816f0489568fb64859cac515b885a5cb4640c8b5bd7c3620655a7ebc5fc2e4e4cbb8e952ffb0c9b5815ae661 +DIST manual-2024.4.pdf 13690684 BLAKE2B 7fac46df0da9d4cf7584599c7a71c4e1d11f75fc20a7a19ecc8069fdc2e9e35f0292e389f9c40d69dc96bdfea8d4ee370a54279b5531c0fb37c4cbd76caf7800 SHA512 5c4662527554171774adde5a3de220d775723154914838fd7fc3e40c981e1fccac0fd0def1acc500635cd39269d3bcc2edab5ec7aa85a7ea78350969d72ee13c +DIST manual-2025.0-beta.pdf 13788093 BLAKE2B 40652f32f35d73964dfb8146b916c0249d8b7044595114986108f209e98e3a0a402ead18842822ce12c9cdd24a224bb95f80fbe5eec908f013b1eddc14d2a2fd SHA512 eafc1fd060f4a5dd5e7317f0f0fa45cfd5ccc20518a9d67b9055a87c324893d92573dfd416fcbf0fc9b7a932a47e3a592fbc38837bccdd237466bb62cd3ad9ed DIST regressiontests-2020.7.tar.gz 48541487 BLAKE2B 255608b52158c6c01e7c7c4dcf075128ecf22b2f26d32e8c203de8a4bc69c60ec95f49cf8ccd64abc3073c5e8dca9d6b01daed9dfb8f67bce2dd068ed01acd05 SHA512 2458582f94f3c9f4e1454824ce3940b4f5b6cb2151d06846c42e7a9448296fd2a6df4f53be9624e0d3317d2b59f89bb5348eb8b2970d7b46ac22ca989ef3458a DIST regressiontests-2021.7.tar.gz 48537500 BLAKE2B b0c97fa652cb9b972c50f29822f530fcaa2ec9acb6d6442114fc6446c54aade5eb1bfa153c69a7e8bf64b66e8b041d7f8e0d51e7f7b0516f9e03f3d9ad626193 SHA512 7cbead90aa6d62346dcf7c2249c3cfa179884b987a749624444d2f59d93e0322f7721143bf6eb44d26102635dc70a73546ef82d4647558b6320bfdd459074017 DIST regressiontests-2022.6.tar.gz 48615697 BLAKE2B 566adafbc36d3c1faae322fca9cf451f57245c4ceed63f90f26208025937dae0c1bbb8c372bce618f63305d0368113fecd96c7275a75d8b9c19c22a6e5aa9b96 SHA512 68aa9bedffbea37fb7703c18c3f66f607a91f16ece4bec58ced6e42a481156b2fe83760d0e40cecbdcaf87b168441b8ebde27cec30d98c89f516360ea45ddd43 DIST regressiontests-2023.5.tar.gz 48619605 BLAKE2B f2549a34750c6866f054614a00a3360a09b82306e6bd5e5b848e18cdd3a3fabaac6203c5ca734901019403225dd47e0d662838abe9a1db7d07662f1c745b8e4f SHA512 3ccaf9db7dfba641a5e98ebff3d735cae3f679926aba443ffedec20dd6c85e67f0e9711ebad5dfa8105122d5411f5de6ded1802a7da4ddf0599657832c8c597a DIST regressiontests-2024.3.tar.gz 32776961 BLAKE2B 6a74977a396f8e82f7aba7a384cc840275b86d470597a4bbb93e97f1c13cd8fcf6d86ab26bdd4a89464b863954c9ed7dbd49af095e821573845f7bda43c2b90b SHA512 1c4afbbca82c9b9ad371713ef5e7e093ca766f25f6fbda55c79ea1aecb2f0a06bdb042d3c8a86e3d9bf9e8b8091244827dbff544f66037ffa56b0bcb341a9d2c -DIST regressiontests-2024.tar.gz 48142685 BLAKE2B e24c29c2b534f2fe42e4abc122578ba618279f3182f83be604516e6ee2a34ff037b2604b4cda7a9b7e2ea9fce0a386b3efb7c8aa0cac378d6d8c1595be884c76 SHA512 6c4a847c379603590f618a4da7c691b51bbe180ca9dc59abf885ef8599e1b66758171eb05b7d7709d968f559b209c2fa4cfec8f15cc5d072fafe952567002c2e +DIST regressiontests-2024.4.tar.gz 32777006 BLAKE2B 41623de750b89410fa0a52037ea28d99a688b602b286cff732a6e8100b2b72072f579fc4f72bfe7c246ca086b6c6c1c10adb89874db6e1c9276494572e408a9f SHA512 dfbe8ee1b7c5b534842203f2295ea08875df6af3fb94798138b92ab8bc816719e3357db2935d2de4fd798d104ad7cb44860cd65887da7bb2438db422f35e6848 +DIST regressiontests-2025.0-beta.tar.gz 32653220 BLAKE2B 9f7388d7dfc59d89e719d693733f7ff2b3085e9c6b526238f62dc89ba9c30f9c778d99952ca170bf0ffc1d09fff6e4cd1bf1f0dc77c5b45e8613229043ebe409 SHA512 f3786ef08a54cc4a525a8af4ca7276dc6dfb624f13a82b9a9f168253729dd2e7161cecc5540b805bdfdaface8e272cea430bb561d0694970f5a394a718cdd8c3 EBUILD gromacs-2020.7-r1.ebuild 9908 BLAKE2B 71b4d9bfd7def50f1ee99efd1f0355860aa3fb2ac160c4e3e79603d5b20f7f3aedc8cac0ee19b7b94cef310ee27656cd72d207531815735791856550a61a5c8c SHA512 f96a9bdc517356a89b1603e27a209149a3b5944d7b59c87e4318ea67f3c201475a7d263b81f25553935bbcc912d14b4ea276b1ab0962c6743010759bccaeca68 EBUILD gromacs-2021.7-r1.ebuild 10211 BLAKE2B 93cdfb55a929a999fb261f1f00366bc77b8a6e2bad1233baf85d6dd23291d1574c62f898b8c8ec057aaf911164bbe3c08cdd00a92843040fc02c6521c9849d9b SHA512 022be04a04c5aa8198803941ddb20543961f01b8bd2c9e2901a2c879e15c8b3bba538f429ed50c6b88cf923262398fab304ceb8ee15176aeed5efff5d87f020e EBUILD gromacs-2022.6.ebuild 9655 BLAKE2B 3d0e21ae4e04602b390ff7f810c355f5a79a4602e582e4d06103119d21ce3771ebd8ad230f33fd37f786b3e14ce614c949658241a700f75531b8d08077cd97d5 SHA512 9df7661a40d23a3bcec74dd962e021aca7a0a1f5d30ce42bacd4737860e71fb7ef665576079e75d72e7758d3aa3cf5b04a186dba6b02ab9ace90a24ef031bfbd -EBUILD gromacs-2023.5.ebuild 9810 BLAKE2B 29946a30ec5fc7c19233790c48a8e6657006b5a50fae49c188444a6d03f44e8f80ecbaff12b97041a22dd42e33485a8072859b9b3cca86f198cf0fee691e2b95 SHA512 6ac853da2413ebad69a010b66ff53941fe65fe2bdae5d9aec63de376036388c7dff3017243c528d3175126f118420e2187a48d804eb096440eea3d0d755ffacd +EBUILD gromacs-2023.5.ebuild 9809 BLAKE2B d08d7971454700e75b18c92cd69f52a2f2ffd05fabaa917b907cb01f0953a3b78775fd2676809acf06ac90631f8504085b1fce3721d4e4f37254d82be396a740 SHA512 b1c3d23fb02212eeaecbc6b997a23408aaa779b786fd5867821f16466108881e88938df291ca25f3c50dd7be387274ea2b7cedd1da6f0ce98438c6ba583fb9e2 EBUILD gromacs-2023.9999.ebuild 9810 BLAKE2B 29946a30ec5fc7c19233790c48a8e6657006b5a50fae49c188444a6d03f44e8f80ecbaff12b97041a22dd42e33485a8072859b9b3cca86f198cf0fee691e2b95 SHA512 6ac853da2413ebad69a010b66ff53941fe65fe2bdae5d9aec63de376036388c7dff3017243c528d3175126f118420e2187a48d804eb096440eea3d0d755ffacd -EBUILD gromacs-2024.3.ebuild 9817 BLAKE2B 65f5ae4402abc5b2b2fac677fb2ca0a62c97ab9c9d7738ca3491d669772a233d65b8e61afa1f441b9b08f1ed31866cb3fed3aa0bd6b76ef894b5f066c7385f7d SHA512 fcc3c48c835590eb96a773981428435e4b048f1a5fbbdc71f8303a89f46257974ed12bfc1649516cb688d8a959f730d4d59dc5555b6982cf7b9fb5595f545a26 -EBUILD gromacs-2024.9999.ebuild 9817 BLAKE2B 65f5ae4402abc5b2b2fac677fb2ca0a62c97ab9c9d7738ca3491d669772a233d65b8e61afa1f441b9b08f1ed31866cb3fed3aa0bd6b76ef894b5f066c7385f7d SHA512 fcc3c48c835590eb96a773981428435e4b048f1a5fbbdc71f8303a89f46257974ed12bfc1649516cb688d8a959f730d4d59dc5555b6982cf7b9fb5595f545a26 -EBUILD gromacs-2024.ebuild 9738 BLAKE2B af8b9cfb076d9bf0d49544cb5a7b2bcec58ccbfd20a74eb3082e818a890901d10734aa1aba3b1425aab0c0999f16afe83423a865a823e24433703380a8ed5153 SHA512 19a573be8b616440e6680a27ad4a43195d39e265142dad103f6d27d952594c8a99410c98ec2fb8792e7d1318e8a58172b0c53dfc6c494a1662793ea123cdc935 -EBUILD gromacs-9999.ebuild 10091 BLAKE2B 46b1f7c84e7cab89bfbe933b581fceea1d9a28fc5d733b0b5760297ee820325b5a340ada7f4b6129cf72cd49b378398572701014be9e6d29fcc0df4b9b8a158a SHA512 a62ec593636c8ac1b3ab18aecfa9ce7365dac9bc5c6fbca5b6413e10cf3751fd6b5cf924d8dfffe06e5d5fcea57500fd14b00ddb1b684a4b68c6d2d4c4aa2b14 +EBUILD gromacs-2024.3.ebuild 9862 BLAKE2B e178dfde60370c02891a69e6e1b82e1271609e1bbf83036b63da743dd6fc82ad849971c3a306f64a014b9d695dcff2ae9a351ac3784070484321e56d2d1397b3 SHA512 972d80c027a679a178a6bfe9bd147ac425dbd0e7692d94b4b81e5c851b3945cdeac7713df5c89c171dc1dbbf82984a2764ba5bde043e52e5bd30443fe9b9822a +EBUILD gromacs-2024.4.ebuild 9863 BLAKE2B 77657c52384762485cc3aa7615b65058dbcd23bd353b8184f99c1a4665c6a17bdf4ddbb62af650f99622e449768cb05d1e8cecefe1a307139ad5e63495c263f2 SHA512 aa550e1f89af67496b00b4a3469f74aff3477e12dd583d9b8ed15f38790b286a7eb90a3a30a8799b4c6258928c91b32e4307d3da9ef236bd6b12cf7da55867d5 +EBUILD gromacs-2024.9999.ebuild 9817 BLAKE2B 5ef6b37d8c37ca3109be40e004f959cbad36e7b0334808acdf5711c5f06d22a8e199c0e6cd41aa010401134221ca4539810d7d67865f2d8145bb1669afae4471 SHA512 b288eaf90645a5dcc0904332f0c924fd62adbefd723a8f771d7990f3fdb243eaed13d466e91b4ffae2ec10cbebbbe8edb181136a19b2214fe33d01e2be1a0a94 +EBUILD gromacs-2025.0_beta.ebuild 10177 BLAKE2B ca64207e50e5551fbefe77b079a363e7a8fdc8267420f2eaad20d6bd4a0e2d406dba25c284e8fcd1a73f4549d0e42b95e8d6e981823218239fcca8cf17856238 SHA512 828c701b153180d2abb08a69fb75055bedefce7eb14af704f51d66e6dabe71da48f2c06a2a002628d56a2bcef48686f72280edaddd9b15567ed64e54140bdb03 +EBUILD gromacs-2025.9999.ebuild 10131 BLAKE2B 9e39c3615616ee18584c5778b1faf306c5763af1162b36e28940c65d9c12634cc089f95a1f5098a60a9f087bc35c81375534ff8e6781e31681b187bc728338c4 SHA512 7b3fbf70ce73eacf8c6ed20910be83f4d3083886eda8af3a3546bf2b4ae5b964d31bb93710c0dc2856d00dd1de4cee1ea04f7de2a90a4fbf99e1e09eb99bb380 +EBUILD gromacs-9999.ebuild 10131 BLAKE2B 9e39c3615616ee18584c5778b1faf306c5763af1162b36e28940c65d9c12634cc089f95a1f5098a60a9f087bc35c81375534ff8e6781e31681b187bc728338c4 SHA512 7b3fbf70ce73eacf8c6ed20910be83f4d3083886eda8af3a3546bf2b4ae5b964d31bb93710c0dc2856d00dd1de4cee1ea04f7de2a90a4fbf99e1e09eb99bb380 MISC metadata.xml 1461 BLAKE2B fa82d5e83fa403fe8c31d076b2cf577d4299b2c97e993b02634c32e8c74088825f8ef61417bc1294947408fddc5b831b983574dafaac5c6975c06af74d890f00 SHA512 ce2b73c332585d9cfb7d1c7cbc49e5fb94f828191c8805463c03e3f215a7137253796ab49718148ea0c5a6ab85b45794b2fe5d213e0d35b2013ea41f6079d484 diff --git a/sci-chemistry/gromacs/files/gromacs-gcc-15.patch b/sci-chemistry/gromacs/files/gromacs-gcc-15.patch new file mode 100644 index 000000000000..45ac82493bec --- /dev/null +++ b/sci-chemistry/gromacs/files/gromacs-gcc-15.patch @@ -0,0 +1,36 @@ +From 9dfaba553cb5aa0c0d689de1555a3bb45ae7dd3a Mon Sep 17 00:00:00 2001 +From: Alexey Shvetsov <alexxyum@gmail.com> +Date: Thu, 21 Nov 2024 10:56:17 +0300 +Subject: [PATCH] Fix build with gcc-15 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Error is +energyhistory.h:89:5: error: ‘int64_t’ does not name a type + 89 | int64_t nsteps; //! The number of steps in the history + | ^~~~~~~ + +Ref: https://bugs.gentoo.org/939006 + +Signed-off-by: Alexey Shvetsov <alexxyum@gmail.com> +--- + src/gromacs/mdtypes/energyhistory.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/gromacs/mdtypes/energyhistory.h b/src/gromacs/mdtypes/energyhistory.h +index 0c8fecfae7..f80d4c56b9 100644 +--- a/src/gromacs/mdtypes/energyhistory.h ++++ b/src/gromacs/mdtypes/energyhistory.h +@@ -47,6 +47,8 @@ + #ifndef GMX_MDLIB_ENERGYHISTORY_H + #define GMX_MDLIB_ENERGYHISTORY_H + ++#include <cstdint> ++ + #include <memory> + #include <vector> + +-- +2.45.2 + diff --git a/sci-chemistry/gromacs/gromacs-2023.5.ebuild b/sci-chemistry/gromacs/gromacs-2023.5.ebuild index 4ee08b22a7f0..2a5380591fb1 100644 --- a/sci-chemistry/gromacs/gromacs-2023.5.ebuild +++ b/sci-chemistry/gromacs/gromacs-2023.5.ebuild @@ -26,7 +26,7 @@ else doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" # since 2022 arm support was dropped (but not arm64) - KEYWORDS="~amd64 -arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~amd64 -arm arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" fi ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" diff --git a/sci-chemistry/gromacs/gromacs-2024.3.ebuild b/sci-chemistry/gromacs/gromacs-2024.3.ebuild index 2101629ebc36..8920f98c381c 100644 --- a/sci-chemistry/gromacs/gromacs-2024.3.ebuild +++ b/sci-chemistry/gromacs/gromacs-2024.3.ebuild @@ -26,7 +26,7 @@ else doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" # since 2022 arm support was dropped (but not arm64) - KEYWORDS="~amd64 -arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~amd64 -arm arm64 ~riscv -x86 ~amd64-linux -x86-linux ~x64-macos" fi ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" @@ -92,6 +92,8 @@ DOCS=( AUTHORS README ) RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-gcc-15.patch" ) + if [[ ${PV} != *9999 ]]; then S="${WORKDIR}/${PN}-${PV/_/-}" fi diff --git a/sci-chemistry/gromacs/gromacs-2024.ebuild b/sci-chemistry/gromacs/gromacs-2024.4.ebuild index a3319899d419..ddea6cc4a8d0 100644 --- a/sci-chemistry/gromacs/gromacs-2024.ebuild +++ b/sci-chemistry/gromacs/gromacs-2024.4.ebuild @@ -26,7 +26,7 @@ else doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" # since 2022 arm support was dropped (but not arm64) - KEYWORDS="~amd64 -arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~amd64 -arm ~arm64 ~riscv -x86 ~amd64-linux -x86-linux ~x64-macos" fi ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" @@ -45,6 +45,10 @@ CDEPEND=" blas? ( virtual/blas ) cuda? ( >=dev-util/nvidia-cuda-toolkit-11:=[profiler] ) opencl? ( virtual/opencl ) + openmp? ( + sys-devel/gcc[openmp] + sys-devel/clang-runtime[openmp] + ) fftw? ( sci-libs/fftw:3.0= ) hwloc? ( sys-apps/hwloc:= ) lapack? ( virtual/lapack ) @@ -88,6 +92,8 @@ DOCS=( AUTHORS README ) RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/${PN}-gcc-15.patch" ) + if [[ ${PV} != *9999 ]]; then S="${WORKDIR}/${PN}-${PV/_/-}" fi diff --git a/sci-chemistry/gromacs/gromacs-2024.9999.ebuild b/sci-chemistry/gromacs/gromacs-2024.9999.ebuild index 2101629ebc36..e63891201881 100644 --- a/sci-chemistry/gromacs/gromacs-2024.9999.ebuild +++ b/sci-chemistry/gromacs/gromacs-2024.9999.ebuild @@ -26,7 +26,7 @@ else doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" # since 2022 arm support was dropped (but not arm64) - KEYWORDS="~amd64 -arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~amd64 -arm ~arm64 ~riscv -x86 ~amd64-linux -x86-linux ~x64-macos" fi ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" diff --git a/sci-chemistry/gromacs/gromacs-2025.0_beta.ebuild b/sci-chemistry/gromacs/gromacs-2025.0_beta.ebuild new file mode 100644 index 000000000000..6fedd5b9ab0a --- /dev/null +++ b/sci-chemistry/gromacs/gromacs-2025.0_beta.ebuild @@ -0,0 +1,354 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="ninja" + +PYTHON_COMPAT=( python3_{10..12} ) + +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=no +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 cmake cuda distutils-r1 flag-o-matic readme.gentoo-r1 toolchain-funcs xdg-utils + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI=" + https://gitlab.com/gromacs/gromacs.git + https://github.com/gromacs/gromacs.git + " + [[ ${PV} = 9999 ]] && EGIT_BRANCH="main" || EGIT_BRANCH="release-${PV:0:4}" + inherit git-r3 +else + SRC_URI=" + https://ftp.gromacs.org/gromacs/${PN}-${PV/_/-}.tar.gz + doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) + test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" + # since 2022 arm support was dropped (but not arm64) + # since 2025 x86-32 support was dropped + KEYWORDS="~amd64 -arm ~arm64 ~riscv -x86 ~amd64-linux -x86-linux ~x64-macos" +fi + +ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" + +DESCRIPTION="The ultimate molecular dynamics simulation package" +HOMEPAGE="https://www.gromacs.org/" + +# see COPYING for details +# https://repo.or.cz/w/gromacs.git/blob/HEAD:/COPYING +# base, vmd plugins, fftpack from numpy, blas/lapck from netlib, memtestG80 library, mpi_thread lib +LICENSE="LGPL-2.1 UoI-NCSA !mkl? ( !fftw? ( BSD ) !blas? ( BSD ) !lapack? ( BSD ) ) cuda? ( LGPL-3 ) threads? ( BSD )" +SLOT="0/${PV}" +IUSE="blas clang clang-cuda cuda +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy hdf5 +hwloc lapack mkl mpi nnpot +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" + +CDEPEND=" + blas? ( virtual/blas ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-11:=[profiler] ) + opencl? ( virtual/opencl ) + openmp? ( + sys-devel/gcc[openmp] + sys-devel/clang-runtime[openmp] + ) + fftw? ( sci-libs/fftw:3.0= ) + hdf5? ( sci-libs/hdf5 ) + hwloc? ( sys-apps/hwloc:= ) + lapack? ( virtual/lapack ) + mkl? ( sci-libs/mkl ) + mpi? ( virtual/mpi[cxx] ) + nnpot? ( sci-libs/caffe2[cuda=,opencl=] ) + sci-libs/lmfit:= + >=dev-cpp/muParser-2.3:= + ${PYTHON_DEPS} + " +BDEPEND="${CDEPEND} + virtual/pkgconfig + clang? ( >=sys-devel/clang-6:* ) + build-manual? ( + app-text/doxygen + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-copybutton[${PYTHON_USEDEP}] + dev-python/sphinx-inline-tabs[${PYTHON_USEDEP}] + dev-python/sphinx-argparse[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-autoprogram[${PYTHON_USEDEP}] + ') + media-gfx/mscgen + media-gfx/graphviz + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + media-gfx/imagemagick + )" +RDEPEND="${CDEPEND}" + +REQUIRED_USE=" + || ( single-precision double-precision ) + doc? ( !build-manual ) + cuda? ( single-precision ) + opencl? ( single-precision ) + cuda? ( !opencl ) + clang-cuda? ( clang cuda ) + mkl? ( !blas !fftw !lapack ) + ${PYTHON_REQUIRED_USE}" + +DOCS=( AUTHORS README ) + +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}/${PN}-gcc-15.patch" ) + +if [[ ${PV} != *9999 ]]; then + S="${WORKDIR}/${PN}-${PV/_/-}" +fi + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + python-single-r1_pkg_setup +} + +src_unpack() { + if [[ ${PV} != *9999 ]]; then + default + else + git-r3_src_unpack + if use test; then + EGIT_REPO_URI="https://gitlab.com/gromacs/gromacs-regressiontests.git" \ + EGIT_BRANCH="${EGIT_BRANCH}" \ + EGIT_CHECKOUT_DIR="${WORKDIR}/regressiontests"\ + git-r3_src_unpack + fi + fi +} + +src_prepare() { + #notes/todos + # -on apple: there is framework support + + xdg_environment_reset #591952 + + # we can use clang as default + if use clang && ! tc-is-clang ; then + export CC=${CHOST}-clang + export CXX=${CHOST}-clang++ + else + tc-export CXX CC + fi + # clang-cuda need to filter mfpmath + if use clang-cuda ; then + filter-mfpmath sse + filter-mfpmath i386 + fi + + cmake_src_prepare + + use cuda && cuda_src_prepare + + GMX_DIRS="" + use single-precision && GMX_DIRS+=" float" + use double-precision && GMX_DIRS+=" double" + + if use test; then + for x in ${GMX_DIRS}; do + mkdir -p "${WORKDIR}/${P}_${x}" || die + cp -al "${WORKDIR}/regressiontests"* "${WORKDIR}/${P}_${x}/tests" || die + done + fi + + DOC_CONTENTS="Gromacs can use sci-chemistry/vmd to read additional file formats" + if use build-manual; then + # try to create policy for imagemagik + mkdir -p "${HOME}"/.config/ImageMagick + cat >> "${HOME}"/.config/ImageMagick/policy.xml <<- EOF + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE policymap [ + <!ELEMENT policymap (policy)+> + !ATTLIST policymap xmlns CDATA #FIXED ''> + <!ELEMENT policy EMPTY> + <!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED + name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED + stealth NMTOKEN #IMPLIED value CDATA #IMPLIED> + ]> + <policymap> + <policy domain="coder" rights="read | write" pattern="PS" /> + <policy domain="coder" rights="read | write" pattern="PS2" /> + <policy domain="coder" rights="read | write" pattern="PS3" /> + <policy domain="coder" rights="read | write" pattern="EPS" /> + <policy domain="coder" rights="read | write" pattern="PDF" /> + <policy domain="coder" rights="read | write" pattern="XPS" /> + </policymap> + EOF + fi +} + +src_configure() { + local mycmakeargs_pre=( ) extra fft_opts=( ) + local acce="AUTO" + local nnpot="OFF" + + if use nnpot; then + nnpot="TORCH" + fi + + if use custom-cflags; then + #go from slowest to fastest acceleration + acce="None" + if (use amd64 || use x86); then + use cpu_flags_x86_sse2 && acce="SSE2" + use cpu_flags_x86_sse4_1 && acce="SSE4.1" + use cpu_flags_x86_fma4 && acce="AVX_128_FMA" + use cpu_flags_x86_avx && acce="AVX_256" + use cpu_flags_x86_avx2 && acce="AVX2_256" + use cpu_flags_x86_avx512f && acce="AVX_512" + elif (use arm); then + use cpu_flags_arm_neon && acce="ARM_NEON" + elif (use arm64); then + use cpu_flags_arm_neon && acce="ARM_NEON_ASIMD" + fi + else + strip-flags + fi + + #to create man pages, build tree binaries are executed (bug #398437) + [[ ${CHOST} = *-darwin* ]] && \ + extra+=" -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF" + + if use fftw; then + fft_opts=( -DGMX_FFT_LIBRARY=fftw3 ) + elif use mkl; then + local bits=$(get_libdir) + fft_opts=( -DGMX_FFT_LIBRARY=mkl + -DMKL_INCLUDE_DIR="$(echo /opt/intel/*/mkl/include)" + -DMKL_LIBRARIES="$(echo /opt/intel/*/mkl/lib/*${bits/lib}/libmkl_rt.so)" + ) + else + fft_opts=( -DGMX_FFT_LIBRARY=fftpack ) + fi + + mycmakeargs_pre+=( + "${fft_opts[@]}" + "${lmfit_opts[@]}" + -DGMX_USE_LMFIT=EXTERNAL + -DGMX_USE_MUPARSER=EXTERNAL + -DGMX_EXTERNAL_BLAS=$(usex blas) + -DGMX_EXTERNAL_LAPACK=$(usex lapack) + -DGMX_OPENMP=$(usex openmp) + -DGMX_COOL_QUOTES=$(usex offensive) + -DGMX_USE_TNG=$(usex tng) + -DGMX_BUILD_MANUAL=$(usex build-manual) + -DGMX_USE_HDF5=$(usex hdf5) + -DGMX_HWLOC=$(usex hwloc) + -DGMX_DEFAULT_SUFFIX=off + -DGMX_BUILD_HELP=on + -DGMX_SIMD="$acce" + -DGMX_NNPOT="$nnpot" + -DGMX_VMD_PLUGIN_PATH="${EPREFIX}/usr/$(get_libdir)/vmd/plugins/*/molfile/" + -DBUILD_TESTING=$(usex test) + -DGMX_BUILD_UNITTESTS=$(usex test) + -DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}" + ${extra} + ) + + for x in ${GMX_DIRS}; do + einfo "Configuring for ${x} precision" + local suffix="" + #if we build single and double - double is suffixed + use double-precision && use single-precision && \ + [[ ${x} = "double" ]] && suffix="_d" + local p + [[ ${x} = "double" ]] && p="-DGMX_DOUBLE=ON" || p="-DGMX_DOUBLE=OFF" + local gpu=( "-DGMX_GPU=OFF" ) + [[ ${x} = "float" ]] && use cuda && gpu=( "-DGMX_GPU=CUDA" ) + [[ ${x} = "float" ]] && use clang-cuda && gpu=( "-DGMX_GPU=CUDA" "-DGMX_CLANG_CUDA=ON" ) + use opencl && gpu=( "-DGMX_GPU=OPENCL" ) + local mycmakeargs=( + ${mycmakeargs_pre[@]} ${p} + -DGMX_MPI=$(usex mpi) + -DGMX_THREAD_MPI=$(usex threads) + -DGMXAPI=$(usex gmxapi) + -DGMX_INSTALL_LEGACY_API=$(usex gmxapi-legacy) + "${gpu[@]}" + "$(use test && echo -DREGRESSIONTEST_PATH="${WORKDIR}/${P}_${x}/tests")" + -DGMX_BINARY_SUFFIX="${suffix}" + -DGMX_LIBS_SUFFIX="${suffix}" + -DGMX_PYTHON_PACKAGE=$(usex python) + ) + BUILD_DIR="${WORKDIR}/${P}_${x}" cmake_src_configure + [[ ${CHOST} != *-darwin* ]] || \ + sed -i '/SET(CMAKE_INSTALL_NAME_DIR/s/^/#/' "${WORKDIR}/${P}_${x}/gentoo_rules.cmake" || die + done +} + +src_compile() { + for x in ${GMX_DIRS}; do + einfo "Compiling for ${x} precision" + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile man + if use python; then + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile python_packaging/all + BUILD_DIR="${WORKDIR}/${P}" \ + distutils-r1_src_compile + fi + # not 100% necessary for rel ebuilds as available from website + if use build-manual; then + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile manual + fi + done +} + +src_test() { + for x in ${GMX_DIRS}; do + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile check + done +} + +src_install() { + for x in ${GMX_DIRS}; do + BUILD_DIR="${WORKDIR}/${P}_${x}" \ + cmake_src_install + if use python; then + BUILD_DIR="${WORKDIR}/${P}_${x}" \ + cmake_src_install python_packaging/install + fi + if use build-manual; then + newdoc "${WORKDIR}/${P}_${x}"/docs/manual/gromacs.pdf "${PN}-manual-${PV}.pdf" + fi + + if use doc; then + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV/_/-}.pdf" "${PN}-manual-${PV}.pdf" + fi + fi + done + + if use tng; then + insinto /usr/include/tng + doins src/external/tng_io/include/tng/*h + fi + # drop unneeded stuff + rm "${ED}"/usr/bin/GMXRC* || die + for x in "${ED}"/usr/bin/gmx-completion-*.bash ; do + local n=${x##*/gmx-completion-} + n="${n%.bash}" + cat "${ED}"/usr/bin/gmx-completion.bash "$x" > "${T}/${n}" || die + newbashcomp "${T}"/"${n}" "${n}" + done + rm "${ED}"/usr/bin/gmx-completion*.bash || die + readme.gentoo_create_doc +} + +pkg_postinst() { + einfo + einfo "Please read and cite gromacs related papers from list:" + einfo "https://www.gromacs.org/articles.html" + einfo + readme.gentoo_print_elog +} diff --git a/sci-chemistry/gromacs/gromacs-2025.9999.ebuild b/sci-chemistry/gromacs/gromacs-2025.9999.ebuild new file mode 100644 index 000000000000..71ac8186ede9 --- /dev/null +++ b/sci-chemistry/gromacs/gromacs-2025.9999.ebuild @@ -0,0 +1,352 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="ninja" + +PYTHON_COMPAT=( python3_{10..12} ) + +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=no +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 cmake cuda distutils-r1 flag-o-matic readme.gentoo-r1 toolchain-funcs xdg-utils + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI=" + https://gitlab.com/gromacs/gromacs.git + https://github.com/gromacs/gromacs.git + " + [[ ${PV} = 9999 ]] && EGIT_BRANCH="main" || EGIT_BRANCH="release-${PV:0:4}" + inherit git-r3 +else + SRC_URI=" + https://ftp.gromacs.org/gromacs/${PN}-${PV/_/-}.tar.gz + doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) + test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" + # since 2022 arm support was dropped (but not arm64) + # since 2025 x86-32 support was dropped + KEYWORDS="~amd64 -arm ~arm64 ~riscv -x86 ~amd64-linux -x86-linux ~x64-macos" +fi + +ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" + +DESCRIPTION="The ultimate molecular dynamics simulation package" +HOMEPAGE="https://www.gromacs.org/" + +# see COPYING for details +# https://repo.or.cz/w/gromacs.git/blob/HEAD:/COPYING +# base, vmd plugins, fftpack from numpy, blas/lapck from netlib, memtestG80 library, mpi_thread lib +LICENSE="LGPL-2.1 UoI-NCSA !mkl? ( !fftw? ( BSD ) !blas? ( BSD ) !lapack? ( BSD ) ) cuda? ( LGPL-3 ) threads? ( BSD )" +SLOT="0/${PV}" +IUSE="blas clang clang-cuda cuda +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy hdf5 +hwloc lapack mkl mpi nnpot +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" + +CDEPEND=" + blas? ( virtual/blas ) + cuda? ( >=dev-util/nvidia-cuda-toolkit-11:=[profiler] ) + opencl? ( virtual/opencl ) + openmp? ( + sys-devel/gcc[openmp] + sys-devel/clang-runtime[openmp] + ) + fftw? ( sci-libs/fftw:3.0= ) + hdf5? ( sci-libs/hdf5 ) + hwloc? ( sys-apps/hwloc:= ) + lapack? ( virtual/lapack ) + mkl? ( sci-libs/mkl ) + mpi? ( virtual/mpi[cxx] ) + nnpot? ( sci-libs/caffe2[cuda=,opencl=] ) + sci-libs/lmfit:= + >=dev-cpp/muParser-2.3:= + ${PYTHON_DEPS} + " +BDEPEND="${CDEPEND} + virtual/pkgconfig + clang? ( >=sys-devel/clang-6:* ) + build-manual? ( + app-text/doxygen + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-copybutton[${PYTHON_USEDEP}] + dev-python/sphinx-inline-tabs[${PYTHON_USEDEP}] + dev-python/sphinx-argparse[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-autoprogram[${PYTHON_USEDEP}] + ') + media-gfx/mscgen + media-gfx/graphviz + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + media-gfx/imagemagick + )" +RDEPEND="${CDEPEND}" + +REQUIRED_USE=" + || ( single-precision double-precision ) + doc? ( !build-manual ) + cuda? ( single-precision ) + opencl? ( single-precision ) + cuda? ( !opencl ) + clang-cuda? ( clang cuda ) + mkl? ( !blas !fftw !lapack ) + ${PYTHON_REQUIRED_USE}" + +DOCS=( AUTHORS README ) + +RESTRICT="!test? ( test )" + +if [[ ${PV} != *9999 ]]; then + S="${WORKDIR}/${PN}-${PV/_/-}" +fi + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + python-single-r1_pkg_setup +} + +src_unpack() { + if [[ ${PV} != *9999 ]]; then + default + else + git-r3_src_unpack + if use test; then + EGIT_REPO_URI="https://gitlab.com/gromacs/gromacs-regressiontests.git" \ + EGIT_BRANCH="${EGIT_BRANCH}" \ + EGIT_CHECKOUT_DIR="${WORKDIR}/regressiontests"\ + git-r3_src_unpack + fi + fi +} + +src_prepare() { + #notes/todos + # -on apple: there is framework support + + xdg_environment_reset #591952 + + # we can use clang as default + if use clang && ! tc-is-clang ; then + export CC=${CHOST}-clang + export CXX=${CHOST}-clang++ + else + tc-export CXX CC + fi + # clang-cuda need to filter mfpmath + if use clang-cuda ; then + filter-mfpmath sse + filter-mfpmath i386 + fi + + cmake_src_prepare + + use cuda && cuda_src_prepare + + GMX_DIRS="" + use single-precision && GMX_DIRS+=" float" + use double-precision && GMX_DIRS+=" double" + + if use test; then + for x in ${GMX_DIRS}; do + mkdir -p "${WORKDIR}/${P}_${x}" || die + cp -al "${WORKDIR}/regressiontests"* "${WORKDIR}/${P}_${x}/tests" || die + done + fi + + DOC_CONTENTS="Gromacs can use sci-chemistry/vmd to read additional file formats" + if use build-manual; then + # try to create policy for imagemagik + mkdir -p "${HOME}"/.config/ImageMagick + cat >> "${HOME}"/.config/ImageMagick/policy.xml <<- EOF + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE policymap [ + <!ELEMENT policymap (policy)+> + !ATTLIST policymap xmlns CDATA #FIXED ''> + <!ELEMENT policy EMPTY> + <!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED + name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED + stealth NMTOKEN #IMPLIED value CDATA #IMPLIED> + ]> + <policymap> + <policy domain="coder" rights="read | write" pattern="PS" /> + <policy domain="coder" rights="read | write" pattern="PS2" /> + <policy domain="coder" rights="read | write" pattern="PS3" /> + <policy domain="coder" rights="read | write" pattern="EPS" /> + <policy domain="coder" rights="read | write" pattern="PDF" /> + <policy domain="coder" rights="read | write" pattern="XPS" /> + </policymap> + EOF + fi +} + +src_configure() { + local mycmakeargs_pre=( ) extra fft_opts=( ) + local acce="AUTO" + local nnpot="OFF" + + if use nnpot; then + nnpot="TORCH" + fi + + if use custom-cflags; then + #go from slowest to fastest acceleration + acce="None" + if (use amd64 || use x86); then + use cpu_flags_x86_sse2 && acce="SSE2" + use cpu_flags_x86_sse4_1 && acce="SSE4.1" + use cpu_flags_x86_fma4 && acce="AVX_128_FMA" + use cpu_flags_x86_avx && acce="AVX_256" + use cpu_flags_x86_avx2 && acce="AVX2_256" + use cpu_flags_x86_avx512f && acce="AVX_512" + elif (use arm); then + use cpu_flags_arm_neon && acce="ARM_NEON" + elif (use arm64); then + use cpu_flags_arm_neon && acce="ARM_NEON_ASIMD" + fi + else + strip-flags + fi + + #to create man pages, build tree binaries are executed (bug #398437) + [[ ${CHOST} = *-darwin* ]] && \ + extra+=" -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF" + + if use fftw; then + fft_opts=( -DGMX_FFT_LIBRARY=fftw3 ) + elif use mkl; then + local bits=$(get_libdir) + fft_opts=( -DGMX_FFT_LIBRARY=mkl + -DMKL_INCLUDE_DIR="$(echo /opt/intel/*/mkl/include)" + -DMKL_LIBRARIES="$(echo /opt/intel/*/mkl/lib/*${bits/lib}/libmkl_rt.so)" + ) + else + fft_opts=( -DGMX_FFT_LIBRARY=fftpack ) + fi + + mycmakeargs_pre+=( + "${fft_opts[@]}" + "${lmfit_opts[@]}" + -DGMX_USE_LMFIT=EXTERNAL + -DGMX_USE_MUPARSER=EXTERNAL + -DGMX_EXTERNAL_BLAS=$(usex blas) + -DGMX_EXTERNAL_LAPACK=$(usex lapack) + -DGMX_OPENMP=$(usex openmp) + -DGMX_COOL_QUOTES=$(usex offensive) + -DGMX_USE_TNG=$(usex tng) + -DGMX_BUILD_MANUAL=$(usex build-manual) + -DGMX_USE_HDF5=$(usex hdf5) + -DGMX_HWLOC=$(usex hwloc) + -DGMX_DEFAULT_SUFFIX=off + -DGMX_BUILD_HELP=on + -DGMX_SIMD="$acce" + -DGMX_NNPOT="$nnpot" + -DGMX_VMD_PLUGIN_PATH="${EPREFIX}/usr/$(get_libdir)/vmd/plugins/*/molfile/" + -DBUILD_TESTING=$(usex test) + -DGMX_BUILD_UNITTESTS=$(usex test) + -DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}" + ${extra} + ) + + for x in ${GMX_DIRS}; do + einfo "Configuring for ${x} precision" + local suffix="" + #if we build single and double - double is suffixed + use double-precision && use single-precision && \ + [[ ${x} = "double" ]] && suffix="_d" + local p + [[ ${x} = "double" ]] && p="-DGMX_DOUBLE=ON" || p="-DGMX_DOUBLE=OFF" + local gpu=( "-DGMX_GPU=OFF" ) + [[ ${x} = "float" ]] && use cuda && gpu=( "-DGMX_GPU=CUDA" ) + [[ ${x} = "float" ]] && use clang-cuda && gpu=( "-DGMX_GPU=CUDA" "-DGMX_CLANG_CUDA=ON" ) + use opencl && gpu=( "-DGMX_GPU=OPENCL" ) + local mycmakeargs=( + ${mycmakeargs_pre[@]} ${p} + -DGMX_MPI=$(usex mpi) + -DGMX_THREAD_MPI=$(usex threads) + -DGMXAPI=$(usex gmxapi) + -DGMX_INSTALL_LEGACY_API=$(usex gmxapi-legacy) + "${gpu[@]}" + "$(use test && echo -DREGRESSIONTEST_PATH="${WORKDIR}/${P}_${x}/tests")" + -DGMX_BINARY_SUFFIX="${suffix}" + -DGMX_LIBS_SUFFIX="${suffix}" + -DGMX_PYTHON_PACKAGE=$(usex python) + ) + BUILD_DIR="${WORKDIR}/${P}_${x}" cmake_src_configure + [[ ${CHOST} != *-darwin* ]] || \ + sed -i '/SET(CMAKE_INSTALL_NAME_DIR/s/^/#/' "${WORKDIR}/${P}_${x}/gentoo_rules.cmake" || die + done +} + +src_compile() { + for x in ${GMX_DIRS}; do + einfo "Compiling for ${x} precision" + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile man + if use python; then + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile python_packaging/all + BUILD_DIR="${WORKDIR}/${P}" \ + distutils-r1_src_compile + fi + # not 100% necessary for rel ebuilds as available from website + if use build-manual; then + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile manual + fi + done +} + +src_test() { + for x in ${GMX_DIRS}; do + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile check + done +} + +src_install() { + for x in ${GMX_DIRS}; do + BUILD_DIR="${WORKDIR}/${P}_${x}" \ + cmake_src_install + if use python; then + BUILD_DIR="${WORKDIR}/${P}_${x}" \ + cmake_src_install python_packaging/install + fi + if use build-manual; then + newdoc "${WORKDIR}/${P}_${x}"/docs/manual/gromacs.pdf "${PN}-manual-${PV}.pdf" + fi + + if use doc; then + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV/_/-}.pdf" "${PN}-manual-${PV}.pdf" + fi + fi + done + + if use tng; then + insinto /usr/include/tng + doins src/external/tng_io/include/tng/*h + fi + # drop unneeded stuff + rm "${ED}"/usr/bin/GMXRC* || die + for x in "${ED}"/usr/bin/gmx-completion-*.bash ; do + local n=${x##*/gmx-completion-} + n="${n%.bash}" + cat "${ED}"/usr/bin/gmx-completion.bash "$x" > "${T}/${n}" || die + newbashcomp "${T}"/"${n}" "${n}" + done + rm "${ED}"/usr/bin/gmx-completion*.bash || die + readme.gentoo_create_doc +} + +pkg_postinst() { + einfo + einfo "Please read and cite gromacs related papers from list:" + einfo "https://www.gromacs.org/articles.html" + einfo + readme.gentoo_print_elog +} diff --git a/sci-chemistry/gromacs/gromacs-9999.ebuild b/sci-chemistry/gromacs/gromacs-9999.ebuild index 01ebc8ab87b7..71ac8186ede9 100644 --- a/sci-chemistry/gromacs/gromacs-9999.ebuild +++ b/sci-chemistry/gromacs/gromacs-9999.ebuild @@ -26,7 +26,8 @@ else doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" # since 2022 arm support was dropped (but not arm64) - KEYWORDS="~amd64 -arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" + # since 2025 x86-32 support was dropped + KEYWORDS="~amd64 -arm ~arm64 ~riscv -x86 ~amd64-linux -x86-linux ~x64-macos" fi ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" @@ -39,7 +40,7 @@ HOMEPAGE="https://www.gromacs.org/" # base, vmd plugins, fftpack from numpy, blas/lapck from netlib, memtestG80 library, mpi_thread lib LICENSE="LGPL-2.1 UoI-NCSA !mkl? ( !fftw? ( BSD ) !blas? ( BSD ) !lapack? ( BSD ) ) cuda? ( LGPL-3 ) threads? ( BSD )" SLOT="0/${PV}" -IUSE="blas clang clang-cuda cuda +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy +hdf5 +hwloc lapack mkl mpi nnpot +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" +IUSE="blas clang clang-cuda cuda +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy hdf5 +hwloc lapack mkl mpi nnpot +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" CDEPEND=" blas? ( virtual/blas ) |