Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine/
Date: Sun, 26 Jun 2016 03:45:45
Message-Id: 1466912684.ce733ef6cdee61d178d17b2c32422fd0a16fdf9b.wizardedit@gentoo
1 commit: ce733ef6cdee61d178d17b2c32422fd0a16fdf9b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 26 03:44:44 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 26 03:44:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce733ef6
7
8 app-emulation/wine: remove old ebuilds
9
10 Package-Manager: portage-2.2.28
11
12 app-emulation/wine/Manifest | 89 ------
13 app-emulation/wine/wine-1.6.2-r1.ebuild | 376 --------------------------
14 app-emulation/wine/wine-1.6.2.ebuild | 391 ---------------------------
15 app-emulation/wine/wine-1.7.10-r1.ebuild | 378 --------------------------
16 app-emulation/wine/wine-1.7.11-r1.ebuild | 378 --------------------------
17 app-emulation/wine/wine-1.7.12-r1.ebuild | 378 --------------------------
18 app-emulation/wine/wine-1.7.13-r1.ebuild | 378 --------------------------
19 app-emulation/wine/wine-1.7.14-r1.ebuild | 378 --------------------------
20 app-emulation/wine/wine-1.7.15-r1.ebuild | 378 --------------------------
21 app-emulation/wine/wine-1.7.16-r1.ebuild | 378 --------------------------
22 app-emulation/wine/wine-1.7.17-r1.ebuild | 378 --------------------------
23 app-emulation/wine/wine-1.7.18-r1.ebuild | 378 --------------------------
24 app-emulation/wine/wine-1.7.19-r2.ebuild | 423 -----------------------------
25 app-emulation/wine/wine-1.7.20-r1.ebuild | 425 -----------------------------
26 app-emulation/wine/wine-1.7.21-r1.ebuild | 432 ------------------------------
27 app-emulation/wine/wine-1.7.22-r1.ebuild | 432 ------------------------------
28 app-emulation/wine/wine-1.7.28-r1.ebuild | 435 ------------------------------
29 app-emulation/wine/wine-1.7.29-r1.ebuild | 435 ------------------------------
30 app-emulation/wine/wine-1.7.3-r1.ebuild | 377 --------------------------
31 app-emulation/wine/wine-1.7.33-r1.ebuild | 438 ------------------------------
32 app-emulation/wine/wine-1.7.34.ebuild | 435 ------------------------------
33 app-emulation/wine/wine-1.7.35.ebuild | 430 -----------------------------
34 app-emulation/wine/wine-1.7.36.ebuild | 429 -----------------------------
35 app-emulation/wine/wine-1.7.37.ebuild | 432 ------------------------------
36 app-emulation/wine/wine-1.7.38-r1.ebuild | 442 ------------------------------
37 app-emulation/wine/wine-1.7.39-r1.ebuild | 444 ------------------------------
38 app-emulation/wine/wine-1.7.4-r1.ebuild | 377 --------------------------
39 app-emulation/wine/wine-1.7.40-r1.ebuild | 444 ------------------------------
40 app-emulation/wine/wine-1.7.41.ebuild | 444 ------------------------------
41 app-emulation/wine/wine-1.7.42.ebuild | 444 ------------------------------
42 app-emulation/wine/wine-1.7.43.ebuild | 444 ------------------------------
43 app-emulation/wine/wine-1.7.44.ebuild | 444 ------------------------------
44 app-emulation/wine/wine-1.7.45.ebuild | 445 ------------------------------
45 app-emulation/wine/wine-1.7.46.ebuild | 444 ------------------------------
46 app-emulation/wine/wine-1.7.47.ebuild | 446 -------------------------------
47 app-emulation/wine/wine-1.7.50.ebuild | 445 ------------------------------
48 app-emulation/wine/wine-1.7.51.ebuild | 445 ------------------------------
49 app-emulation/wine/wine-1.7.52.ebuild | 445 ------------------------------
50 app-emulation/wine/wine-1.7.53.ebuild | 445 ------------------------------
51 app-emulation/wine/wine-1.7.54-r1.ebuild | 445 ------------------------------
52 app-emulation/wine/wine-1.7.55.ebuild | 439 ------------------------------
53 app-emulation/wine/wine-1.7.8-r1.ebuild | 378 --------------------------
54 app-emulation/wine/wine-1.7.9-r1.ebuild | 378 --------------------------
55 43 files changed, 17619 deletions(-)
56
57 diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest
58 index 4ff0ac6..ed9d140 100644
59 --- a/app-emulation/wine/Manifest
60 +++ b/app-emulation/wine/Manifest
61 @@ -1,46 +1,3 @@
62 -DIST wine-1.6.2.tar.bz2 21252985 SHA256 f0ab9eede5a0ccacbf6e50682649f9377b9199e49cf55641f1787cf72405acbe SHA512 81c83566dc2cab276ab7b9cfb5edc5fbca0f003dcb78044a0197c9a4d9a05a40f9045e5b4981c9219c3c39dab52fe519ef3cb338d79ee01e1fe66e3c056e8397 WHIRLPOOL 7d2d995a9996d63e17ff3ef5871f3818945dcd90c4a22798506f0d0c31ed999462bc5718f5cc562b9da64fdd7af6b240380bfa2901eabd23fb036aebfc7c554c
63 -DIST wine-1.7.10.tar.bz2 21312974 SHA256 44270e4b97ef930e4e4b59088e6e3972e91e85bacf9a9a4d8712a877c9d5cbdb SHA512 157fe4146df3c174643cc1ac29748778aa90fb9e602b417ad772d3da2af3a86307ca818ded860722513efdba57b85e06a2db2869a69a3f579255829dc3d8ac55 WHIRLPOOL eaba07f65c416ce93b9243df402ad0fb5a2f5e7bce43f40b73941f2ea7baddbcab9ce3a999d9086faeaead7552f5d34234cc3b3f3798db2fb98982ef22a98b71
64 -DIST wine-1.7.11.tar.bz2 21359534 SHA256 c07d2771ed96c45d428bb11d164c5e4bbe48d6857a0a4cba2e0b73c5f1044f93 SHA512 9743c4cf382b6846d98aa383d9db22cb99bca510ec2db3e9224f10d08095c4a3fe4449b3019d5a6f401458a98696d096a454d00584c667074aed618c47544dcf WHIRLPOOL 38356b5df2c9f5a78b9eb66c6e0f09f7371c57d84f601e6614228b64c629a2c9c222696078d7627df850792a0111e7876fe460c4575bac4accf2f56a391315c6
65 -DIST wine-1.7.12.tar.bz2 21366705 SHA256 2dcdff7bf8bac2bc10da85e3e632e8add830f22cf416173e53abca4ec580b392 SHA512 7b5be06dd6d71512884bbcc386fb021725125fb95a4493a033624c2b801eaec7fb4be4b70894ee914da138d8e310da3ac49b8a32538ee21d127201cebc44b449 WHIRLPOOL fb04306058403f82df8cf3e88d21d8011bd2e7cdfa4c31f28e64ea0d24393cd6ed8f61724839a1b5cde272ac8dd854c6c6185e7dee8271881b9b3eb1612f4bbe
66 -DIST wine-1.7.13.tar.bz2 21385204 SHA256 a72fdee6e1898007b38f3b30584f86d996567ad8d2f1cc0fe3a877be0493b9df SHA512 ba01933770c0fbaf056fe252b77eb7f2c160f5455450cace638bc288683fb8f6d97421927ec935795eda9aae500bfeb19e6ca8d632822c345f8bfb34b3d27d15 WHIRLPOOL e500fb6cebee9d87aa0c9ed788df37e2f744c0cb1453a6dc20e447dabd9e1becabb00f93ea9272856aa35015703e98b7512c2e233f98e67143abc80b1ae7f182
67 -DIST wine-1.7.14.tar.bz2 21444526 SHA256 2df1937e28936ba33e70a42fddcee01097ca0fbdd4dbf2c2f05d8a2ff5263e09 SHA512 0bd3d74b375c14b3f3601a4e590e4dd1808ff60f6d3d87241596ea8649c910968a2e95bd5031d5065253b6b938ce9002bad159c95457578f2cd9c34e06bac8e6 WHIRLPOOL 31b94611bf5d3c9123829fc9375b8c9306b6e044ed07c08ee0f4d5db47f88c38570f98514e45a0bc326d9352abb385375b9587e84fc23a70152f6696793eb622
68 -DIST wine-1.7.15.tar.bz2 21463370 SHA256 519137adc562d32035fcf7b110d6e65fdd7721af0b176567a2187397c63f1380 SHA512 7ac95fa4c873570ff04c2ab4adca40d3898cb0f0d5bea081208bb8d16787470f75a9f6f20a1f7123eebbf2acd977391ae35b107c59e25fa48ef3b0bcdcb559b6 WHIRLPOOL d114d2022e91c663e33181213260eecf63d10d515167c27e4fca75bd47f3036a02943c5d5f5ee103202732b9b7c2ae2964724bd88892aeec2c15e634132f5aef
69 -DIST wine-1.7.16.tar.bz2 21478085 SHA256 071ed89d9c76219aa73df6472b99f9f0b35e4977235e2b8e388c11416a2d1c6a SHA512 7baa99280f78eb8881dba470c3a17ab093f9cfb0950eb4dea1a89849ee0794ddda373049fda2fde5551963b231e4548345892e759cf4690ab047c49147fa504e WHIRLPOOL b6ef7a096837d406b0f9a67f6719dae85c12e2f0d00dc9fdcefacd9db5485fccacdfa788e68abf0a279c20daee246ab7d25aeb14f1e96c5bb3187f38550157c1
70 -DIST wine-1.7.17.tar.bz2 21531865 SHA256 bb6fbd7fd70f9aafba557995d9ce537ded56e750e0a89a062e3318d584a8abef SHA512 32ff77d201200cb8a159395fe5d410b118bf4db16a89a9708128dbb7c25e45457c80d76e2821edf06db99525e5a93b6b1a7ee7166d7972f7ceb7fc47aaf8784b WHIRLPOOL 55f6fe3fced59c6344b2656a22eeba478be4a138ec26c28306316cb0dfdaed0c41f71584dbda683070a1a03a45a010fdd2989a8cb95a81294fa2d8b13c55cbaf
71 -DIST wine-1.7.18.tar.bz2 21595718 SHA256 dab6d12e620e2097a6838a3f6928f3b2ca3aab0b70521b53107ee1998303d378 SHA512 059f60318508f158cceef029c111c2b11bdf334def95aa96361163358ad7632f87fe0d1d9a05060a5b76ddcb367d8490fd31a1b512ecf7cd01f7be82a8ff8677 WHIRLPOOL 8b2dfdb85a7271a447fc827f4afb697bebc3fa3f52463b0debb1631e3c156fe46b00839d94b7e27be1407009608f54f07acb211c68fb6448f7ad30ccbdacf55d
72 -DIST wine-1.7.19.tar.bz2 21633142 SHA256 c5ea9b00c9029ecf47a25881b284d8ea02079dfbabc22aa789d6d07e38b32ff2 SHA512 3bf6399027752150469046c3ea51ff0c7e56bca7ed8db7def16c16c41f31c118c5217bb67882b7de88eb710f2af4a89e2858b82071523d5f9cd00ec66dd0348c WHIRLPOOL b125e2ec48801349bc73483527213daee20674a2e93f30f41e6fe138884ec7a4dbe0698b15ed69ed1062f0a045e11526fab8f23ed701147c85ebc1db0afb7f2d
73 -DIST wine-1.7.20.tar.bz2 21635815 SHA256 9c431b0b96222d0c27a2c2326ed88298ac0dae50ea783ef764c48c4373bf5f15 SHA512 ffc168ff4342fb5d8fb4a4a242c37f91613e983d644bd6b6d8798110b12339806d58d3abca8856855c286e40b9e4344a17fc834731dd03a42ea0743d1f24bd44 WHIRLPOOL 5ad69f9355897b4ce72c18c239dca2909d0c6094ff2c763731834d5b313fe04806648966e9d60408a14c0cf0dcb981587ffc0edaec8af07fe0a138364062fa53
74 -DIST wine-1.7.21.tar.bz2 21635330 SHA256 a14723104135c21414c61e146144a2c527430057255f8c35a3a7d354e68b9401 SHA512 73db3256d04c681ea7a4524767f9f93c24a4cc96aa901c6fdfd700c7e8968cdb127a110df56f10423cac90aadc783ceafcd0dc571e36ea096c1de03c619164d8 WHIRLPOOL 32bcf10f8665dab43339e79240b534f3fa29087787acd752553b4b717f6c26f8e98d36185f61e928e2c5ef9a3663b9eac7ec42cd9898800ba12efab74c78634c
75 -DIST wine-1.7.22.tar.bz2 21661089 SHA256 60374c94c64110d58939e716c3ef4916059c691a2953d8340a9a140a208a7c63 SHA512 f4646f85f3e5ff25d299e544f8736390bafab63dbe44c38dfbd78bea3a047fd269dcad67e0beca088aab77464c3aadb5040af9606f57c91cc4e4b0f8e916dd55 WHIRLPOOL c214c9e8a9592b7d17a8942ef14f46fd936674dfcd95838b396176e02b74cbe1e3d295a8183ba76c53987c9f1d55d6b5f3de46df8fb9f6a9547dc934a9b048a9
76 -DIST wine-1.7.28-gstreamer-v4.patch.bz2 5447 SHA256 64dad250bde6b10d77e688b316217b1b508f3dfb8195a33f6420dc1dfb18ac8a SHA512 65e84d79da9898c3c0508c392182f148384abf8f007c0662c6468414eebb69dec918c6099a3fbff7ffa2dd4a942a1aa1d91dffba494ac37a6f572a7f0162ea0c WHIRLPOOL 0cc7cf63c0f9ed718e2219da01cc05fca0814b0ca98c916141ccb254da91f32ea03ec47c6e106d558d6ca10b3346a9cbd9a1c74ef66cb9983dddd1e50506c940
77 -DIST wine-1.7.28.tar.bz2 21811422 SHA256 67c3f157b9e720971d1f7dc582e9f0b16879ef660b5ba284a77f8bdfc6fc2313 SHA512 dffbfeb53d9503ec882941c9d01c4b795c6da6046a2eab5d1ccb4db68a07952cfdbb14600869981b050f45247548d459bd054a390af6baecb232dc0c075ec7ab WHIRLPOOL a55e2acc86435f7254220f05871487e7272318a79dbea00fbfe36faebb5ca70281561ece1c8b79db2e59aea070d2f2d7146d94490925f65c641c52d45c82cf2a
78 -DIST wine-1.7.29.tar.bz2 21823063 SHA256 ae48190d35533197811eeabed989ed9fd3201c44af917107f35ec0bf75b8de62 SHA512 ced6ced1bfdf1b847242399bf54a4a63d0f8a16f3dc1a11c6f2af1baf12d2daa679a5377fe284724b8487cb0573383694c68e363ff2b98230f79c873c4dbbba9 WHIRLPOOL 3db7234f4ba12ea483c0bb8336dcb8becf7bd73298b63700aa7fec61a4723b5bbb7b03b32bd0c8ab1c66b45f6e60bf4dbd30e0da325cf75dc698ca6b69df2993
79 -DIST wine-1.7.3.tar.bz2 21489049 SHA256 c66c93c2ffec8d1d9922fbaa226b169d62deb77fcbfd0fbd7379b77dbd97d47f SHA512 41109866b259a5f939c9ca4c26ed0a5ca74fa9cafa2f348b83510dd386459c87ac044a6f954f2f83ce00961d866a6e636ed96aa9e94584b7a79486d434b406cc WHIRLPOOL 90e6aed8930e3496701292415ce87f29a87870a1d00ad26d4f3c4adf33cd296093d0ef3d363bf5cead1ebd5ab4e86907ccb015c10d85f6f90d5f48cd81681b0f
80 -DIST wine-1.7.33.tar.bz2 21908969 SHA256 e3519d6fa2c0bb91e58da38f14f02607cf366a0154ff1effe528966106d49275 SHA512 a9bb47383b88e9c60edef7883c3ce25f5ad0895b67cdb4393c1c3f9b9ab7245e8d8318df193722a7b8c87ff57cd554df53a24c988566d1dce808b939ed731451 WHIRLPOOL 3747cc9df638e7cba5aaff8cb6bfa26e5588ba87e5bdc9d5e3202f30973bc2c06b0d65027f113066dce82d851c1591ce86421ce6e7d90944f5206d341f7ed51d
81 -DIST wine-1.7.34-gstreamer-v5.patch.bz2 5703 SHA256 c3bb6f669f46d9f2d7ba494a2264cee457349f559d4b0758db80e39eb22f2aee SHA512 e780394e8739a58593d264322c462bfe9040c1cabce93b84d24f09040026368efb4ac34a6a302beb6048d14b4ac835b87a0c515b52c1a0c143aa4e15691eb01b WHIRLPOOL 1befbb0fbd026d6e833c5d72341064dd6e12157e1b7df58e349b9985648bfbc63f70e9cab45b61155515ac65057968e30ba313e71e183b8027153c9392d89192
82 -DIST wine-1.7.34.tar.bz2 21956792 SHA256 4d5a3b25450fb232aa9d0d0dd859b7d50b8ffb6180f24aefb6eb4e400d32330b SHA512 55d8c42ecd146fb92c1d91737e9c6e51d6cc36682964bfc8ef73a4495edf884d84fddca173d297b7553823abbddaf4dbc115a5474419be0611f2723beab00b6c WHIRLPOOL 8842bc71632b04a736e51eb3a016395a5a72b1798d43d1a3343956854d4fa1d9b973498abca0a28717ae5c2fd947970066820d5606dfdedb67e3235ded3de2ce
83 -DIST wine-1.7.35.tar.bz2 22005666 SHA256 eb2ef652a302c366d3f6ee9315790f162b1c0913d442cb5a856d9f7d95e31cfb SHA512 52d8947b1cedeead1e9bc559aa234fcb2237db493bc0556a6832968bde495c70d6eb2e4ee81d698e6525982d5373d6421b072af97a6d6b05b05e28b4bf71c9b6 WHIRLPOOL 99f3d2c03c1c1a98913a1925105102ec3f4f8f408168c3c812077feb5e87fbef7f9ac4e672b43ebaa19fe3dd41bd9c376f3b97a152bc7d3924e70f3349d7fa61
84 -DIST wine-1.7.36.tar.bz2 22010371 SHA256 21aabf3ab2c6055ae66c77647b123c978094f0c135817ceeaeaeebc5d8efe3bd SHA512 c2d9687e1ab0a53ebff6973fdd83e4b54c397e2b51c172b7c58297776228a8bbb3d5321de27aac4b61f756575b60c6534d5e0a9bb4b830d429496b3e8b95b39f WHIRLPOOL 5042e6142839cda3b83fa20e8e418f0da9d57e347b96e241160372af5ef1415a5b7f961ec024cd5a186c93943985ea652fa50e6cbe4fcadade7100f4f5c16139
85 -DIST wine-1.7.37.tar.bz2 22034021 SHA256 6730ec79bc8d5f61ab90d9cb51daab26a57c1a79e2804e03731f060dea4af305 SHA512 235cdac2c037eaf95ec78634769534dcd10c844bbcd8b8b2f66d457a80779277d4c608d930a10e381a35d33bd30044de7242cd8ce148ecae62085e097e1bccc7 WHIRLPOOL 324dc54ec3a8d1fa661a617708a27435d6f366252deab483238f95f91be351dcfead31f7a3cfa118d66781565dc1a856bf9e10dfef99b915b4845dcd662a7d6d
86 -DIST wine-1.7.38.tar.bz2 22027786 SHA256 981ee93e7db6b2b8d1ee16999cdff915a9411b1566539edc56137f9cd4d36bc0 SHA512 36793b8b2fd678b9542ff2c32582234a175e9795682b93c0df881dc1adac65dff8d33509511fe7400d8b099880df8d6f13ecc18e0c8b72827d9ac009770ddc81 WHIRLPOOL 646a36cd4f50c3c81fafc95e11e5c8df68e7c14e7b582b6cd7f5f99d3f37afebd9655e8b0c28bb7995c957d87f96913ac13c2fc425075406e32cbf9a23440add
87 -DIST wine-1.7.39.tar.bz2 22122289 SHA256 6affb007fe772eb5588c584e3bdb62db96d8291c7fc8e75a5fd0bb098391335c SHA512 0eda88c4c092c2d596097548a341f62128dc39ffd6c88c514378639864dfbeedad3cb436065a85981cb2d9399a4cf439d1c301ec651a7e21eac886931218b6f5 WHIRLPOOL 9cb9d99d94e5abecbf5c6717165b58c7c23784aef0a4ffe2edaca2aef63e5706f17aa1102e00424fd849b30598f5d3b8206ea6b473c4337bb486211d7c3daf46
88 -DIST wine-1.7.4.tar.bz2 21500746 SHA256 517b3465dbf5b516d3fe886c0f9d4f310dc1d4a38ca4e5580c5d66bab3fb6969 SHA512 4267eb43311fe53537a1864a70e88e4bf444b8979dc858725a1170ed06af4e727604a22bafb3deb448eeb62c170ce67ce8eb8082bce040f5488b1a4c4bc6bb95 WHIRLPOOL 7bb14e0dfd4f9a7411e1d5484dba62f8584a0e03997cc3c6192893dccbc7de316eb79a1e5b0ccf96d20e74cf512ebc79e760076ff4882625bc81b410ad8be0bf
89 -DIST wine-1.7.40.tar.bz2 22183479 SHA256 0d82e639a553765437f9a3f864f383e8e4e1eb0f1dd815263f9fda1c78d5cab6 SHA512 3d812b8eefa14f3fea908345b9a8950e9a409e5e45b38d73105c181bfc3fa5f9ef82a022cffcc2efd45f79220ab9ff139b3729410b7708ed6ff960647761dd61 WHIRLPOOL c9935e5daf077b3bb66209fe572b494ca8250c16f76a13122f61899112559a010344ff9e2046a9132d904b0396e519291eba641ebc8add364dda85becfd5d14b
90 -DIST wine-1.7.41.tar.bz2 22237972 SHA256 6fa622b1dacb257fab671ddd689439daf6bb1cfb9e632c324db16a5db6372f97 SHA512 e5f040a07fdeea44a5a48630bfb70a81ce6cede462d40aaa55277481faa4176f1f0df290bf7afe7452a695b3457ebc43dde474feca74b48d041cb5bb0a5df85f WHIRLPOOL e8dff1a0543aab21802ce54e231c2be9c9e4aee0bf476db7615a519a7eab25c7f95da0fef4899cbd8c458366bd15ae340ebdd1025136dcc944cca4d1a2ba1e7b
91 -DIST wine-1.7.42.tar.bz2 22229770 SHA256 5a7f5c82b120bfe1eca572bd8d7a4ede7e6baf330ce3087199eb5cd175233ba2 SHA512 f290860614ad83f0fdf50d3b063f5edf8ea59449d30292ee837531b26a1b5ab871b2f70305c5a132d3727db7471ca67e2aa7356df8b35745bd38602b54a56781 WHIRLPOOL de7292e08201ed9bcab03da2490213abcaa39e44dcd156c19d154c3af9ce74f73ccf079fd2ca4578d0c91b046c21d24e38fe85f47135b6e4b311b8986975c241
92 -DIST wine-1.7.43.tar.bz2 22246396 SHA256 53d49b9affcb836443cf25111c2906dfcae9ff1fc8170dffbd81755405907822 SHA512 676f3eddff3004044e1ce8b1f9d3023e1a37f8e89db20724f71b18c789c856c7bb5cfc8ec4ea3f7b2ab215e19cd0073b51e14a93a748512b366d472f4da6fe01 WHIRLPOOL b000c218c45a86d995b06900691f2bce580658f8545600c734383032b47c980a1e0d3534ac4e72be786b4c00520e482e999059fbb8437cb704bb707f8d4aea7e
93 -DIST wine-1.7.44.tar.bz2 22308686 SHA256 d2e3290d4b312d235ab8ac214eaae8f81c751fb610b15b40c2620904bd38d8bb SHA512 55cc555a5f40fe802d6cca65c7bc3d294c10c79dee93e602c4ccefd540002174bc1a1ca8c5cb56311b94782f7b5af7002420c20110fd4c913f1d1bdb380dc82d WHIRLPOOL f9d6b2eb38b78a97c096408775ca36d7d010eb120f1ee59f5da8db93b19e91a4bdd74d337626ab9b81338ddcfc9d58441919975152b1dd1c2379a1a7154467cc
94 -DIST wine-1.7.45.tar.bz2 22312840 SHA256 a30cef1ee4ceaee4b6c9c2ad96df3b8a8847278246e7727624db314c68adaa23 SHA512 409e7c5b75e5311b02697b993b5d6a5cd08cf7e2e2b4feb295b8a5b88b4edf5034c3bd9feafd208892b05082970a198542e046d31ca3629edd6e505d4bbff45e WHIRLPOOL f662ae6370003f7f31e4be5397fa69b4847581770d2d5d72b6de0ac88617995fb0e3206957075bc7d247cc9f11ae5a29a8e82344fd1c22b480edfc307d25c48f
95 -DIST wine-1.7.46.tar.bz2 22356320 SHA256 9ab4046cc676de3054f9f2560e7d757b25324f72dd9a9cfed0d4aa48cc87350b SHA512 42710c39436fcd66d2a245da9d8242f3c909c58e0f0178a74562ae9d5360e8dc5908a336633edd8f717fb5c5ba07310fc24a2ec57cb447900ff8f57b59e5ec1d WHIRLPOOL 8ca9a25301559001176eb542defbfae279760a4e758b6563431900608ca4efa1ea01a2f3ea56039c4116052be58ee7c4a8ab6df773c3c6fdd65599e1ed376b60
96 -DIST wine-1.7.47.tar.bz2 22398577 SHA256 ba74f75aec400dc4b1d64ddc29560e4946837e73cb19d9c231604ff0147bbb2e SHA512 588bc143fc371c013b3565044ac14a22176c63fb79e7798a32cd75ec2dbf6b52a73529638254809aa3a4b3105067e96289b555436099c41622b8ffeb2b97a601 WHIRLPOOL 6545baa254f181fbe7a35b19e319faf7b21b838b91fddcab46ae65d8331407d62b36f78f20a19f97895c5c16059f18b3d23d6659658f8939611b171a408478ef
97 -DIST wine-1.7.50.tar.bz2 22586575 SHA256 7c5410fab820281f337d478c18305027363c9012f30f742339ef1eb0f9dd711e SHA512 b79f0391ef147a9ac8f60079e9068435a25552ad2e133b7d84443978f3b0034c17d8e6edee717fbdbc117021ebe22892957923edbba5e8528d6abb21116b9006 WHIRLPOOL 7a4502b088f259153904a80bc8aa81ebe5cb1e27fc4905b8a0fa84beb2e7904b382473a46d472a9b8a11845ab2eda42965f64bead5379995112c6e5f335c756c
98 -DIST wine-1.7.51.tar.bz2 22639053 SHA256 397fc95b463d6ae1b65ab0477d9fe5d0871e8e2a3322bc9d984e438f2c4d0f52 SHA512 d23b2a37f82c26b4a2b339711a9eb6d6819c8c4def27c65cb7b8bb917aa660f51b3190b35493246d0bc2eea1ffd47529c4ed18a75ee64654b5f40970eefe277a WHIRLPOOL ec4aec57c1623cf1c5bd91f654cff4a23f5ec4010c33217d2e46f25f6322aa8707797368b428561fee6252849bf09abb25e01524d0ff41ebf440ca7914dd9464
99 -DIST wine-1.7.52.tar.bz2 22707539 SHA256 0773b32a0c358323db4c383ceb1e9e28d5d4ed4ea37570af2bcb41fecf0d554b SHA512 834a77553d1352840c747ab5dc3e582b15da4ea65f16f9d58d0cc8afb460b4a0fded859929331dd32d9f4f66ab14bb890cf239d0a283bf9ffd92b48f9d1687de WHIRLPOOL 7e6cc679d994449e7f822c2593d1e8cc87d439df6084ad7d48897f3829b866219a0674e81e1fecdc5629225cd3c6ca2735212e1a0cb9d41a236af4674b62d077
100 -DIST wine-1.7.53.tar.bz2 22763993 SHA256 efba70b106cde683a50a4b1f42df3d900f8ffc291a3689cb897afcc12cc2c6a3 SHA512 82c53c5a7913f5c3ab38239f6cd4dc5ec16db878b8ff9ff46162f11f72c13a3da9c1dc80e7eddef5eb2b909e7b8cd771294cfdc79d734d643aecfeefb0059401 WHIRLPOOL 054640d64794e0eac3b41c359353a8d322f9ae9a9a01969616fe6f9207d4276909d4fa17c7a2b167d705166490df523b3dcaf738efab0a71bfab26ea59eeafe1
101 -DIST wine-1.7.54.tar.bz2 22800326 SHA256 e0f311f392815468df774b33312cde80bf1ff3a894c9c2b462825fd49619bb27 SHA512 15c9c80518d41486da416d531f7be101353d379bcd8fd309395d2932eceabb3fa5cd8180066f73d13c6a211495146bb544a8878657cf9ca8e5e14987a038a6c7 WHIRLPOOL b1f6f3e4149307f8c0b3feb443dd7b36e8a5c81b8b7b41f6c39167590fb13057174c95723f262082465fe1696c17d9216ea93ad2f8ce1e8f5c8d7aadc12d5425
102 -DIST wine-1.7.55.tar.bz2 22814631 SHA256 a148f6c9cb45a75ef1a15e60a7db9c22fce985e0e58fe1350e7931dfe5d36119 SHA512 f47025017836ce1bbf2ed69c7d7421bd8a2f33ff94ced4a5caf92f4fabdf336119c80a28aeb8ba1ebe0239871a6ac62d8af8435d220c317624c17aabc2100dd7 WHIRLPOOL c5575d2ef687caccbdb5cc09a0c6a4ba9f65ec9674cbe3f23ecfced62710dcb0019a11ff66f2ec4c2eafdb30d9891abad158ac4f865cc580a2878067de7304d7
103 -DIST wine-1.7.8.tar.bz2 21463503 SHA256 30e17f5f863a09416f3d229666566b318dbb40f683d4ca6630012c60bb511804 SHA512 1fdaddb7909f818050854bf351d20f445cf6a5906b1bcc789c96ee8d5058c90815a91bbbc6444f3e4527748764f03ab5297585c174b433093a3354a827402fea WHIRLPOOL 3b5b18384ff04b80b936160c2c6e03676d69663c023f484981305c9272d0601b74cda5c5f7d56008b3900d702b1a4fe1929f16b1fba304a6480b076ffede663a
104 -DIST wine-1.7.9.tar.bz2 21323337 SHA256 79f99ecc24696915439c474c4953bb77652ab53f16b41daa4da270fe43279c5a SHA512 29f8aa715ebe47c8a06bd5f6a80cac3fb75b2ca7aa81648cc8aed5461cfd825e4da68b6209ca672dce42b968521cfd9bffffaadd2d85b904b55d99687a1c83d0 WHIRLPOOL 333fee72b2a0e9d6ab8a003712c38166bd27aaff384a2b940c089ecc846f7669c59efbeb5cdc2fc87a46d63b0d29d0335873bb7c22f05913bad430b81990241a
105 DIST wine-1.8-gstreamer-1.0.patch.bz2 30908 SHA256 00cc1e943e2dffb7d588bb5befd444655a661bc0a0e51e49651af47e9421c501 SHA512 46901b549b1c84f7d8f8ff4485d1faf60a108cdf84feddc754739aff918e1e979b0b8a1a2604e5df6693bdfb02a3324516a187187f019bea13bc5485fc51aec9 WHIRLPOOL afe4caaf7b3d7ab07a9d8f6ea32125c1838745d399eb9ef2211c669bcd445ae5020991bd729b0460a6804fe5d44a2f42c32d94b2de32cc4b338f9391dcc6f78c
106 DIST wine-1.8.1.tar.bz2 22839063 SHA256 149ad3daaf8593b36c5c061285df0ec2a25e20ea48c61323be91088c4d22ca97 SHA512 e4cc3d00f28a616326f3069c7eeb94dc07759018b719bc37fe733b0f5e5d17f54ed2e877a964e9ea235362c49bf45bb3ec7072fba3d66648e6c7d55568e863cb WHIRLPOOL 8970d900c769add34a079f84c0562fca2d7e303ee9aa15de0fe2fde059de01256951c5ffeddb7b0a126599636e83d0d4ebdb8c0df5cde218fe8858e8b2451a0a
107 DIST wine-1.8.2.tar.bz2 22857786 SHA256 51624fadf0145e87f0c01e7ce8524ea1e8d9d360c3e8a86e78cd26a52ce55a6f SHA512 ed4883443b29c00409143932de40c543a65acfc01ce61f223e6ed852e6869d1936e5d6c1c3942335d2fb6c9ee923f6187ba9f3207af9900911c4258c0266a321 WHIRLPOOL 6e658ad3def7b3784753df00534ba67f6b634691a058e20bfefcf4dc44c126e5afc1789135b9e6925e1d79afa82d1c2c39ff696b6a0318d080774d829c5e978d
108 @@ -56,41 +13,10 @@ DIST wine-1.9.9.tar.bz2 23155986 SHA256 a1e76fd9842d0fe385e930cd62e7193035a04ed1
109 DIST wine-d3d9-1.9.10.tar.gz 46409 SHA256 edfb553605e9024e180766002181954d6a09339a8114d7319166b232cd86221e SHA512 d8c95832089c829108dae291470f73525684b1c4ca10b86086cea5b2872b6b058945bfffa3464ef25fd68acd90699bc435e49f75e09e1029df0521415c9c4c1e WHIRLPOOL 4cce21462ac12417df3b9641587fb9fae13171fe58297f0c818f8789011b2f886c5a6ed6ae2bb3ea44077f06d45775ea41399fb551dab35edb9b0f73b8e671db
110 DIST wine-d3d9-1.9.11.tar.gz 46383 SHA256 5be6b00afca2d7cf988bb094d7caf07d6dc7bc9c9d00aa104fc6a62d22330757 SHA512 79cd2626fd110ba2341ba83d8c7f0e0fd50fb9876a011b3249444840ee2075e99d7e4fa26cd5b10f812034ba96ec955ffc9d8803174dbed3374015980a203618 WHIRLPOOL a3a63baab038b45eb6a30cb60cf33cae793d8545eb138f99bd9226068655156cf8c18287deacb9c6b5a839fb1e427e9fcee1c2519d7d24bf4609851eed5dec36
111 DIST wine-d3d9-1.9.9.tar.gz 45615 SHA256 cc6575ef97c6ff74d11d370f6af012c82b33697cb5d120d93d3d501623ef4856 SHA512 142e4c11c392a7999093c6703e3e506c365633e7ae4c2426d164e411e5d28fd0c7b00acffc0ca35c755d8ff6d8585072f6a3d3bcb8b5e32417db5597f236c4d0 WHIRLPOOL d56f84a455dc643f756fedfffdc73640cb34aa8164df747fe44f204dd7165d7b000c22de8c33c9978ad97b32b8b6d285551de8607acf75b5f079cb7eeeadb05e
112 -DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00
113 DIST wine-gentoo-2015.03.07.tar.bz2 85419 SHA256 f13f93dc49bbc33a294c4d511b6e01aec2d38bff77a1e44d07668291add1ab04 SHA512 bae1d2d5575d340d01f44008104f0e5ec0c4a4982995dec37d501594cd21d07a2b4ad4465c4273646d5bf6521996b4b82471097864be75342abe3e7d478a56bd WHIRLPOOL 0f254dd692e87a1f71dd19f6c1c8c59b8a91b994e75912a2e6e3ba5e875b85119fe497a331a95c2ce33bbf5f064143d23ee00275da92c494227de0807c9abb06
114 -DIST wine-mono-0.0.8.msi 46967296 SHA256 3dfc23bbc29015e4e538dab8b83cb825d3248a0e5cf3b3318503ee7331115402 SHA512 d3009f2301b0a006136e880025a736f24612faa7a954956896124ec7282d35b678f02658e8be12b1c02ee217e594a2c728a9258c36ccb346b186a4781951adbd WHIRLPOOL 1d4b2e88ebab1f603326a238cc908982c7e135a33340087e8645572838d2b6034764e9fe787bb890792dea4c0531d26f9a6a811a7c200edb99ab82f975179389
115 -DIST wine-mono-4.5.2.msi 52502528 SHA256 d9124edb41ba4418af10eba519dafb25ab4338c567d25ce0eb4ce1e1b4d7eaad SHA512 73c907f63b73836d5afd0753197358aaea43a74a47800f929ef0627112298256f1fa46d1b9ff297b117468d953cdeab21fb5962db13c5debbcb71004462df609 WHIRLPOOL 18d3544c6753c5a01917bfc1b694f31ce45213108527f13317ec0bb8b2d2339ce41800534967e067cd15cd186ef9e186a5d3252275e443dfa1a6ae3641d4d17c
116 -DIST wine-mono-4.5.4.msi 53706752 SHA256 20bced7fee01f25279edf07670c5033d25c2c9834a839e7a20410ce1c611d6f2 SHA512 307fab2ac50c4eaa5c3fb8446ceb2df0d95c0a9d7c1e6289ef1ec5cc660fa8fcb26025c9723ce2bc01afcaf7e9c4dd9939d1beba877f4f95f6f80d92d8187221 WHIRLPOOL ccd1fed03158dd309d2a1f88558e5ad0e2e43de5ba61ab82702132bd0cdf75db75dcc1a61b5cb2775fdf0ad51464f34d2b3629538b1737cbedb410b859ef092a
117 DIST wine-mono-4.5.6.msi 53705216 SHA256 ac681f737f83742d786706529eb85f4bc8d6bdddd8dcdfa9e2e336b71973bc25 SHA512 4d8df04c1d0da09d1abe423dd271e5dd14a193d607fb54e214d2e340827f7c33829342d1580b6907d7cf466e70993d743c6e1ca9a026d4b6225dd7c1fc8b1386 WHIRLPOOL 9a68e502da0be6768e92d88f2ccace607300f3a331e0f9e1b6d60e9c6c2d4eb635b902f03e13aad73461dd5f0c2691c7b41958356ebb7f445e8def4282c675d3
118 DIST wine-mono-4.6.0.msi 45690368 SHA256 635c6bc88bad8d6bf8c6016a589627142ae56ac2e7368192102a16fdbaa29cc3 SHA512 d2ab7a7b98d18132cc28ffd52352fcc6cdb16b1750a658e9ec961044e808e4e8e1605732f1e87bbb6a275f57fdb94aebaab3760f679472358c7df608b0fa3262 WHIRLPOOL f8f6e83be5bd4eb7bde6e6c0d1f17bd4d4c887c52fa2018f20e51a30ca7ec0a9550884423298bc571587fe3c203f921057d91c3c78c12ebf9e911996bdd7e77d
119 DIST wine-mono-4.6.2.msi 45676544 SHA256 a46c5b32b6ed66e2e8d7ac9b15ff9ffe143a3aa6f12f2ea07a6ca9a4d2023e41 SHA512 7ff31b64539976cc4d5ded1b38549c9bec620ee7679b5a53093195b7df1a93a57db04ef81d94342ec6e4389fef356660e3eb4c35e7b50b6df98288ca19eb633f WHIRLPOOL eef536a301127f78b06d56054a95e86e73ce7ecd0522a41f6d581d6cfb8660ded5b8148e00e9f8ee77361bfa4a66996559480cd7881c4d132169b5de698f4ef2
120 -DIST wine-staging-1.7.18-1.tar.gz 874958 SHA256 127b1754928297883ab5423c0814c59afa8a60444603b5c3b74ae726e41442e6 SHA512 ac7e59914436cfd58fe1e5edc94956f8470bbf3f517f8e1017ca3d201b872aca6a277bb3074527b614db8123663cadf4d10faeeb048d011d7e81fdfe5c582819 WHIRLPOOL ac1913deddc127c55d90d9f7c5249f2866757fb86295bf61fed8641a39751dbfbf57d3c6234086f8cff9c5b1ec8c45effeef40f5973e9aa8550412134809938a
121 -DIST wine-staging-1.7.20.tar.gz 887293 SHA256 ac55daab4c6062e7c3f7eadd4ea632ddc01702c1abf859bc4928bb9691cc7d22 SHA512 2f5bd5b3bfe85c0dd0d611fc2512f5f4ecac11d639eb578a7319c01a426b8cf788031fd299ecb5b5ff2c0bb7fa72dcfb1541bb9c987913068843a5b712099fc1 WHIRLPOOL 9c19e8e371e121009bed38ffe0e8789e35a4b9629a39aace1b44b8f830bf1e30c0cbca1c3eae45960373bedde39a912b4e1178b7af942c92263c6e4f278148d0
122 -DIST wine-staging-1.7.21.tar.gz 883814 SHA256 d107eba41706adf039befe5a584e45225e7ebc502a11257227c378581ec22b96 SHA512 770ed2d46f5975de4a728314c3c38834c20f8c49bc5fa7eee36c870b9708404c157f6e1ac4b9ec9e5799ed3b14f825c0653d30a17d332f6b805c6255da0ddf28 WHIRLPOOL 898db4f1a3606e5645a7a1132e0b83264fa5d7c00f94a14fce067702ec3accb397db93fa0c0449df7962800c44e00825fa1cac55b76b5abe42670ad412d67e21
123 -DIST wine-staging-1.7.22.tar.gz 888759 SHA256 1aedbae07bb4b436eee680ef19633b99e2e34764803be717c5cf32f1a1e45c3c SHA512 75f1fe0de2c3d488cfd5c4365ab3b8cbbfdc88bda5edf89657c8c372e29b6240977db74a194f94c67748520eff35244be7da3b684c37571b2427a7ef36adf95f WHIRLPOOL 66a45a3e733c453beeefe829df235cde8ebb734abfd40662480eccc65a2134f469e4925b6f7ea8e7b24bee212f7f58783596745e4fe20b2afb6f4c67c80e910d
124 -DIST wine-staging-1.7.28.tar.gz 8388699 SHA256 2ce3f4329befb33fec80f856105ea9ada7ba3f4bdf6d07edca485d15b55fff34 SHA512 4100d1ba0f9c69108053e367fe603348e1e9da9863f16a027d2a7b576453c8f31e198019f82664ebc74771a8aa429c7a6c068e0ef191c6d00c4ad848533be77f WHIRLPOOL 62e71420c5ce2b42b6e12ba511fcd2e732d7a5df0353670ad3282b5b7b138781f87f697c9482baad604fe0c21f0bfc06e6988058698eef8051955ed0e962a8c4
125 -DIST wine-staging-1.7.29.tar.gz 8423703 SHA256 27fab2e3a16f1af4580328ec399bd383915cd8827855f7e77d69d8ddddee2ade SHA512 a923c8b46c50f013f2b5f87dc554a9cfeb77b60a8ee7822775f38922a2ef90b30967e2489c77a8f5cecc1771a5b19e81e43e17ca74ff904485e7ea13c115d1d2 WHIRLPOOL 32a0f1c7c7ce71354e2aae5c870caaf2b210f5bc2cfc4ac2ab0a1e14bc2ee913fad5c487cd3cca9cc5fe58482b7b3110bf59c8576b690c68ff5e31fb567b2d59
126 -DIST wine-staging-1.7.33.tar.gz 8759402 SHA256 30b7ecee549514ecd186689ae8eac15ed37507755025c8272d31e8fd4808b3f2 SHA512 b3b939c8d5af419a9305a16de93486f75197d28bc39be4ca0abdea3e194745bfb401ecf6e092f93c59f68255aa7f051ee847ad3c8521ce87ecbf91abccc900f6 WHIRLPOOL 657bc4d642e1c799c6e0b39ef627c8f6852ab8d511e86f96c54065d87fb144d25a97b1a2572e87a029084d568fda7bbdab7c2ba5255dc07f02691f46e9796960
127 -DIST wine-staging-1.7.34.tar.gz 8865976 SHA256 9e71b5d3ce0cd8c4c511c375bcdae74de33d96dbda1d1e70fc7eb8708ee018dc SHA512 8c6b269eec6890ac0e724553c7a537c91b2420dc7d2ee96ba6fba911ad959d6b17e71a4e690539f3024450f4a7801be516977b1d1351e5f22820fdd44c78b7b1 WHIRLPOOL 93d32676f7150184ecfd676310c666299c4fc5ee0b0c04d2020ab06f330c982f54fde38c0d8986e51a9515a349d36b4fbf9cb31fefb378671eee8f112eb69fd3
128 -DIST wine-staging-1.7.35.tar.gz 8896849 SHA256 f1663938c29ab20c493569a5eaba7711a0f0d47cf5e4b9988f97140de2599b16 SHA512 5bc3fa7dcd9a79c2b067ed4b4b1b02a047bb94b4fbfe6f35b8fbb857ed1cda53ea9de18873504025c535197ffd81b0819b422aa3c9ade57a255d01c6696f4e13 WHIRLPOOL 193c1c86abd62b7132ec5984db2ce8d297dae9a4e7ec6a8b99bbd9e2d101d3cc3e5a950ccb7eec30f60d10e1ecd4e3d0ea977e13648f427f0ffb9d09190d13eb
129 -DIST wine-staging-1.7.36.tar.gz 8966590 SHA256 1debec42e30fd5521498df7935f3eafd863921e353ed25e52c4e844c520bcc25 SHA512 8a059a510e2b60ded80e0cfc9da8aa2c57d3f5669d20e98b5010036f1d6f3522a7277ef83a2bd1b3777395309268f9f29e250e32b0abe85b1f5e80479b413a74 WHIRLPOOL f1622db4d1b6afab76296ae425fef7d26e47d683bf43ea848aae2e9579e91406c4cbbe02b32ebb8e55fbedc67fb5f8a5f8d897eedd3b57e2b05dafe181a87f7f
130 -DIST wine-staging-1.7.37.tar.gz 9001155 SHA256 db13e8d8f9319afefb73624a9c630b125613102eace9a1ef5e65e8113d65ff3f SHA512 598a98c3368a6a9879243253a6ec33fcbd687701c877b90d1490651a020424cef78bfea9957c83c120bb3cd1139da5008099c6e2fb92a9c3b4978608b957a9fd WHIRLPOOL d85e2b340f137783da661d7636acf4cb0e3f36878b9884450329935651bdd7f67ebc203696c43493170021fe7dd8ff7b5a5aa93883e227ac884ce39405cefd76
131 -DIST wine-staging-1.7.38.tar.gz 9047747 SHA256 b77fc0913c972c0cb2b3fcc3d7627a838ba05cb876396cab526f518564f2f936 SHA512 125937505308a974840d810beb9df10d57cf488b173836c5debf71a96cc11cd3dfee666960768db361edd3b280858f2e6db5eaa8d81f4b487b7c53a0f8fef13c WHIRLPOOL c5cb14dd7527752a0496e343d7b12a53c9df629c027d746e33ac3c25ad20bfebd22c40ceb31bd5e70d3ea2a9188efe076eceab30c3c3f2d519fb31164f189f5a
132 -DIST wine-staging-1.7.39.tar.gz 9096658 SHA256 b7b3ba39e2a8829a6fd6aef4b3701dd0009eebc85539ac946e31de6d7fe36649 SHA512 d14780c30303a17f575f22adeab5cc026c2f41520d47dbb7ec70b939252eae656070eb8532cf1a42cca2b1c9c589a44081d12b2647b0d97c3c90b896a7433d23 WHIRLPOOL 8d71a49c3172261e83193ccfe85dfbd94421ee20063f4127ecb328450916cddbea742c59c09c34e10035d9f2fa0df0ebd0d68bbc6e90b92c1aa1a1071a26b055
133 -DIST wine-staging-1.7.40.tar.gz 9129843 SHA256 d2cafa5e847e1aecb82bb1dd42ea7729f749176c3ddc549c6b422c8ba74b89d5 SHA512 7688f9e2178335b8c1606673921368faa1532c766bf2a60c9be1d9640719acf024122270084afc892195878bfcadb6aea6cbf971a6bb2112260b3840d94ab994 WHIRLPOOL b58e5dcdbbb1632ed8d8bf98c34396c0a8e1d108d557d130ab9aceaa9efd9b9002eef38c7829196eae0736c1002a1e1c723bcdcf0a819e48a1394e615c997262
134 -DIST wine-staging-1.7.41.tar.gz 9136024 SHA256 c34f773003e25195fd761bbaff517f31deaebb8d46fc94de14b9581728138174 SHA512 89d867b6c869221f441b7bd5cb473f4179c2fa5453ac86df8801838dc5eca64fd2d33c38a73b74972cc2fd97c1f762c1fd60f2857074c71942687cd027e08bdb WHIRLPOOL 91a17eb37ae65ca41e397935994b22b45e4d2eac3b3bbf3cffcfc400084fa83e43ee5e29248a028363430251b1485b499ae37fe2e0668df971d8eb77aa495257
135 -DIST wine-staging-1.7.42.tar.gz 9146373 SHA256 71dc4b0063446347769234075e7b76e5214a54eccee445a72cb7467bd0a85b3d SHA512 9d8a468e4eb74ec45ca2554d4d6c38e32e8bfdfcb768e4bbe484204fb884bd8194ffadc2fc4dcfa561492e5605667a6aac24704fbff17e2adbf9407dcbc7e3a9 WHIRLPOOL 3560c07b95b8555d81425fa42e689a0040cf62a1a17ec6c2d081c4d4b8acf53176c7041be0db94b438b91b3a20d4994ea127c66e287a75286b0d436cc6466d54
136 -DIST wine-staging-1.7.43.tar.gz 9181556 SHA256 bed2db992bf7926e8f2cf45c4cbfe37a15e13a10639cd69be290b658f5e5b9f5 SHA512 b2e0ae99acdc77717a00ba1c25274c0d0cc4ff6cfc3d794ed691c9ab5fa320c15f0e3bd793dfee3e9c86985e676608c7a6916eb4c47c94eae907e6c498fe80c8 WHIRLPOOL e010e9c59e7553219f2866884c37014fbb76556fe808aca9d00dcbdb8c0cb111ffccb07bd323ece84261e5cd50e32dedcba9ca4ae3c1d692e64e232e6d561829
137 -DIST wine-staging-1.7.44.tar.gz 9194166 SHA256 ae2db1fe506c936f9e3c5664584126d58db8305c47b8155c636b8a8843a0ae20 SHA512 e01ff7d458a3162ad19577d127660bcf953c048201a2f98aa23fc5bf19e232af3e155e64e2d0fac33fdf01a9508be6e45a663e4151ee5b50b6ea2ce56a1e0beb WHIRLPOOL 915426aab0142a4142938a119339541f7a72d6a3e1c7fbd46c0dc9ad7178a56951e5a996f4b13f50bf7581a13607d15e3ae9796cd39974e069928c358400cc3f
138 -DIST wine-staging-1.7.45.tar.gz 9216075 SHA256 06180e1189e8669892e8b3d640810306b0310c508842272eccc65034534e9411 SHA512 051f10237306cac13dcfba0ee3453facbadf821a2eb5751d507bfcf86a936a08a236e1787d025378e3039e0fe91958bbb64b1fa90f5ea1a1b53d1d53788a5eb2 WHIRLPOOL 0277059d933cad1ae3449ec4028e7935f5a73c2790629ed0d0d6321bac0804caeaed282eef9fa1282ab85454123781c8cf2061e0220478685fc76405f3876757
139 -DIST wine-staging-1.7.46.tar.gz 9204220 SHA256 a3b681f38917889bc6dce3ea3e78e91da75789f212b69fd1a10a5bac329761d3 SHA512 24861e1adf882465c3f9f6e0aee47776dd18418342eff500007d36eacfadc166bdea40a53318c7fce3871742559904a1d757ea9a9c0f0624da678a3e9ea2d400 WHIRLPOOL d091925e99dc830ff1a6e49ec9c6f7cd1fc7e40920be2e4a5a10c4b7bc3a5b2109487eb32c5426f31b22baf53216b9b7caeb1b4faf6be8c2b5ecc8233d4ae198
140 -DIST wine-staging-1.7.47.tar.gz 9166592 SHA256 75aef17c68d1e54b922529832edadca5951e6a37637aad696cfe5abb93d9ca15 SHA512 b3feb61040a727b50fc3efb08441a800b08b4f7d61a00fc68175a6187486a701cc4737f9543119c32ed0c5f141d73ace396114337082cf7978a3437f4217844a WHIRLPOOL 69bead0fa0748dab8d0480d20052b3a75798d42bc32d55b9b254fba7774dddda48642c4e2f116f2c3d813f97e0827232945b3adaad22a827a43be8de12698bbc
141 -DIST wine-staging-1.7.50.tar.gz 9239831 SHA256 04803fe71edc5d5149624946ffd89de1ddadcd151a47e25cd7e0290b31c1f395 SHA512 7866762cd9ddeeba48167c44df0d186e238f61ffb1412315b3ec466b2a99a01c1cb55816998218aba8a14294302c7d98874144f5f456e341bf506b2b09da0d28 WHIRLPOOL f01192fed42532639afb6b5f4905ec77aeb105a4c33000ec624e87aa792ad4194253d793461a2e5d18051d1b0c2a7438e5745447fa616d34759a12dec3cc80bb
142 -DIST wine-staging-1.7.51.tar.gz 9628831 SHA256 662cbfcca95405045ba063f312fa4f605d8c48b7b0930c951e2ebac817f3b763 SHA512 f9d2388d63af3aa6ccdc7b66f9d767c19c1577acb84eb3ac03f9b4e07b3ff76906875998fdb42baae3768202129d270b1a1b15fd6bfb20fa33e3bc70559bdf45 WHIRLPOOL f606b6cb2f9a2ece0ce411423df8db1a95217341c2dc6720f748ba8df71758e0a099afc7679fc37fb6621ba1f2fcd5bb505a85cdde797adb45d093836e001441
143 -DIST wine-staging-1.7.52.tar.gz 9654310 SHA256 84354a10e4226b5e456abb6d5727f4514c79d537ca809bb114a945830166cd73 SHA512 1c6c76ff67363dc3b1b9c92b10df3cdd3e5deb4c4223128478b891557ffafdcb5db2752ed26e23e8c2bc7176e5c9d22a3990b148aff6fbb5211a7527b9a542f1 WHIRLPOOL 24f2bf5b357a474de7efe95cbad13bc3126f55fe0610aa1d9c258af605a002eabfd860b2874e5a2c4d2f017e3f7238107001b57ba1c406066a450bc34937e9ed
144 -DIST wine-staging-1.7.53.tar.gz 9638222 SHA256 438f41165987a57635694dba2f67cc435cd630581b13cafe0c85daacf37a102a SHA512 716840c44923848a28b481f6b4e422ef84fe33bef33a650c183c62be0dbec34471375fe2b1911382282f293fd5135ce133cdb775acd7df98029be2e4646b6d9e WHIRLPOOL 702555a706e50521ca6864b7b29ee4a4774fc8d770775c5186728b19e2c71ba6040ce98f86a772435c0d2f0a4363bc2a1e8f0b13ffbbe9395c072d3d89d1118c
145 -DIST wine-staging-1.7.54.tar.gz 9647030 SHA256 b244ab05326e0a4c149beba0684afc100d44dca8e6ff606bcfee883b21b27303 SHA512 f6e58be01ba10121d6904cb238b2d91dd79cb7d14d623c00a897e655adb88332bea125cedf3fad85e680c76aacfbab16dd5035c322278155defd3b493054aa23 WHIRLPOOL 4c053ad96e67f4e82c93d3cfa9b6f885c4c3fe693946dd0e2a30cef556aac55f9dcafb5c56ced0f714f8ea9448cb4e22f144ea7f3561cfdb5bbff1b049d34f07
146 -DIST wine-staging-1.7.55.tar.gz 9604441 SHA256 856b630fe95250e3d2dfc80588529e42e92e37f2e974ce8d3da37b39bf5cc3c3 SHA512 a6fbfa01b6d6efc75f79235aea86091c32ddf91ca300c73325c8347949c627f53ceb0fe085d6c212602797b0496d36c0a79f08eae4644a17774e95906332032d WHIRLPOOL ad232568c9df5d436a79a3557c82e231eed121356d8db1f5a3c0e7249b6c2760d87bb433ff30d6db53ce190b2d49401aa387b06f0c3f74925aefea7b1d73f112
147 DIST wine-staging-1.8.1.tar.gz 9598557 SHA256 12a4e54376515e2ab8ad79855ba724ba065c8de619c5da192ec528cc365f9c97 SHA512 d24bb78aed1e50ad73e742608048a68097d40e3c6563c1bd5adc2fab6abe0838dbce2d9f700ef71d876c6dfee232e97bef91bbc8f6b6c9092ff8db5a2d0f05ac WHIRLPOOL cb1400586860d4e6dad3f3bad78bdde27f8ea9fb703180533f5852368041879efe93e716df8f54bbeabba38b7d921ec0e2737bc6121c8cb5fd5af8d117d7e538
148 DIST wine-staging-1.8.2.tar.gz 9593817 SHA256 388cdcdfcb80df56df10c0487c03b1f2a5d5ad5762eaf4036ea59dacd43eb64c SHA512 8dc795b99cecdc852d9725c90250de1441f2a9ba8abb96f9c7340115541cd670efd1e8640d34502c15a6e3eb77a1d9fc581f5464109976e148665ab25465b7b9 WHIRLPOOL 0a54f239fb21201bc72e72aa3fd5f94b5411a8fdbda85515b53cf04d77439d7d98db3c385a175036b1d3478af071e478f1fb16050823c6455078f719ab85b2b6
149 DIST wine-staging-1.8.tar.gz 9632566 SHA256 c66f3dd6a760d516affe7467c4fb2d15ea8e2f0c72bcda1982219948dcdff11b SHA512 7b030b217ed0b37b8037d782406f75fcdb681c81371eafcab87175c0e6ac8b50fc58fe364e933e79eff168c1755412276fae3f914b7c36a6937aea1f6e35b022 WHIRLPOOL 8cff5d1d4c23405b820dbf9e7f73f7bba785e04ec2d9087b0977bb7aa1e6b84c2e6c3ac2f9cc72ba3c16f2b9c8c3607ea02ef1cd52d428a2b441333a424d9a21
150 @@ -102,22 +28,7 @@ DIST wine-staging-1.9.6.tar.gz 9959130 SHA256 e9eb9990aa7f3f07931bfe158c883ebad5
151 DIST wine-staging-1.9.7.tar.gz 10006278 SHA256 f1f0f76815c4d6f0011a6036400f2130809eb5b9b953cc505e187029a71ff69c SHA512 e90db22c03b1d8e334204b473e8bde37dddd7ba7fdb84d884a9ae12b2d70e70e150d735579dcb3df4b6b0a94269e54297b0881489ad6eebe421006dd29f0ec5f WHIRLPOOL 13b3bed7e2f8fe8f0c44d4f3d7fdaa8517ad88e03f1fd077b9fe7bb8b6ec68e247af99dbcda08f65233cb90d1c90497ef87ecb4a46cc7841e45088abb97df0fd
152 DIST wine-staging-1.9.8.tar.gz 10010607 SHA256 49201e31105208ae106f9426c2ca150e5d289b94c9b938a8669fbd32f58cec3d SHA512 53c9b6ef68986ea620843bcf97c583b3b29d98e40529f45f943868fa41b3c8356c50cf401c42aa11f0738a44f107ee55741603007681b43c1596b11988ff05e7 WHIRLPOOL f5424479174f87fb0bf3e0e947a53af20c2eaca95d4814603a27a596a361e3e98fa7250e4ee8bb4eebe8a410329732311b7125320d7758719f42c693e9d7cc13
153 DIST wine-staging-1.9.9.tar.gz 9997618 SHA256 23e165b0259561a3449a7c0195352cca96fdc247ad524c6567421d9971ebf517 SHA512 4e06315eda4ba8e7a44c06a422ebb8a315c808f1f651430e7fc56950916a61c38aa6d3a2467a6c70be2c344744d00b25d83df27c8629c783c8b67584c01f8c0c WHIRLPOOL 01fe2ddb3de5485f221787a3899bca171ecf4d14c3c0c8a9b973757f1507a4ce3dcbf9c4cea2b20b31fb1ddc0ae0eaf8600c811f4fbcd1ffa39eb5fa81dcf313
154 -DIST wine_gecko-2.21-x86.msi 20871680 SHA256 f01fafa6d7aab995c38add77315c4cbc2f32f52d5d6a9350056f42b62d631fd8 SHA512 f4ca9ca5b876dc39e906991e58c6da8ef4103782f83ba781ff27556c0ebdab7fe10c14f0551e900442a5d57a2c619da6e5ed6ed42323edcdd55ce9789c4c83ac WHIRLPOOL d1db97175b047652499c97c968b71c08c5b44774423f22ae626f89b4dde3d03b46295e5caae228f1f8614209e943e8246854b478eef3abb186e8de4c341b0a0d
155 -DIST wine_gecko-2.21-x86_64.msi 21646336 SHA256 bc370bdc899f66d98f31c4d410a6952aa82c0c9c0a0ec27f2a11243c9b412c3f SHA512 2a48a7697beba4e45816a9eff09e181de353d8c93e02a70108fa77d27136cd5cd75b21c42caa7702a09f86544669ae2bbfc6975b1fc0d7fcb20150a4bc4ea514 WHIRLPOOL 2fce9b9a190a52c173551d47428dd8b8dc54d5878682733e0006a3f06f216cd9f47a88ada49f92fa5697ece8b2942a88f937bd2722b4cb85d2c35c19bda29b85
156 -DIST wine_gecko-2.24-x86.msi 22373888 SHA256 6e38acae87ea66e2c1e8f2f0afe88f89eed3e6e0b431cd3da38dea814b71202c SHA512 f158d28ca09bc900a2680892e7ac10770e06050a9251e1ec3a953fee0bf9b1c326e166f92fb88a4648297b6587c91a5ef5af35f267bb2ba5f679da4c8fdb6898 WHIRLPOOL bbe7a2572d89dc5e0347ba11b2014bac79fc4427d7551655313a46b147a79c1607b7f46596877c459ddaa0e202337fb3d217429ddd6a4df49ee33b373a788487
157 -DIST wine_gecko-2.24-x86_64.msi 23608320 SHA256 47557da68bcb2aedaebb93af73275aac96ba23e896bd98f25f2acbfd216d9cc8 SHA512 45ce0dcf42c3e2fe2198092812242e3467b19db4a4946e0b1a2d6327fd48aa936fb85cc1930bace6eaba0c61bff3a6536767ba0a91a0f085f307d1bddd171f0c WHIRLPOOL b6ba7c784d3a79d7afc11f0e12f0372b52b9f194eedfd083abed36a461e7301d2dd936be3be12619364f6ac5aae9cfbfb7fc47141bff92b62826f209365210ec
158 -DIST wine_gecko-2.34-x86.msi 28269568 SHA256 956c26bf302b1864f4d7cb6caee4fc83d4c1281157731761af6395b876e29ca7 SHA512 abc5a4ef496ee407579cd2f284cbcb03306a08cbf3cc4952f3339286aefb36737d2d641d8e72b10a02a4d71478964e676812452c12ff7cb6aaeaf5210408c358 WHIRLPOOL ef72209b4c63fc81f787644046c5fd168b8a5a4e7e5c8652eb7a78ce3b433d888512bdd5aab6ea07248c9c148175006666cd7a800bcfb2b3a73de3f50d1fab76
159 -DIST wine_gecko-2.34-x86_64.msi 29802496 SHA256 0f2c1b24c4cd1b3fa3fb3fe31dcd9ee162446b1f3370c0a18c8cb03a0c1a1070 SHA512 6bc69e1c8612533b3f37c16782833bca0e3aaa8ae872fe9f347ee081575c55c03866d6c71a5fb767bf4c3b012ae72f7d9c384d6d25c2584bf349126521e8f463 WHIRLPOOL a03df2c16088cf573c9273a59ba6998455917a49e0bf84028136d0ecff65a91f20edbecec55455b742682dcee5f5e618b8f2e8c15c71625642cd8b67a7774bd0
160 -DIST wine_gecko-2.36-x86.msi 29718016 SHA256 afa457ce8f9885225b6e549dd6f154713ce15bf063c23e38c1327d2f869e128a SHA512 6099240fb76368ed9bb6b775d5972b6124972ace92ccfe1051caeb8884d9e12d40c35220419f0d02443584bf2d82799dfca8206410d171470ce15903703924f0 WHIRLPOOL 4b8fc20a8b228268f3407ca425427a2d91f81ff9e6f0860d4f3eb156c97e3ec1ea83ca3510ee10bfb37598f91c3323a46ba75eace3334632b26cbd45959dc908
161 -DIST wine_gecko-2.36-x86_64.msi 31222784 SHA256 701b84004bf584a2dae7c1296121172c933321cb795c3817b64435fd3364ed44 SHA512 814b13268beeac4d0ace4ab62dbc29ccd92fc13a135499b8ea5a14355992d576268e1e401b28906e8379a826159c5bb051ad274a1e64dd0d5424d495f8e10e10 WHIRLPOOL dbd0e275bdca2ff7a1930daa62d23fd438a90f71b0fed1096b34b8d00a3f51cb91468ce61acaa9361a57deb9f3cfe70a21d16fc23de95cb4e0f7f957d4727010
162 DIST wine_gecko-2.40-x86.msi 31741440 SHA256 1a29d17435a52b7663cea6f30a0771f74097962b07031947719bb7b46057d302 SHA512 2f203852afede3f6b0899a54ad6eaa27c972a84df51de1632cb21af0c322e369a13150a5f19f68d7c4fcb0610b65e9244658e622c7e6b14c93ae6b7372bb184f WHIRLPOOL 461358782c8aa21be5bf934bdb7b7397717add883036a773dad20d2ba5169a5229c211781c60fb4df46057b476765c6541340f5764a5a7362daf357ab60877b6
163 DIST wine_gecko-2.40-x86_64.msi 33056768 SHA256 c3e28988e7d92221596fc4c569d10eb4dd2ca64b9f4970bf77e791f5dd8c9230 SHA512 af171193f221f2cd51f6dc3382a9b1c658ef2553213be32f201c05f7122eb6883838be97c3ec66177b1e3922df64c409745c3223acb01910680a5476c3f01478 WHIRLPOOL d11234b593f4190ae8fa99bec8363c0047f6de08b186752b9f49764519ee9f4aafd017a16c0496581a0f4791e1109273846cec0314d9e320423d51723cd2083a
164 DIST wine_gecko-2.44-x86.msi 34832896 SHA256 77a64ad17571b3a00386a88b9b1b1ea4b7e759061675568bee0ec238fb456d39 SHA512 6c3b6ccbab0081d8ab188a9a031050ca8fd7ef8f1de0efa3a57569d6166397f91bf13037402e3437cc8cfc4fc25e7c2f8be32f66500306d567055e89aae0797d WHIRLPOOL 59c269a6d6e3ba829bd24cf81eba991f91bb0c1995a1841b7e548593f544088959093ba29eb83b53f38f77e71780d8288f0b12a212862af1374f954d61f24999
165 DIST wine_gecko-2.44-x86_64.msi 36273152 SHA256 628e5a0d3b7406cbd2f031139be06e2ef695081fc77ee18dc06748e649ff6661 SHA512 71dcbd28ff048fc587ed796f2f09815f624774742abc192d9aa1104485f5d8cd93b2308fb72506f82d0ea5032dd6c7ed2af4ac95121e7b2367e7a6dd77cb042f WHIRLPOOL a327f2b5a8f47498967b80e06336918006b71b4e1b90a96943faa6f05e481273203259ab6f8a3b45ba85249344c76c100880ad88dd346a94ee45327fffb2f3a1
166 -DIST winepulse-patches-1.7.10.tar.bz2 49205 SHA256 7330b4552b572244bbe99c16005d725eaf382995c986add170474381b90df468 SHA512 ef3a5477bc5803bfba609dc3299a7c07833958628d1aff01d100da57c0d270344ee326649206708c50c2a12b025f987a4e0f1dee9126e52e2778b256c45ba567 WHIRLPOOL b40088d8665f3cc57b4936774ac6dc2e6b005d75aa7c7385248ce35e5cf6e168ae212771f771b68dbf91fc5034b7ba54f907e93283cc2eddaa18e825d9b734a9
167 -DIST winepulse-patches-1.7.12.tar.bz2 49171 SHA256 6c5b3f46ea1c4615c49ee0f6f65936cf650cce6640f0feb4236c707064a9d392 SHA512 ec41f6024d6e2325f14f8caa15bbe38c8dca6c69beb5343063365f58dd8b7edbbc4d24ad176de72cf0e37acae03eb9769b68fcbd40a672680e06156f4a59b12c WHIRLPOOL de8a33ee784606e76a60166e3e29a1fb748ce4b3af1db136558888bd09bb0a044e4a1a9a61ce3de59d55f93c98575ac8d77c3ff17de4d69cda3b8fbd8f6c33c5
168 -DIST winepulse-patches-1.7.20.tar.bz2 52583 SHA256 95d0febb72baa73d5faeb82de774b49eaa9e38aa74448ea313c62f6eb1f4faf3 SHA512 9d7108fd2076d9a19dff5e72a25aa57f0946e6d17cfcc07422cce3fca34dfe04521d09cbfe611701781e10ad1f0d00562cba974214a4d189b16f6ded96ef61bf WHIRLPOOL 815d1cbf43b64a7a1a3aae965c6521ee3c6147458913f13236ccec7848340663d8372280f53eed381f3f68969bb06b272c30c605c290e31a678fc8d01575a766
169 -DIST winepulse-patches-1.7.21.tar.bz2 52679 SHA256 38daf95ea99cf831c56634e1dd4a4ea5fa4c11f570dfbddff06ceb7cd05e7303 SHA512 8feb729461a0e9791eeae11bd354407bdb389aefd1d30454781cd56072deeb507dccf5a825e580194d1a26c2c83b631d38967011c5360c46340dc3ceb7c0096d WHIRLPOOL e5cd496a7a66036825cff73dcdb76d787948b05d604b26042b024f7c9e991f4ea61efbd41a53fe667bd023e04cd5763f806166ab3aa9de757105ee3fbe6f65e8
170 -DIST winepulse-patches-1.7.3.tar.bz2 49163 SHA256 893dc6251984f6a7306dc8064c50a6a605921094f84feb436c23be3b9e5d077a SHA512 f04b33479c92ce31df74ea49b8582cee2f9d7a4cdf132f212f021da89b19dda8e5a4b0daaec81533b100ef0af023157cf43581ab75fa263da3c1a5d712ec3e9d WHIRLPOOL ae2a599d7bdb49ce77cc56844ff74c7fd62b1f1164e9f7fdec499244fd609799c0fd7421d29ffda7e9fb599962f75c2ebe44ce72e0f0a80677e140f759ab22f9
171 -DIST winepulse-patches-1.7.4.tar.bz2 49182 SHA256 26cc1ab6d91c45b4d83f07bbd7f43c9824470700a58325f0a1bfc1b76bfe419f SHA512 55095dcd3ebd1560316382ee5f625203589ba8ac2437f7993bee0edf61004d3c0cdba0aabc2e9aed3d195d8eda4088241766dde4c44564e81ea99cc47404cdff WHIRLPOOL 978f3bcc3cc14098b604cd737d9fa6911a5c3b76773a060586ba183a055cdc25e3b436c262c813094c7c2158ae607bcb3020738da16bbe2c48c595728755f98c
172 -DIST winepulse-patches-1.7.8.tar.bz2 49140 SHA256 0fd31ea7fec8817561a7b304bbfad6bdd014eb566b0c533e15773064bca555ad SHA512 18c88d4da37714d0216c01929eb92c99161fdf7024d8516512fc2585bc8d5a700fb1b5eb9fb667149e104305f366c867973f41b688a04f63e7cce76f5d85389a WHIRLPOOL 60dfeeb1d51c9ea7730ff1e9263d44fbcf3509e6ae68df1e3d30d965999f19525979f64617494bb1c3e1712c7117f30bebfbcbc75b1b08ba1f1e033720b0cacc
173
174 diff --git a/app-emulation/wine/wine-1.6.2-r1.ebuild b/app-emulation/wine/wine-1.6.2-r1.ebuild
175 deleted file mode 100644
176 index 7890da7..0000000
177 --- a/app-emulation/wine/wine-1.6.2-r1.ebuild
178 +++ /dev/null
179 @@ -1,376 +0,0 @@
180 -# Copyright 1999-2015 Gentoo Foundation
181 -# Distributed under the terms of the GNU General Public License v2
182 -# $Id$
183 -
184 -EAPI="5"
185 -
186 -AUTOTOOLS_AUTORECONF=1
187 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
188 -PLOCALE_BACKUP="en"
189 -
190 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
191 -
192 -if [[ ${PV} == "9999" ]] ; then
193 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
194 - EGIT_BRANCH="master"
195 - inherit git-r3
196 - SRC_URI=""
197 - #KEYWORDS=""
198 -else
199 - MY_P="${PN}-${PV/_/-}"
200 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
201 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
202 - S=${WORKDIR}/${MY_P}
203 -fi
204 -
205 -GV="2.21"
206 -MV="0.0.8"
207 -PULSE_PATCHES="winepulse-patches-1.7.8"
208 -WINE_GENTOO="wine-gentoo-2015.03.07"
209 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
210 -HOMEPAGE="http://www.winehq.org/"
211 -SRC_URI="${SRC_URI}
212 - gecko? (
213 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
214 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
215 - )
216 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
217 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
218 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
219 -
220 -LICENSE="LGPL-2.1"
221 -SLOT="0"
222 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
223 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
224 - test? ( abi_x86_32 )
225 - elibc_glibc? ( threads )
226 - mono? ( abi_x86_32 )
227 - osmesa? ( opengl )" #286560
228 -
229 -# FIXME: the test suite is unsuitable for us; many tests require net access
230 -# or fail due to Xvfb's opengl limitations.
231 -RESTRICT="test"
232 -
233 -COMMON_DEPEND="
234 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
235 - capi? ( net-dialup/capi4k-utils )
236 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
237 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
238 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
239 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
240 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
241 - gstreamer? (
242 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
243 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
244 - )
245 - X? (
246 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
247 - x11-libs/libXext[${MULTILIB_USEDEP}]
248 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
249 - x11-libs/libXi[${MULTILIB_USEDEP}]
250 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
251 - )
252 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
253 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
254 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
255 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
256 - opengl? (
257 - virtual/glu[${MULTILIB_USEDEP}]
258 - virtual/opengl[${MULTILIB_USEDEP}]
259 - )
260 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
261 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
262 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
263 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
264 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
265 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
266 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
267 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
268 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
269 - xml? (
270 - dev-libs/libxml2[${MULTILIB_USEDEP}]
271 - dev-libs/libxslt[${MULTILIB_USEDEP}]
272 - )
273 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
274 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
275 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
276 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
277 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
278 - abi_x86_32? (
279 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
280 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
281 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
282 - !<app-emulation/emul-linux-x86-db-20140508-r3
283 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
284 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
285 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
286 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
287 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
288 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
289 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
290 - !<app-emulation/emul-linux-x86-soundlibs-20140508
291 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
292 - !<app-emulation/emul-linux-x86-xlibs-20140508
293 - )"
294 -
295 -RDEPEND="${COMMON_DEPEND}
296 - dos? ( games-emulation/dosbox )
297 - perl? ( dev-lang/perl dev-perl/XML-Simple )
298 - samba? ( >=net-fs/samba-3.0.25 )
299 - selinux? ( sec-policy/selinux-wine )
300 - udisks? ( sys-fs/udisks:2 )
301 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
302 -
303 -DEPEND="${COMMON_DEPEND}
304 - X? (
305 - x11-proto/inputproto
306 - x11-proto/xextproto
307 - x11-proto/xf86vidmodeproto
308 - )
309 - xinerama? ( x11-proto/xineramaproto )
310 - prelink? ( sys-devel/prelink )
311 - >=sys-kernel/linux-headers-2.6
312 - virtual/pkgconfig
313 - virtual/yacc
314 - sys-devel/flex"
315 -
316 -# These use a non-standard "Wine" category, which is provided by
317 -# /etc/xdg/applications-merged/wine.menu
318 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
319 -usr/share/applications/wine-notepad.desktop
320 -usr/share/applications/wine-uninstaller.desktop
321 -usr/share/applications/wine-winecfg.desktop"
322 -
323 -wine_build_environment_check() {
324 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
325 -
326 - # bug #549768
327 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
328 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
329 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
330 - # Run in subshell to prevent "Aborted" message
331 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
332 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
333 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
334 - eerror "or use gcc-config to select a different compiler version."
335 - eerror "See https://bugs.gentoo.org/549768"
336 - eerror
337 - return 1
338 - fi
339 - fi
340 -
341 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
342 - eerror "You need gcc-4.4+ to build 64-bit wine"
343 - eerror
344 - return 1
345 - fi
346 -
347 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
348 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
349 - eerror "See https://bugs.gentoo.org/487864 for more details."
350 - eerror
351 - return 1
352 - fi
353 -}
354 -
355 -pkg_pretend() {
356 - wine_build_environment_check || die
357 -}
358 -
359 -pkg_setup() {
360 - wine_build_environment_check || die
361 -}
362 -
363 -src_unpack() {
364 - if [[ ${PV} == "9999" ]] ; then
365 - git-r3_src_unpack
366 - else
367 - unpack ${MY_P}.tar.bz2
368 - fi
369 -
370 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
371 - unpack "${WINE_GENTOO}.tar.bz2"
372 -
373 - l10n_find_plocales_changes "${S}/po" "" ".po"
374 -}
375 -
376 -src_prepare() {
377 - local md5="$(md5sum server/protocol.def)"
378 - local PATCHES=(
379 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
380 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
381 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
382 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
383 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
384 - )
385 - use pulseaudio && PATCHES+=(
386 - "../${PULSE_PATCHES}"/*.patch #421365
387 - )
388 -
389 - autotools-utils_src_prepare
390 -
391 - # Modification of the server protocol requires regenerating the server requests
392 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
393 - einfo "server/protocol.def was patched; running tools/make_requests"
394 - tools/make_requests || die #432348
395 - fi
396 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
397 - if ! use run-exes; then
398 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
399 - fi
400 -
401 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
402 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
403 -
404 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
405 -}
406 -
407 -src_configure() {
408 - export LDCONFIG=/bin/true
409 - use custom-cflags || strip-flags
410 -
411 - multilib-minimal_src_configure
412 -}
413 -
414 -multilib_src_configure() {
415 - local myconf=(
416 - --sysconfdir=/etc/wine
417 - $(use_with alsa)
418 - $(use_with capi)
419 - $(use_with lcms cms)
420 - $(use_with cups)
421 - $(use_with ncurses curses)
422 - $(use_with udisks dbus)
423 - $(use_with fontconfig)
424 - $(use_with ssl gnutls)
425 - $(use_enable gecko mshtml)
426 - $(use_with gphoto2 gphoto)
427 - $(use_with gsm)
428 - $(use_with gstreamer)
429 - --without-hal
430 - $(use_with jpeg)
431 - $(use_with ldap)
432 - $(use_enable mono mscoree)
433 - $(use_with mp3 mpg123)
434 - $(use_with nls gettext)
435 - $(use_with openal)
436 - $(use_with opencl)
437 - $(use_with opengl)
438 - $(use_with osmesa)
439 - $(use_with oss)
440 - $(use_with png)
441 - $(use_with threads pthread)
442 - $(use_with scanner sane)
443 - $(use_enable test tests)
444 - $(use_with truetype freetype)
445 - $(use_with v4l)
446 - $(use_with X x)
447 - $(use_with xcomposite)
448 - $(use_with xinerama)
449 - $(use_with xml)
450 - $(use_with xml xslt)
451 - )
452 -
453 - use pulseaudio && myconf+=( --with-pulse )
454 -
455 - local PKG_CONFIG AR RANLIB
456 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
457 - # set AR and RANLIB to make QA scripts happy; #483342
458 - tc-export PKG_CONFIG AR RANLIB
459 -
460 - if use amd64; then
461 - if [[ ${ABI} == amd64 ]]; then
462 - myconf+=( --enable-win64 )
463 - else
464 - myconf+=( --disable-win64 )
465 - fi
466 -
467 - # Note: using --with-wine64 results in problems with multilib.eclass
468 - # CC/LD hackery. We're using separate tools instead.
469 - fi
470 -
471 - ECONF_SOURCE=${S} \
472 - econf "${myconf[@]}"
473 - emake depend
474 -}
475 -
476 -multilib_src_test() {
477 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
478 - if [[ ${ABI} == x86 ]]; then
479 - if [[ $(id -u) == 0 ]]; then
480 - ewarn "Skipping tests since they cannot be run under the root user."
481 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
482 - return
483 - fi
484 -
485 - WINEPREFIX="${T}/.wine-${ABI}" \
486 - Xemake test
487 - fi
488 -}
489 -
490 -multilib_src_install_all() {
491 - local DOCS=( ANNOUNCE AUTHORS README )
492 - local l
493 - add_locale_docs() {
494 - local locale_doc="documentation/README.$1"
495 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
496 - }
497 - l10n_for_each_locale_do add_locale_docs
498 -
499 - einstalldocs
500 - prune_libtool_files --all
501 -
502 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
503 - if use gecko ; then
504 - insinto /usr/share/wine/gecko
505 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
506 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
507 - fi
508 - if use mono ; then
509 - insinto /usr/share/wine/mono
510 - doins "${DISTDIR}"/wine-mono-${MV}.msi
511 - fi
512 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
513 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
514 - fi
515 -
516 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
517 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
518 -
519 - if use abi_x86_64 && ! use abi_x86_32; then
520 - dosym /usr/bin/wine{64,} # 404331
521 - dosym /usr/bin/wine{64,}-preloader
522 - fi
523 -
524 - # respect LINGUAS when installing man pages, #469418
525 - for l in de fr pl; do
526 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
527 - done
528 -}
529 -
530 -pkg_preinst() {
531 - gnome2_icon_savelist
532 -}
533 -
534 -pkg_postinst() {
535 - gnome2_icon_cache_update
536 - fdo-mime_desktop_database_update
537 -
538 - if ! use gecko; then
539 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
540 - ewarn "implementation of iexplore. Many older windows applications"
541 - ewarn "rely upon the existence of an iexplore implementation, so"
542 - ewarn "you will likely need to install an external one, like via winetricks"
543 - fi
544 - if ! use mono; then
545 - ewarn "Without Wine Mono, wine prefixes will not have a default"
546 - ewarn "implementation of .NET. Many windows applications rely upon"
547 - ewarn "the existence of a .NET implementation, so you will likely need"
548 - ewarn "to install an external one, like via winetricks"
549 - fi
550 -}
551 -
552 -pkg_postrm() {
553 - gnome2_icon_cache_update
554 - fdo-mime_desktop_database_update
555 -}
556
557 diff --git a/app-emulation/wine/wine-1.6.2.ebuild b/app-emulation/wine/wine-1.6.2.ebuild
558 deleted file mode 100644
559 index e990228..0000000
560 --- a/app-emulation/wine/wine-1.6.2.ebuild
561 +++ /dev/null
562 @@ -1,391 +0,0 @@
563 -# Copyright 1999-2015 Gentoo Foundation
564 -# Distributed under the terms of the GNU General Public License v2
565 -# $Id$
566 -
567 -EAPI="5"
568 -
569 -AUTOTOOLS_AUTORECONF=1
570 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
571 -PLOCALE_BACKUP="en"
572 -
573 -inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx
574 -
575 -if [[ ${PV} == "9999" ]] ; then
576 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
577 - inherit git-2
578 - SRC_URI=""
579 - #KEYWORDS=""
580 -else
581 - MY_P="${PN}-${PV/_/-}"
582 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
583 - KEYWORDS="-* amd64 x86 ~x86-fbsd"
584 - S=${WORKDIR}/${MY_P}
585 -fi
586 -
587 -GV="2.21"
588 -MV="0.0.8"
589 -PULSE_PATCHES="winepulse-patches-1.7.8"
590 -WINE_GENTOO="wine-gentoo-2013.06.24"
591 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
592 -HOMEPAGE="http://www.winehq.org/"
593 -SRC_URI="${SRC_URI}
594 - gecko? (
595 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
596 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
597 - )
598 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
599 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
600 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
601 -
602 -LICENSE="LGPL-2.1"
603 -SLOT="0"
604 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml"
605 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
606 - test? ( abi_x86_32 )
607 - elibc_glibc? ( threads )
608 - mono? ( abi_x86_32 )
609 - osmesa? ( opengl )" #286560
610 -
611 -# FIXME: the test suite is unsuitable for us; many tests require net access
612 -# or fail due to Xvfb's opengl limitations.
613 -RESTRICT="test"
614 -
615 -NATIVE_DEPEND="
616 - truetype? ( >=media-libs/freetype-2.0.0 )
617 - capi? ( net-dialup/capi4k-utils )
618 - ncurses? ( >=sys-libs/ncurses-5.2:0= )
619 - udisks? ( sys-apps/dbus )
620 - fontconfig? ( media-libs/fontconfig:= )
621 - gphoto2? ( media-libs/libgphoto2:= )
622 - openal? ( media-libs/openal:= )
623 - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
624 - X? (
625 - x11-libs/libXcursor
626 - x11-libs/libXext
627 - x11-libs/libXrandr
628 - x11-libs/libXi
629 - x11-libs/libXxf86vm
630 - )
631 - xinerama? ( x11-libs/libXinerama )
632 - alsa? ( media-libs/alsa-lib )
633 - cups? ( net-print/cups:= )
634 - opencl? ( virtual/opencl )
635 - opengl? (
636 - virtual/glu
637 - virtual/opengl
638 - )
639 - gsm? ( media-sound/gsm:= )
640 - jpeg? ( virtual/jpeg:0= )
641 - ldap? ( net-nds/openldap:= )
642 - lcms? ( media-libs/lcms:2= )
643 - mp3? ( >=media-sound/mpg123-1.5.0 )
644 - nls? ( sys-devel/gettext )
645 - odbc? ( dev-db/unixODBC:= )
646 - osmesa? ( media-libs/mesa[osmesa] )
647 - pulseaudio? ( media-sound/pulseaudio )
648 - xml? ( dev-libs/libxml2 dev-libs/libxslt )
649 - scanner? ( media-gfx/sane-backends:= )
650 - ssl? ( net-libs/gnutls:= )
651 - png? ( media-libs/libpng:0= )
652 - v4l? ( media-libs/libv4l )
653 - xcomposite? ( x11-libs/libXcomposite )"
654 -
655 -COMMON_DEPEND="
656 - !amd64? ( ${NATIVE_DEPEND} )
657 - amd64? (
658 - abi_x86_64? ( ${NATIVE_DEPEND} )
659 - abi_x86_32? (
660 - truetype? ( >=media-libs/freetype-2.5.0.1[abi_x86_32(-)] )
661 - ncurses? ( >=sys-libs/ncurses-5.9-r3:0[abi_x86_32(-)] )
662 - udisks? ( >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] )
663 - fontconfig? ( >=media-libs/fontconfig-2.10.92[abi_x86_32(-)] )
664 - gphoto2? ( >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] )
665 - openal? ( >=media-libs/openal-1.15.1[abi_x86_32(-)] )
666 - gstreamer? (
667 - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)]
668 - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)]
669 - )
670 - X? (
671 - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
672 - >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
673 - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
674 - >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
675 - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
676 - )
677 - xinerama? ( >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] )
678 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] )
679 - cups? ( >=net-print/cups-1.7.1-r1[abi_x86_32(-)] )
680 - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] )
681 - opengl? (
682 - >=virtual/glu-9.0-r1[abi_x86_32(-)]
683 - >=virtual/opengl-7.0-r1[abi_x86_32(-)]
684 - )
685 - gsm? ( >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] )
686 - jpeg? ( >=virtual/jpeg-0-r2:0[abi_x86_32(-)] )
687 - ldap? ( >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] )
688 - lcms? ( >=media-libs/lcms-2.5:2[abi_x86_32(-)] )
689 - mp3? ( >=media-sound/mpg123-1.15.4[abi_x86_32(-)] )
690 - nls? ( >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] )
691 - odbc? ( >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] )
692 - osmesa? ( >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] )
693 - pulseaudio? ( >=media-sound/pulseaudio-5.0[abi_x86_32(-)] )
694 - xml? (
695 - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)]
696 - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)]
697 - )
698 - scanner? ( >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] )
699 - ssl? ( >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] )
700 - png? ( >=media-libs/libpng-1.6.10:0[abi_x86_32(-)] )
701 - v4l? ( >=media-libs/libv4l-0.9.5[abi_x86_32(-)] )
702 - xcomposite? ( >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] )
703 - )
704 - )"
705 -
706 -RDEPEND="${COMMON_DEPEND}
707 - dos? ( games-emulation/dosbox )
708 - perl? ( dev-lang/perl dev-perl/XML-Simple )
709 - samba? ( >=net-fs/samba-3.0.25 )
710 - selinux? ( sec-policy/selinux-wine )
711 - udisks? ( sys-fs/udisks:2 )
712 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
713 -
714 -DEPEND="${COMMON_DEPEND}
715 - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) )
716 - X? (
717 - x11-proto/inputproto
718 - x11-proto/xextproto
719 - x11-proto/xf86vidmodeproto
720 - )
721 - xinerama? ( x11-proto/xineramaproto )
722 - prelink? ( sys-devel/prelink )
723 - >=sys-kernel/linux-headers-2.6
724 - virtual/pkgconfig
725 - virtual/yacc
726 - sys-devel/flex"
727 -
728 -# These use a non-standard "Wine" category, which is provided by
729 -# /etc/xdg/applications-merged/wine.menu
730 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
731 -usr/share/applications/wine-notepad.desktop
732 -usr/share/applications/wine-uninstaller.desktop
733 -usr/share/applications/wine-winecfg.desktop"
734 -
735 -wine_build_environment_check() {
736 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
737 -
738 - # bug #549768
739 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
740 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
741 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
742 - # Run in subshell to prevent "Aborted" message
743 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
744 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
745 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
746 - eerror "or use gcc-config to select a different compiler version."
747 - eerror "See https://bugs.gentoo.org/549768"
748 - eerror
749 - return 1
750 - fi
751 - fi
752 -
753 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
754 - eerror "You need gcc-4.4+ to build 64-bit wine"
755 - eerror
756 - return 1
757 - fi
758 -
759 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
760 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
761 - eerror "See https://bugs.gentoo.org/487864 for more details."
762 - eerror
763 - return 1
764 - fi
765 -}
766 -
767 -pkg_pretend() {
768 - wine_build_environment_check || die
769 -}
770 -
771 -pkg_setup() {
772 - wine_build_environment_check || die
773 -}
774 -
775 -src_unpack() {
776 - if [[ ${PV} == "9999" ]] ; then
777 - git-2_src_unpack
778 - else
779 - unpack ${MY_P}.tar.bz2
780 - fi
781 -
782 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
783 - unpack "${WINE_GENTOO}.tar.bz2"
784 -
785 - l10n_find_plocales_changes "${S}/po" "" ".po"
786 -}
787 -
788 -src_prepare() {
789 - local md5="$(md5sum server/protocol.def)"
790 - local PATCHES=(
791 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
792 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
793 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
794 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
795 - )
796 - use pulseaudio && PATCHES+=(
797 - "../${PULSE_PATCHES}"/*.patch #421365
798 - )
799 -
800 - autotools-utils_src_prepare
801 -
802 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
803 - einfo "server/protocol.def was patched; running tools/make_requests"
804 - tools/make_requests || die #432348
805 - fi
806 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
807 - if ! use run-exes; then
808 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
809 - fi
810 -
811 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
812 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
813 -
814 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
815 -}
816 -
817 -do_configure() {
818 - local myeconfargs=( "${myeconfargs[@]}" )
819 -
820 - if use amd64; then
821 - if [[ ${ABI} == amd64 ]]; then
822 - myeconfargs+=( --enable-win64 )
823 - else
824 - myeconfargs+=( --disable-win64 )
825 - fi
826 -
827 - # Note: using --with-wine64 results in problems with multilib.eclass
828 - # CC/LD hackery. We're using separate tools instead.
829 - fi
830 -
831 - autotools-utils_src_configure
832 -}
833 -
834 -src_configure() {
835 - export LDCONFIG=/bin/true
836 - use custom-cflags || strip-flags
837 -
838 - local myeconfargs=( # common
839 - --sysconfdir=/etc/wine
840 - $(use_with alsa)
841 - $(use_with capi)
842 - $(use_with lcms cms)
843 - $(use_with cups)
844 - $(use_with ncurses curses)
845 - $(use_with udisks dbus)
846 - $(use_with fontconfig)
847 - $(use_with ssl gnutls)
848 - $(use_with gphoto2 gphoto)
849 - $(use_with gsm)
850 - $(use_with gstreamer)
851 - --without-hal
852 - $(use_with jpeg)
853 - $(use_with ldap)
854 - $(use_with mp3 mpg123)
855 - $(use_with nls gettext)
856 - $(use_with openal)
857 - $(use_with opencl)
858 - $(use_with opengl)
859 - $(use_with osmesa)
860 - $(use_with oss)
861 - $(use_with png)
862 - $(use_with threads pthread)
863 - $(use_with scanner sane)
864 - $(use_enable test tests)
865 - $(use_with truetype freetype)
866 - $(use_with v4l)
867 - $(use_with X x)
868 - $(use_with xcomposite)
869 - $(use_with xinerama)
870 - $(use_with xml)
871 - $(use_with xml xslt)
872 - )
873 -
874 - use pulseaudio && myeconfargs+=( --with-pulse )
875 -
876 - if use amd64 && use abi_x86_32; then
877 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
878 - # set AR and RANLIB to make QA scripts happy; #483342
879 - tc-export PKG_CONFIG AR RANLIB
880 - fi
881 -
882 - multilib_parallel_foreach_abi do_configure
883 -}
884 -
885 -src_compile() {
886 - autotools-multilib_src_compile depend
887 - autotools-multilib_src_compile all
888 -}
889 -
890 -src_test() {
891 - if [[ $(id -u) == 0 ]]; then
892 - ewarn "Skipping tests since they cannot be run under the root user."
893 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
894 - return
895 - fi
896 -
897 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
898 - multilib_toolchain_setup x86
899 - local BUILD_DIR="${S}-${ABI}"
900 - cd "${BUILD_DIR}" || die
901 - WINEPREFIX="${T}/.wine-${ABI}" Xemake test
902 -}
903 -
904 -src_install() {
905 - local DOCS=( ANNOUNCE AUTHORS README )
906 - add_locale_docs() {
907 - local locale_doc="documentation/README.$1"
908 - [[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} )
909 - }
910 - l10n_for_each_locale_do add_locale_docs
911 - autotools-multilib_src_install
912 -
913 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
914 - if use gecko ; then
915 - insinto /usr/share/wine/gecko
916 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
917 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
918 - fi
919 - if use mono ; then
920 - insinto /usr/share/wine/mono
921 - doins "${DISTDIR}"/wine-mono-${MV}.msi
922 - fi
923 - if ! use perl ; then
924 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
925 - fi
926 -
927 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
928 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
929 -
930 - if use abi_x86_64 && ! use abi_x86_32; then
931 - dosym /usr/bin/wine{64,} # 404331
932 - dosym /usr/bin/wine{64,}-preloader
933 - fi
934 -
935 - # respect LINGUAS when installing man pages, #469418
936 - for l in de fr pl; do
937 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
938 - done
939 -}
940 -
941 -pkg_preinst() {
942 - gnome2_icon_savelist
943 -}
944 -
945 -pkg_postinst() {
946 - gnome2_icon_cache_update
947 - fdo-mime_desktop_database_update
948 -}
949 -
950 -pkg_postrm() {
951 - gnome2_icon_cache_update
952 - fdo-mime_desktop_database_update
953 -}
954
955 diff --git a/app-emulation/wine/wine-1.7.10-r1.ebuild b/app-emulation/wine/wine-1.7.10-r1.ebuild
956 deleted file mode 100644
957 index 9cd19bd..0000000
958 --- a/app-emulation/wine/wine-1.7.10-r1.ebuild
959 +++ /dev/null
960 @@ -1,378 +0,0 @@
961 -# Copyright 1999-2015 Gentoo Foundation
962 -# Distributed under the terms of the GNU General Public License v2
963 -# $Id$
964 -
965 -EAPI="5"
966 -
967 -AUTOTOOLS_AUTORECONF=1
968 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
969 -PLOCALE_BACKUP="en"
970 -
971 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
972 -
973 -if [[ ${PV} == "9999" ]] ; then
974 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
975 - EGIT_BRANCH="master"
976 - inherit git-r3
977 - SRC_URI=""
978 - #KEYWORDS=""
979 -else
980 - MY_P="${PN}-${PV/_/-}"
981 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
982 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
983 - S=${WORKDIR}/${MY_P}
984 -fi
985 -
986 -GV="2.24"
987 -MV="4.5.2"
988 -PULSE_PATCHES="winepulse-patches-1.7.10"
989 -WINE_GENTOO="wine-gentoo-2015.03.07"
990 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
991 -HOMEPAGE="http://www.winehq.org/"
992 -SRC_URI="${SRC_URI}
993 - gecko? (
994 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
995 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
996 - )
997 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
998 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
999 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
1000 -
1001 -LICENSE="LGPL-2.1"
1002 -SLOT="0"
1003 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
1004 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
1005 - test? ( abi_x86_32 )
1006 - elibc_glibc? ( threads )
1007 - mono? ( abi_x86_32 )
1008 - osmesa? ( opengl )" #286560
1009 -
1010 -# FIXME: the test suite is unsuitable for us; many tests require net access
1011 -# or fail due to Xvfb's opengl limitations.
1012 -RESTRICT="test"
1013 -
1014 -COMMON_DEPEND="
1015 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
1016 - capi? ( net-dialup/capi4k-utils )
1017 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
1018 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
1019 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
1020 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
1021 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
1022 - gstreamer? (
1023 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
1024 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
1025 - )
1026 - X? (
1027 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
1028 - x11-libs/libXext[${MULTILIB_USEDEP}]
1029 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
1030 - x11-libs/libXi[${MULTILIB_USEDEP}]
1031 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
1032 - )
1033 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
1034 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
1035 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
1036 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
1037 - opengl? (
1038 - virtual/glu[${MULTILIB_USEDEP}]
1039 - virtual/opengl[${MULTILIB_USEDEP}]
1040 - )
1041 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
1042 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
1043 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
1044 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
1045 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
1046 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
1047 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
1048 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
1049 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
1050 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
1051 - xml? (
1052 - dev-libs/libxml2[${MULTILIB_USEDEP}]
1053 - dev-libs/libxslt[${MULTILIB_USEDEP}]
1054 - )
1055 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
1056 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
1057 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
1058 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
1059 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
1060 - abi_x86_32? (
1061 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
1062 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
1063 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
1064 - !<app-emulation/emul-linux-x86-db-20140508-r3
1065 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
1066 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
1067 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
1068 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
1069 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
1070 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
1071 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
1072 - !<app-emulation/emul-linux-x86-soundlibs-20140508
1073 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
1074 - !<app-emulation/emul-linux-x86-xlibs-20140508
1075 - )"
1076 -
1077 -RDEPEND="${COMMON_DEPEND}
1078 - dos? ( games-emulation/dosbox )
1079 - perl? ( dev-lang/perl dev-perl/XML-Simple )
1080 - samba? ( >=net-fs/samba-3.0.25 )
1081 - selinux? ( sec-policy/selinux-wine )
1082 - udisks? ( sys-fs/udisks:2 )
1083 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
1084 -
1085 -DEPEND="${COMMON_DEPEND}
1086 - X? (
1087 - x11-proto/inputproto
1088 - x11-proto/xextproto
1089 - x11-proto/xf86vidmodeproto
1090 - )
1091 - xinerama? ( x11-proto/xineramaproto )
1092 - prelink? ( sys-devel/prelink )
1093 - >=sys-kernel/linux-headers-2.6
1094 - virtual/pkgconfig
1095 - virtual/yacc
1096 - sys-devel/flex"
1097 -
1098 -# These use a non-standard "Wine" category, which is provided by
1099 -# /etc/xdg/applications-merged/wine.menu
1100 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
1101 -usr/share/applications/wine-notepad.desktop
1102 -usr/share/applications/wine-uninstaller.desktop
1103 -usr/share/applications/wine-winecfg.desktop"
1104 -
1105 -wine_build_environment_check() {
1106 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
1107 -
1108 - # bug #549768
1109 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
1110 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
1111 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
1112 - # Run in subshell to prevent "Aborted" message
1113 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
1114 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
1115 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
1116 - eerror "or use gcc-config to select a different compiler version."
1117 - eerror "See https://bugs.gentoo.org/549768"
1118 - eerror
1119 - return 1
1120 - fi
1121 - fi
1122 -
1123 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
1124 - eerror "You need gcc-4.4+ to build 64-bit wine"
1125 - eerror
1126 - return 1
1127 - fi
1128 -
1129 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
1130 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
1131 - eerror "See https://bugs.gentoo.org/487864 for more details."
1132 - eerror
1133 - return 1
1134 - fi
1135 -}
1136 -
1137 -pkg_pretend() {
1138 - wine_build_environment_check || die
1139 -}
1140 -
1141 -pkg_setup() {
1142 - wine_build_environment_check || die
1143 -}
1144 -
1145 -src_unpack() {
1146 - if [[ ${PV} == "9999" ]] ; then
1147 - git-r3_src_unpack
1148 - else
1149 - unpack ${MY_P}.tar.bz2
1150 - fi
1151 -
1152 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
1153 - unpack "${WINE_GENTOO}.tar.bz2"
1154 -
1155 - l10n_find_plocales_changes "${S}/po" "" ".po"
1156 -}
1157 -
1158 -src_prepare() {
1159 - local md5="$(md5sum server/protocol.def)"
1160 - local PATCHES=(
1161 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
1162 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
1163 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
1164 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
1165 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
1166 - )
1167 - use pulseaudio && PATCHES+=(
1168 - "../${PULSE_PATCHES}"/*.patch #421365
1169 - )
1170 -
1171 - autotools-utils_src_prepare
1172 -
1173 - # Modification of the server protocol requires regenerating the server requests
1174 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
1175 - einfo "server/protocol.def was patched; running tools/make_requests"
1176 - tools/make_requests || die #432348
1177 - fi
1178 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
1179 - if ! use run-exes; then
1180 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
1181 - fi
1182 -
1183 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
1184 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
1185 -
1186 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
1187 -}
1188 -
1189 -src_configure() {
1190 - export LDCONFIG=/bin/true
1191 - use custom-cflags || strip-flags
1192 -
1193 - multilib-minimal_src_configure
1194 -}
1195 -
1196 -multilib_src_configure() {
1197 - local myconf=(
1198 - --sysconfdir=/etc/wine
1199 - $(use_with alsa)
1200 - $(use_with capi)
1201 - $(use_with lcms cms)
1202 - $(use_with cups)
1203 - $(use_with ncurses curses)
1204 - $(use_with udisks dbus)
1205 - $(use_with fontconfig)
1206 - $(use_with ssl gnutls)
1207 - $(use_enable gecko mshtml)
1208 - $(use_with gphoto2 gphoto)
1209 - $(use_with gsm)
1210 - $(use_with gstreamer)
1211 - --without-hal
1212 - $(use_with jpeg)
1213 - $(use_with ldap)
1214 - $(use_enable mono mscoree)
1215 - $(use_with mp3 mpg123)
1216 - $(use_with netapi)
1217 - $(use_with nls gettext)
1218 - $(use_with openal)
1219 - $(use_with opencl)
1220 - $(use_with opengl)
1221 - $(use_with osmesa)
1222 - $(use_with oss)
1223 - $(use_with png)
1224 - $(use_with threads pthread)
1225 - $(use_with scanner sane)
1226 - $(use_enable test tests)
1227 - $(use_with truetype freetype)
1228 - $(use_with v4l)
1229 - $(use_with X x)
1230 - $(use_with xcomposite)
1231 - $(use_with xinerama)
1232 - $(use_with xml)
1233 - $(use_with xml xslt)
1234 - )
1235 -
1236 - use pulseaudio && myconf+=( --with-pulse )
1237 -
1238 - local PKG_CONFIG AR RANLIB
1239 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
1240 - # set AR and RANLIB to make QA scripts happy; #483342
1241 - tc-export PKG_CONFIG AR RANLIB
1242 -
1243 - if use amd64; then
1244 - if [[ ${ABI} == amd64 ]]; then
1245 - myconf+=( --enable-win64 )
1246 - else
1247 - myconf+=( --disable-win64 )
1248 - fi
1249 -
1250 - # Note: using --with-wine64 results in problems with multilib.eclass
1251 - # CC/LD hackery. We're using separate tools instead.
1252 - fi
1253 -
1254 - ECONF_SOURCE=${S} \
1255 - econf "${myconf[@]}"
1256 - emake depend
1257 -}
1258 -
1259 -multilib_src_test() {
1260 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
1261 - if [[ ${ABI} == x86 ]]; then
1262 - if [[ $(id -u) == 0 ]]; then
1263 - ewarn "Skipping tests since they cannot be run under the root user."
1264 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
1265 - return
1266 - fi
1267 -
1268 - WINEPREFIX="${T}/.wine-${ABI}" \
1269 - Xemake test
1270 - fi
1271 -}
1272 -
1273 -multilib_src_install_all() {
1274 - local DOCS=( ANNOUNCE AUTHORS README )
1275 - local l
1276 - add_locale_docs() {
1277 - local locale_doc="documentation/README.$1"
1278 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
1279 - }
1280 - l10n_for_each_locale_do add_locale_docs
1281 -
1282 - einstalldocs
1283 - prune_libtool_files --all
1284 -
1285 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
1286 - if use gecko ; then
1287 - insinto /usr/share/wine/gecko
1288 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
1289 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
1290 - fi
1291 - if use mono ; then
1292 - insinto /usr/share/wine/mono
1293 - doins "${DISTDIR}"/wine-mono-${MV}.msi
1294 - fi
1295 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
1296 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
1297 - fi
1298 -
1299 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
1300 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
1301 -
1302 - if use abi_x86_64 && ! use abi_x86_32; then
1303 - dosym /usr/bin/wine{64,} # 404331
1304 - dosym /usr/bin/wine{64,}-preloader
1305 - fi
1306 -
1307 - # respect LINGUAS when installing man pages, #469418
1308 - for l in de fr pl; do
1309 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
1310 - done
1311 -}
1312 -
1313 -pkg_preinst() {
1314 - gnome2_icon_savelist
1315 -}
1316 -
1317 -pkg_postinst() {
1318 - gnome2_icon_cache_update
1319 - fdo-mime_desktop_database_update
1320 -
1321 - if ! use gecko; then
1322 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
1323 - ewarn "implementation of iexplore. Many older windows applications"
1324 - ewarn "rely upon the existence of an iexplore implementation, so"
1325 - ewarn "you will likely need to install an external one, like via winetricks"
1326 - fi
1327 - if ! use mono; then
1328 - ewarn "Without Wine Mono, wine prefixes will not have a default"
1329 - ewarn "implementation of .NET. Many windows applications rely upon"
1330 - ewarn "the existence of a .NET implementation, so you will likely need"
1331 - ewarn "to install an external one, like via winetricks"
1332 - fi
1333 -}
1334 -
1335 -pkg_postrm() {
1336 - gnome2_icon_cache_update
1337 - fdo-mime_desktop_database_update
1338 -}
1339
1340 diff --git a/app-emulation/wine/wine-1.7.11-r1.ebuild b/app-emulation/wine/wine-1.7.11-r1.ebuild
1341 deleted file mode 100644
1342 index 9cd19bd..0000000
1343 --- a/app-emulation/wine/wine-1.7.11-r1.ebuild
1344 +++ /dev/null
1345 @@ -1,378 +0,0 @@
1346 -# Copyright 1999-2015 Gentoo Foundation
1347 -# Distributed under the terms of the GNU General Public License v2
1348 -# $Id$
1349 -
1350 -EAPI="5"
1351 -
1352 -AUTOTOOLS_AUTORECONF=1
1353 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
1354 -PLOCALE_BACKUP="en"
1355 -
1356 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
1357 -
1358 -if [[ ${PV} == "9999" ]] ; then
1359 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
1360 - EGIT_BRANCH="master"
1361 - inherit git-r3
1362 - SRC_URI=""
1363 - #KEYWORDS=""
1364 -else
1365 - MY_P="${PN}-${PV/_/-}"
1366 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
1367 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
1368 - S=${WORKDIR}/${MY_P}
1369 -fi
1370 -
1371 -GV="2.24"
1372 -MV="4.5.2"
1373 -PULSE_PATCHES="winepulse-patches-1.7.10"
1374 -WINE_GENTOO="wine-gentoo-2015.03.07"
1375 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
1376 -HOMEPAGE="http://www.winehq.org/"
1377 -SRC_URI="${SRC_URI}
1378 - gecko? (
1379 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
1380 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
1381 - )
1382 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
1383 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
1384 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
1385 -
1386 -LICENSE="LGPL-2.1"
1387 -SLOT="0"
1388 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
1389 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
1390 - test? ( abi_x86_32 )
1391 - elibc_glibc? ( threads )
1392 - mono? ( abi_x86_32 )
1393 - osmesa? ( opengl )" #286560
1394 -
1395 -# FIXME: the test suite is unsuitable for us; many tests require net access
1396 -# or fail due to Xvfb's opengl limitations.
1397 -RESTRICT="test"
1398 -
1399 -COMMON_DEPEND="
1400 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
1401 - capi? ( net-dialup/capi4k-utils )
1402 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
1403 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
1404 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
1405 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
1406 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
1407 - gstreamer? (
1408 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
1409 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
1410 - )
1411 - X? (
1412 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
1413 - x11-libs/libXext[${MULTILIB_USEDEP}]
1414 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
1415 - x11-libs/libXi[${MULTILIB_USEDEP}]
1416 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
1417 - )
1418 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
1419 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
1420 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
1421 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
1422 - opengl? (
1423 - virtual/glu[${MULTILIB_USEDEP}]
1424 - virtual/opengl[${MULTILIB_USEDEP}]
1425 - )
1426 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
1427 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
1428 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
1429 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
1430 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
1431 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
1432 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
1433 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
1434 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
1435 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
1436 - xml? (
1437 - dev-libs/libxml2[${MULTILIB_USEDEP}]
1438 - dev-libs/libxslt[${MULTILIB_USEDEP}]
1439 - )
1440 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
1441 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
1442 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
1443 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
1444 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
1445 - abi_x86_32? (
1446 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
1447 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
1448 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
1449 - !<app-emulation/emul-linux-x86-db-20140508-r3
1450 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
1451 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
1452 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
1453 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
1454 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
1455 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
1456 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
1457 - !<app-emulation/emul-linux-x86-soundlibs-20140508
1458 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
1459 - !<app-emulation/emul-linux-x86-xlibs-20140508
1460 - )"
1461 -
1462 -RDEPEND="${COMMON_DEPEND}
1463 - dos? ( games-emulation/dosbox )
1464 - perl? ( dev-lang/perl dev-perl/XML-Simple )
1465 - samba? ( >=net-fs/samba-3.0.25 )
1466 - selinux? ( sec-policy/selinux-wine )
1467 - udisks? ( sys-fs/udisks:2 )
1468 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
1469 -
1470 -DEPEND="${COMMON_DEPEND}
1471 - X? (
1472 - x11-proto/inputproto
1473 - x11-proto/xextproto
1474 - x11-proto/xf86vidmodeproto
1475 - )
1476 - xinerama? ( x11-proto/xineramaproto )
1477 - prelink? ( sys-devel/prelink )
1478 - >=sys-kernel/linux-headers-2.6
1479 - virtual/pkgconfig
1480 - virtual/yacc
1481 - sys-devel/flex"
1482 -
1483 -# These use a non-standard "Wine" category, which is provided by
1484 -# /etc/xdg/applications-merged/wine.menu
1485 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
1486 -usr/share/applications/wine-notepad.desktop
1487 -usr/share/applications/wine-uninstaller.desktop
1488 -usr/share/applications/wine-winecfg.desktop"
1489 -
1490 -wine_build_environment_check() {
1491 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
1492 -
1493 - # bug #549768
1494 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
1495 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
1496 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
1497 - # Run in subshell to prevent "Aborted" message
1498 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
1499 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
1500 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
1501 - eerror "or use gcc-config to select a different compiler version."
1502 - eerror "See https://bugs.gentoo.org/549768"
1503 - eerror
1504 - return 1
1505 - fi
1506 - fi
1507 -
1508 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
1509 - eerror "You need gcc-4.4+ to build 64-bit wine"
1510 - eerror
1511 - return 1
1512 - fi
1513 -
1514 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
1515 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
1516 - eerror "See https://bugs.gentoo.org/487864 for more details."
1517 - eerror
1518 - return 1
1519 - fi
1520 -}
1521 -
1522 -pkg_pretend() {
1523 - wine_build_environment_check || die
1524 -}
1525 -
1526 -pkg_setup() {
1527 - wine_build_environment_check || die
1528 -}
1529 -
1530 -src_unpack() {
1531 - if [[ ${PV} == "9999" ]] ; then
1532 - git-r3_src_unpack
1533 - else
1534 - unpack ${MY_P}.tar.bz2
1535 - fi
1536 -
1537 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
1538 - unpack "${WINE_GENTOO}.tar.bz2"
1539 -
1540 - l10n_find_plocales_changes "${S}/po" "" ".po"
1541 -}
1542 -
1543 -src_prepare() {
1544 - local md5="$(md5sum server/protocol.def)"
1545 - local PATCHES=(
1546 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
1547 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
1548 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
1549 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
1550 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
1551 - )
1552 - use pulseaudio && PATCHES+=(
1553 - "../${PULSE_PATCHES}"/*.patch #421365
1554 - )
1555 -
1556 - autotools-utils_src_prepare
1557 -
1558 - # Modification of the server protocol requires regenerating the server requests
1559 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
1560 - einfo "server/protocol.def was patched; running tools/make_requests"
1561 - tools/make_requests || die #432348
1562 - fi
1563 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
1564 - if ! use run-exes; then
1565 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
1566 - fi
1567 -
1568 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
1569 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
1570 -
1571 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
1572 -}
1573 -
1574 -src_configure() {
1575 - export LDCONFIG=/bin/true
1576 - use custom-cflags || strip-flags
1577 -
1578 - multilib-minimal_src_configure
1579 -}
1580 -
1581 -multilib_src_configure() {
1582 - local myconf=(
1583 - --sysconfdir=/etc/wine
1584 - $(use_with alsa)
1585 - $(use_with capi)
1586 - $(use_with lcms cms)
1587 - $(use_with cups)
1588 - $(use_with ncurses curses)
1589 - $(use_with udisks dbus)
1590 - $(use_with fontconfig)
1591 - $(use_with ssl gnutls)
1592 - $(use_enable gecko mshtml)
1593 - $(use_with gphoto2 gphoto)
1594 - $(use_with gsm)
1595 - $(use_with gstreamer)
1596 - --without-hal
1597 - $(use_with jpeg)
1598 - $(use_with ldap)
1599 - $(use_enable mono mscoree)
1600 - $(use_with mp3 mpg123)
1601 - $(use_with netapi)
1602 - $(use_with nls gettext)
1603 - $(use_with openal)
1604 - $(use_with opencl)
1605 - $(use_with opengl)
1606 - $(use_with osmesa)
1607 - $(use_with oss)
1608 - $(use_with png)
1609 - $(use_with threads pthread)
1610 - $(use_with scanner sane)
1611 - $(use_enable test tests)
1612 - $(use_with truetype freetype)
1613 - $(use_with v4l)
1614 - $(use_with X x)
1615 - $(use_with xcomposite)
1616 - $(use_with xinerama)
1617 - $(use_with xml)
1618 - $(use_with xml xslt)
1619 - )
1620 -
1621 - use pulseaudio && myconf+=( --with-pulse )
1622 -
1623 - local PKG_CONFIG AR RANLIB
1624 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
1625 - # set AR and RANLIB to make QA scripts happy; #483342
1626 - tc-export PKG_CONFIG AR RANLIB
1627 -
1628 - if use amd64; then
1629 - if [[ ${ABI} == amd64 ]]; then
1630 - myconf+=( --enable-win64 )
1631 - else
1632 - myconf+=( --disable-win64 )
1633 - fi
1634 -
1635 - # Note: using --with-wine64 results in problems with multilib.eclass
1636 - # CC/LD hackery. We're using separate tools instead.
1637 - fi
1638 -
1639 - ECONF_SOURCE=${S} \
1640 - econf "${myconf[@]}"
1641 - emake depend
1642 -}
1643 -
1644 -multilib_src_test() {
1645 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
1646 - if [[ ${ABI} == x86 ]]; then
1647 - if [[ $(id -u) == 0 ]]; then
1648 - ewarn "Skipping tests since they cannot be run under the root user."
1649 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
1650 - return
1651 - fi
1652 -
1653 - WINEPREFIX="${T}/.wine-${ABI}" \
1654 - Xemake test
1655 - fi
1656 -}
1657 -
1658 -multilib_src_install_all() {
1659 - local DOCS=( ANNOUNCE AUTHORS README )
1660 - local l
1661 - add_locale_docs() {
1662 - local locale_doc="documentation/README.$1"
1663 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
1664 - }
1665 - l10n_for_each_locale_do add_locale_docs
1666 -
1667 - einstalldocs
1668 - prune_libtool_files --all
1669 -
1670 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
1671 - if use gecko ; then
1672 - insinto /usr/share/wine/gecko
1673 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
1674 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
1675 - fi
1676 - if use mono ; then
1677 - insinto /usr/share/wine/mono
1678 - doins "${DISTDIR}"/wine-mono-${MV}.msi
1679 - fi
1680 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
1681 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
1682 - fi
1683 -
1684 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
1685 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
1686 -
1687 - if use abi_x86_64 && ! use abi_x86_32; then
1688 - dosym /usr/bin/wine{64,} # 404331
1689 - dosym /usr/bin/wine{64,}-preloader
1690 - fi
1691 -
1692 - # respect LINGUAS when installing man pages, #469418
1693 - for l in de fr pl; do
1694 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
1695 - done
1696 -}
1697 -
1698 -pkg_preinst() {
1699 - gnome2_icon_savelist
1700 -}
1701 -
1702 -pkg_postinst() {
1703 - gnome2_icon_cache_update
1704 - fdo-mime_desktop_database_update
1705 -
1706 - if ! use gecko; then
1707 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
1708 - ewarn "implementation of iexplore. Many older windows applications"
1709 - ewarn "rely upon the existence of an iexplore implementation, so"
1710 - ewarn "you will likely need to install an external one, like via winetricks"
1711 - fi
1712 - if ! use mono; then
1713 - ewarn "Without Wine Mono, wine prefixes will not have a default"
1714 - ewarn "implementation of .NET. Many windows applications rely upon"
1715 - ewarn "the existence of a .NET implementation, so you will likely need"
1716 - ewarn "to install an external one, like via winetricks"
1717 - fi
1718 -}
1719 -
1720 -pkg_postrm() {
1721 - gnome2_icon_cache_update
1722 - fdo-mime_desktop_database_update
1723 -}
1724
1725 diff --git a/app-emulation/wine/wine-1.7.12-r1.ebuild b/app-emulation/wine/wine-1.7.12-r1.ebuild
1726 deleted file mode 100644
1727 index 16697c5..0000000
1728 --- a/app-emulation/wine/wine-1.7.12-r1.ebuild
1729 +++ /dev/null
1730 @@ -1,378 +0,0 @@
1731 -# Copyright 1999-2015 Gentoo Foundation
1732 -# Distributed under the terms of the GNU General Public License v2
1733 -# $Id$
1734 -
1735 -EAPI="5"
1736 -
1737 -AUTOTOOLS_AUTORECONF=1
1738 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
1739 -PLOCALE_BACKUP="en"
1740 -
1741 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
1742 -
1743 -if [[ ${PV} == "9999" ]] ; then
1744 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
1745 - EGIT_BRANCH="master"
1746 - inherit git-r3
1747 - SRC_URI=""
1748 - #KEYWORDS=""
1749 -else
1750 - MY_P="${PN}-${PV/_/-}"
1751 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
1752 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
1753 - S=${WORKDIR}/${MY_P}
1754 -fi
1755 -
1756 -GV="2.24"
1757 -MV="4.5.2"
1758 -PULSE_PATCHES="winepulse-patches-1.7.12"
1759 -WINE_GENTOO="wine-gentoo-2015.03.07"
1760 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
1761 -HOMEPAGE="http://www.winehq.org/"
1762 -SRC_URI="${SRC_URI}
1763 - gecko? (
1764 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
1765 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
1766 - )
1767 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
1768 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
1769 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
1770 -
1771 -LICENSE="LGPL-2.1"
1772 -SLOT="0"
1773 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
1774 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
1775 - test? ( abi_x86_32 )
1776 - elibc_glibc? ( threads )
1777 - mono? ( abi_x86_32 )
1778 - osmesa? ( opengl )" #286560
1779 -
1780 -# FIXME: the test suite is unsuitable for us; many tests require net access
1781 -# or fail due to Xvfb's opengl limitations.
1782 -RESTRICT="test"
1783 -
1784 -COMMON_DEPEND="
1785 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
1786 - capi? ( net-dialup/capi4k-utils )
1787 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
1788 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
1789 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
1790 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
1791 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
1792 - gstreamer? (
1793 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
1794 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
1795 - )
1796 - X? (
1797 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
1798 - x11-libs/libXext[${MULTILIB_USEDEP}]
1799 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
1800 - x11-libs/libXi[${MULTILIB_USEDEP}]
1801 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
1802 - )
1803 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
1804 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
1805 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
1806 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
1807 - opengl? (
1808 - virtual/glu[${MULTILIB_USEDEP}]
1809 - virtual/opengl[${MULTILIB_USEDEP}]
1810 - )
1811 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
1812 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
1813 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
1814 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
1815 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
1816 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
1817 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
1818 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
1819 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
1820 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
1821 - xml? (
1822 - dev-libs/libxml2[${MULTILIB_USEDEP}]
1823 - dev-libs/libxslt[${MULTILIB_USEDEP}]
1824 - )
1825 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
1826 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
1827 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
1828 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
1829 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
1830 - abi_x86_32? (
1831 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
1832 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
1833 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
1834 - !<app-emulation/emul-linux-x86-db-20140508-r3
1835 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
1836 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
1837 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
1838 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
1839 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
1840 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
1841 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
1842 - !<app-emulation/emul-linux-x86-soundlibs-20140508
1843 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
1844 - !<app-emulation/emul-linux-x86-xlibs-20140508
1845 - )"
1846 -
1847 -RDEPEND="${COMMON_DEPEND}
1848 - dos? ( games-emulation/dosbox )
1849 - perl? ( dev-lang/perl dev-perl/XML-Simple )
1850 - samba? ( >=net-fs/samba-3.0.25 )
1851 - selinux? ( sec-policy/selinux-wine )
1852 - udisks? ( sys-fs/udisks:2 )
1853 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
1854 -
1855 -DEPEND="${COMMON_DEPEND}
1856 - X? (
1857 - x11-proto/inputproto
1858 - x11-proto/xextproto
1859 - x11-proto/xf86vidmodeproto
1860 - )
1861 - xinerama? ( x11-proto/xineramaproto )
1862 - prelink? ( sys-devel/prelink )
1863 - >=sys-kernel/linux-headers-2.6
1864 - virtual/pkgconfig
1865 - virtual/yacc
1866 - sys-devel/flex"
1867 -
1868 -# These use a non-standard "Wine" category, which is provided by
1869 -# /etc/xdg/applications-merged/wine.menu
1870 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
1871 -usr/share/applications/wine-notepad.desktop
1872 -usr/share/applications/wine-uninstaller.desktop
1873 -usr/share/applications/wine-winecfg.desktop"
1874 -
1875 -wine_build_environment_check() {
1876 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
1877 -
1878 - # bug #549768
1879 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
1880 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
1881 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
1882 - # Run in subshell to prevent "Aborted" message
1883 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
1884 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
1885 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
1886 - eerror "or use gcc-config to select a different compiler version."
1887 - eerror "See https://bugs.gentoo.org/549768"
1888 - eerror
1889 - return 1
1890 - fi
1891 - fi
1892 -
1893 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
1894 - eerror "You need gcc-4.4+ to build 64-bit wine"
1895 - eerror
1896 - return 1
1897 - fi
1898 -
1899 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
1900 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
1901 - eerror "See https://bugs.gentoo.org/487864 for more details."
1902 - eerror
1903 - return 1
1904 - fi
1905 -}
1906 -
1907 -pkg_pretend() {
1908 - wine_build_environment_check || die
1909 -}
1910 -
1911 -pkg_setup() {
1912 - wine_build_environment_check || die
1913 -}
1914 -
1915 -src_unpack() {
1916 - if [[ ${PV} == "9999" ]] ; then
1917 - git-r3_src_unpack
1918 - else
1919 - unpack ${MY_P}.tar.bz2
1920 - fi
1921 -
1922 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
1923 - unpack "${WINE_GENTOO}.tar.bz2"
1924 -
1925 - l10n_find_plocales_changes "${S}/po" "" ".po"
1926 -}
1927 -
1928 -src_prepare() {
1929 - local md5="$(md5sum server/protocol.def)"
1930 - local PATCHES=(
1931 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
1932 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
1933 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
1934 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
1935 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
1936 - )
1937 - use pulseaudio && PATCHES+=(
1938 - "../${PULSE_PATCHES}"/*.patch #421365
1939 - )
1940 -
1941 - autotools-utils_src_prepare
1942 -
1943 - # Modification of the server protocol requires regenerating the server requests
1944 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
1945 - einfo "server/protocol.def was patched; running tools/make_requests"
1946 - tools/make_requests || die #432348
1947 - fi
1948 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
1949 - if ! use run-exes; then
1950 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
1951 - fi
1952 -
1953 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
1954 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
1955 -
1956 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
1957 -}
1958 -
1959 -src_configure() {
1960 - export LDCONFIG=/bin/true
1961 - use custom-cflags || strip-flags
1962 -
1963 - multilib-minimal_src_configure
1964 -}
1965 -
1966 -multilib_src_configure() {
1967 - local myconf=(
1968 - --sysconfdir=/etc/wine
1969 - $(use_with alsa)
1970 - $(use_with capi)
1971 - $(use_with lcms cms)
1972 - $(use_with cups)
1973 - $(use_with ncurses curses)
1974 - $(use_with udisks dbus)
1975 - $(use_with fontconfig)
1976 - $(use_with ssl gnutls)
1977 - $(use_enable gecko mshtml)
1978 - $(use_with gphoto2 gphoto)
1979 - $(use_with gsm)
1980 - $(use_with gstreamer)
1981 - --without-hal
1982 - $(use_with jpeg)
1983 - $(use_with ldap)
1984 - $(use_enable mono mscoree)
1985 - $(use_with mp3 mpg123)
1986 - $(use_with netapi)
1987 - $(use_with nls gettext)
1988 - $(use_with openal)
1989 - $(use_with opencl)
1990 - $(use_with opengl)
1991 - $(use_with osmesa)
1992 - $(use_with oss)
1993 - $(use_with png)
1994 - $(use_with threads pthread)
1995 - $(use_with scanner sane)
1996 - $(use_enable test tests)
1997 - $(use_with truetype freetype)
1998 - $(use_with v4l)
1999 - $(use_with X x)
2000 - $(use_with xcomposite)
2001 - $(use_with xinerama)
2002 - $(use_with xml)
2003 - $(use_with xml xslt)
2004 - )
2005 -
2006 - use pulseaudio && myconf+=( --with-pulse )
2007 -
2008 - local PKG_CONFIG AR RANLIB
2009 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
2010 - # set AR and RANLIB to make QA scripts happy; #483342
2011 - tc-export PKG_CONFIG AR RANLIB
2012 -
2013 - if use amd64; then
2014 - if [[ ${ABI} == amd64 ]]; then
2015 - myconf+=( --enable-win64 )
2016 - else
2017 - myconf+=( --disable-win64 )
2018 - fi
2019 -
2020 - # Note: using --with-wine64 results in problems with multilib.eclass
2021 - # CC/LD hackery. We're using separate tools instead.
2022 - fi
2023 -
2024 - ECONF_SOURCE=${S} \
2025 - econf "${myconf[@]}"
2026 - emake depend
2027 -}
2028 -
2029 -multilib_src_test() {
2030 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
2031 - if [[ ${ABI} == x86 ]]; then
2032 - if [[ $(id -u) == 0 ]]; then
2033 - ewarn "Skipping tests since they cannot be run under the root user."
2034 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
2035 - return
2036 - fi
2037 -
2038 - WINEPREFIX="${T}/.wine-${ABI}" \
2039 - Xemake test
2040 - fi
2041 -}
2042 -
2043 -multilib_src_install_all() {
2044 - local DOCS=( ANNOUNCE AUTHORS README )
2045 - local l
2046 - add_locale_docs() {
2047 - local locale_doc="documentation/README.$1"
2048 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
2049 - }
2050 - l10n_for_each_locale_do add_locale_docs
2051 -
2052 - einstalldocs
2053 - prune_libtool_files --all
2054 -
2055 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
2056 - if use gecko ; then
2057 - insinto /usr/share/wine/gecko
2058 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
2059 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
2060 - fi
2061 - if use mono ; then
2062 - insinto /usr/share/wine/mono
2063 - doins "${DISTDIR}"/wine-mono-${MV}.msi
2064 - fi
2065 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
2066 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
2067 - fi
2068 -
2069 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
2070 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
2071 -
2072 - if use abi_x86_64 && ! use abi_x86_32; then
2073 - dosym /usr/bin/wine{64,} # 404331
2074 - dosym /usr/bin/wine{64,}-preloader
2075 - fi
2076 -
2077 - # respect LINGUAS when installing man pages, #469418
2078 - for l in de fr pl; do
2079 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
2080 - done
2081 -}
2082 -
2083 -pkg_preinst() {
2084 - gnome2_icon_savelist
2085 -}
2086 -
2087 -pkg_postinst() {
2088 - gnome2_icon_cache_update
2089 - fdo-mime_desktop_database_update
2090 -
2091 - if ! use gecko; then
2092 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
2093 - ewarn "implementation of iexplore. Many older windows applications"
2094 - ewarn "rely upon the existence of an iexplore implementation, so"
2095 - ewarn "you will likely need to install an external one, like via winetricks"
2096 - fi
2097 - if ! use mono; then
2098 - ewarn "Without Wine Mono, wine prefixes will not have a default"
2099 - ewarn "implementation of .NET. Many windows applications rely upon"
2100 - ewarn "the existence of a .NET implementation, so you will likely need"
2101 - ewarn "to install an external one, like via winetricks"
2102 - fi
2103 -}
2104 -
2105 -pkg_postrm() {
2106 - gnome2_icon_cache_update
2107 - fdo-mime_desktop_database_update
2108 -}
2109
2110 diff --git a/app-emulation/wine/wine-1.7.13-r1.ebuild b/app-emulation/wine/wine-1.7.13-r1.ebuild
2111 deleted file mode 100644
2112 index 16697c5..0000000
2113 --- a/app-emulation/wine/wine-1.7.13-r1.ebuild
2114 +++ /dev/null
2115 @@ -1,378 +0,0 @@
2116 -# Copyright 1999-2015 Gentoo Foundation
2117 -# Distributed under the terms of the GNU General Public License v2
2118 -# $Id$
2119 -
2120 -EAPI="5"
2121 -
2122 -AUTOTOOLS_AUTORECONF=1
2123 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
2124 -PLOCALE_BACKUP="en"
2125 -
2126 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
2127 -
2128 -if [[ ${PV} == "9999" ]] ; then
2129 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
2130 - EGIT_BRANCH="master"
2131 - inherit git-r3
2132 - SRC_URI=""
2133 - #KEYWORDS=""
2134 -else
2135 - MY_P="${PN}-${PV/_/-}"
2136 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
2137 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
2138 - S=${WORKDIR}/${MY_P}
2139 -fi
2140 -
2141 -GV="2.24"
2142 -MV="4.5.2"
2143 -PULSE_PATCHES="winepulse-patches-1.7.12"
2144 -WINE_GENTOO="wine-gentoo-2015.03.07"
2145 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
2146 -HOMEPAGE="http://www.winehq.org/"
2147 -SRC_URI="${SRC_URI}
2148 - gecko? (
2149 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
2150 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
2151 - )
2152 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
2153 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
2154 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
2155 -
2156 -LICENSE="LGPL-2.1"
2157 -SLOT="0"
2158 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
2159 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
2160 - test? ( abi_x86_32 )
2161 - elibc_glibc? ( threads )
2162 - mono? ( abi_x86_32 )
2163 - osmesa? ( opengl )" #286560
2164 -
2165 -# FIXME: the test suite is unsuitable for us; many tests require net access
2166 -# or fail due to Xvfb's opengl limitations.
2167 -RESTRICT="test"
2168 -
2169 -COMMON_DEPEND="
2170 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
2171 - capi? ( net-dialup/capi4k-utils )
2172 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
2173 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
2174 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
2175 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
2176 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
2177 - gstreamer? (
2178 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
2179 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
2180 - )
2181 - X? (
2182 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
2183 - x11-libs/libXext[${MULTILIB_USEDEP}]
2184 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
2185 - x11-libs/libXi[${MULTILIB_USEDEP}]
2186 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
2187 - )
2188 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
2189 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
2190 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
2191 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
2192 - opengl? (
2193 - virtual/glu[${MULTILIB_USEDEP}]
2194 - virtual/opengl[${MULTILIB_USEDEP}]
2195 - )
2196 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
2197 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
2198 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
2199 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
2200 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
2201 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
2202 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
2203 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
2204 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
2205 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
2206 - xml? (
2207 - dev-libs/libxml2[${MULTILIB_USEDEP}]
2208 - dev-libs/libxslt[${MULTILIB_USEDEP}]
2209 - )
2210 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
2211 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
2212 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
2213 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
2214 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
2215 - abi_x86_32? (
2216 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
2217 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
2218 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
2219 - !<app-emulation/emul-linux-x86-db-20140508-r3
2220 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
2221 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
2222 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
2223 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
2224 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
2225 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
2226 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
2227 - !<app-emulation/emul-linux-x86-soundlibs-20140508
2228 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
2229 - !<app-emulation/emul-linux-x86-xlibs-20140508
2230 - )"
2231 -
2232 -RDEPEND="${COMMON_DEPEND}
2233 - dos? ( games-emulation/dosbox )
2234 - perl? ( dev-lang/perl dev-perl/XML-Simple )
2235 - samba? ( >=net-fs/samba-3.0.25 )
2236 - selinux? ( sec-policy/selinux-wine )
2237 - udisks? ( sys-fs/udisks:2 )
2238 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
2239 -
2240 -DEPEND="${COMMON_DEPEND}
2241 - X? (
2242 - x11-proto/inputproto
2243 - x11-proto/xextproto
2244 - x11-proto/xf86vidmodeproto
2245 - )
2246 - xinerama? ( x11-proto/xineramaproto )
2247 - prelink? ( sys-devel/prelink )
2248 - >=sys-kernel/linux-headers-2.6
2249 - virtual/pkgconfig
2250 - virtual/yacc
2251 - sys-devel/flex"
2252 -
2253 -# These use a non-standard "Wine" category, which is provided by
2254 -# /etc/xdg/applications-merged/wine.menu
2255 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
2256 -usr/share/applications/wine-notepad.desktop
2257 -usr/share/applications/wine-uninstaller.desktop
2258 -usr/share/applications/wine-winecfg.desktop"
2259 -
2260 -wine_build_environment_check() {
2261 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
2262 -
2263 - # bug #549768
2264 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
2265 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
2266 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
2267 - # Run in subshell to prevent "Aborted" message
2268 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
2269 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
2270 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
2271 - eerror "or use gcc-config to select a different compiler version."
2272 - eerror "See https://bugs.gentoo.org/549768"
2273 - eerror
2274 - return 1
2275 - fi
2276 - fi
2277 -
2278 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
2279 - eerror "You need gcc-4.4+ to build 64-bit wine"
2280 - eerror
2281 - return 1
2282 - fi
2283 -
2284 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
2285 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
2286 - eerror "See https://bugs.gentoo.org/487864 for more details."
2287 - eerror
2288 - return 1
2289 - fi
2290 -}
2291 -
2292 -pkg_pretend() {
2293 - wine_build_environment_check || die
2294 -}
2295 -
2296 -pkg_setup() {
2297 - wine_build_environment_check || die
2298 -}
2299 -
2300 -src_unpack() {
2301 - if [[ ${PV} == "9999" ]] ; then
2302 - git-r3_src_unpack
2303 - else
2304 - unpack ${MY_P}.tar.bz2
2305 - fi
2306 -
2307 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
2308 - unpack "${WINE_GENTOO}.tar.bz2"
2309 -
2310 - l10n_find_plocales_changes "${S}/po" "" ".po"
2311 -}
2312 -
2313 -src_prepare() {
2314 - local md5="$(md5sum server/protocol.def)"
2315 - local PATCHES=(
2316 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
2317 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
2318 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
2319 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
2320 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
2321 - )
2322 - use pulseaudio && PATCHES+=(
2323 - "../${PULSE_PATCHES}"/*.patch #421365
2324 - )
2325 -
2326 - autotools-utils_src_prepare
2327 -
2328 - # Modification of the server protocol requires regenerating the server requests
2329 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
2330 - einfo "server/protocol.def was patched; running tools/make_requests"
2331 - tools/make_requests || die #432348
2332 - fi
2333 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
2334 - if ! use run-exes; then
2335 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
2336 - fi
2337 -
2338 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
2339 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
2340 -
2341 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
2342 -}
2343 -
2344 -src_configure() {
2345 - export LDCONFIG=/bin/true
2346 - use custom-cflags || strip-flags
2347 -
2348 - multilib-minimal_src_configure
2349 -}
2350 -
2351 -multilib_src_configure() {
2352 - local myconf=(
2353 - --sysconfdir=/etc/wine
2354 - $(use_with alsa)
2355 - $(use_with capi)
2356 - $(use_with lcms cms)
2357 - $(use_with cups)
2358 - $(use_with ncurses curses)
2359 - $(use_with udisks dbus)
2360 - $(use_with fontconfig)
2361 - $(use_with ssl gnutls)
2362 - $(use_enable gecko mshtml)
2363 - $(use_with gphoto2 gphoto)
2364 - $(use_with gsm)
2365 - $(use_with gstreamer)
2366 - --without-hal
2367 - $(use_with jpeg)
2368 - $(use_with ldap)
2369 - $(use_enable mono mscoree)
2370 - $(use_with mp3 mpg123)
2371 - $(use_with netapi)
2372 - $(use_with nls gettext)
2373 - $(use_with openal)
2374 - $(use_with opencl)
2375 - $(use_with opengl)
2376 - $(use_with osmesa)
2377 - $(use_with oss)
2378 - $(use_with png)
2379 - $(use_with threads pthread)
2380 - $(use_with scanner sane)
2381 - $(use_enable test tests)
2382 - $(use_with truetype freetype)
2383 - $(use_with v4l)
2384 - $(use_with X x)
2385 - $(use_with xcomposite)
2386 - $(use_with xinerama)
2387 - $(use_with xml)
2388 - $(use_with xml xslt)
2389 - )
2390 -
2391 - use pulseaudio && myconf+=( --with-pulse )
2392 -
2393 - local PKG_CONFIG AR RANLIB
2394 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
2395 - # set AR and RANLIB to make QA scripts happy; #483342
2396 - tc-export PKG_CONFIG AR RANLIB
2397 -
2398 - if use amd64; then
2399 - if [[ ${ABI} == amd64 ]]; then
2400 - myconf+=( --enable-win64 )
2401 - else
2402 - myconf+=( --disable-win64 )
2403 - fi
2404 -
2405 - # Note: using --with-wine64 results in problems with multilib.eclass
2406 - # CC/LD hackery. We're using separate tools instead.
2407 - fi
2408 -
2409 - ECONF_SOURCE=${S} \
2410 - econf "${myconf[@]}"
2411 - emake depend
2412 -}
2413 -
2414 -multilib_src_test() {
2415 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
2416 - if [[ ${ABI} == x86 ]]; then
2417 - if [[ $(id -u) == 0 ]]; then
2418 - ewarn "Skipping tests since they cannot be run under the root user."
2419 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
2420 - return
2421 - fi
2422 -
2423 - WINEPREFIX="${T}/.wine-${ABI}" \
2424 - Xemake test
2425 - fi
2426 -}
2427 -
2428 -multilib_src_install_all() {
2429 - local DOCS=( ANNOUNCE AUTHORS README )
2430 - local l
2431 - add_locale_docs() {
2432 - local locale_doc="documentation/README.$1"
2433 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
2434 - }
2435 - l10n_for_each_locale_do add_locale_docs
2436 -
2437 - einstalldocs
2438 - prune_libtool_files --all
2439 -
2440 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
2441 - if use gecko ; then
2442 - insinto /usr/share/wine/gecko
2443 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
2444 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
2445 - fi
2446 - if use mono ; then
2447 - insinto /usr/share/wine/mono
2448 - doins "${DISTDIR}"/wine-mono-${MV}.msi
2449 - fi
2450 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
2451 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
2452 - fi
2453 -
2454 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
2455 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
2456 -
2457 - if use abi_x86_64 && ! use abi_x86_32; then
2458 - dosym /usr/bin/wine{64,} # 404331
2459 - dosym /usr/bin/wine{64,}-preloader
2460 - fi
2461 -
2462 - # respect LINGUAS when installing man pages, #469418
2463 - for l in de fr pl; do
2464 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
2465 - done
2466 -}
2467 -
2468 -pkg_preinst() {
2469 - gnome2_icon_savelist
2470 -}
2471 -
2472 -pkg_postinst() {
2473 - gnome2_icon_cache_update
2474 - fdo-mime_desktop_database_update
2475 -
2476 - if ! use gecko; then
2477 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
2478 - ewarn "implementation of iexplore. Many older windows applications"
2479 - ewarn "rely upon the existence of an iexplore implementation, so"
2480 - ewarn "you will likely need to install an external one, like via winetricks"
2481 - fi
2482 - if ! use mono; then
2483 - ewarn "Without Wine Mono, wine prefixes will not have a default"
2484 - ewarn "implementation of .NET. Many windows applications rely upon"
2485 - ewarn "the existence of a .NET implementation, so you will likely need"
2486 - ewarn "to install an external one, like via winetricks"
2487 - fi
2488 -}
2489 -
2490 -pkg_postrm() {
2491 - gnome2_icon_cache_update
2492 - fdo-mime_desktop_database_update
2493 -}
2494
2495 diff --git a/app-emulation/wine/wine-1.7.14-r1.ebuild b/app-emulation/wine/wine-1.7.14-r1.ebuild
2496 deleted file mode 100644
2497 index 16697c5..0000000
2498 --- a/app-emulation/wine/wine-1.7.14-r1.ebuild
2499 +++ /dev/null
2500 @@ -1,378 +0,0 @@
2501 -# Copyright 1999-2015 Gentoo Foundation
2502 -# Distributed under the terms of the GNU General Public License v2
2503 -# $Id$
2504 -
2505 -EAPI="5"
2506 -
2507 -AUTOTOOLS_AUTORECONF=1
2508 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
2509 -PLOCALE_BACKUP="en"
2510 -
2511 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
2512 -
2513 -if [[ ${PV} == "9999" ]] ; then
2514 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
2515 - EGIT_BRANCH="master"
2516 - inherit git-r3
2517 - SRC_URI=""
2518 - #KEYWORDS=""
2519 -else
2520 - MY_P="${PN}-${PV/_/-}"
2521 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
2522 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
2523 - S=${WORKDIR}/${MY_P}
2524 -fi
2525 -
2526 -GV="2.24"
2527 -MV="4.5.2"
2528 -PULSE_PATCHES="winepulse-patches-1.7.12"
2529 -WINE_GENTOO="wine-gentoo-2015.03.07"
2530 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
2531 -HOMEPAGE="http://www.winehq.org/"
2532 -SRC_URI="${SRC_URI}
2533 - gecko? (
2534 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
2535 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
2536 - )
2537 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
2538 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
2539 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
2540 -
2541 -LICENSE="LGPL-2.1"
2542 -SLOT="0"
2543 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
2544 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
2545 - test? ( abi_x86_32 )
2546 - elibc_glibc? ( threads )
2547 - mono? ( abi_x86_32 )
2548 - osmesa? ( opengl )" #286560
2549 -
2550 -# FIXME: the test suite is unsuitable for us; many tests require net access
2551 -# or fail due to Xvfb's opengl limitations.
2552 -RESTRICT="test"
2553 -
2554 -COMMON_DEPEND="
2555 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
2556 - capi? ( net-dialup/capi4k-utils )
2557 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
2558 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
2559 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
2560 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
2561 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
2562 - gstreamer? (
2563 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
2564 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
2565 - )
2566 - X? (
2567 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
2568 - x11-libs/libXext[${MULTILIB_USEDEP}]
2569 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
2570 - x11-libs/libXi[${MULTILIB_USEDEP}]
2571 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
2572 - )
2573 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
2574 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
2575 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
2576 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
2577 - opengl? (
2578 - virtual/glu[${MULTILIB_USEDEP}]
2579 - virtual/opengl[${MULTILIB_USEDEP}]
2580 - )
2581 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
2582 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
2583 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
2584 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
2585 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
2586 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
2587 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
2588 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
2589 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
2590 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
2591 - xml? (
2592 - dev-libs/libxml2[${MULTILIB_USEDEP}]
2593 - dev-libs/libxslt[${MULTILIB_USEDEP}]
2594 - )
2595 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
2596 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
2597 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
2598 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
2599 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
2600 - abi_x86_32? (
2601 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
2602 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
2603 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
2604 - !<app-emulation/emul-linux-x86-db-20140508-r3
2605 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
2606 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
2607 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
2608 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
2609 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
2610 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
2611 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
2612 - !<app-emulation/emul-linux-x86-soundlibs-20140508
2613 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
2614 - !<app-emulation/emul-linux-x86-xlibs-20140508
2615 - )"
2616 -
2617 -RDEPEND="${COMMON_DEPEND}
2618 - dos? ( games-emulation/dosbox )
2619 - perl? ( dev-lang/perl dev-perl/XML-Simple )
2620 - samba? ( >=net-fs/samba-3.0.25 )
2621 - selinux? ( sec-policy/selinux-wine )
2622 - udisks? ( sys-fs/udisks:2 )
2623 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
2624 -
2625 -DEPEND="${COMMON_DEPEND}
2626 - X? (
2627 - x11-proto/inputproto
2628 - x11-proto/xextproto
2629 - x11-proto/xf86vidmodeproto
2630 - )
2631 - xinerama? ( x11-proto/xineramaproto )
2632 - prelink? ( sys-devel/prelink )
2633 - >=sys-kernel/linux-headers-2.6
2634 - virtual/pkgconfig
2635 - virtual/yacc
2636 - sys-devel/flex"
2637 -
2638 -# These use a non-standard "Wine" category, which is provided by
2639 -# /etc/xdg/applications-merged/wine.menu
2640 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
2641 -usr/share/applications/wine-notepad.desktop
2642 -usr/share/applications/wine-uninstaller.desktop
2643 -usr/share/applications/wine-winecfg.desktop"
2644 -
2645 -wine_build_environment_check() {
2646 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
2647 -
2648 - # bug #549768
2649 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
2650 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
2651 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
2652 - # Run in subshell to prevent "Aborted" message
2653 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
2654 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
2655 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
2656 - eerror "or use gcc-config to select a different compiler version."
2657 - eerror "See https://bugs.gentoo.org/549768"
2658 - eerror
2659 - return 1
2660 - fi
2661 - fi
2662 -
2663 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
2664 - eerror "You need gcc-4.4+ to build 64-bit wine"
2665 - eerror
2666 - return 1
2667 - fi
2668 -
2669 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
2670 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
2671 - eerror "See https://bugs.gentoo.org/487864 for more details."
2672 - eerror
2673 - return 1
2674 - fi
2675 -}
2676 -
2677 -pkg_pretend() {
2678 - wine_build_environment_check || die
2679 -}
2680 -
2681 -pkg_setup() {
2682 - wine_build_environment_check || die
2683 -}
2684 -
2685 -src_unpack() {
2686 - if [[ ${PV} == "9999" ]] ; then
2687 - git-r3_src_unpack
2688 - else
2689 - unpack ${MY_P}.tar.bz2
2690 - fi
2691 -
2692 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
2693 - unpack "${WINE_GENTOO}.tar.bz2"
2694 -
2695 - l10n_find_plocales_changes "${S}/po" "" ".po"
2696 -}
2697 -
2698 -src_prepare() {
2699 - local md5="$(md5sum server/protocol.def)"
2700 - local PATCHES=(
2701 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
2702 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
2703 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
2704 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
2705 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
2706 - )
2707 - use pulseaudio && PATCHES+=(
2708 - "../${PULSE_PATCHES}"/*.patch #421365
2709 - )
2710 -
2711 - autotools-utils_src_prepare
2712 -
2713 - # Modification of the server protocol requires regenerating the server requests
2714 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
2715 - einfo "server/protocol.def was patched; running tools/make_requests"
2716 - tools/make_requests || die #432348
2717 - fi
2718 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
2719 - if ! use run-exes; then
2720 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
2721 - fi
2722 -
2723 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
2724 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
2725 -
2726 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
2727 -}
2728 -
2729 -src_configure() {
2730 - export LDCONFIG=/bin/true
2731 - use custom-cflags || strip-flags
2732 -
2733 - multilib-minimal_src_configure
2734 -}
2735 -
2736 -multilib_src_configure() {
2737 - local myconf=(
2738 - --sysconfdir=/etc/wine
2739 - $(use_with alsa)
2740 - $(use_with capi)
2741 - $(use_with lcms cms)
2742 - $(use_with cups)
2743 - $(use_with ncurses curses)
2744 - $(use_with udisks dbus)
2745 - $(use_with fontconfig)
2746 - $(use_with ssl gnutls)
2747 - $(use_enable gecko mshtml)
2748 - $(use_with gphoto2 gphoto)
2749 - $(use_with gsm)
2750 - $(use_with gstreamer)
2751 - --without-hal
2752 - $(use_with jpeg)
2753 - $(use_with ldap)
2754 - $(use_enable mono mscoree)
2755 - $(use_with mp3 mpg123)
2756 - $(use_with netapi)
2757 - $(use_with nls gettext)
2758 - $(use_with openal)
2759 - $(use_with opencl)
2760 - $(use_with opengl)
2761 - $(use_with osmesa)
2762 - $(use_with oss)
2763 - $(use_with png)
2764 - $(use_with threads pthread)
2765 - $(use_with scanner sane)
2766 - $(use_enable test tests)
2767 - $(use_with truetype freetype)
2768 - $(use_with v4l)
2769 - $(use_with X x)
2770 - $(use_with xcomposite)
2771 - $(use_with xinerama)
2772 - $(use_with xml)
2773 - $(use_with xml xslt)
2774 - )
2775 -
2776 - use pulseaudio && myconf+=( --with-pulse )
2777 -
2778 - local PKG_CONFIG AR RANLIB
2779 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
2780 - # set AR and RANLIB to make QA scripts happy; #483342
2781 - tc-export PKG_CONFIG AR RANLIB
2782 -
2783 - if use amd64; then
2784 - if [[ ${ABI} == amd64 ]]; then
2785 - myconf+=( --enable-win64 )
2786 - else
2787 - myconf+=( --disable-win64 )
2788 - fi
2789 -
2790 - # Note: using --with-wine64 results in problems with multilib.eclass
2791 - # CC/LD hackery. We're using separate tools instead.
2792 - fi
2793 -
2794 - ECONF_SOURCE=${S} \
2795 - econf "${myconf[@]}"
2796 - emake depend
2797 -}
2798 -
2799 -multilib_src_test() {
2800 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
2801 - if [[ ${ABI} == x86 ]]; then
2802 - if [[ $(id -u) == 0 ]]; then
2803 - ewarn "Skipping tests since they cannot be run under the root user."
2804 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
2805 - return
2806 - fi
2807 -
2808 - WINEPREFIX="${T}/.wine-${ABI}" \
2809 - Xemake test
2810 - fi
2811 -}
2812 -
2813 -multilib_src_install_all() {
2814 - local DOCS=( ANNOUNCE AUTHORS README )
2815 - local l
2816 - add_locale_docs() {
2817 - local locale_doc="documentation/README.$1"
2818 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
2819 - }
2820 - l10n_for_each_locale_do add_locale_docs
2821 -
2822 - einstalldocs
2823 - prune_libtool_files --all
2824 -
2825 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
2826 - if use gecko ; then
2827 - insinto /usr/share/wine/gecko
2828 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
2829 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
2830 - fi
2831 - if use mono ; then
2832 - insinto /usr/share/wine/mono
2833 - doins "${DISTDIR}"/wine-mono-${MV}.msi
2834 - fi
2835 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
2836 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
2837 - fi
2838 -
2839 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
2840 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
2841 -
2842 - if use abi_x86_64 && ! use abi_x86_32; then
2843 - dosym /usr/bin/wine{64,} # 404331
2844 - dosym /usr/bin/wine{64,}-preloader
2845 - fi
2846 -
2847 - # respect LINGUAS when installing man pages, #469418
2848 - for l in de fr pl; do
2849 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
2850 - done
2851 -}
2852 -
2853 -pkg_preinst() {
2854 - gnome2_icon_savelist
2855 -}
2856 -
2857 -pkg_postinst() {
2858 - gnome2_icon_cache_update
2859 - fdo-mime_desktop_database_update
2860 -
2861 - if ! use gecko; then
2862 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
2863 - ewarn "implementation of iexplore. Many older windows applications"
2864 - ewarn "rely upon the existence of an iexplore implementation, so"
2865 - ewarn "you will likely need to install an external one, like via winetricks"
2866 - fi
2867 - if ! use mono; then
2868 - ewarn "Without Wine Mono, wine prefixes will not have a default"
2869 - ewarn "implementation of .NET. Many windows applications rely upon"
2870 - ewarn "the existence of a .NET implementation, so you will likely need"
2871 - ewarn "to install an external one, like via winetricks"
2872 - fi
2873 -}
2874 -
2875 -pkg_postrm() {
2876 - gnome2_icon_cache_update
2877 - fdo-mime_desktop_database_update
2878 -}
2879
2880 diff --git a/app-emulation/wine/wine-1.7.15-r1.ebuild b/app-emulation/wine/wine-1.7.15-r1.ebuild
2881 deleted file mode 100644
2882 index 16697c5..0000000
2883 --- a/app-emulation/wine/wine-1.7.15-r1.ebuild
2884 +++ /dev/null
2885 @@ -1,378 +0,0 @@
2886 -# Copyright 1999-2015 Gentoo Foundation
2887 -# Distributed under the terms of the GNU General Public License v2
2888 -# $Id$
2889 -
2890 -EAPI="5"
2891 -
2892 -AUTOTOOLS_AUTORECONF=1
2893 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
2894 -PLOCALE_BACKUP="en"
2895 -
2896 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
2897 -
2898 -if [[ ${PV} == "9999" ]] ; then
2899 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
2900 - EGIT_BRANCH="master"
2901 - inherit git-r3
2902 - SRC_URI=""
2903 - #KEYWORDS=""
2904 -else
2905 - MY_P="${PN}-${PV/_/-}"
2906 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
2907 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
2908 - S=${WORKDIR}/${MY_P}
2909 -fi
2910 -
2911 -GV="2.24"
2912 -MV="4.5.2"
2913 -PULSE_PATCHES="winepulse-patches-1.7.12"
2914 -WINE_GENTOO="wine-gentoo-2015.03.07"
2915 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
2916 -HOMEPAGE="http://www.winehq.org/"
2917 -SRC_URI="${SRC_URI}
2918 - gecko? (
2919 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
2920 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
2921 - )
2922 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
2923 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
2924 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
2925 -
2926 -LICENSE="LGPL-2.1"
2927 -SLOT="0"
2928 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
2929 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
2930 - test? ( abi_x86_32 )
2931 - elibc_glibc? ( threads )
2932 - mono? ( abi_x86_32 )
2933 - osmesa? ( opengl )" #286560
2934 -
2935 -# FIXME: the test suite is unsuitable for us; many tests require net access
2936 -# or fail due to Xvfb's opengl limitations.
2937 -RESTRICT="test"
2938 -
2939 -COMMON_DEPEND="
2940 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
2941 - capi? ( net-dialup/capi4k-utils )
2942 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
2943 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
2944 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
2945 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
2946 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
2947 - gstreamer? (
2948 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
2949 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
2950 - )
2951 - X? (
2952 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
2953 - x11-libs/libXext[${MULTILIB_USEDEP}]
2954 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
2955 - x11-libs/libXi[${MULTILIB_USEDEP}]
2956 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
2957 - )
2958 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
2959 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
2960 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
2961 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
2962 - opengl? (
2963 - virtual/glu[${MULTILIB_USEDEP}]
2964 - virtual/opengl[${MULTILIB_USEDEP}]
2965 - )
2966 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
2967 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
2968 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
2969 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
2970 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
2971 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
2972 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
2973 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
2974 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
2975 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
2976 - xml? (
2977 - dev-libs/libxml2[${MULTILIB_USEDEP}]
2978 - dev-libs/libxslt[${MULTILIB_USEDEP}]
2979 - )
2980 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
2981 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
2982 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
2983 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
2984 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
2985 - abi_x86_32? (
2986 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
2987 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
2988 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
2989 - !<app-emulation/emul-linux-x86-db-20140508-r3
2990 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
2991 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
2992 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
2993 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
2994 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
2995 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
2996 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
2997 - !<app-emulation/emul-linux-x86-soundlibs-20140508
2998 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
2999 - !<app-emulation/emul-linux-x86-xlibs-20140508
3000 - )"
3001 -
3002 -RDEPEND="${COMMON_DEPEND}
3003 - dos? ( games-emulation/dosbox )
3004 - perl? ( dev-lang/perl dev-perl/XML-Simple )
3005 - samba? ( >=net-fs/samba-3.0.25 )
3006 - selinux? ( sec-policy/selinux-wine )
3007 - udisks? ( sys-fs/udisks:2 )
3008 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
3009 -
3010 -DEPEND="${COMMON_DEPEND}
3011 - X? (
3012 - x11-proto/inputproto
3013 - x11-proto/xextproto
3014 - x11-proto/xf86vidmodeproto
3015 - )
3016 - xinerama? ( x11-proto/xineramaproto )
3017 - prelink? ( sys-devel/prelink )
3018 - >=sys-kernel/linux-headers-2.6
3019 - virtual/pkgconfig
3020 - virtual/yacc
3021 - sys-devel/flex"
3022 -
3023 -# These use a non-standard "Wine" category, which is provided by
3024 -# /etc/xdg/applications-merged/wine.menu
3025 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
3026 -usr/share/applications/wine-notepad.desktop
3027 -usr/share/applications/wine-uninstaller.desktop
3028 -usr/share/applications/wine-winecfg.desktop"
3029 -
3030 -wine_build_environment_check() {
3031 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
3032 -
3033 - # bug #549768
3034 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
3035 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
3036 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
3037 - # Run in subshell to prevent "Aborted" message
3038 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
3039 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
3040 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
3041 - eerror "or use gcc-config to select a different compiler version."
3042 - eerror "See https://bugs.gentoo.org/549768"
3043 - eerror
3044 - return 1
3045 - fi
3046 - fi
3047 -
3048 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
3049 - eerror "You need gcc-4.4+ to build 64-bit wine"
3050 - eerror
3051 - return 1
3052 - fi
3053 -
3054 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
3055 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
3056 - eerror "See https://bugs.gentoo.org/487864 for more details."
3057 - eerror
3058 - return 1
3059 - fi
3060 -}
3061 -
3062 -pkg_pretend() {
3063 - wine_build_environment_check || die
3064 -}
3065 -
3066 -pkg_setup() {
3067 - wine_build_environment_check || die
3068 -}
3069 -
3070 -src_unpack() {
3071 - if [[ ${PV} == "9999" ]] ; then
3072 - git-r3_src_unpack
3073 - else
3074 - unpack ${MY_P}.tar.bz2
3075 - fi
3076 -
3077 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
3078 - unpack "${WINE_GENTOO}.tar.bz2"
3079 -
3080 - l10n_find_plocales_changes "${S}/po" "" ".po"
3081 -}
3082 -
3083 -src_prepare() {
3084 - local md5="$(md5sum server/protocol.def)"
3085 - local PATCHES=(
3086 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
3087 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
3088 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
3089 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
3090 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
3091 - )
3092 - use pulseaudio && PATCHES+=(
3093 - "../${PULSE_PATCHES}"/*.patch #421365
3094 - )
3095 -
3096 - autotools-utils_src_prepare
3097 -
3098 - # Modification of the server protocol requires regenerating the server requests
3099 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
3100 - einfo "server/protocol.def was patched; running tools/make_requests"
3101 - tools/make_requests || die #432348
3102 - fi
3103 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
3104 - if ! use run-exes; then
3105 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
3106 - fi
3107 -
3108 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
3109 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
3110 -
3111 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
3112 -}
3113 -
3114 -src_configure() {
3115 - export LDCONFIG=/bin/true
3116 - use custom-cflags || strip-flags
3117 -
3118 - multilib-minimal_src_configure
3119 -}
3120 -
3121 -multilib_src_configure() {
3122 - local myconf=(
3123 - --sysconfdir=/etc/wine
3124 - $(use_with alsa)
3125 - $(use_with capi)
3126 - $(use_with lcms cms)
3127 - $(use_with cups)
3128 - $(use_with ncurses curses)
3129 - $(use_with udisks dbus)
3130 - $(use_with fontconfig)
3131 - $(use_with ssl gnutls)
3132 - $(use_enable gecko mshtml)
3133 - $(use_with gphoto2 gphoto)
3134 - $(use_with gsm)
3135 - $(use_with gstreamer)
3136 - --without-hal
3137 - $(use_with jpeg)
3138 - $(use_with ldap)
3139 - $(use_enable mono mscoree)
3140 - $(use_with mp3 mpg123)
3141 - $(use_with netapi)
3142 - $(use_with nls gettext)
3143 - $(use_with openal)
3144 - $(use_with opencl)
3145 - $(use_with opengl)
3146 - $(use_with osmesa)
3147 - $(use_with oss)
3148 - $(use_with png)
3149 - $(use_with threads pthread)
3150 - $(use_with scanner sane)
3151 - $(use_enable test tests)
3152 - $(use_with truetype freetype)
3153 - $(use_with v4l)
3154 - $(use_with X x)
3155 - $(use_with xcomposite)
3156 - $(use_with xinerama)
3157 - $(use_with xml)
3158 - $(use_with xml xslt)
3159 - )
3160 -
3161 - use pulseaudio && myconf+=( --with-pulse )
3162 -
3163 - local PKG_CONFIG AR RANLIB
3164 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
3165 - # set AR and RANLIB to make QA scripts happy; #483342
3166 - tc-export PKG_CONFIG AR RANLIB
3167 -
3168 - if use amd64; then
3169 - if [[ ${ABI} == amd64 ]]; then
3170 - myconf+=( --enable-win64 )
3171 - else
3172 - myconf+=( --disable-win64 )
3173 - fi
3174 -
3175 - # Note: using --with-wine64 results in problems with multilib.eclass
3176 - # CC/LD hackery. We're using separate tools instead.
3177 - fi
3178 -
3179 - ECONF_SOURCE=${S} \
3180 - econf "${myconf[@]}"
3181 - emake depend
3182 -}
3183 -
3184 -multilib_src_test() {
3185 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
3186 - if [[ ${ABI} == x86 ]]; then
3187 - if [[ $(id -u) == 0 ]]; then
3188 - ewarn "Skipping tests since they cannot be run under the root user."
3189 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
3190 - return
3191 - fi
3192 -
3193 - WINEPREFIX="${T}/.wine-${ABI}" \
3194 - Xemake test
3195 - fi
3196 -}
3197 -
3198 -multilib_src_install_all() {
3199 - local DOCS=( ANNOUNCE AUTHORS README )
3200 - local l
3201 - add_locale_docs() {
3202 - local locale_doc="documentation/README.$1"
3203 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
3204 - }
3205 - l10n_for_each_locale_do add_locale_docs
3206 -
3207 - einstalldocs
3208 - prune_libtool_files --all
3209 -
3210 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
3211 - if use gecko ; then
3212 - insinto /usr/share/wine/gecko
3213 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
3214 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
3215 - fi
3216 - if use mono ; then
3217 - insinto /usr/share/wine/mono
3218 - doins "${DISTDIR}"/wine-mono-${MV}.msi
3219 - fi
3220 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
3221 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
3222 - fi
3223 -
3224 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
3225 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
3226 -
3227 - if use abi_x86_64 && ! use abi_x86_32; then
3228 - dosym /usr/bin/wine{64,} # 404331
3229 - dosym /usr/bin/wine{64,}-preloader
3230 - fi
3231 -
3232 - # respect LINGUAS when installing man pages, #469418
3233 - for l in de fr pl; do
3234 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
3235 - done
3236 -}
3237 -
3238 -pkg_preinst() {
3239 - gnome2_icon_savelist
3240 -}
3241 -
3242 -pkg_postinst() {
3243 - gnome2_icon_cache_update
3244 - fdo-mime_desktop_database_update
3245 -
3246 - if ! use gecko; then
3247 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
3248 - ewarn "implementation of iexplore. Many older windows applications"
3249 - ewarn "rely upon the existence of an iexplore implementation, so"
3250 - ewarn "you will likely need to install an external one, like via winetricks"
3251 - fi
3252 - if ! use mono; then
3253 - ewarn "Without Wine Mono, wine prefixes will not have a default"
3254 - ewarn "implementation of .NET. Many windows applications rely upon"
3255 - ewarn "the existence of a .NET implementation, so you will likely need"
3256 - ewarn "to install an external one, like via winetricks"
3257 - fi
3258 -}
3259 -
3260 -pkg_postrm() {
3261 - gnome2_icon_cache_update
3262 - fdo-mime_desktop_database_update
3263 -}
3264
3265 diff --git a/app-emulation/wine/wine-1.7.16-r1.ebuild b/app-emulation/wine/wine-1.7.16-r1.ebuild
3266 deleted file mode 100644
3267 index 16697c5..0000000
3268 --- a/app-emulation/wine/wine-1.7.16-r1.ebuild
3269 +++ /dev/null
3270 @@ -1,378 +0,0 @@
3271 -# Copyright 1999-2015 Gentoo Foundation
3272 -# Distributed under the terms of the GNU General Public License v2
3273 -# $Id$
3274 -
3275 -EAPI="5"
3276 -
3277 -AUTOTOOLS_AUTORECONF=1
3278 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
3279 -PLOCALE_BACKUP="en"
3280 -
3281 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
3282 -
3283 -if [[ ${PV} == "9999" ]] ; then
3284 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
3285 - EGIT_BRANCH="master"
3286 - inherit git-r3
3287 - SRC_URI=""
3288 - #KEYWORDS=""
3289 -else
3290 - MY_P="${PN}-${PV/_/-}"
3291 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
3292 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
3293 - S=${WORKDIR}/${MY_P}
3294 -fi
3295 -
3296 -GV="2.24"
3297 -MV="4.5.2"
3298 -PULSE_PATCHES="winepulse-patches-1.7.12"
3299 -WINE_GENTOO="wine-gentoo-2015.03.07"
3300 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
3301 -HOMEPAGE="http://www.winehq.org/"
3302 -SRC_URI="${SRC_URI}
3303 - gecko? (
3304 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
3305 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
3306 - )
3307 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
3308 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
3309 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
3310 -
3311 -LICENSE="LGPL-2.1"
3312 -SLOT="0"
3313 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
3314 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
3315 - test? ( abi_x86_32 )
3316 - elibc_glibc? ( threads )
3317 - mono? ( abi_x86_32 )
3318 - osmesa? ( opengl )" #286560
3319 -
3320 -# FIXME: the test suite is unsuitable for us; many tests require net access
3321 -# or fail due to Xvfb's opengl limitations.
3322 -RESTRICT="test"
3323 -
3324 -COMMON_DEPEND="
3325 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
3326 - capi? ( net-dialup/capi4k-utils )
3327 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
3328 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
3329 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
3330 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
3331 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
3332 - gstreamer? (
3333 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
3334 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
3335 - )
3336 - X? (
3337 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
3338 - x11-libs/libXext[${MULTILIB_USEDEP}]
3339 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
3340 - x11-libs/libXi[${MULTILIB_USEDEP}]
3341 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
3342 - )
3343 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
3344 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
3345 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
3346 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
3347 - opengl? (
3348 - virtual/glu[${MULTILIB_USEDEP}]
3349 - virtual/opengl[${MULTILIB_USEDEP}]
3350 - )
3351 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
3352 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
3353 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
3354 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
3355 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
3356 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
3357 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
3358 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
3359 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
3360 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
3361 - xml? (
3362 - dev-libs/libxml2[${MULTILIB_USEDEP}]
3363 - dev-libs/libxslt[${MULTILIB_USEDEP}]
3364 - )
3365 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
3366 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
3367 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
3368 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
3369 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
3370 - abi_x86_32? (
3371 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
3372 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
3373 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
3374 - !<app-emulation/emul-linux-x86-db-20140508-r3
3375 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
3376 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
3377 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
3378 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
3379 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
3380 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
3381 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
3382 - !<app-emulation/emul-linux-x86-soundlibs-20140508
3383 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
3384 - !<app-emulation/emul-linux-x86-xlibs-20140508
3385 - )"
3386 -
3387 -RDEPEND="${COMMON_DEPEND}
3388 - dos? ( games-emulation/dosbox )
3389 - perl? ( dev-lang/perl dev-perl/XML-Simple )
3390 - samba? ( >=net-fs/samba-3.0.25 )
3391 - selinux? ( sec-policy/selinux-wine )
3392 - udisks? ( sys-fs/udisks:2 )
3393 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
3394 -
3395 -DEPEND="${COMMON_DEPEND}
3396 - X? (
3397 - x11-proto/inputproto
3398 - x11-proto/xextproto
3399 - x11-proto/xf86vidmodeproto
3400 - )
3401 - xinerama? ( x11-proto/xineramaproto )
3402 - prelink? ( sys-devel/prelink )
3403 - >=sys-kernel/linux-headers-2.6
3404 - virtual/pkgconfig
3405 - virtual/yacc
3406 - sys-devel/flex"
3407 -
3408 -# These use a non-standard "Wine" category, which is provided by
3409 -# /etc/xdg/applications-merged/wine.menu
3410 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
3411 -usr/share/applications/wine-notepad.desktop
3412 -usr/share/applications/wine-uninstaller.desktop
3413 -usr/share/applications/wine-winecfg.desktop"
3414 -
3415 -wine_build_environment_check() {
3416 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
3417 -
3418 - # bug #549768
3419 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
3420 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
3421 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
3422 - # Run in subshell to prevent "Aborted" message
3423 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
3424 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
3425 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
3426 - eerror "or use gcc-config to select a different compiler version."
3427 - eerror "See https://bugs.gentoo.org/549768"
3428 - eerror
3429 - return 1
3430 - fi
3431 - fi
3432 -
3433 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
3434 - eerror "You need gcc-4.4+ to build 64-bit wine"
3435 - eerror
3436 - return 1
3437 - fi
3438 -
3439 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
3440 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
3441 - eerror "See https://bugs.gentoo.org/487864 for more details."
3442 - eerror
3443 - return 1
3444 - fi
3445 -}
3446 -
3447 -pkg_pretend() {
3448 - wine_build_environment_check || die
3449 -}
3450 -
3451 -pkg_setup() {
3452 - wine_build_environment_check || die
3453 -}
3454 -
3455 -src_unpack() {
3456 - if [[ ${PV} == "9999" ]] ; then
3457 - git-r3_src_unpack
3458 - else
3459 - unpack ${MY_P}.tar.bz2
3460 - fi
3461 -
3462 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
3463 - unpack "${WINE_GENTOO}.tar.bz2"
3464 -
3465 - l10n_find_plocales_changes "${S}/po" "" ".po"
3466 -}
3467 -
3468 -src_prepare() {
3469 - local md5="$(md5sum server/protocol.def)"
3470 - local PATCHES=(
3471 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
3472 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
3473 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
3474 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
3475 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
3476 - )
3477 - use pulseaudio && PATCHES+=(
3478 - "../${PULSE_PATCHES}"/*.patch #421365
3479 - )
3480 -
3481 - autotools-utils_src_prepare
3482 -
3483 - # Modification of the server protocol requires regenerating the server requests
3484 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
3485 - einfo "server/protocol.def was patched; running tools/make_requests"
3486 - tools/make_requests || die #432348
3487 - fi
3488 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
3489 - if ! use run-exes; then
3490 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
3491 - fi
3492 -
3493 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
3494 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
3495 -
3496 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
3497 -}
3498 -
3499 -src_configure() {
3500 - export LDCONFIG=/bin/true
3501 - use custom-cflags || strip-flags
3502 -
3503 - multilib-minimal_src_configure
3504 -}
3505 -
3506 -multilib_src_configure() {
3507 - local myconf=(
3508 - --sysconfdir=/etc/wine
3509 - $(use_with alsa)
3510 - $(use_with capi)
3511 - $(use_with lcms cms)
3512 - $(use_with cups)
3513 - $(use_with ncurses curses)
3514 - $(use_with udisks dbus)
3515 - $(use_with fontconfig)
3516 - $(use_with ssl gnutls)
3517 - $(use_enable gecko mshtml)
3518 - $(use_with gphoto2 gphoto)
3519 - $(use_with gsm)
3520 - $(use_with gstreamer)
3521 - --without-hal
3522 - $(use_with jpeg)
3523 - $(use_with ldap)
3524 - $(use_enable mono mscoree)
3525 - $(use_with mp3 mpg123)
3526 - $(use_with netapi)
3527 - $(use_with nls gettext)
3528 - $(use_with openal)
3529 - $(use_with opencl)
3530 - $(use_with opengl)
3531 - $(use_with osmesa)
3532 - $(use_with oss)
3533 - $(use_with png)
3534 - $(use_with threads pthread)
3535 - $(use_with scanner sane)
3536 - $(use_enable test tests)
3537 - $(use_with truetype freetype)
3538 - $(use_with v4l)
3539 - $(use_with X x)
3540 - $(use_with xcomposite)
3541 - $(use_with xinerama)
3542 - $(use_with xml)
3543 - $(use_with xml xslt)
3544 - )
3545 -
3546 - use pulseaudio && myconf+=( --with-pulse )
3547 -
3548 - local PKG_CONFIG AR RANLIB
3549 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
3550 - # set AR and RANLIB to make QA scripts happy; #483342
3551 - tc-export PKG_CONFIG AR RANLIB
3552 -
3553 - if use amd64; then
3554 - if [[ ${ABI} == amd64 ]]; then
3555 - myconf+=( --enable-win64 )
3556 - else
3557 - myconf+=( --disable-win64 )
3558 - fi
3559 -
3560 - # Note: using --with-wine64 results in problems with multilib.eclass
3561 - # CC/LD hackery. We're using separate tools instead.
3562 - fi
3563 -
3564 - ECONF_SOURCE=${S} \
3565 - econf "${myconf[@]}"
3566 - emake depend
3567 -}
3568 -
3569 -multilib_src_test() {
3570 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
3571 - if [[ ${ABI} == x86 ]]; then
3572 - if [[ $(id -u) == 0 ]]; then
3573 - ewarn "Skipping tests since they cannot be run under the root user."
3574 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
3575 - return
3576 - fi
3577 -
3578 - WINEPREFIX="${T}/.wine-${ABI}" \
3579 - Xemake test
3580 - fi
3581 -}
3582 -
3583 -multilib_src_install_all() {
3584 - local DOCS=( ANNOUNCE AUTHORS README )
3585 - local l
3586 - add_locale_docs() {
3587 - local locale_doc="documentation/README.$1"
3588 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
3589 - }
3590 - l10n_for_each_locale_do add_locale_docs
3591 -
3592 - einstalldocs
3593 - prune_libtool_files --all
3594 -
3595 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
3596 - if use gecko ; then
3597 - insinto /usr/share/wine/gecko
3598 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
3599 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
3600 - fi
3601 - if use mono ; then
3602 - insinto /usr/share/wine/mono
3603 - doins "${DISTDIR}"/wine-mono-${MV}.msi
3604 - fi
3605 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
3606 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
3607 - fi
3608 -
3609 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
3610 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
3611 -
3612 - if use abi_x86_64 && ! use abi_x86_32; then
3613 - dosym /usr/bin/wine{64,} # 404331
3614 - dosym /usr/bin/wine{64,}-preloader
3615 - fi
3616 -
3617 - # respect LINGUAS when installing man pages, #469418
3618 - for l in de fr pl; do
3619 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
3620 - done
3621 -}
3622 -
3623 -pkg_preinst() {
3624 - gnome2_icon_savelist
3625 -}
3626 -
3627 -pkg_postinst() {
3628 - gnome2_icon_cache_update
3629 - fdo-mime_desktop_database_update
3630 -
3631 - if ! use gecko; then
3632 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
3633 - ewarn "implementation of iexplore. Many older windows applications"
3634 - ewarn "rely upon the existence of an iexplore implementation, so"
3635 - ewarn "you will likely need to install an external one, like via winetricks"
3636 - fi
3637 - if ! use mono; then
3638 - ewarn "Without Wine Mono, wine prefixes will not have a default"
3639 - ewarn "implementation of .NET. Many windows applications rely upon"
3640 - ewarn "the existence of a .NET implementation, so you will likely need"
3641 - ewarn "to install an external one, like via winetricks"
3642 - fi
3643 -}
3644 -
3645 -pkg_postrm() {
3646 - gnome2_icon_cache_update
3647 - fdo-mime_desktop_database_update
3648 -}
3649
3650 diff --git a/app-emulation/wine/wine-1.7.17-r1.ebuild b/app-emulation/wine/wine-1.7.17-r1.ebuild
3651 deleted file mode 100644
3652 index 16697c5..0000000
3653 --- a/app-emulation/wine/wine-1.7.17-r1.ebuild
3654 +++ /dev/null
3655 @@ -1,378 +0,0 @@
3656 -# Copyright 1999-2015 Gentoo Foundation
3657 -# Distributed under the terms of the GNU General Public License v2
3658 -# $Id$
3659 -
3660 -EAPI="5"
3661 -
3662 -AUTOTOOLS_AUTORECONF=1
3663 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
3664 -PLOCALE_BACKUP="en"
3665 -
3666 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
3667 -
3668 -if [[ ${PV} == "9999" ]] ; then
3669 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
3670 - EGIT_BRANCH="master"
3671 - inherit git-r3
3672 - SRC_URI=""
3673 - #KEYWORDS=""
3674 -else
3675 - MY_P="${PN}-${PV/_/-}"
3676 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
3677 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
3678 - S=${WORKDIR}/${MY_P}
3679 -fi
3680 -
3681 -GV="2.24"
3682 -MV="4.5.2"
3683 -PULSE_PATCHES="winepulse-patches-1.7.12"
3684 -WINE_GENTOO="wine-gentoo-2015.03.07"
3685 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
3686 -HOMEPAGE="http://www.winehq.org/"
3687 -SRC_URI="${SRC_URI}
3688 - gecko? (
3689 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
3690 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
3691 - )
3692 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
3693 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
3694 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
3695 -
3696 -LICENSE="LGPL-2.1"
3697 -SLOT="0"
3698 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
3699 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
3700 - test? ( abi_x86_32 )
3701 - elibc_glibc? ( threads )
3702 - mono? ( abi_x86_32 )
3703 - osmesa? ( opengl )" #286560
3704 -
3705 -# FIXME: the test suite is unsuitable for us; many tests require net access
3706 -# or fail due to Xvfb's opengl limitations.
3707 -RESTRICT="test"
3708 -
3709 -COMMON_DEPEND="
3710 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
3711 - capi? ( net-dialup/capi4k-utils )
3712 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
3713 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
3714 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
3715 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
3716 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
3717 - gstreamer? (
3718 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
3719 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
3720 - )
3721 - X? (
3722 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
3723 - x11-libs/libXext[${MULTILIB_USEDEP}]
3724 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
3725 - x11-libs/libXi[${MULTILIB_USEDEP}]
3726 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
3727 - )
3728 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
3729 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
3730 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
3731 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
3732 - opengl? (
3733 - virtual/glu[${MULTILIB_USEDEP}]
3734 - virtual/opengl[${MULTILIB_USEDEP}]
3735 - )
3736 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
3737 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
3738 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
3739 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
3740 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
3741 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
3742 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
3743 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
3744 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
3745 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
3746 - xml? (
3747 - dev-libs/libxml2[${MULTILIB_USEDEP}]
3748 - dev-libs/libxslt[${MULTILIB_USEDEP}]
3749 - )
3750 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
3751 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
3752 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
3753 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
3754 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
3755 - abi_x86_32? (
3756 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
3757 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
3758 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
3759 - !<app-emulation/emul-linux-x86-db-20140508-r3
3760 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
3761 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
3762 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
3763 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
3764 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
3765 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
3766 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
3767 - !<app-emulation/emul-linux-x86-soundlibs-20140508
3768 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
3769 - !<app-emulation/emul-linux-x86-xlibs-20140508
3770 - )"
3771 -
3772 -RDEPEND="${COMMON_DEPEND}
3773 - dos? ( games-emulation/dosbox )
3774 - perl? ( dev-lang/perl dev-perl/XML-Simple )
3775 - samba? ( >=net-fs/samba-3.0.25 )
3776 - selinux? ( sec-policy/selinux-wine )
3777 - udisks? ( sys-fs/udisks:2 )
3778 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
3779 -
3780 -DEPEND="${COMMON_DEPEND}
3781 - X? (
3782 - x11-proto/inputproto
3783 - x11-proto/xextproto
3784 - x11-proto/xf86vidmodeproto
3785 - )
3786 - xinerama? ( x11-proto/xineramaproto )
3787 - prelink? ( sys-devel/prelink )
3788 - >=sys-kernel/linux-headers-2.6
3789 - virtual/pkgconfig
3790 - virtual/yacc
3791 - sys-devel/flex"
3792 -
3793 -# These use a non-standard "Wine" category, which is provided by
3794 -# /etc/xdg/applications-merged/wine.menu
3795 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
3796 -usr/share/applications/wine-notepad.desktop
3797 -usr/share/applications/wine-uninstaller.desktop
3798 -usr/share/applications/wine-winecfg.desktop"
3799 -
3800 -wine_build_environment_check() {
3801 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
3802 -
3803 - # bug #549768
3804 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
3805 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
3806 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
3807 - # Run in subshell to prevent "Aborted" message
3808 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
3809 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
3810 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
3811 - eerror "or use gcc-config to select a different compiler version."
3812 - eerror "See https://bugs.gentoo.org/549768"
3813 - eerror
3814 - return 1
3815 - fi
3816 - fi
3817 -
3818 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
3819 - eerror "You need gcc-4.4+ to build 64-bit wine"
3820 - eerror
3821 - return 1
3822 - fi
3823 -
3824 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
3825 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
3826 - eerror "See https://bugs.gentoo.org/487864 for more details."
3827 - eerror
3828 - return 1
3829 - fi
3830 -}
3831 -
3832 -pkg_pretend() {
3833 - wine_build_environment_check || die
3834 -}
3835 -
3836 -pkg_setup() {
3837 - wine_build_environment_check || die
3838 -}
3839 -
3840 -src_unpack() {
3841 - if [[ ${PV} == "9999" ]] ; then
3842 - git-r3_src_unpack
3843 - else
3844 - unpack ${MY_P}.tar.bz2
3845 - fi
3846 -
3847 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
3848 - unpack "${WINE_GENTOO}.tar.bz2"
3849 -
3850 - l10n_find_plocales_changes "${S}/po" "" ".po"
3851 -}
3852 -
3853 -src_prepare() {
3854 - local md5="$(md5sum server/protocol.def)"
3855 - local PATCHES=(
3856 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
3857 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
3858 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
3859 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
3860 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
3861 - )
3862 - use pulseaudio && PATCHES+=(
3863 - "../${PULSE_PATCHES}"/*.patch #421365
3864 - )
3865 -
3866 - autotools-utils_src_prepare
3867 -
3868 - # Modification of the server protocol requires regenerating the server requests
3869 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
3870 - einfo "server/protocol.def was patched; running tools/make_requests"
3871 - tools/make_requests || die #432348
3872 - fi
3873 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
3874 - if ! use run-exes; then
3875 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
3876 - fi
3877 -
3878 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
3879 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
3880 -
3881 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
3882 -}
3883 -
3884 -src_configure() {
3885 - export LDCONFIG=/bin/true
3886 - use custom-cflags || strip-flags
3887 -
3888 - multilib-minimal_src_configure
3889 -}
3890 -
3891 -multilib_src_configure() {
3892 - local myconf=(
3893 - --sysconfdir=/etc/wine
3894 - $(use_with alsa)
3895 - $(use_with capi)
3896 - $(use_with lcms cms)
3897 - $(use_with cups)
3898 - $(use_with ncurses curses)
3899 - $(use_with udisks dbus)
3900 - $(use_with fontconfig)
3901 - $(use_with ssl gnutls)
3902 - $(use_enable gecko mshtml)
3903 - $(use_with gphoto2 gphoto)
3904 - $(use_with gsm)
3905 - $(use_with gstreamer)
3906 - --without-hal
3907 - $(use_with jpeg)
3908 - $(use_with ldap)
3909 - $(use_enable mono mscoree)
3910 - $(use_with mp3 mpg123)
3911 - $(use_with netapi)
3912 - $(use_with nls gettext)
3913 - $(use_with openal)
3914 - $(use_with opencl)
3915 - $(use_with opengl)
3916 - $(use_with osmesa)
3917 - $(use_with oss)
3918 - $(use_with png)
3919 - $(use_with threads pthread)
3920 - $(use_with scanner sane)
3921 - $(use_enable test tests)
3922 - $(use_with truetype freetype)
3923 - $(use_with v4l)
3924 - $(use_with X x)
3925 - $(use_with xcomposite)
3926 - $(use_with xinerama)
3927 - $(use_with xml)
3928 - $(use_with xml xslt)
3929 - )
3930 -
3931 - use pulseaudio && myconf+=( --with-pulse )
3932 -
3933 - local PKG_CONFIG AR RANLIB
3934 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
3935 - # set AR and RANLIB to make QA scripts happy; #483342
3936 - tc-export PKG_CONFIG AR RANLIB
3937 -
3938 - if use amd64; then
3939 - if [[ ${ABI} == amd64 ]]; then
3940 - myconf+=( --enable-win64 )
3941 - else
3942 - myconf+=( --disable-win64 )
3943 - fi
3944 -
3945 - # Note: using --with-wine64 results in problems with multilib.eclass
3946 - # CC/LD hackery. We're using separate tools instead.
3947 - fi
3948 -
3949 - ECONF_SOURCE=${S} \
3950 - econf "${myconf[@]}"
3951 - emake depend
3952 -}
3953 -
3954 -multilib_src_test() {
3955 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
3956 - if [[ ${ABI} == x86 ]]; then
3957 - if [[ $(id -u) == 0 ]]; then
3958 - ewarn "Skipping tests since they cannot be run under the root user."
3959 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
3960 - return
3961 - fi
3962 -
3963 - WINEPREFIX="${T}/.wine-${ABI}" \
3964 - Xemake test
3965 - fi
3966 -}
3967 -
3968 -multilib_src_install_all() {
3969 - local DOCS=( ANNOUNCE AUTHORS README )
3970 - local l
3971 - add_locale_docs() {
3972 - local locale_doc="documentation/README.$1"
3973 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
3974 - }
3975 - l10n_for_each_locale_do add_locale_docs
3976 -
3977 - einstalldocs
3978 - prune_libtool_files --all
3979 -
3980 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
3981 - if use gecko ; then
3982 - insinto /usr/share/wine/gecko
3983 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
3984 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
3985 - fi
3986 - if use mono ; then
3987 - insinto /usr/share/wine/mono
3988 - doins "${DISTDIR}"/wine-mono-${MV}.msi
3989 - fi
3990 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
3991 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
3992 - fi
3993 -
3994 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
3995 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
3996 -
3997 - if use abi_x86_64 && ! use abi_x86_32; then
3998 - dosym /usr/bin/wine{64,} # 404331
3999 - dosym /usr/bin/wine{64,}-preloader
4000 - fi
4001 -
4002 - # respect LINGUAS when installing man pages, #469418
4003 - for l in de fr pl; do
4004 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
4005 - done
4006 -}
4007 -
4008 -pkg_preinst() {
4009 - gnome2_icon_savelist
4010 -}
4011 -
4012 -pkg_postinst() {
4013 - gnome2_icon_cache_update
4014 - fdo-mime_desktop_database_update
4015 -
4016 - if ! use gecko; then
4017 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
4018 - ewarn "implementation of iexplore. Many older windows applications"
4019 - ewarn "rely upon the existence of an iexplore implementation, so"
4020 - ewarn "you will likely need to install an external one, like via winetricks"
4021 - fi
4022 - if ! use mono; then
4023 - ewarn "Without Wine Mono, wine prefixes will not have a default"
4024 - ewarn "implementation of .NET. Many windows applications rely upon"
4025 - ewarn "the existence of a .NET implementation, so you will likely need"
4026 - ewarn "to install an external one, like via winetricks"
4027 - fi
4028 -}
4029 -
4030 -pkg_postrm() {
4031 - gnome2_icon_cache_update
4032 - fdo-mime_desktop_database_update
4033 -}
4034
4035 diff --git a/app-emulation/wine/wine-1.7.18-r1.ebuild b/app-emulation/wine/wine-1.7.18-r1.ebuild
4036 deleted file mode 100644
4037 index 16697c5..0000000
4038 --- a/app-emulation/wine/wine-1.7.18-r1.ebuild
4039 +++ /dev/null
4040 @@ -1,378 +0,0 @@
4041 -# Copyright 1999-2015 Gentoo Foundation
4042 -# Distributed under the terms of the GNU General Public License v2
4043 -# $Id$
4044 -
4045 -EAPI="5"
4046 -
4047 -AUTOTOOLS_AUTORECONF=1
4048 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
4049 -PLOCALE_BACKUP="en"
4050 -
4051 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
4052 -
4053 -if [[ ${PV} == "9999" ]] ; then
4054 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
4055 - EGIT_BRANCH="master"
4056 - inherit git-r3
4057 - SRC_URI=""
4058 - #KEYWORDS=""
4059 -else
4060 - MY_P="${PN}-${PV/_/-}"
4061 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
4062 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
4063 - S=${WORKDIR}/${MY_P}
4064 -fi
4065 -
4066 -GV="2.24"
4067 -MV="4.5.2"
4068 -PULSE_PATCHES="winepulse-patches-1.7.12"
4069 -WINE_GENTOO="wine-gentoo-2015.03.07"
4070 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
4071 -HOMEPAGE="http://www.winehq.org/"
4072 -SRC_URI="${SRC_URI}
4073 - gecko? (
4074 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
4075 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
4076 - )
4077 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
4078 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
4079 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
4080 -
4081 -LICENSE="LGPL-2.1"
4082 -SLOT="0"
4083 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
4084 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
4085 - test? ( abi_x86_32 )
4086 - elibc_glibc? ( threads )
4087 - mono? ( abi_x86_32 )
4088 - osmesa? ( opengl )" #286560
4089 -
4090 -# FIXME: the test suite is unsuitable for us; many tests require net access
4091 -# or fail due to Xvfb's opengl limitations.
4092 -RESTRICT="test"
4093 -
4094 -COMMON_DEPEND="
4095 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
4096 - capi? ( net-dialup/capi4k-utils )
4097 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
4098 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
4099 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
4100 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
4101 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
4102 - gstreamer? (
4103 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
4104 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
4105 - )
4106 - X? (
4107 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
4108 - x11-libs/libXext[${MULTILIB_USEDEP}]
4109 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
4110 - x11-libs/libXi[${MULTILIB_USEDEP}]
4111 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
4112 - )
4113 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
4114 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
4115 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
4116 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
4117 - opengl? (
4118 - virtual/glu[${MULTILIB_USEDEP}]
4119 - virtual/opengl[${MULTILIB_USEDEP}]
4120 - )
4121 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
4122 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
4123 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
4124 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
4125 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
4126 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
4127 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
4128 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
4129 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
4130 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
4131 - xml? (
4132 - dev-libs/libxml2[${MULTILIB_USEDEP}]
4133 - dev-libs/libxslt[${MULTILIB_USEDEP}]
4134 - )
4135 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
4136 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
4137 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
4138 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
4139 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
4140 - abi_x86_32? (
4141 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
4142 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
4143 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
4144 - !<app-emulation/emul-linux-x86-db-20140508-r3
4145 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
4146 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
4147 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
4148 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
4149 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
4150 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
4151 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
4152 - !<app-emulation/emul-linux-x86-soundlibs-20140508
4153 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
4154 - !<app-emulation/emul-linux-x86-xlibs-20140508
4155 - )"
4156 -
4157 -RDEPEND="${COMMON_DEPEND}
4158 - dos? ( games-emulation/dosbox )
4159 - perl? ( dev-lang/perl dev-perl/XML-Simple )
4160 - samba? ( >=net-fs/samba-3.0.25 )
4161 - selinux? ( sec-policy/selinux-wine )
4162 - udisks? ( sys-fs/udisks:2 )
4163 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
4164 -
4165 -DEPEND="${COMMON_DEPEND}
4166 - X? (
4167 - x11-proto/inputproto
4168 - x11-proto/xextproto
4169 - x11-proto/xf86vidmodeproto
4170 - )
4171 - xinerama? ( x11-proto/xineramaproto )
4172 - prelink? ( sys-devel/prelink )
4173 - >=sys-kernel/linux-headers-2.6
4174 - virtual/pkgconfig
4175 - virtual/yacc
4176 - sys-devel/flex"
4177 -
4178 -# These use a non-standard "Wine" category, which is provided by
4179 -# /etc/xdg/applications-merged/wine.menu
4180 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
4181 -usr/share/applications/wine-notepad.desktop
4182 -usr/share/applications/wine-uninstaller.desktop
4183 -usr/share/applications/wine-winecfg.desktop"
4184 -
4185 -wine_build_environment_check() {
4186 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
4187 -
4188 - # bug #549768
4189 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
4190 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
4191 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
4192 - # Run in subshell to prevent "Aborted" message
4193 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
4194 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
4195 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
4196 - eerror "or use gcc-config to select a different compiler version."
4197 - eerror "See https://bugs.gentoo.org/549768"
4198 - eerror
4199 - return 1
4200 - fi
4201 - fi
4202 -
4203 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
4204 - eerror "You need gcc-4.4+ to build 64-bit wine"
4205 - eerror
4206 - return 1
4207 - fi
4208 -
4209 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
4210 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
4211 - eerror "See https://bugs.gentoo.org/487864 for more details."
4212 - eerror
4213 - return 1
4214 - fi
4215 -}
4216 -
4217 -pkg_pretend() {
4218 - wine_build_environment_check || die
4219 -}
4220 -
4221 -pkg_setup() {
4222 - wine_build_environment_check || die
4223 -}
4224 -
4225 -src_unpack() {
4226 - if [[ ${PV} == "9999" ]] ; then
4227 - git-r3_src_unpack
4228 - else
4229 - unpack ${MY_P}.tar.bz2
4230 - fi
4231 -
4232 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
4233 - unpack "${WINE_GENTOO}.tar.bz2"
4234 -
4235 - l10n_find_plocales_changes "${S}/po" "" ".po"
4236 -}
4237 -
4238 -src_prepare() {
4239 - local md5="$(md5sum server/protocol.def)"
4240 - local PATCHES=(
4241 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
4242 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
4243 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
4244 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
4245 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
4246 - )
4247 - use pulseaudio && PATCHES+=(
4248 - "../${PULSE_PATCHES}"/*.patch #421365
4249 - )
4250 -
4251 - autotools-utils_src_prepare
4252 -
4253 - # Modification of the server protocol requires regenerating the server requests
4254 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
4255 - einfo "server/protocol.def was patched; running tools/make_requests"
4256 - tools/make_requests || die #432348
4257 - fi
4258 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
4259 - if ! use run-exes; then
4260 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
4261 - fi
4262 -
4263 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
4264 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
4265 -
4266 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
4267 -}
4268 -
4269 -src_configure() {
4270 - export LDCONFIG=/bin/true
4271 - use custom-cflags || strip-flags
4272 -
4273 - multilib-minimal_src_configure
4274 -}
4275 -
4276 -multilib_src_configure() {
4277 - local myconf=(
4278 - --sysconfdir=/etc/wine
4279 - $(use_with alsa)
4280 - $(use_with capi)
4281 - $(use_with lcms cms)
4282 - $(use_with cups)
4283 - $(use_with ncurses curses)
4284 - $(use_with udisks dbus)
4285 - $(use_with fontconfig)
4286 - $(use_with ssl gnutls)
4287 - $(use_enable gecko mshtml)
4288 - $(use_with gphoto2 gphoto)
4289 - $(use_with gsm)
4290 - $(use_with gstreamer)
4291 - --without-hal
4292 - $(use_with jpeg)
4293 - $(use_with ldap)
4294 - $(use_enable mono mscoree)
4295 - $(use_with mp3 mpg123)
4296 - $(use_with netapi)
4297 - $(use_with nls gettext)
4298 - $(use_with openal)
4299 - $(use_with opencl)
4300 - $(use_with opengl)
4301 - $(use_with osmesa)
4302 - $(use_with oss)
4303 - $(use_with png)
4304 - $(use_with threads pthread)
4305 - $(use_with scanner sane)
4306 - $(use_enable test tests)
4307 - $(use_with truetype freetype)
4308 - $(use_with v4l)
4309 - $(use_with X x)
4310 - $(use_with xcomposite)
4311 - $(use_with xinerama)
4312 - $(use_with xml)
4313 - $(use_with xml xslt)
4314 - )
4315 -
4316 - use pulseaudio && myconf+=( --with-pulse )
4317 -
4318 - local PKG_CONFIG AR RANLIB
4319 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
4320 - # set AR and RANLIB to make QA scripts happy; #483342
4321 - tc-export PKG_CONFIG AR RANLIB
4322 -
4323 - if use amd64; then
4324 - if [[ ${ABI} == amd64 ]]; then
4325 - myconf+=( --enable-win64 )
4326 - else
4327 - myconf+=( --disable-win64 )
4328 - fi
4329 -
4330 - # Note: using --with-wine64 results in problems with multilib.eclass
4331 - # CC/LD hackery. We're using separate tools instead.
4332 - fi
4333 -
4334 - ECONF_SOURCE=${S} \
4335 - econf "${myconf[@]}"
4336 - emake depend
4337 -}
4338 -
4339 -multilib_src_test() {
4340 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
4341 - if [[ ${ABI} == x86 ]]; then
4342 - if [[ $(id -u) == 0 ]]; then
4343 - ewarn "Skipping tests since they cannot be run under the root user."
4344 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
4345 - return
4346 - fi
4347 -
4348 - WINEPREFIX="${T}/.wine-${ABI}" \
4349 - Xemake test
4350 - fi
4351 -}
4352 -
4353 -multilib_src_install_all() {
4354 - local DOCS=( ANNOUNCE AUTHORS README )
4355 - local l
4356 - add_locale_docs() {
4357 - local locale_doc="documentation/README.$1"
4358 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
4359 - }
4360 - l10n_for_each_locale_do add_locale_docs
4361 -
4362 - einstalldocs
4363 - prune_libtool_files --all
4364 -
4365 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
4366 - if use gecko ; then
4367 - insinto /usr/share/wine/gecko
4368 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
4369 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
4370 - fi
4371 - if use mono ; then
4372 - insinto /usr/share/wine/mono
4373 - doins "${DISTDIR}"/wine-mono-${MV}.msi
4374 - fi
4375 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
4376 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
4377 - fi
4378 -
4379 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
4380 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
4381 -
4382 - if use abi_x86_64 && ! use abi_x86_32; then
4383 - dosym /usr/bin/wine{64,} # 404331
4384 - dosym /usr/bin/wine{64,}-preloader
4385 - fi
4386 -
4387 - # respect LINGUAS when installing man pages, #469418
4388 - for l in de fr pl; do
4389 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
4390 - done
4391 -}
4392 -
4393 -pkg_preinst() {
4394 - gnome2_icon_savelist
4395 -}
4396 -
4397 -pkg_postinst() {
4398 - gnome2_icon_cache_update
4399 - fdo-mime_desktop_database_update
4400 -
4401 - if ! use gecko; then
4402 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
4403 - ewarn "implementation of iexplore. Many older windows applications"
4404 - ewarn "rely upon the existence of an iexplore implementation, so"
4405 - ewarn "you will likely need to install an external one, like via winetricks"
4406 - fi
4407 - if ! use mono; then
4408 - ewarn "Without Wine Mono, wine prefixes will not have a default"
4409 - ewarn "implementation of .NET. Many windows applications rely upon"
4410 - ewarn "the existence of a .NET implementation, so you will likely need"
4411 - ewarn "to install an external one, like via winetricks"
4412 - fi
4413 -}
4414 -
4415 -pkg_postrm() {
4416 - gnome2_icon_cache_update
4417 - fdo-mime_desktop_database_update
4418 -}
4419
4420 diff --git a/app-emulation/wine/wine-1.7.19-r2.ebuild b/app-emulation/wine/wine-1.7.19-r2.ebuild
4421 deleted file mode 100644
4422 index 90fb710..0000000
4423 --- a/app-emulation/wine/wine-1.7.19-r2.ebuild
4424 +++ /dev/null
4425 @@ -1,423 +0,0 @@
4426 -# Copyright 1999-2015 Gentoo Foundation
4427 -# Distributed under the terms of the GNU General Public License v2
4428 -# $Id$
4429 -
4430 -EAPI="5"
4431 -
4432 -AUTOTOOLS_AUTORECONF=1
4433 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
4434 -PLOCALE_BACKUP="en"
4435 -
4436 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
4437 -
4438 -if [[ ${PV} == "9999" ]] ; then
4439 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
4440 - EGIT_BRANCH="master"
4441 - inherit git-r3
4442 - SRC_URI=""
4443 - #KEYWORDS=""
4444 -else
4445 - MY_P="${PN}-${PV/_/-}"
4446 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
4447 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
4448 - S=${WORKDIR}/${MY_P}
4449 -fi
4450 -
4451 -GV="2.24"
4452 -MV="4.5.2"
4453 -STAGING_P="wine-staging-1.7.18-1"
4454 -STAGING_DIR="${WORKDIR}/wine-staging-1.7.19"
4455 -WINE_GENTOO="wine-gentoo-2015.03.07"
4456 -PULSE_PATCHES="winepulse-patches-1.7.12"
4457 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
4458 -HOMEPAGE="http://www.winehq.org/"
4459 -SRC_URI="${SRC_URI}
4460 - gecko? (
4461 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
4462 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
4463 - )
4464 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
4465 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
4466 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
4467 -
4468 -if [[ ${PV} == "9999" ]] ; then
4469 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
4470 -else
4471 - SRC_URI="${SRC_URI}
4472 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
4473 -fi
4474 -
4475 -LICENSE="LGPL-2.1"
4476 -SLOT="0"
4477 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
4478 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
4479 - test? ( abi_x86_32 )
4480 - elibc_glibc? ( threads )
4481 - mono? ( abi_x86_32 )
4482 - pipelight? ( staging )
4483 - osmesa? ( opengl )" #286560
4484 -
4485 -# FIXME: the test suite is unsuitable for us; many tests require net access
4486 -# or fail due to Xvfb's opengl limitations.
4487 -RESTRICT="test"
4488 -
4489 -COMMON_DEPEND="
4490 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
4491 - capi? ( net-dialup/capi4k-utils )
4492 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
4493 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
4494 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
4495 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
4496 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
4497 - gstreamer? (
4498 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
4499 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
4500 - )
4501 - X? (
4502 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
4503 - x11-libs/libXext[${MULTILIB_USEDEP}]
4504 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
4505 - x11-libs/libXi[${MULTILIB_USEDEP}]
4506 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
4507 - )
4508 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
4509 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
4510 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
4511 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
4512 - opengl? (
4513 - virtual/glu[${MULTILIB_USEDEP}]
4514 - virtual/opengl[${MULTILIB_USEDEP}]
4515 - )
4516 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
4517 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
4518 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
4519 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
4520 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
4521 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
4522 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
4523 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
4524 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
4525 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
4526 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
4527 - xml? (
4528 - dev-libs/libxml2[${MULTILIB_USEDEP}]
4529 - dev-libs/libxslt[${MULTILIB_USEDEP}]
4530 - )
4531 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
4532 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
4533 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
4534 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
4535 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
4536 - abi_x86_32? (
4537 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
4538 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
4539 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
4540 - !<app-emulation/emul-linux-x86-db-20140508-r3
4541 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
4542 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
4543 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
4544 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
4545 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
4546 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
4547 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
4548 - !<app-emulation/emul-linux-x86-soundlibs-20140508
4549 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
4550 - !<app-emulation/emul-linux-x86-xlibs-20140508
4551 - )"
4552 -
4553 -RDEPEND="${COMMON_DEPEND}
4554 - dos? ( games-emulation/dosbox )
4555 - perl? ( dev-lang/perl dev-perl/XML-Simple )
4556 - samba? ( >=net-fs/samba-3.0.25 )
4557 - selinux? ( sec-policy/selinux-wine )
4558 - udisks? ( sys-fs/udisks:2 )
4559 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
4560 -
4561 -# tools/make_requests requires perl
4562 -DEPEND="${COMMON_DEPEND}
4563 - staging? ( dev-lang/perl dev-perl/XML-Simple )
4564 - X? (
4565 - x11-proto/inputproto
4566 - x11-proto/xextproto
4567 - x11-proto/xf86vidmodeproto
4568 - )
4569 - xinerama? ( x11-proto/xineramaproto )
4570 - prelink? ( sys-devel/prelink )
4571 - >=sys-kernel/linux-headers-2.6
4572 - virtual/pkgconfig
4573 - virtual/yacc
4574 - sys-devel/flex"
4575 -
4576 -# These use a non-standard "Wine" category, which is provided by
4577 -# /etc/xdg/applications-merged/wine.menu
4578 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
4579 -usr/share/applications/wine-notepad.desktop
4580 -usr/share/applications/wine-uninstaller.desktop
4581 -usr/share/applications/wine-winecfg.desktop"
4582 -
4583 -wine_build_environment_check() {
4584 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
4585 -
4586 - # bug #549768
4587 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
4588 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
4589 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
4590 - # Run in subshell to prevent "Aborted" message
4591 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
4592 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
4593 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
4594 - eerror "or use gcc-config to select a different compiler version."
4595 - eerror "See https://bugs.gentoo.org/549768"
4596 - eerror
4597 - return 1
4598 - fi
4599 - fi
4600 -
4601 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
4602 - eerror "You need gcc-4.4+ to build 64-bit wine"
4603 - eerror
4604 - return 1
4605 - fi
4606 -
4607 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
4608 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
4609 - eerror "See https://bugs.gentoo.org/487864 for more details."
4610 - eerror
4611 - return 1
4612 - fi
4613 -}
4614 -
4615 -pkg_pretend() {
4616 - wine_build_environment_check || die
4617 -}
4618 -
4619 -pkg_setup() {
4620 - wine_build_environment_check || die
4621 -}
4622 -
4623 -src_unpack() {
4624 - if [[ ${PV} == "9999" ]] ; then
4625 - git-r3_src_unpack
4626 - if use staging; then
4627 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
4628 - unset ${PN}_LIVE_REPO;
4629 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
4630 - fi
4631 - else
4632 - unpack ${MY_P}.tar.bz2
4633 - use staging && unpack "${STAGING_P}.tar.gz"
4634 - fi
4635 -
4636 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
4637 - if use staging; then
4638 - # we use a separate pulseaudio patchset
4639 - rm -r "${STAGING_DIR}/patches/06-winepulse" || die
4640 - # ... and need special tools for binary patches
4641 - mv "${STAGING_DIR}/patches/10-Missing_Fonts" "${T}" || die
4642 - if ! use pipelight; then
4643 - rm -r "${STAGING_DIR}/patches/97-Pipelight" || die
4644 - fi
4645 - fi
4646 - unpack "${WINE_GENTOO}.tar.bz2"
4647 -
4648 - l10n_find_plocales_changes "${S}/po" "" ".po"
4649 -}
4650 -
4651 -src_prepare() {
4652 - local md5="$(md5sum server/protocol.def)"
4653 - local f
4654 - local PATCHES=(
4655 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
4656 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
4657 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
4658 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
4659 - )
4660 - use pulseaudio && PATCHES+=(
4661 - "../${PULSE_PATCHES}"/*.patch #421365
4662 - )
4663 - if use staging; then
4664 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
4665 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
4666 - ewarn "unless you can reproduce them with USE=-staging"
4667 -
4668 - PATCHES+=(
4669 - "${FILESDIR}/wine-1.7.19-makefile-race-cond.patch"
4670 - "${STAGING_DIR}/patches"/*/*.patch #507950
4671 - "${STAGING_DIR}/patches/patch-list.patch"
4672 - )
4673 - # epatch doesn't support binary patches
4674 - ebegin "Applying Staging font patches"
4675 - for f in "${T}/10-Missing_Fonts"/*.patch; do
4676 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches"
4677 - done
4678 - eend
4679 - fi
4680 - autotools-utils_src_prepare
4681 -
4682 - # Modification of the server protocol requires regenerating the server requests
4683 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
4684 - einfo "server/protocol.def was patched; running tools/make_requests"
4685 - tools/make_requests || die #432348
4686 - fi
4687 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
4688 - if ! use run-exes; then
4689 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
4690 - fi
4691 -
4692 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
4693 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
4694 -
4695 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
4696 -}
4697 -
4698 -src_configure() {
4699 - export LDCONFIG=/bin/true
4700 - use custom-cflags || strip-flags
4701 -
4702 - multilib-minimal_src_configure
4703 -}
4704 -
4705 -multilib_src_configure() {
4706 - local myconf=(
4707 - --sysconfdir=/etc/wine
4708 - $(use_with alsa)
4709 - $(use_with capi)
4710 - $(use_with lcms cms)
4711 - $(use_with cups)
4712 - $(use_with ncurses curses)
4713 - $(use_with udisks dbus)
4714 - $(use_with fontconfig)
4715 - $(use_with ssl gnutls)
4716 - $(use_enable gecko mshtml)
4717 - $(use_with gphoto2 gphoto)
4718 - $(use_with gsm)
4719 - $(use_with gstreamer)
4720 - --without-hal
4721 - $(use_with jpeg)
4722 - $(use_with ldap)
4723 - $(use_enable mono mscoree)
4724 - $(use_with mp3 mpg123)
4725 - $(use_with netapi)
4726 - $(use_with nls gettext)
4727 - $(use_with openal)
4728 - $(use_with opencl)
4729 - $(use_with opengl)
4730 - $(use_with osmesa)
4731 - $(use_with oss)
4732 - $(use_with png)
4733 - $(use_with threads pthread)
4734 - $(use_with scanner sane)
4735 - $(use_enable test tests)
4736 - $(use_with truetype freetype)
4737 - $(use_with v4l)
4738 - $(use_with X x)
4739 - $(use_with xcomposite)
4740 - $(use_with xinerama)
4741 - $(use_with xml)
4742 - $(use_with xml xslt)
4743 - )
4744 -
4745 - use pulseaudio && myconf+=( --with-pulse )
4746 - use staging && myconf+=( --with-xattr )
4747 -
4748 - local PKG_CONFIG AR RANLIB
4749 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
4750 - # set AR and RANLIB to make QA scripts happy; #483342
4751 - tc-export PKG_CONFIG AR RANLIB
4752 -
4753 - if use amd64; then
4754 - if [[ ${ABI} == amd64 ]]; then
4755 - myconf+=( --enable-win64 )
4756 - else
4757 - myconf+=( --disable-win64 )
4758 - fi
4759 -
4760 - # Note: using --with-wine64 results in problems with multilib.eclass
4761 - # CC/LD hackery. We're using separate tools instead.
4762 - fi
4763 -
4764 - ECONF_SOURCE=${S} \
4765 - econf "${myconf[@]}"
4766 - emake depend
4767 -}
4768 -
4769 -multilib_src_test() {
4770 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
4771 - if [[ ${ABI} == x86 ]]; then
4772 - if [[ $(id -u) == 0 ]]; then
4773 - ewarn "Skipping tests since they cannot be run under the root user."
4774 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
4775 - return
4776 - fi
4777 -
4778 - WINEPREFIX="${T}/.wine-${ABI}" \
4779 - Xemake test
4780 - fi
4781 -}
4782 -
4783 -multilib_src_install_all() {
4784 - local DOCS=( ANNOUNCE AUTHORS README )
4785 - local l
4786 - add_locale_docs() {
4787 - local locale_doc="documentation/README.$1"
4788 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
4789 - }
4790 - l10n_for_each_locale_do add_locale_docs
4791 -
4792 - einstalldocs
4793 - prune_libtool_files --all
4794 -
4795 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
4796 - if use gecko ; then
4797 - insinto /usr/share/wine/gecko
4798 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
4799 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
4800 - fi
4801 - if use mono ; then
4802 - insinto /usr/share/wine/mono
4803 - doins "${DISTDIR}"/wine-mono-${MV}.msi
4804 - fi
4805 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
4806 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
4807 - fi
4808 -
4809 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
4810 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
4811 -
4812 - if use abi_x86_64 && ! use abi_x86_32; then
4813 - dosym /usr/bin/wine{64,} # 404331
4814 - dosym /usr/bin/wine{64,}-preloader
4815 - fi
4816 -
4817 - # respect LINGUAS when installing man pages, #469418
4818 - for l in de fr pl; do
4819 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
4820 - done
4821 -}
4822 -
4823 -pkg_preinst() {
4824 - gnome2_icon_savelist
4825 -}
4826 -
4827 -pkg_postinst() {
4828 - gnome2_icon_cache_update
4829 - fdo-mime_desktop_database_update
4830 -
4831 - if ! use gecko; then
4832 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
4833 - ewarn "implementation of iexplore. Many older windows applications"
4834 - ewarn "rely upon the existence of an iexplore implementation, so"
4835 - ewarn "you will likely need to install an external one, like via winetricks"
4836 - fi
4837 - if ! use mono; then
4838 - ewarn "Without Wine Mono, wine prefixes will not have a default"
4839 - ewarn "implementation of .NET. Many windows applications rely upon"
4840 - ewarn "the existence of a .NET implementation, so you will likely need"
4841 - ewarn "to install an external one, like via winetricks"
4842 - fi
4843 -}
4844 -
4845 -pkg_postrm() {
4846 - gnome2_icon_cache_update
4847 - fdo-mime_desktop_database_update
4848 -}
4849
4850 diff --git a/app-emulation/wine/wine-1.7.20-r1.ebuild b/app-emulation/wine/wine-1.7.20-r1.ebuild
4851 deleted file mode 100644
4852 index 39a57ab..0000000
4853 --- a/app-emulation/wine/wine-1.7.20-r1.ebuild
4854 +++ /dev/null
4855 @@ -1,425 +0,0 @@
4856 -# Copyright 1999-2015 Gentoo Foundation
4857 -# Distributed under the terms of the GNU General Public License v2
4858 -# $Id$
4859 -
4860 -EAPI="5"
4861 -
4862 -AUTOTOOLS_AUTORECONF=1
4863 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
4864 -PLOCALE_BACKUP="en"
4865 -
4866 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
4867 -
4868 -if [[ ${PV} == "9999" ]] ; then
4869 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
4870 - EGIT_BRANCH="master"
4871 - inherit git-r3
4872 - SRC_URI=""
4873 - #KEYWORDS=""
4874 -else
4875 - MY_P="${PN}-${PV/_/-}"
4876 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
4877 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
4878 - S=${WORKDIR}/${MY_P}
4879 -fi
4880 -
4881 -GV="2.24"
4882 -MV="4.5.2"
4883 -STAGING_P="wine-staging-${PV}"
4884 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
4885 -WINE_GENTOO="wine-gentoo-2015.03.07"
4886 -PULSE_PATCHES="winepulse-patches-1.7.20"
4887 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
4888 -HOMEPAGE="http://www.winehq.org/"
4889 -SRC_URI="${SRC_URI}
4890 - gecko? (
4891 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
4892 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
4893 - )
4894 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
4895 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
4896 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
4897 -
4898 -if [[ ${PV} == "9999" ]] ; then
4899 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
4900 -else
4901 - SRC_URI="${SRC_URI}
4902 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
4903 -fi
4904 -
4905 -LICENSE="LGPL-2.1"
4906 -SLOT="0"
4907 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
4908 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
4909 - test? ( abi_x86_32 )
4910 - elibc_glibc? ( threads )
4911 - gstreamer? ( pulseaudio )
4912 - mono? ( abi_x86_32 )
4913 - pipelight? ( staging )
4914 - osmesa? ( opengl )" #286560
4915 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557
4916 -
4917 -# FIXME: the test suite is unsuitable for us; many tests require net access
4918 -# or fail due to Xvfb's opengl limitations.
4919 -RESTRICT="test"
4920 -
4921 -COMMON_DEPEND="
4922 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
4923 - capi? ( net-dialup/capi4k-utils )
4924 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
4925 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
4926 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
4927 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
4928 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
4929 - gstreamer? (
4930 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
4931 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
4932 - )
4933 - X? (
4934 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
4935 - x11-libs/libXext[${MULTILIB_USEDEP}]
4936 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
4937 - x11-libs/libXi[${MULTILIB_USEDEP}]
4938 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
4939 - )
4940 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
4941 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
4942 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
4943 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
4944 - opengl? (
4945 - virtual/glu[${MULTILIB_USEDEP}]
4946 - virtual/opengl[${MULTILIB_USEDEP}]
4947 - )
4948 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
4949 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
4950 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
4951 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
4952 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
4953 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
4954 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
4955 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
4956 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
4957 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
4958 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
4959 - xml? (
4960 - dev-libs/libxml2[${MULTILIB_USEDEP}]
4961 - dev-libs/libxslt[${MULTILIB_USEDEP}]
4962 - )
4963 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
4964 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
4965 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
4966 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
4967 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
4968 - abi_x86_32? (
4969 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
4970 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
4971 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
4972 - !<app-emulation/emul-linux-x86-db-20140508-r3
4973 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
4974 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
4975 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
4976 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
4977 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
4978 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
4979 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
4980 - !<app-emulation/emul-linux-x86-soundlibs-20140508
4981 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
4982 - !<app-emulation/emul-linux-x86-xlibs-20140508
4983 - )"
4984 -
4985 -RDEPEND="${COMMON_DEPEND}
4986 - dos? ( games-emulation/dosbox )
4987 - perl? ( dev-lang/perl dev-perl/XML-Simple )
4988 - samba? ( >=net-fs/samba-3.0.25 )
4989 - selinux? ( sec-policy/selinux-wine )
4990 - udisks? ( sys-fs/udisks:2 )
4991 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
4992 -
4993 -# tools/make_requests requires perl
4994 -DEPEND="${COMMON_DEPEND}
4995 - staging? ( dev-lang/perl dev-perl/XML-Simple )
4996 - X? (
4997 - x11-proto/inputproto
4998 - x11-proto/xextproto
4999 - x11-proto/xf86vidmodeproto
5000 - )
5001 - xinerama? ( x11-proto/xineramaproto )
5002 - prelink? ( sys-devel/prelink )
5003 - >=sys-kernel/linux-headers-2.6
5004 - virtual/pkgconfig
5005 - virtual/yacc
5006 - sys-devel/flex"
5007 -
5008 -# These use a non-standard "Wine" category, which is provided by
5009 -# /etc/xdg/applications-merged/wine.menu
5010 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
5011 -usr/share/applications/wine-notepad.desktop
5012 -usr/share/applications/wine-uninstaller.desktop
5013 -usr/share/applications/wine-winecfg.desktop"
5014 -
5015 -wine_build_environment_check() {
5016 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
5017 -
5018 - # bug #549768
5019 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
5020 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
5021 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
5022 - # Run in subshell to prevent "Aborted" message
5023 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
5024 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
5025 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
5026 - eerror "or use gcc-config to select a different compiler version."
5027 - eerror "See https://bugs.gentoo.org/549768"
5028 - eerror
5029 - return 1
5030 - fi
5031 - fi
5032 -
5033 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
5034 - eerror "You need gcc-4.4+ to build 64-bit wine"
5035 - eerror
5036 - return 1
5037 - fi
5038 -
5039 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
5040 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
5041 - eerror "See https://bugs.gentoo.org/487864 for more details."
5042 - eerror
5043 - return 1
5044 - fi
5045 -}
5046 -
5047 -pkg_pretend() {
5048 - wine_build_environment_check || die
5049 -}
5050 -
5051 -pkg_setup() {
5052 - wine_build_environment_check || die
5053 -}
5054 -
5055 -src_unpack() {
5056 - if [[ ${PV} == "9999" ]] ; then
5057 - git-r3_src_unpack
5058 - if use staging; then
5059 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
5060 - unset ${PN}_LIVE_REPO;
5061 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
5062 - fi
5063 - else
5064 - unpack ${MY_P}.tar.bz2
5065 - use staging && unpack "${STAGING_P}.tar.gz"
5066 - fi
5067 -
5068 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
5069 - if use staging; then
5070 - # we use a separate pulseaudio patchset
5071 - rm -r "${STAGING_DIR}/patches/06-winepulse" || die
5072 - # ... and need special tools for binary patches
5073 - mv "${STAGING_DIR}/patches/10-Missing_Fonts" "${T}" || die
5074 - if ! use pipelight; then
5075 - rm -r "${STAGING_DIR}/patches/97-Pipelight" || die
5076 - fi
5077 - fi
5078 - unpack "${WINE_GENTOO}.tar.bz2"
5079 -
5080 - l10n_find_plocales_changes "${S}/po" "" ".po"
5081 -}
5082 -
5083 -src_prepare() {
5084 - local md5="$(md5sum server/protocol.def)"
5085 - local f
5086 - local PATCHES=(
5087 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
5088 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
5089 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
5090 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
5091 - )
5092 - use pulseaudio && PATCHES+=(
5093 - "../${PULSE_PATCHES}"/*.patch #421365
5094 - )
5095 - if use staging; then
5096 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
5097 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
5098 - ewarn "unless you can reproduce them with USE=-staging"
5099 -
5100 - PATCHES+=(
5101 - "${FILESDIR}/wine-1.7.19-makefile-race-cond.patch"
5102 - "${STAGING_DIR}/patches"/*/*.patch #507950
5103 - "${STAGING_DIR}/patches/patch-list.patch"
5104 - )
5105 - # epatch doesn't support binary patches
5106 - ebegin "Applying Staging font patches"
5107 - for f in "${T}/10-Missing_Fonts"/*.patch; do
5108 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches"
5109 - done
5110 - eend
5111 - fi
5112 - autotools-utils_src_prepare
5113 -
5114 - # Modification of the server protocol requires regenerating the server requests
5115 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
5116 - einfo "server/protocol.def was patched; running tools/make_requests"
5117 - tools/make_requests || die #432348
5118 - fi
5119 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
5120 - if ! use run-exes; then
5121 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
5122 - fi
5123 -
5124 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
5125 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
5126 -
5127 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
5128 -}
5129 -
5130 -src_configure() {
5131 - export LDCONFIG=/bin/true
5132 - use custom-cflags || strip-flags
5133 -
5134 - multilib-minimal_src_configure
5135 -}
5136 -
5137 -multilib_src_configure() {
5138 - local myconf=(
5139 - --sysconfdir=/etc/wine
5140 - $(use_with alsa)
5141 - $(use_with capi)
5142 - $(use_with lcms cms)
5143 - $(use_with cups)
5144 - $(use_with ncurses curses)
5145 - $(use_with udisks dbus)
5146 - $(use_with fontconfig)
5147 - $(use_with ssl gnutls)
5148 - $(use_enable gecko mshtml)
5149 - $(use_with gphoto2 gphoto)
5150 - $(use_with gsm)
5151 - $(use_with gstreamer)
5152 - --without-hal
5153 - $(use_with jpeg)
5154 - $(use_with ldap)
5155 - $(use_enable mono mscoree)
5156 - $(use_with mp3 mpg123)
5157 - $(use_with netapi)
5158 - $(use_with nls gettext)
5159 - $(use_with openal)
5160 - $(use_with opencl)
5161 - $(use_with opengl)
5162 - $(use_with osmesa)
5163 - $(use_with oss)
5164 - $(use_with png)
5165 - $(use_with threads pthread)
5166 - $(use_with scanner sane)
5167 - $(use_enable test tests)
5168 - $(use_with truetype freetype)
5169 - $(use_with v4l)
5170 - $(use_with X x)
5171 - $(use_with xcomposite)
5172 - $(use_with xinerama)
5173 - $(use_with xml)
5174 - $(use_with xml xslt)
5175 - )
5176 -
5177 - use pulseaudio && myconf+=( --with-pulse )
5178 - use staging && myconf+=( --with-xattr )
5179 -
5180 - local PKG_CONFIG AR RANLIB
5181 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
5182 - # set AR and RANLIB to make QA scripts happy; #483342
5183 - tc-export PKG_CONFIG AR RANLIB
5184 -
5185 - if use amd64; then
5186 - if [[ ${ABI} == amd64 ]]; then
5187 - myconf+=( --enable-win64 )
5188 - else
5189 - myconf+=( --disable-win64 )
5190 - fi
5191 -
5192 - # Note: using --with-wine64 results in problems with multilib.eclass
5193 - # CC/LD hackery. We're using separate tools instead.
5194 - fi
5195 -
5196 - ECONF_SOURCE=${S} \
5197 - econf "${myconf[@]}"
5198 - emake depend
5199 -}
5200 -
5201 -multilib_src_test() {
5202 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
5203 - if [[ ${ABI} == x86 ]]; then
5204 - if [[ $(id -u) == 0 ]]; then
5205 - ewarn "Skipping tests since they cannot be run under the root user."
5206 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
5207 - return
5208 - fi
5209 -
5210 - WINEPREFIX="${T}/.wine-${ABI}" \
5211 - Xemake test
5212 - fi
5213 -}
5214 -
5215 -multilib_src_install_all() {
5216 - local DOCS=( ANNOUNCE AUTHORS README )
5217 - local l
5218 - add_locale_docs() {
5219 - local locale_doc="documentation/README.$1"
5220 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
5221 - }
5222 - l10n_for_each_locale_do add_locale_docs
5223 -
5224 - einstalldocs
5225 - prune_libtool_files --all
5226 -
5227 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
5228 - if use gecko ; then
5229 - insinto /usr/share/wine/gecko
5230 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
5231 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
5232 - fi
5233 - if use mono ; then
5234 - insinto /usr/share/wine/mono
5235 - doins "${DISTDIR}"/wine-mono-${MV}.msi
5236 - fi
5237 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
5238 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
5239 - fi
5240 -
5241 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
5242 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
5243 -
5244 - if use abi_x86_64 && ! use abi_x86_32; then
5245 - dosym /usr/bin/wine{64,} # 404331
5246 - dosym /usr/bin/wine{64,}-preloader
5247 - fi
5248 -
5249 - # respect LINGUAS when installing man pages, #469418
5250 - for l in de fr pl; do
5251 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
5252 - done
5253 -}
5254 -
5255 -pkg_preinst() {
5256 - gnome2_icon_savelist
5257 -}
5258 -
5259 -pkg_postinst() {
5260 - gnome2_icon_cache_update
5261 - fdo-mime_desktop_database_update
5262 -
5263 - if ! use gecko; then
5264 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
5265 - ewarn "implementation of iexplore. Many older windows applications"
5266 - ewarn "rely upon the existence of an iexplore implementation, so"
5267 - ewarn "you will likely need to install an external one, like via winetricks"
5268 - fi
5269 - if ! use mono; then
5270 - ewarn "Without Wine Mono, wine prefixes will not have a default"
5271 - ewarn "implementation of .NET. Many windows applications rely upon"
5272 - ewarn "the existence of a .NET implementation, so you will likely need"
5273 - ewarn "to install an external one, like via winetricks"
5274 - fi
5275 -}
5276 -
5277 -pkg_postrm() {
5278 - gnome2_icon_cache_update
5279 - fdo-mime_desktop_database_update
5280 -}
5281
5282 diff --git a/app-emulation/wine/wine-1.7.21-r1.ebuild b/app-emulation/wine/wine-1.7.21-r1.ebuild
5283 deleted file mode 100644
5284 index 3e88454..0000000
5285 --- a/app-emulation/wine/wine-1.7.21-r1.ebuild
5286 +++ /dev/null
5287 @@ -1,432 +0,0 @@
5288 -# Copyright 1999-2015 Gentoo Foundation
5289 -# Distributed under the terms of the GNU General Public License v2
5290 -# $Id$
5291 -
5292 -EAPI="5"
5293 -
5294 -AUTOTOOLS_AUTORECONF=1
5295 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
5296 -PLOCALE_BACKUP="en"
5297 -
5298 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
5299 -
5300 -if [[ ${PV} == "9999" ]] ; then
5301 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
5302 - EGIT_BRANCH="master"
5303 - inherit git-r3
5304 - SRC_URI=""
5305 - #KEYWORDS=""
5306 -else
5307 - MY_P="${PN}-${PV/_/-}"
5308 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
5309 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
5310 - S=${WORKDIR}/${MY_P}
5311 -fi
5312 -
5313 -GV="2.24"
5314 -MV="4.5.2"
5315 -STAGING_P="wine-staging-${PV}"
5316 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
5317 -WINE_GENTOO="wine-gentoo-2015.03.07"
5318 -PULSE_PATCHES="winepulse-patches-1.7.21"
5319 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
5320 -HOMEPAGE="http://www.winehq.org/"
5321 -SRC_URI="${SRC_URI}
5322 - gecko? (
5323 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
5324 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
5325 - )
5326 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
5327 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
5328 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
5329 -
5330 -if [[ ${PV} == "9999" ]] ; then
5331 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
5332 -else
5333 - SRC_URI="${SRC_URI}
5334 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
5335 -fi
5336 -
5337 -LICENSE="LGPL-2.1"
5338 -SLOT="0"
5339 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
5340 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
5341 - test? ( abi_x86_32 )
5342 - elibc_glibc? ( threads )
5343 - gstreamer? ( pulseaudio )
5344 - mono? ( abi_x86_32 )
5345 - pipelight? ( staging )
5346 - osmesa? ( opengl )" #286560
5347 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557
5348 -
5349 -# FIXME: the test suite is unsuitable for us; many tests require net access
5350 -# or fail due to Xvfb's opengl limitations.
5351 -RESTRICT="test"
5352 -
5353 -COMMON_DEPEND="
5354 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
5355 - capi? ( net-dialup/capi4k-utils )
5356 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
5357 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
5358 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
5359 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
5360 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
5361 - gstreamer? (
5362 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
5363 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
5364 - )
5365 - X? (
5366 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
5367 - x11-libs/libXext[${MULTILIB_USEDEP}]
5368 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
5369 - x11-libs/libXi[${MULTILIB_USEDEP}]
5370 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
5371 - )
5372 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
5373 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
5374 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
5375 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
5376 - opengl? (
5377 - virtual/glu[${MULTILIB_USEDEP}]
5378 - virtual/opengl[${MULTILIB_USEDEP}]
5379 - )
5380 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
5381 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
5382 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
5383 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
5384 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
5385 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
5386 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
5387 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
5388 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
5389 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
5390 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
5391 - xml? (
5392 - dev-libs/libxml2[${MULTILIB_USEDEP}]
5393 - dev-libs/libxslt[${MULTILIB_USEDEP}]
5394 - )
5395 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
5396 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
5397 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
5398 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
5399 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
5400 - abi_x86_32? (
5401 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
5402 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
5403 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
5404 - !<app-emulation/emul-linux-x86-db-20140508-r3
5405 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
5406 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
5407 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
5408 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
5409 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
5410 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
5411 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
5412 - !<app-emulation/emul-linux-x86-soundlibs-20140508
5413 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
5414 - !<app-emulation/emul-linux-x86-xlibs-20140508
5415 - )"
5416 -
5417 -RDEPEND="${COMMON_DEPEND}
5418 - dos? ( games-emulation/dosbox )
5419 - perl? ( dev-lang/perl dev-perl/XML-Simple )
5420 - samba? ( >=net-fs/samba-3.0.25 )
5421 - selinux? ( sec-policy/selinux-wine )
5422 - udisks? ( sys-fs/udisks:2 )
5423 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
5424 -
5425 -# tools/make_requests requires perl
5426 -DEPEND="${COMMON_DEPEND}
5427 - staging? ( dev-lang/perl dev-perl/XML-Simple )
5428 - X? (
5429 - x11-proto/inputproto
5430 - x11-proto/xextproto
5431 - x11-proto/xf86vidmodeproto
5432 - )
5433 - xinerama? ( x11-proto/xineramaproto )
5434 - prelink? ( sys-devel/prelink )
5435 - >=sys-kernel/linux-headers-2.6
5436 - virtual/pkgconfig
5437 - virtual/yacc
5438 - sys-devel/flex"
5439 -
5440 -# These use a non-standard "Wine" category, which is provided by
5441 -# /etc/xdg/applications-merged/wine.menu
5442 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
5443 -usr/share/applications/wine-notepad.desktop
5444 -usr/share/applications/wine-uninstaller.desktop
5445 -usr/share/applications/wine-winecfg.desktop"
5446 -
5447 -wine_build_environment_check() {
5448 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
5449 -
5450 - # bug #549768
5451 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
5452 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
5453 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
5454 - # Run in subshell to prevent "Aborted" message
5455 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
5456 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
5457 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
5458 - eerror "or use gcc-config to select a different compiler version."
5459 - eerror "See https://bugs.gentoo.org/549768"
5460 - eerror
5461 - return 1
5462 - fi
5463 - fi
5464 -
5465 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
5466 - eerror "You need gcc-4.4+ to build 64-bit wine"
5467 - eerror
5468 - return 1
5469 - fi
5470 -
5471 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
5472 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
5473 - eerror "See https://bugs.gentoo.org/487864 for more details."
5474 - eerror
5475 - return 1
5476 - fi
5477 -}
5478 -
5479 -pkg_pretend() {
5480 - wine_build_environment_check || die
5481 -}
5482 -
5483 -pkg_setup() {
5484 - wine_build_environment_check || die
5485 -}
5486 -
5487 -src_unpack() {
5488 - if [[ ${PV} == "9999" ]] ; then
5489 - git-r3_src_unpack
5490 - if use staging; then
5491 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
5492 - unset ${PN}_LIVE_REPO;
5493 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
5494 - fi
5495 - else
5496 - unpack ${MY_P}.tar.bz2
5497 - use staging && unpack "${STAGING_P}.tar.gz"
5498 - fi
5499 -
5500 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
5501 - if use staging; then
5502 - # we use a separate pulseaudio patchset
5503 - rm -r "${STAGING_DIR}/patches/06-winepulse" || die
5504 - # ... and need special tools for binary patches
5505 - mv "${STAGING_DIR}/patches/10-Missing_Fonts" "${T}" || die
5506 - if ! use pipelight; then
5507 - rm -r "${STAGING_DIR}/patches/97-Pipelight" || die
5508 - fi
5509 - fi
5510 - unpack "${WINE_GENTOO}.tar.bz2"
5511 -
5512 - l10n_find_plocales_changes "${S}/po" "" ".po"
5513 -}
5514 -
5515 -src_prepare() {
5516 - local md5="$(md5sum server/protocol.def)"
5517 - local f
5518 - local PATCHES=(
5519 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
5520 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
5521 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
5522 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
5523 - )
5524 - use pulseaudio && PATCHES+=(
5525 - "../${PULSE_PATCHES}"/*.patch #421365
5526 - )
5527 - if use gstreamer; then
5528 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
5529 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
5530 - ewarn "this patch has been reported to cause crashes in certain games."
5531 -
5532 - PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch )
5533 - fi
5534 - if use staging; then
5535 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
5536 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
5537 - ewarn "unless you can reproduce them with USE=-staging"
5538 -
5539 - PATCHES+=(
5540 - "${FILESDIR}/wine-1.7.19-makefile-race-cond.patch"
5541 - "${STAGING_DIR}/patches"/*/*.patch #507950
5542 - "${STAGING_DIR}/patches/patch-list.patch"
5543 - )
5544 - # epatch doesn't support binary patches
5545 - ebegin "Applying Staging font patches"
5546 - for f in "${T}/10-Missing_Fonts"/*.patch; do
5547 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches"
5548 - done
5549 - eend
5550 - fi
5551 - autotools-utils_src_prepare
5552 -
5553 - # Modification of the server protocol requires regenerating the server requests
5554 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
5555 - einfo "server/protocol.def was patched; running tools/make_requests"
5556 - tools/make_requests || die #432348
5557 - fi
5558 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
5559 - if ! use run-exes; then
5560 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
5561 - fi
5562 -
5563 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
5564 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
5565 -
5566 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
5567 -}
5568 -
5569 -src_configure() {
5570 - export LDCONFIG=/bin/true
5571 - use custom-cflags || strip-flags
5572 -
5573 - multilib-minimal_src_configure
5574 -}
5575 -
5576 -multilib_src_configure() {
5577 - local myconf=(
5578 - --sysconfdir=/etc/wine
5579 - $(use_with alsa)
5580 - $(use_with capi)
5581 - $(use_with lcms cms)
5582 - $(use_with cups)
5583 - $(use_with ncurses curses)
5584 - $(use_with udisks dbus)
5585 - $(use_with fontconfig)
5586 - $(use_with ssl gnutls)
5587 - $(use_enable gecko mshtml)
5588 - $(use_with gphoto2 gphoto)
5589 - $(use_with gsm)
5590 - $(use_with gstreamer)
5591 - --without-hal
5592 - $(use_with jpeg)
5593 - $(use_with ldap)
5594 - $(use_enable mono mscoree)
5595 - $(use_with mp3 mpg123)
5596 - $(use_with netapi)
5597 - $(use_with nls gettext)
5598 - $(use_with openal)
5599 - $(use_with opencl)
5600 - $(use_with opengl)
5601 - $(use_with osmesa)
5602 - $(use_with oss)
5603 - $(use_with png)
5604 - $(use_with threads pthread)
5605 - $(use_with scanner sane)
5606 - $(use_enable test tests)
5607 - $(use_with truetype freetype)
5608 - $(use_with v4l)
5609 - $(use_with X x)
5610 - $(use_with xcomposite)
5611 - $(use_with xinerama)
5612 - $(use_with xml)
5613 - $(use_with xml xslt)
5614 - )
5615 -
5616 - use pulseaudio && myconf+=( --with-pulse )
5617 - use staging && myconf+=( --with-xattr )
5618 -
5619 - local PKG_CONFIG AR RANLIB
5620 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
5621 - # set AR and RANLIB to make QA scripts happy; #483342
5622 - tc-export PKG_CONFIG AR RANLIB
5623 -
5624 - if use amd64; then
5625 - if [[ ${ABI} == amd64 ]]; then
5626 - myconf+=( --enable-win64 )
5627 - else
5628 - myconf+=( --disable-win64 )
5629 - fi
5630 -
5631 - # Note: using --with-wine64 results in problems with multilib.eclass
5632 - # CC/LD hackery. We're using separate tools instead.
5633 - fi
5634 -
5635 - ECONF_SOURCE=${S} \
5636 - econf "${myconf[@]}"
5637 - emake depend
5638 -}
5639 -
5640 -multilib_src_test() {
5641 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
5642 - if [[ ${ABI} == x86 ]]; then
5643 - if [[ $(id -u) == 0 ]]; then
5644 - ewarn "Skipping tests since they cannot be run under the root user."
5645 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
5646 - return
5647 - fi
5648 -
5649 - WINEPREFIX="${T}/.wine-${ABI}" \
5650 - Xemake test
5651 - fi
5652 -}
5653 -
5654 -multilib_src_install_all() {
5655 - local DOCS=( ANNOUNCE AUTHORS README )
5656 - local l
5657 - add_locale_docs() {
5658 - local locale_doc="documentation/README.$1"
5659 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
5660 - }
5661 - l10n_for_each_locale_do add_locale_docs
5662 -
5663 - einstalldocs
5664 - prune_libtool_files --all
5665 -
5666 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
5667 - if use gecko ; then
5668 - insinto /usr/share/wine/gecko
5669 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
5670 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
5671 - fi
5672 - if use mono ; then
5673 - insinto /usr/share/wine/mono
5674 - doins "${DISTDIR}"/wine-mono-${MV}.msi
5675 - fi
5676 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
5677 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
5678 - fi
5679 -
5680 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
5681 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
5682 -
5683 - if use abi_x86_64 && ! use abi_x86_32; then
5684 - dosym /usr/bin/wine{64,} # 404331
5685 - dosym /usr/bin/wine{64,}-preloader
5686 - fi
5687 -
5688 - # respect LINGUAS when installing man pages, #469418
5689 - for l in de fr pl; do
5690 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
5691 - done
5692 -}
5693 -
5694 -pkg_preinst() {
5695 - gnome2_icon_savelist
5696 -}
5697 -
5698 -pkg_postinst() {
5699 - gnome2_icon_cache_update
5700 - fdo-mime_desktop_database_update
5701 -
5702 - if ! use gecko; then
5703 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
5704 - ewarn "implementation of iexplore. Many older windows applications"
5705 - ewarn "rely upon the existence of an iexplore implementation, so"
5706 - ewarn "you will likely need to install an external one, like via winetricks"
5707 - fi
5708 - if ! use mono; then
5709 - ewarn "Without Wine Mono, wine prefixes will not have a default"
5710 - ewarn "implementation of .NET. Many windows applications rely upon"
5711 - ewarn "the existence of a .NET implementation, so you will likely need"
5712 - ewarn "to install an external one, like via winetricks"
5713 - fi
5714 -}
5715 -
5716 -pkg_postrm() {
5717 - gnome2_icon_cache_update
5718 - fdo-mime_desktop_database_update
5719 -}
5720
5721 diff --git a/app-emulation/wine/wine-1.7.22-r1.ebuild b/app-emulation/wine/wine-1.7.22-r1.ebuild
5722 deleted file mode 100644
5723 index 3e88454..0000000
5724 --- a/app-emulation/wine/wine-1.7.22-r1.ebuild
5725 +++ /dev/null
5726 @@ -1,432 +0,0 @@
5727 -# Copyright 1999-2015 Gentoo Foundation
5728 -# Distributed under the terms of the GNU General Public License v2
5729 -# $Id$
5730 -
5731 -EAPI="5"
5732 -
5733 -AUTOTOOLS_AUTORECONF=1
5734 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
5735 -PLOCALE_BACKUP="en"
5736 -
5737 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
5738 -
5739 -if [[ ${PV} == "9999" ]] ; then
5740 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
5741 - EGIT_BRANCH="master"
5742 - inherit git-r3
5743 - SRC_URI=""
5744 - #KEYWORDS=""
5745 -else
5746 - MY_P="${PN}-${PV/_/-}"
5747 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
5748 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
5749 - S=${WORKDIR}/${MY_P}
5750 -fi
5751 -
5752 -GV="2.24"
5753 -MV="4.5.2"
5754 -STAGING_P="wine-staging-${PV}"
5755 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
5756 -WINE_GENTOO="wine-gentoo-2015.03.07"
5757 -PULSE_PATCHES="winepulse-patches-1.7.21"
5758 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
5759 -HOMEPAGE="http://www.winehq.org/"
5760 -SRC_URI="${SRC_URI}
5761 - gecko? (
5762 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
5763 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
5764 - )
5765 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
5766 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
5767 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
5768 -
5769 -if [[ ${PV} == "9999" ]] ; then
5770 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
5771 -else
5772 - SRC_URI="${SRC_URI}
5773 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
5774 -fi
5775 -
5776 -LICENSE="LGPL-2.1"
5777 -SLOT="0"
5778 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
5779 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
5780 - test? ( abi_x86_32 )
5781 - elibc_glibc? ( threads )
5782 - gstreamer? ( pulseaudio )
5783 - mono? ( abi_x86_32 )
5784 - pipelight? ( staging )
5785 - osmesa? ( opengl )" #286560
5786 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557
5787 -
5788 -# FIXME: the test suite is unsuitable for us; many tests require net access
5789 -# or fail due to Xvfb's opengl limitations.
5790 -RESTRICT="test"
5791 -
5792 -COMMON_DEPEND="
5793 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
5794 - capi? ( net-dialup/capi4k-utils )
5795 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
5796 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
5797 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
5798 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
5799 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
5800 - gstreamer? (
5801 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
5802 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
5803 - )
5804 - X? (
5805 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
5806 - x11-libs/libXext[${MULTILIB_USEDEP}]
5807 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
5808 - x11-libs/libXi[${MULTILIB_USEDEP}]
5809 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
5810 - )
5811 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
5812 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
5813 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
5814 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
5815 - opengl? (
5816 - virtual/glu[${MULTILIB_USEDEP}]
5817 - virtual/opengl[${MULTILIB_USEDEP}]
5818 - )
5819 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
5820 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
5821 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
5822 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
5823 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
5824 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
5825 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
5826 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
5827 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
5828 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
5829 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
5830 - xml? (
5831 - dev-libs/libxml2[${MULTILIB_USEDEP}]
5832 - dev-libs/libxslt[${MULTILIB_USEDEP}]
5833 - )
5834 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
5835 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
5836 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
5837 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
5838 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
5839 - abi_x86_32? (
5840 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
5841 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
5842 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
5843 - !<app-emulation/emul-linux-x86-db-20140508-r3
5844 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
5845 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
5846 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
5847 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
5848 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
5849 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
5850 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
5851 - !<app-emulation/emul-linux-x86-soundlibs-20140508
5852 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
5853 - !<app-emulation/emul-linux-x86-xlibs-20140508
5854 - )"
5855 -
5856 -RDEPEND="${COMMON_DEPEND}
5857 - dos? ( games-emulation/dosbox )
5858 - perl? ( dev-lang/perl dev-perl/XML-Simple )
5859 - samba? ( >=net-fs/samba-3.0.25 )
5860 - selinux? ( sec-policy/selinux-wine )
5861 - udisks? ( sys-fs/udisks:2 )
5862 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
5863 -
5864 -# tools/make_requests requires perl
5865 -DEPEND="${COMMON_DEPEND}
5866 - staging? ( dev-lang/perl dev-perl/XML-Simple )
5867 - X? (
5868 - x11-proto/inputproto
5869 - x11-proto/xextproto
5870 - x11-proto/xf86vidmodeproto
5871 - )
5872 - xinerama? ( x11-proto/xineramaproto )
5873 - prelink? ( sys-devel/prelink )
5874 - >=sys-kernel/linux-headers-2.6
5875 - virtual/pkgconfig
5876 - virtual/yacc
5877 - sys-devel/flex"
5878 -
5879 -# These use a non-standard "Wine" category, which is provided by
5880 -# /etc/xdg/applications-merged/wine.menu
5881 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
5882 -usr/share/applications/wine-notepad.desktop
5883 -usr/share/applications/wine-uninstaller.desktop
5884 -usr/share/applications/wine-winecfg.desktop"
5885 -
5886 -wine_build_environment_check() {
5887 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
5888 -
5889 - # bug #549768
5890 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
5891 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
5892 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
5893 - # Run in subshell to prevent "Aborted" message
5894 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
5895 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
5896 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
5897 - eerror "or use gcc-config to select a different compiler version."
5898 - eerror "See https://bugs.gentoo.org/549768"
5899 - eerror
5900 - return 1
5901 - fi
5902 - fi
5903 -
5904 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
5905 - eerror "You need gcc-4.4+ to build 64-bit wine"
5906 - eerror
5907 - return 1
5908 - fi
5909 -
5910 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
5911 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
5912 - eerror "See https://bugs.gentoo.org/487864 for more details."
5913 - eerror
5914 - return 1
5915 - fi
5916 -}
5917 -
5918 -pkg_pretend() {
5919 - wine_build_environment_check || die
5920 -}
5921 -
5922 -pkg_setup() {
5923 - wine_build_environment_check || die
5924 -}
5925 -
5926 -src_unpack() {
5927 - if [[ ${PV} == "9999" ]] ; then
5928 - git-r3_src_unpack
5929 - if use staging; then
5930 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
5931 - unset ${PN}_LIVE_REPO;
5932 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
5933 - fi
5934 - else
5935 - unpack ${MY_P}.tar.bz2
5936 - use staging && unpack "${STAGING_P}.tar.gz"
5937 - fi
5938 -
5939 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
5940 - if use staging; then
5941 - # we use a separate pulseaudio patchset
5942 - rm -r "${STAGING_DIR}/patches/06-winepulse" || die
5943 - # ... and need special tools for binary patches
5944 - mv "${STAGING_DIR}/patches/10-Missing_Fonts" "${T}" || die
5945 - if ! use pipelight; then
5946 - rm -r "${STAGING_DIR}/patches/97-Pipelight" || die
5947 - fi
5948 - fi
5949 - unpack "${WINE_GENTOO}.tar.bz2"
5950 -
5951 - l10n_find_plocales_changes "${S}/po" "" ".po"
5952 -}
5953 -
5954 -src_prepare() {
5955 - local md5="$(md5sum server/protocol.def)"
5956 - local f
5957 - local PATCHES=(
5958 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
5959 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
5960 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
5961 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
5962 - )
5963 - use pulseaudio && PATCHES+=(
5964 - "../${PULSE_PATCHES}"/*.patch #421365
5965 - )
5966 - if use gstreamer; then
5967 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
5968 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
5969 - ewarn "this patch has been reported to cause crashes in certain games."
5970 -
5971 - PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch )
5972 - fi
5973 - if use staging; then
5974 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
5975 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
5976 - ewarn "unless you can reproduce them with USE=-staging"
5977 -
5978 - PATCHES+=(
5979 - "${FILESDIR}/wine-1.7.19-makefile-race-cond.patch"
5980 - "${STAGING_DIR}/patches"/*/*.patch #507950
5981 - "${STAGING_DIR}/patches/patch-list.patch"
5982 - )
5983 - # epatch doesn't support binary patches
5984 - ebegin "Applying Staging font patches"
5985 - for f in "${T}/10-Missing_Fonts"/*.patch; do
5986 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches"
5987 - done
5988 - eend
5989 - fi
5990 - autotools-utils_src_prepare
5991 -
5992 - # Modification of the server protocol requires regenerating the server requests
5993 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
5994 - einfo "server/protocol.def was patched; running tools/make_requests"
5995 - tools/make_requests || die #432348
5996 - fi
5997 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
5998 - if ! use run-exes; then
5999 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
6000 - fi
6001 -
6002 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
6003 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
6004 -
6005 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
6006 -}
6007 -
6008 -src_configure() {
6009 - export LDCONFIG=/bin/true
6010 - use custom-cflags || strip-flags
6011 -
6012 - multilib-minimal_src_configure
6013 -}
6014 -
6015 -multilib_src_configure() {
6016 - local myconf=(
6017 - --sysconfdir=/etc/wine
6018 - $(use_with alsa)
6019 - $(use_with capi)
6020 - $(use_with lcms cms)
6021 - $(use_with cups)
6022 - $(use_with ncurses curses)
6023 - $(use_with udisks dbus)
6024 - $(use_with fontconfig)
6025 - $(use_with ssl gnutls)
6026 - $(use_enable gecko mshtml)
6027 - $(use_with gphoto2 gphoto)
6028 - $(use_with gsm)
6029 - $(use_with gstreamer)
6030 - --without-hal
6031 - $(use_with jpeg)
6032 - $(use_with ldap)
6033 - $(use_enable mono mscoree)
6034 - $(use_with mp3 mpg123)
6035 - $(use_with netapi)
6036 - $(use_with nls gettext)
6037 - $(use_with openal)
6038 - $(use_with opencl)
6039 - $(use_with opengl)
6040 - $(use_with osmesa)
6041 - $(use_with oss)
6042 - $(use_with png)
6043 - $(use_with threads pthread)
6044 - $(use_with scanner sane)
6045 - $(use_enable test tests)
6046 - $(use_with truetype freetype)
6047 - $(use_with v4l)
6048 - $(use_with X x)
6049 - $(use_with xcomposite)
6050 - $(use_with xinerama)
6051 - $(use_with xml)
6052 - $(use_with xml xslt)
6053 - )
6054 -
6055 - use pulseaudio && myconf+=( --with-pulse )
6056 - use staging && myconf+=( --with-xattr )
6057 -
6058 - local PKG_CONFIG AR RANLIB
6059 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
6060 - # set AR and RANLIB to make QA scripts happy; #483342
6061 - tc-export PKG_CONFIG AR RANLIB
6062 -
6063 - if use amd64; then
6064 - if [[ ${ABI} == amd64 ]]; then
6065 - myconf+=( --enable-win64 )
6066 - else
6067 - myconf+=( --disable-win64 )
6068 - fi
6069 -
6070 - # Note: using --with-wine64 results in problems with multilib.eclass
6071 - # CC/LD hackery. We're using separate tools instead.
6072 - fi
6073 -
6074 - ECONF_SOURCE=${S} \
6075 - econf "${myconf[@]}"
6076 - emake depend
6077 -}
6078 -
6079 -multilib_src_test() {
6080 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
6081 - if [[ ${ABI} == x86 ]]; then
6082 - if [[ $(id -u) == 0 ]]; then
6083 - ewarn "Skipping tests since they cannot be run under the root user."
6084 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
6085 - return
6086 - fi
6087 -
6088 - WINEPREFIX="${T}/.wine-${ABI}" \
6089 - Xemake test
6090 - fi
6091 -}
6092 -
6093 -multilib_src_install_all() {
6094 - local DOCS=( ANNOUNCE AUTHORS README )
6095 - local l
6096 - add_locale_docs() {
6097 - local locale_doc="documentation/README.$1"
6098 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
6099 - }
6100 - l10n_for_each_locale_do add_locale_docs
6101 -
6102 - einstalldocs
6103 - prune_libtool_files --all
6104 -
6105 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
6106 - if use gecko ; then
6107 - insinto /usr/share/wine/gecko
6108 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
6109 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
6110 - fi
6111 - if use mono ; then
6112 - insinto /usr/share/wine/mono
6113 - doins "${DISTDIR}"/wine-mono-${MV}.msi
6114 - fi
6115 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
6116 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
6117 - fi
6118 -
6119 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
6120 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
6121 -
6122 - if use abi_x86_64 && ! use abi_x86_32; then
6123 - dosym /usr/bin/wine{64,} # 404331
6124 - dosym /usr/bin/wine{64,}-preloader
6125 - fi
6126 -
6127 - # respect LINGUAS when installing man pages, #469418
6128 - for l in de fr pl; do
6129 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
6130 - done
6131 -}
6132 -
6133 -pkg_preinst() {
6134 - gnome2_icon_savelist
6135 -}
6136 -
6137 -pkg_postinst() {
6138 - gnome2_icon_cache_update
6139 - fdo-mime_desktop_database_update
6140 -
6141 - if ! use gecko; then
6142 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
6143 - ewarn "implementation of iexplore. Many older windows applications"
6144 - ewarn "rely upon the existence of an iexplore implementation, so"
6145 - ewarn "you will likely need to install an external one, like via winetricks"
6146 - fi
6147 - if ! use mono; then
6148 - ewarn "Without Wine Mono, wine prefixes will not have a default"
6149 - ewarn "implementation of .NET. Many windows applications rely upon"
6150 - ewarn "the existence of a .NET implementation, so you will likely need"
6151 - ewarn "to install an external one, like via winetricks"
6152 - fi
6153 -}
6154 -
6155 -pkg_postrm() {
6156 - gnome2_icon_cache_update
6157 - fdo-mime_desktop_database_update
6158 -}
6159
6160 diff --git a/app-emulation/wine/wine-1.7.28-r1.ebuild b/app-emulation/wine/wine-1.7.28-r1.ebuild
6161 deleted file mode 100644
6162 index 9963e5b..0000000
6163 --- a/app-emulation/wine/wine-1.7.28-r1.ebuild
6164 +++ /dev/null
6165 @@ -1,435 +0,0 @@
6166 -# Copyright 1999-2015 Gentoo Foundation
6167 -# Distributed under the terms of the GNU General Public License v2
6168 -# $Id$
6169 -
6170 -EAPI="5"
6171 -
6172 -AUTOTOOLS_AUTORECONF=1
6173 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
6174 -PLOCALE_BACKUP="en"
6175 -
6176 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
6177 -
6178 -if [[ ${PV} == "9999" ]] ; then
6179 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
6180 - EGIT_BRANCH="master"
6181 - inherit git-r3
6182 - SRC_URI=""
6183 - #KEYWORDS=""
6184 -else
6185 - MY_P="${PN}-${PV/_/-}"
6186 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
6187 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
6188 - S=${WORKDIR}/${MY_P}
6189 -fi
6190 -
6191 -GV="2.24"
6192 -MV="4.5.2"
6193 -STAGING_P="wine-staging-${PV}"
6194 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
6195 -WINE_GENTOO="wine-gentoo-2015.03.07"
6196 -GST_P="wine-1.7.28-gstreamer-v4"
6197 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
6198 -HOMEPAGE="http://www.winehq.org/"
6199 -SRC_URI="${SRC_URI}
6200 - gecko? (
6201 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
6202 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
6203 - )
6204 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
6205 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
6206 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
6207 -
6208 -if [[ ${PV} == "9999" ]] ; then
6209 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
6210 -else
6211 - SRC_URI="${SRC_URI}
6212 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
6213 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
6214 -fi
6215 -
6216 -LICENSE="LGPL-2.1"
6217 -SLOT="0"
6218 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
6219 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
6220 - test? ( abi_x86_32 )
6221 - elibc_glibc? ( threads )
6222 - mono? ( abi_x86_32 )
6223 - pipelight? ( staging )
6224 - osmesa? ( opengl )" #286560
6225 -
6226 -# FIXME: the test suite is unsuitable for us; many tests require net access
6227 -# or fail due to Xvfb's opengl limitations.
6228 -RESTRICT="test"
6229 -
6230 -COMMON_DEPEND="
6231 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
6232 - capi? ( net-dialup/capi4k-utils )
6233 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
6234 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
6235 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
6236 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
6237 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
6238 - gstreamer? (
6239 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
6240 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
6241 - )
6242 - X? (
6243 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
6244 - x11-libs/libXext[${MULTILIB_USEDEP}]
6245 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
6246 - x11-libs/libXi[${MULTILIB_USEDEP}]
6247 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
6248 - )
6249 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
6250 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
6251 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
6252 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
6253 - opengl? (
6254 - virtual/glu[${MULTILIB_USEDEP}]
6255 - virtual/opengl[${MULTILIB_USEDEP}]
6256 - )
6257 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
6258 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
6259 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
6260 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
6261 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
6262 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
6263 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
6264 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
6265 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
6266 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
6267 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
6268 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
6269 - xml? (
6270 - dev-libs/libxml2[${MULTILIB_USEDEP}]
6271 - dev-libs/libxslt[${MULTILIB_USEDEP}]
6272 - )
6273 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
6274 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
6275 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
6276 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
6277 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
6278 - abi_x86_32? (
6279 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
6280 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
6281 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
6282 - !<app-emulation/emul-linux-x86-db-20140508-r3
6283 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
6284 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
6285 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
6286 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
6287 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
6288 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
6289 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
6290 - !<app-emulation/emul-linux-x86-soundlibs-20140508
6291 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
6292 - !<app-emulation/emul-linux-x86-xlibs-20140508
6293 - )"
6294 -
6295 -RDEPEND="${COMMON_DEPEND}
6296 - dos? ( games-emulation/dosbox )
6297 - perl? ( dev-lang/perl dev-perl/XML-Simple )
6298 - samba? ( >=net-fs/samba-3.0.25 )
6299 - selinux? ( sec-policy/selinux-wine )
6300 - udisks? ( sys-fs/udisks:2 )
6301 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
6302 -
6303 -# tools/make_requests requires perl
6304 -DEPEND="${COMMON_DEPEND}
6305 - staging? ( dev-lang/perl dev-perl/XML-Simple )
6306 - X? (
6307 - x11-proto/inputproto
6308 - x11-proto/xextproto
6309 - x11-proto/xf86vidmodeproto
6310 - )
6311 - xinerama? ( x11-proto/xineramaproto )
6312 - prelink? ( sys-devel/prelink )
6313 - >=sys-kernel/linux-headers-2.6
6314 - virtual/pkgconfig
6315 - virtual/yacc
6316 - sys-devel/flex"
6317 -
6318 -# These use a non-standard "Wine" category, which is provided by
6319 -# /etc/xdg/applications-merged/wine.menu
6320 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
6321 -usr/share/applications/wine-notepad.desktop
6322 -usr/share/applications/wine-uninstaller.desktop
6323 -usr/share/applications/wine-winecfg.desktop"
6324 -
6325 -wine_build_environment_check() {
6326 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
6327 -
6328 - # bug #549768
6329 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
6330 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
6331 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
6332 - # Run in subshell to prevent "Aborted" message
6333 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
6334 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
6335 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
6336 - eerror "or use gcc-config to select a different compiler version."
6337 - eerror "See https://bugs.gentoo.org/549768"
6338 - eerror
6339 - return 1
6340 - fi
6341 - fi
6342 -
6343 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
6344 - eerror "You need gcc-4.4+ to build 64-bit wine"
6345 - eerror
6346 - return 1
6347 - fi
6348 -
6349 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
6350 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
6351 - eerror "See https://bugs.gentoo.org/487864 for more details."
6352 - eerror
6353 - return 1
6354 - fi
6355 -}
6356 -
6357 -pkg_pretend() {
6358 - wine_build_environment_check || die
6359 -}
6360 -
6361 -pkg_setup() {
6362 - wine_build_environment_check || die
6363 -}
6364 -
6365 -src_unpack() {
6366 - if [[ ${PV} == "9999" ]] ; then
6367 - git-r3_src_unpack
6368 - if use staging || use pulseaudio; then
6369 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
6370 - unset ${PN}_LIVE_REPO;
6371 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
6372 - fi
6373 - else
6374 - unpack ${MY_P}.tar.bz2
6375 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
6376 - fi
6377 -
6378 - unpack "${WINE_GENTOO}.tar.bz2"
6379 - use gstreamer && unpack "${GST_P}.patch.bz2"
6380 -
6381 - l10n_find_plocales_changes "${S}/po" "" ".po"
6382 -}
6383 -
6384 -src_prepare() {
6385 - local md5="$(md5sum server/protocol.def)"
6386 - local f
6387 - local PATCHES=(
6388 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
6389 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
6390 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
6391 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
6392 - )
6393 -
6394 - local STAGING_MAKE_ARGS="-W fonts-Missing_Fonts.ok"
6395 -
6396 - use pipelight || STAGING_MAKE_ARGS="${STAGING_MAKE_ARGS} -W winepulse-PulseAudio_Support.ok"
6397 - if use gstreamer; then
6398 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
6399 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
6400 - ewarn "this patch has been reported to cause crashes in certain games."
6401 -
6402 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
6403 - fi
6404 - if use staging; then
6405 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
6406 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
6407 - ewarn "unless you can reproduce them with USE=-staging"
6408 -
6409 - # epatch doesn't support binary patches and we ship our own pulse patches
6410 - emake -C "${STAGING_DIR}/patches" \
6411 - $(echo ${STAGING_MAKE_ARGS}) \
6412 - series
6413 -
6414 - PATCHES+=( $(sed -e "s:^:${STAGING_DIR}/patches/:" \
6415 - "${STAGING_DIR}/patches/series") )
6416 -
6417 - # epatch doesn't support binary patches
6418 - ebegin "Applying Wine-Staging font patches"
6419 - for f in "${STAGING_DIR}/patches/fonts-Missing_Fonts"/*.patch; do
6420 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" \
6421 - || die "Failed to apply ${f}"
6422 - done
6423 - eend
6424 - elif use pulseaudio; then
6425 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
6426 - fi
6427 - autotools-utils_src_prepare
6428 -
6429 - # Modification of the server protocol requires regenerating the server requests
6430 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
6431 - einfo "server/protocol.def was patched; running tools/make_requests"
6432 - tools/make_requests || die #432348
6433 - fi
6434 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
6435 - if ! use run-exes; then
6436 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
6437 - fi
6438 -
6439 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
6440 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
6441 -
6442 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
6443 -}
6444 -
6445 -src_configure() {
6446 - export LDCONFIG=/bin/true
6447 - use custom-cflags || strip-flags
6448 -
6449 - multilib-minimal_src_configure
6450 -}
6451 -
6452 -multilib_src_configure() {
6453 - local myconf=(
6454 - --sysconfdir=/etc/wine
6455 - $(use_with alsa)
6456 - $(use_with capi)
6457 - $(use_with lcms cms)
6458 - $(use_with cups)
6459 - $(use_with ncurses curses)
6460 - $(use_with udisks dbus)
6461 - $(use_with fontconfig)
6462 - $(use_with ssl gnutls)
6463 - $(use_enable gecko mshtml)
6464 - $(use_with gphoto2 gphoto)
6465 - $(use_with gsm)
6466 - $(use_with gstreamer)
6467 - --without-hal
6468 - $(use_with jpeg)
6469 - $(use_with ldap)
6470 - $(use_enable mono mscoree)
6471 - $(use_with mp3 mpg123)
6472 - $(use_with netapi)
6473 - $(use_with nls gettext)
6474 - $(use_with openal)
6475 - $(use_with opencl)
6476 - $(use_with opengl)
6477 - $(use_with osmesa)
6478 - $(use_with oss)
6479 - $(use_with pcap)
6480 - $(use_with png)
6481 - $(use_with threads pthread)
6482 - $(use_with scanner sane)
6483 - $(use_enable test tests)
6484 - $(use_with truetype freetype)
6485 - $(use_with v4l)
6486 - $(use_with X x)
6487 - $(use_with xcomposite)
6488 - $(use_with xinerama)
6489 - $(use_with xml)
6490 - $(use_with xml xslt)
6491 - )
6492 -
6493 - if use pulseaudio || use staging; then
6494 - myconf+=( $(use_with pulseaudio pulse) )
6495 - fi
6496 - use staging && myconf+=(
6497 - --with-xattr
6498 - )
6499 -
6500 - local PKG_CONFIG AR RANLIB
6501 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
6502 - # set AR and RANLIB to make QA scripts happy; #483342
6503 - tc-export PKG_CONFIG AR RANLIB
6504 -
6505 - if use amd64; then
6506 - if [[ ${ABI} == amd64 ]]; then
6507 - myconf+=( --enable-win64 )
6508 - else
6509 - myconf+=( --disable-win64 )
6510 - fi
6511 -
6512 - # Note: using --with-wine64 results in problems with multilib.eclass
6513 - # CC/LD hackery. We're using separate tools instead.
6514 - fi
6515 -
6516 - ECONF_SOURCE=${S} \
6517 - econf "${myconf[@]}"
6518 - emake depend
6519 -}
6520 -
6521 -multilib_src_test() {
6522 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
6523 - if [[ ${ABI} == x86 ]]; then
6524 - if [[ $(id -u) == 0 ]]; then
6525 - ewarn "Skipping tests since they cannot be run under the root user."
6526 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
6527 - return
6528 - fi
6529 -
6530 - WINEPREFIX="${T}/.wine-${ABI}" \
6531 - Xemake test
6532 - fi
6533 -}
6534 -
6535 -multilib_src_install_all() {
6536 - local DOCS=( ANNOUNCE AUTHORS README )
6537 - local l
6538 - add_locale_docs() {
6539 - local locale_doc="documentation/README.$1"
6540 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
6541 - }
6542 - l10n_for_each_locale_do add_locale_docs
6543 -
6544 - einstalldocs
6545 - prune_libtool_files --all
6546 -
6547 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
6548 - if use gecko ; then
6549 - insinto /usr/share/wine/gecko
6550 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
6551 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
6552 - fi
6553 - if use mono ; then
6554 - insinto /usr/share/wine/mono
6555 - doins "${DISTDIR}"/wine-mono-${MV}.msi
6556 - fi
6557 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
6558 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
6559 - fi
6560 -
6561 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
6562 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
6563 -
6564 - if use abi_x86_64 && ! use abi_x86_32; then
6565 - dosym /usr/bin/wine{64,} # 404331
6566 - dosym /usr/bin/wine{64,}-preloader
6567 - fi
6568 -
6569 - # respect LINGUAS when installing man pages, #469418
6570 - for l in de fr pl; do
6571 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
6572 - done
6573 -}
6574 -
6575 -pkg_preinst() {
6576 - gnome2_icon_savelist
6577 -}
6578 -
6579 -pkg_postinst() {
6580 - gnome2_icon_cache_update
6581 - fdo-mime_desktop_database_update
6582 -
6583 - if ! use gecko; then
6584 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
6585 - ewarn "implementation of iexplore. Many older windows applications"
6586 - ewarn "rely upon the existence of an iexplore implementation, so"
6587 - ewarn "you will likely need to install an external one, like via winetricks"
6588 - fi
6589 - if ! use mono; then
6590 - ewarn "Without Wine Mono, wine prefixes will not have a default"
6591 - ewarn "implementation of .NET. Many windows applications rely upon"
6592 - ewarn "the existence of a .NET implementation, so you will likely need"
6593 - ewarn "to install an external one, like via winetricks"
6594 - fi
6595 -}
6596 -
6597 -pkg_postrm() {
6598 - gnome2_icon_cache_update
6599 - fdo-mime_desktop_database_update
6600 -}
6601
6602 diff --git a/app-emulation/wine/wine-1.7.29-r1.ebuild b/app-emulation/wine/wine-1.7.29-r1.ebuild
6603 deleted file mode 100644
6604 index 9963e5b..0000000
6605 --- a/app-emulation/wine/wine-1.7.29-r1.ebuild
6606 +++ /dev/null
6607 @@ -1,435 +0,0 @@
6608 -# Copyright 1999-2015 Gentoo Foundation
6609 -# Distributed under the terms of the GNU General Public License v2
6610 -# $Id$
6611 -
6612 -EAPI="5"
6613 -
6614 -AUTOTOOLS_AUTORECONF=1
6615 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
6616 -PLOCALE_BACKUP="en"
6617 -
6618 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
6619 -
6620 -if [[ ${PV} == "9999" ]] ; then
6621 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
6622 - EGIT_BRANCH="master"
6623 - inherit git-r3
6624 - SRC_URI=""
6625 - #KEYWORDS=""
6626 -else
6627 - MY_P="${PN}-${PV/_/-}"
6628 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
6629 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
6630 - S=${WORKDIR}/${MY_P}
6631 -fi
6632 -
6633 -GV="2.24"
6634 -MV="4.5.2"
6635 -STAGING_P="wine-staging-${PV}"
6636 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
6637 -WINE_GENTOO="wine-gentoo-2015.03.07"
6638 -GST_P="wine-1.7.28-gstreamer-v4"
6639 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
6640 -HOMEPAGE="http://www.winehq.org/"
6641 -SRC_URI="${SRC_URI}
6642 - gecko? (
6643 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
6644 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
6645 - )
6646 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
6647 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
6648 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
6649 -
6650 -if [[ ${PV} == "9999" ]] ; then
6651 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
6652 -else
6653 - SRC_URI="${SRC_URI}
6654 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
6655 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
6656 -fi
6657 -
6658 -LICENSE="LGPL-2.1"
6659 -SLOT="0"
6660 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
6661 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
6662 - test? ( abi_x86_32 )
6663 - elibc_glibc? ( threads )
6664 - mono? ( abi_x86_32 )
6665 - pipelight? ( staging )
6666 - osmesa? ( opengl )" #286560
6667 -
6668 -# FIXME: the test suite is unsuitable for us; many tests require net access
6669 -# or fail due to Xvfb's opengl limitations.
6670 -RESTRICT="test"
6671 -
6672 -COMMON_DEPEND="
6673 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
6674 - capi? ( net-dialup/capi4k-utils )
6675 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
6676 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
6677 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
6678 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
6679 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
6680 - gstreamer? (
6681 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
6682 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
6683 - )
6684 - X? (
6685 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
6686 - x11-libs/libXext[${MULTILIB_USEDEP}]
6687 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
6688 - x11-libs/libXi[${MULTILIB_USEDEP}]
6689 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
6690 - )
6691 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
6692 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
6693 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
6694 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
6695 - opengl? (
6696 - virtual/glu[${MULTILIB_USEDEP}]
6697 - virtual/opengl[${MULTILIB_USEDEP}]
6698 - )
6699 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
6700 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
6701 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
6702 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
6703 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
6704 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
6705 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
6706 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
6707 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
6708 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
6709 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
6710 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
6711 - xml? (
6712 - dev-libs/libxml2[${MULTILIB_USEDEP}]
6713 - dev-libs/libxslt[${MULTILIB_USEDEP}]
6714 - )
6715 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
6716 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
6717 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
6718 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
6719 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
6720 - abi_x86_32? (
6721 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
6722 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
6723 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
6724 - !<app-emulation/emul-linux-x86-db-20140508-r3
6725 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
6726 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
6727 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
6728 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
6729 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
6730 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
6731 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
6732 - !<app-emulation/emul-linux-x86-soundlibs-20140508
6733 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
6734 - !<app-emulation/emul-linux-x86-xlibs-20140508
6735 - )"
6736 -
6737 -RDEPEND="${COMMON_DEPEND}
6738 - dos? ( games-emulation/dosbox )
6739 - perl? ( dev-lang/perl dev-perl/XML-Simple )
6740 - samba? ( >=net-fs/samba-3.0.25 )
6741 - selinux? ( sec-policy/selinux-wine )
6742 - udisks? ( sys-fs/udisks:2 )
6743 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
6744 -
6745 -# tools/make_requests requires perl
6746 -DEPEND="${COMMON_DEPEND}
6747 - staging? ( dev-lang/perl dev-perl/XML-Simple )
6748 - X? (
6749 - x11-proto/inputproto
6750 - x11-proto/xextproto
6751 - x11-proto/xf86vidmodeproto
6752 - )
6753 - xinerama? ( x11-proto/xineramaproto )
6754 - prelink? ( sys-devel/prelink )
6755 - >=sys-kernel/linux-headers-2.6
6756 - virtual/pkgconfig
6757 - virtual/yacc
6758 - sys-devel/flex"
6759 -
6760 -# These use a non-standard "Wine" category, which is provided by
6761 -# /etc/xdg/applications-merged/wine.menu
6762 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
6763 -usr/share/applications/wine-notepad.desktop
6764 -usr/share/applications/wine-uninstaller.desktop
6765 -usr/share/applications/wine-winecfg.desktop"
6766 -
6767 -wine_build_environment_check() {
6768 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
6769 -
6770 - # bug #549768
6771 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
6772 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
6773 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
6774 - # Run in subshell to prevent "Aborted" message
6775 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
6776 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
6777 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
6778 - eerror "or use gcc-config to select a different compiler version."
6779 - eerror "See https://bugs.gentoo.org/549768"
6780 - eerror
6781 - return 1
6782 - fi
6783 - fi
6784 -
6785 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
6786 - eerror "You need gcc-4.4+ to build 64-bit wine"
6787 - eerror
6788 - return 1
6789 - fi
6790 -
6791 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
6792 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
6793 - eerror "See https://bugs.gentoo.org/487864 for more details."
6794 - eerror
6795 - return 1
6796 - fi
6797 -}
6798 -
6799 -pkg_pretend() {
6800 - wine_build_environment_check || die
6801 -}
6802 -
6803 -pkg_setup() {
6804 - wine_build_environment_check || die
6805 -}
6806 -
6807 -src_unpack() {
6808 - if [[ ${PV} == "9999" ]] ; then
6809 - git-r3_src_unpack
6810 - if use staging || use pulseaudio; then
6811 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
6812 - unset ${PN}_LIVE_REPO;
6813 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
6814 - fi
6815 - else
6816 - unpack ${MY_P}.tar.bz2
6817 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
6818 - fi
6819 -
6820 - unpack "${WINE_GENTOO}.tar.bz2"
6821 - use gstreamer && unpack "${GST_P}.patch.bz2"
6822 -
6823 - l10n_find_plocales_changes "${S}/po" "" ".po"
6824 -}
6825 -
6826 -src_prepare() {
6827 - local md5="$(md5sum server/protocol.def)"
6828 - local f
6829 - local PATCHES=(
6830 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
6831 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
6832 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
6833 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
6834 - )
6835 -
6836 - local STAGING_MAKE_ARGS="-W fonts-Missing_Fonts.ok"
6837 -
6838 - use pipelight || STAGING_MAKE_ARGS="${STAGING_MAKE_ARGS} -W winepulse-PulseAudio_Support.ok"
6839 - if use gstreamer; then
6840 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
6841 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
6842 - ewarn "this patch has been reported to cause crashes in certain games."
6843 -
6844 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
6845 - fi
6846 - if use staging; then
6847 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
6848 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
6849 - ewarn "unless you can reproduce them with USE=-staging"
6850 -
6851 - # epatch doesn't support binary patches and we ship our own pulse patches
6852 - emake -C "${STAGING_DIR}/patches" \
6853 - $(echo ${STAGING_MAKE_ARGS}) \
6854 - series
6855 -
6856 - PATCHES+=( $(sed -e "s:^:${STAGING_DIR}/patches/:" \
6857 - "${STAGING_DIR}/patches/series") )
6858 -
6859 - # epatch doesn't support binary patches
6860 - ebegin "Applying Wine-Staging font patches"
6861 - for f in "${STAGING_DIR}/patches/fonts-Missing_Fonts"/*.patch; do
6862 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" \
6863 - || die "Failed to apply ${f}"
6864 - done
6865 - eend
6866 - elif use pulseaudio; then
6867 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
6868 - fi
6869 - autotools-utils_src_prepare
6870 -
6871 - # Modification of the server protocol requires regenerating the server requests
6872 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
6873 - einfo "server/protocol.def was patched; running tools/make_requests"
6874 - tools/make_requests || die #432348
6875 - fi
6876 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
6877 - if ! use run-exes; then
6878 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
6879 - fi
6880 -
6881 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
6882 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
6883 -
6884 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
6885 -}
6886 -
6887 -src_configure() {
6888 - export LDCONFIG=/bin/true
6889 - use custom-cflags || strip-flags
6890 -
6891 - multilib-minimal_src_configure
6892 -}
6893 -
6894 -multilib_src_configure() {
6895 - local myconf=(
6896 - --sysconfdir=/etc/wine
6897 - $(use_with alsa)
6898 - $(use_with capi)
6899 - $(use_with lcms cms)
6900 - $(use_with cups)
6901 - $(use_with ncurses curses)
6902 - $(use_with udisks dbus)
6903 - $(use_with fontconfig)
6904 - $(use_with ssl gnutls)
6905 - $(use_enable gecko mshtml)
6906 - $(use_with gphoto2 gphoto)
6907 - $(use_with gsm)
6908 - $(use_with gstreamer)
6909 - --without-hal
6910 - $(use_with jpeg)
6911 - $(use_with ldap)
6912 - $(use_enable mono mscoree)
6913 - $(use_with mp3 mpg123)
6914 - $(use_with netapi)
6915 - $(use_with nls gettext)
6916 - $(use_with openal)
6917 - $(use_with opencl)
6918 - $(use_with opengl)
6919 - $(use_with osmesa)
6920 - $(use_with oss)
6921 - $(use_with pcap)
6922 - $(use_with png)
6923 - $(use_with threads pthread)
6924 - $(use_with scanner sane)
6925 - $(use_enable test tests)
6926 - $(use_with truetype freetype)
6927 - $(use_with v4l)
6928 - $(use_with X x)
6929 - $(use_with xcomposite)
6930 - $(use_with xinerama)
6931 - $(use_with xml)
6932 - $(use_with xml xslt)
6933 - )
6934 -
6935 - if use pulseaudio || use staging; then
6936 - myconf+=( $(use_with pulseaudio pulse) )
6937 - fi
6938 - use staging && myconf+=(
6939 - --with-xattr
6940 - )
6941 -
6942 - local PKG_CONFIG AR RANLIB
6943 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
6944 - # set AR and RANLIB to make QA scripts happy; #483342
6945 - tc-export PKG_CONFIG AR RANLIB
6946 -
6947 - if use amd64; then
6948 - if [[ ${ABI} == amd64 ]]; then
6949 - myconf+=( --enable-win64 )
6950 - else
6951 - myconf+=( --disable-win64 )
6952 - fi
6953 -
6954 - # Note: using --with-wine64 results in problems with multilib.eclass
6955 - # CC/LD hackery. We're using separate tools instead.
6956 - fi
6957 -
6958 - ECONF_SOURCE=${S} \
6959 - econf "${myconf[@]}"
6960 - emake depend
6961 -}
6962 -
6963 -multilib_src_test() {
6964 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
6965 - if [[ ${ABI} == x86 ]]; then
6966 - if [[ $(id -u) == 0 ]]; then
6967 - ewarn "Skipping tests since they cannot be run under the root user."
6968 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
6969 - return
6970 - fi
6971 -
6972 - WINEPREFIX="${T}/.wine-${ABI}" \
6973 - Xemake test
6974 - fi
6975 -}
6976 -
6977 -multilib_src_install_all() {
6978 - local DOCS=( ANNOUNCE AUTHORS README )
6979 - local l
6980 - add_locale_docs() {
6981 - local locale_doc="documentation/README.$1"
6982 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
6983 - }
6984 - l10n_for_each_locale_do add_locale_docs
6985 -
6986 - einstalldocs
6987 - prune_libtool_files --all
6988 -
6989 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
6990 - if use gecko ; then
6991 - insinto /usr/share/wine/gecko
6992 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
6993 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
6994 - fi
6995 - if use mono ; then
6996 - insinto /usr/share/wine/mono
6997 - doins "${DISTDIR}"/wine-mono-${MV}.msi
6998 - fi
6999 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
7000 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
7001 - fi
7002 -
7003 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
7004 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
7005 -
7006 - if use abi_x86_64 && ! use abi_x86_32; then
7007 - dosym /usr/bin/wine{64,} # 404331
7008 - dosym /usr/bin/wine{64,}-preloader
7009 - fi
7010 -
7011 - # respect LINGUAS when installing man pages, #469418
7012 - for l in de fr pl; do
7013 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
7014 - done
7015 -}
7016 -
7017 -pkg_preinst() {
7018 - gnome2_icon_savelist
7019 -}
7020 -
7021 -pkg_postinst() {
7022 - gnome2_icon_cache_update
7023 - fdo-mime_desktop_database_update
7024 -
7025 - if ! use gecko; then
7026 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
7027 - ewarn "implementation of iexplore. Many older windows applications"
7028 - ewarn "rely upon the existence of an iexplore implementation, so"
7029 - ewarn "you will likely need to install an external one, like via winetricks"
7030 - fi
7031 - if ! use mono; then
7032 - ewarn "Without Wine Mono, wine prefixes will not have a default"
7033 - ewarn "implementation of .NET. Many windows applications rely upon"
7034 - ewarn "the existence of a .NET implementation, so you will likely need"
7035 - ewarn "to install an external one, like via winetricks"
7036 - fi
7037 -}
7038 -
7039 -pkg_postrm() {
7040 - gnome2_icon_cache_update
7041 - fdo-mime_desktop_database_update
7042 -}
7043
7044 diff --git a/app-emulation/wine/wine-1.7.3-r1.ebuild b/app-emulation/wine/wine-1.7.3-r1.ebuild
7045 deleted file mode 100644
7046 index aecbaf3..0000000
7047 --- a/app-emulation/wine/wine-1.7.3-r1.ebuild
7048 +++ /dev/null
7049 @@ -1,377 +0,0 @@
7050 -# Copyright 1999-2015 Gentoo Foundation
7051 -# Distributed under the terms of the GNU General Public License v2
7052 -# $Id$
7053 -
7054 -EAPI="5"
7055 -
7056 -AUTOTOOLS_AUTORECONF=1
7057 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
7058 -PLOCALE_BACKUP="en"
7059 -
7060 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
7061 -
7062 -if [[ ${PV} == "9999" ]] ; then
7063 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
7064 - EGIT_BRANCH="master"
7065 - inherit git-r3
7066 - SRC_URI=""
7067 - #KEYWORDS=""
7068 -else
7069 - MY_P="${PN}-${PV/_/-}"
7070 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
7071 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
7072 - S=${WORKDIR}/${MY_P}
7073 -fi
7074 -
7075 -GV="2.24"
7076 -MV="0.0.8"
7077 -PULSE_PATCHES="winepulse-patches-1.7.3"
7078 -WINE_GENTOO="wine-gentoo-2015.03.07"
7079 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
7080 -HOMEPAGE="http://www.winehq.org/"
7081 -SRC_URI="${SRC_URI}
7082 - gecko? (
7083 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
7084 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
7085 - )
7086 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
7087 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
7088 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
7089 -
7090 -LICENSE="LGPL-2.1"
7091 -SLOT="0"
7092 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
7093 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
7094 - test? ( abi_x86_32 )
7095 - elibc_glibc? ( threads )
7096 - mono? ( abi_x86_32 )
7097 - osmesa? ( opengl )" #286560
7098 -
7099 -# FIXME: the test suite is unsuitable for us; many tests require net access
7100 -# or fail due to Xvfb's opengl limitations.
7101 -RESTRICT="test"
7102 -
7103 -COMMON_DEPEND="
7104 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
7105 - capi? ( net-dialup/capi4k-utils )
7106 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
7107 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
7108 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
7109 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
7110 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
7111 - gstreamer? (
7112 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
7113 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
7114 - )
7115 - X? (
7116 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
7117 - x11-libs/libXext[${MULTILIB_USEDEP}]
7118 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
7119 - x11-libs/libXi[${MULTILIB_USEDEP}]
7120 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
7121 - )
7122 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
7123 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
7124 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
7125 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
7126 - opengl? (
7127 - virtual/glu[${MULTILIB_USEDEP}]
7128 - virtual/opengl[${MULTILIB_USEDEP}]
7129 - )
7130 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
7131 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
7132 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
7133 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
7134 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
7135 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
7136 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
7137 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
7138 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
7139 - xml? (
7140 - dev-libs/libxml2[${MULTILIB_USEDEP}]
7141 - dev-libs/libxslt[${MULTILIB_USEDEP}]
7142 - )
7143 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
7144 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
7145 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
7146 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
7147 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
7148 - abi_x86_32? (
7149 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
7150 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
7151 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
7152 - !<app-emulation/emul-linux-x86-db-20140508-r3
7153 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
7154 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
7155 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
7156 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
7157 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
7158 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
7159 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
7160 - !<app-emulation/emul-linux-x86-soundlibs-20140508
7161 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
7162 - !<app-emulation/emul-linux-x86-xlibs-20140508
7163 - )"
7164 -
7165 -RDEPEND="${COMMON_DEPEND}
7166 - dos? ( games-emulation/dosbox )
7167 - perl? ( dev-lang/perl dev-perl/XML-Simple )
7168 - samba? ( >=net-fs/samba-3.0.25 )
7169 - selinux? ( sec-policy/selinux-wine )
7170 - udisks? ( sys-fs/udisks:2 )
7171 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
7172 -
7173 -DEPEND="${COMMON_DEPEND}
7174 - X? (
7175 - x11-proto/inputproto
7176 - x11-proto/xextproto
7177 - x11-proto/xf86vidmodeproto
7178 - )
7179 - xinerama? ( x11-proto/xineramaproto )
7180 - prelink? ( sys-devel/prelink )
7181 - >=sys-kernel/linux-headers-2.6
7182 - virtual/pkgconfig
7183 - virtual/yacc
7184 - sys-devel/flex"
7185 -
7186 -# These use a non-standard "Wine" category, which is provided by
7187 -# /etc/xdg/applications-merged/wine.menu
7188 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
7189 -usr/share/applications/wine-notepad.desktop
7190 -usr/share/applications/wine-uninstaller.desktop
7191 -usr/share/applications/wine-winecfg.desktop"
7192 -
7193 -wine_build_environment_check() {
7194 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
7195 -
7196 - # bug #549768
7197 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
7198 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
7199 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
7200 - # Run in subshell to prevent "Aborted" message
7201 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
7202 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
7203 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
7204 - eerror "or use gcc-config to select a different compiler version."
7205 - eerror "See https://bugs.gentoo.org/549768"
7206 - eerror
7207 - return 1
7208 - fi
7209 - fi
7210 -
7211 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
7212 - eerror "You need gcc-4.4+ to build 64-bit wine"
7213 - eerror
7214 - return 1
7215 - fi
7216 -
7217 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
7218 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
7219 - eerror "See https://bugs.gentoo.org/487864 for more details."
7220 - eerror
7221 - return 1
7222 - fi
7223 -}
7224 -
7225 -pkg_pretend() {
7226 - wine_build_environment_check || die
7227 -}
7228 -
7229 -pkg_setup() {
7230 - wine_build_environment_check || die
7231 -}
7232 -
7233 -src_unpack() {
7234 - if [[ ${PV} == "9999" ]] ; then
7235 - git-r3_src_unpack
7236 - else
7237 - unpack ${MY_P}.tar.bz2
7238 - fi
7239 -
7240 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
7241 - unpack "${WINE_GENTOO}.tar.bz2"
7242 -
7243 - l10n_find_plocales_changes "${S}/po" "" ".po"
7244 -}
7245 -
7246 -src_prepare() {
7247 - local md5="$(md5sum server/protocol.def)"
7248 - local PATCHES=(
7249 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
7250 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
7251 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
7252 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
7253 - "${FILESDIR}"/${PN}-1.7.0-freetype-header-location.patch #539830
7254 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
7255 - )
7256 - use pulseaudio && PATCHES+=(
7257 - "../${PULSE_PATCHES}"/*.patch #421365
7258 - )
7259 -
7260 - autotools-utils_src_prepare
7261 -
7262 - # Modification of the server protocol requires regenerating the server requests
7263 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
7264 - einfo "server/protocol.def was patched; running tools/make_requests"
7265 - tools/make_requests || die #432348
7266 - fi
7267 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
7268 - if ! use run-exes; then
7269 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
7270 - fi
7271 -
7272 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
7273 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
7274 -
7275 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
7276 -}
7277 -
7278 -src_configure() {
7279 - export LDCONFIG=/bin/true
7280 - use custom-cflags || strip-flags
7281 -
7282 - multilib-minimal_src_configure
7283 -}
7284 -
7285 -multilib_src_configure() {
7286 - local myconf=(
7287 - --sysconfdir=/etc/wine
7288 - $(use_with alsa)
7289 - $(use_with capi)
7290 - $(use_with lcms cms)
7291 - $(use_with cups)
7292 - $(use_with ncurses curses)
7293 - $(use_with udisks dbus)
7294 - $(use_with fontconfig)
7295 - $(use_with ssl gnutls)
7296 - $(use_enable gecko mshtml)
7297 - $(use_with gphoto2 gphoto)
7298 - $(use_with gsm)
7299 - $(use_with gstreamer)
7300 - --without-hal
7301 - $(use_with jpeg)
7302 - $(use_with ldap)
7303 - $(use_enable mono mscoree)
7304 - $(use_with mp3 mpg123)
7305 - $(use_with nls gettext)
7306 - $(use_with openal)
7307 - $(use_with opencl)
7308 - $(use_with opengl)
7309 - $(use_with osmesa)
7310 - $(use_with oss)
7311 - $(use_with png)
7312 - $(use_with threads pthread)
7313 - $(use_with scanner sane)
7314 - $(use_enable test tests)
7315 - $(use_with truetype freetype)
7316 - $(use_with v4l)
7317 - $(use_with X x)
7318 - $(use_with xcomposite)
7319 - $(use_with xinerama)
7320 - $(use_with xml)
7321 - $(use_with xml xslt)
7322 - )
7323 -
7324 - use pulseaudio && myconf+=( --with-pulse )
7325 -
7326 - local PKG_CONFIG AR RANLIB
7327 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
7328 - # set AR and RANLIB to make QA scripts happy; #483342
7329 - tc-export PKG_CONFIG AR RANLIB
7330 -
7331 - if use amd64; then
7332 - if [[ ${ABI} == amd64 ]]; then
7333 - myconf+=( --enable-win64 )
7334 - else
7335 - myconf+=( --disable-win64 )
7336 - fi
7337 -
7338 - # Note: using --with-wine64 results in problems with multilib.eclass
7339 - # CC/LD hackery. We're using separate tools instead.
7340 - fi
7341 -
7342 - ECONF_SOURCE=${S} \
7343 - econf "${myconf[@]}"
7344 - emake depend
7345 -}
7346 -
7347 -multilib_src_test() {
7348 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
7349 - if [[ ${ABI} == x86 ]]; then
7350 - if [[ $(id -u) == 0 ]]; then
7351 - ewarn "Skipping tests since they cannot be run under the root user."
7352 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
7353 - return
7354 - fi
7355 -
7356 - WINEPREFIX="${T}/.wine-${ABI}" \
7357 - Xemake test
7358 - fi
7359 -}
7360 -
7361 -multilib_src_install_all() {
7362 - local DOCS=( ANNOUNCE AUTHORS README )
7363 - local l
7364 - add_locale_docs() {
7365 - local locale_doc="documentation/README.$1"
7366 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
7367 - }
7368 - l10n_for_each_locale_do add_locale_docs
7369 -
7370 - einstalldocs
7371 - prune_libtool_files --all
7372 -
7373 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
7374 - if use gecko ; then
7375 - insinto /usr/share/wine/gecko
7376 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
7377 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
7378 - fi
7379 - if use mono ; then
7380 - insinto /usr/share/wine/mono
7381 - doins "${DISTDIR}"/wine-mono-${MV}.msi
7382 - fi
7383 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
7384 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
7385 - fi
7386 -
7387 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
7388 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
7389 -
7390 - if use abi_x86_64 && ! use abi_x86_32; then
7391 - dosym /usr/bin/wine{64,} # 404331
7392 - dosym /usr/bin/wine{64,}-preloader
7393 - fi
7394 -
7395 - # respect LINGUAS when installing man pages, #469418
7396 - for l in de fr pl; do
7397 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
7398 - done
7399 -}
7400 -
7401 -pkg_preinst() {
7402 - gnome2_icon_savelist
7403 -}
7404 -
7405 -pkg_postinst() {
7406 - gnome2_icon_cache_update
7407 - fdo-mime_desktop_database_update
7408 -
7409 - if ! use gecko; then
7410 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
7411 - ewarn "implementation of iexplore. Many older windows applications"
7412 - ewarn "rely upon the existence of an iexplore implementation, so"
7413 - ewarn "you will likely need to install an external one, like via winetricks"
7414 - fi
7415 - if ! use mono; then
7416 - ewarn "Without Wine Mono, wine prefixes will not have a default"
7417 - ewarn "implementation of .NET. Many windows applications rely upon"
7418 - ewarn "the existence of a .NET implementation, so you will likely need"
7419 - ewarn "to install an external one, like via winetricks"
7420 - fi
7421 -}
7422 -
7423 -pkg_postrm() {
7424 - gnome2_icon_cache_update
7425 - fdo-mime_desktop_database_update
7426 -}
7427
7428 diff --git a/app-emulation/wine/wine-1.7.33-r1.ebuild b/app-emulation/wine/wine-1.7.33-r1.ebuild
7429 deleted file mode 100644
7430 index f38cb49..0000000
7431 --- a/app-emulation/wine/wine-1.7.33-r1.ebuild
7432 +++ /dev/null
7433 @@ -1,438 +0,0 @@
7434 -# Copyright 1999-2015 Gentoo Foundation
7435 -# Distributed under the terms of the GNU General Public License v2
7436 -# $Id$
7437 -
7438 -EAPI="5"
7439 -
7440 -AUTOTOOLS_AUTORECONF=1
7441 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
7442 -PLOCALE_BACKUP="en"
7443 -
7444 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
7445 -
7446 -if [[ ${PV} == "9999" ]] ; then
7447 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
7448 - EGIT_BRANCH="master"
7449 - inherit git-r3
7450 - SRC_URI=""
7451 - #KEYWORDS=""
7452 -else
7453 - MY_P="${PN}-${PV/_/-}"
7454 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
7455 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
7456 - S=${WORKDIR}/${MY_P}
7457 -fi
7458 -
7459 -GV="2.34"
7460 -MV="4.5.4"
7461 -STAGING_P="wine-staging-${PV}"
7462 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
7463 -WINE_GENTOO="wine-gentoo-2015.03.07"
7464 -GST_P="wine-1.7.28-gstreamer-v4"
7465 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
7466 -HOMEPAGE="http://www.winehq.org/"
7467 -SRC_URI="${SRC_URI}
7468 - gecko? (
7469 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
7470 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
7471 - )
7472 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
7473 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
7474 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
7475 -
7476 -if [[ ${PV} == "9999" ]] ; then
7477 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
7478 -else
7479 - SRC_URI="${SRC_URI}
7480 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
7481 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
7482 -fi
7483 -
7484 -LICENSE="LGPL-2.1"
7485 -SLOT="0"
7486 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
7487 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
7488 - test? ( abi_x86_32 )
7489 - elibc_glibc? ( threads )
7490 - mono? ( abi_x86_32 )
7491 - pipelight? ( staging )
7492 - s3tc? ( staging )
7493 - osmesa? ( opengl )" #286560
7494 -
7495 -# FIXME: the test suite is unsuitable for us; many tests require net access
7496 -# or fail due to Xvfb's opengl limitations.
7497 -RESTRICT="test"
7498 -
7499 -COMMON_DEPEND="
7500 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
7501 - capi? ( net-dialup/capi4k-utils )
7502 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
7503 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
7504 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
7505 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
7506 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
7507 - gstreamer? (
7508 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
7509 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
7510 - )
7511 - X? (
7512 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
7513 - x11-libs/libXext[${MULTILIB_USEDEP}]
7514 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
7515 - x11-libs/libXi[${MULTILIB_USEDEP}]
7516 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
7517 - )
7518 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
7519 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
7520 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
7521 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
7522 - opengl? (
7523 - virtual/glu[${MULTILIB_USEDEP}]
7524 - virtual/opengl[${MULTILIB_USEDEP}]
7525 - )
7526 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
7527 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
7528 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
7529 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
7530 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
7531 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
7532 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
7533 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
7534 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
7535 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
7536 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
7537 - s3tc? ( media-libs/libtxc_dxtn[${MULTILIB_USEDEP}] )
7538 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
7539 - xml? (
7540 - dev-libs/libxml2[${MULTILIB_USEDEP}]
7541 - dev-libs/libxslt[${MULTILIB_USEDEP}]
7542 - )
7543 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
7544 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
7545 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
7546 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
7547 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
7548 - abi_x86_32? (
7549 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
7550 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
7551 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
7552 - !<app-emulation/emul-linux-x86-db-20140508-r3
7553 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
7554 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
7555 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
7556 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
7557 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
7558 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
7559 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
7560 - !<app-emulation/emul-linux-x86-soundlibs-20140508
7561 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
7562 - !<app-emulation/emul-linux-x86-xlibs-20140508
7563 - )"
7564 -
7565 -RDEPEND="${COMMON_DEPEND}
7566 - dos? ( games-emulation/dosbox )
7567 - perl? ( dev-lang/perl dev-perl/XML-Simple )
7568 - samba? ( >=net-fs/samba-3.0.25 )
7569 - selinux? ( sec-policy/selinux-wine )
7570 - udisks? ( sys-fs/udisks:2 )
7571 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
7572 -
7573 -# tools/make_requests requires perl
7574 -DEPEND="${COMMON_DEPEND}
7575 - staging? ( dev-lang/perl dev-perl/XML-Simple )
7576 - X? (
7577 - x11-proto/inputproto
7578 - x11-proto/xextproto
7579 - x11-proto/xf86vidmodeproto
7580 - )
7581 - xinerama? ( x11-proto/xineramaproto )
7582 - prelink? ( sys-devel/prelink )
7583 - >=sys-kernel/linux-headers-2.6
7584 - virtual/pkgconfig
7585 - virtual/yacc
7586 - sys-devel/flex"
7587 -
7588 -# These use a non-standard "Wine" category, which is provided by
7589 -# /etc/xdg/applications-merged/wine.menu
7590 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
7591 -usr/share/applications/wine-notepad.desktop
7592 -usr/share/applications/wine-uninstaller.desktop
7593 -usr/share/applications/wine-winecfg.desktop"
7594 -
7595 -wine_build_environment_check() {
7596 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
7597 -
7598 - # bug #549768
7599 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
7600 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
7601 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
7602 - # Run in subshell to prevent "Aborted" message
7603 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
7604 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
7605 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
7606 - eerror "or use gcc-config to select a different compiler version."
7607 - eerror "See https://bugs.gentoo.org/549768"
7608 - eerror
7609 - return 1
7610 - fi
7611 - fi
7612 -
7613 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
7614 - eerror "You need gcc-4.4+ to build 64-bit wine"
7615 - eerror
7616 - return 1
7617 - fi
7618 -
7619 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
7620 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
7621 - eerror "See https://bugs.gentoo.org/487864 for more details."
7622 - eerror
7623 - return 1
7624 - fi
7625 -}
7626 -
7627 -pkg_pretend() {
7628 - wine_build_environment_check || die
7629 -}
7630 -
7631 -pkg_setup() {
7632 - wine_build_environment_check || die
7633 -}
7634 -
7635 -src_unpack() {
7636 - if [[ ${PV} == "9999" ]] ; then
7637 - git-r3_src_unpack
7638 - if use staging || use pulseaudio; then
7639 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
7640 - unset ${PN}_LIVE_REPO;
7641 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
7642 - fi
7643 - else
7644 - unpack ${MY_P}.tar.bz2
7645 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
7646 - fi
7647 -
7648 - unpack "${WINE_GENTOO}.tar.bz2"
7649 - use gstreamer && unpack "${GST_P}.patch.bz2"
7650 -
7651 - l10n_find_plocales_changes "${S}/po" "" ".po"
7652 -}
7653 -
7654 -src_prepare() {
7655 - local md5="$(md5sum server/protocol.def)"
7656 - local f
7657 - local PATCHES=(
7658 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
7659 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
7660 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
7661 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
7662 - )
7663 -
7664 - local STAGING_MAKE_ARGS="-W fonts-Missing_Fonts.ok"
7665 -
7666 - use pipelight || STAGING_MAKE_ARGS="${STAGING_MAKE_ARGS} -W Pipelight.ok"
7667 - if use gstreamer; then
7668 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
7669 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
7670 - ewarn "this patch has been reported to cause crashes in certain games."
7671 -
7672 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
7673 - fi
7674 - if use staging; then
7675 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
7676 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
7677 - ewarn "unless you can reproduce them with USE=-staging"
7678 -
7679 - # epatch doesn't support binary patches and we ship our own pulse patches
7680 - emake -C "${STAGING_DIR}/patches" \
7681 - $(echo ${STAGING_MAKE_ARGS}) \
7682 - series
7683 -
7684 - PATCHES+=( $(sed -e "s:^:${STAGING_DIR}/patches/:" \
7685 - "${STAGING_DIR}/patches/series") )
7686 -
7687 - # epatch doesn't support binary patches
7688 - ebegin "Applying Wine-Staging font patches"
7689 - for f in "${STAGING_DIR}/patches/fonts-Missing_Fonts"/*.patch; do
7690 - "${STAGING_DIR}/debian/tools/gitapply.sh" < "${f}" \
7691 - || die "Failed to apply ${f}"
7692 - done
7693 - eend
7694 - elif use pulseaudio; then
7695 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
7696 - fi
7697 - autotools-utils_src_prepare
7698 -
7699 - # Modification of the server protocol requires regenerating the server requests
7700 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
7701 - einfo "server/protocol.def was patched; running tools/make_requests"
7702 - tools/make_requests || die #432348
7703 - fi
7704 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
7705 - if ! use run-exes; then
7706 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
7707 - fi
7708 -
7709 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
7710 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
7711 -
7712 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
7713 -}
7714 -
7715 -src_configure() {
7716 - export LDCONFIG=/bin/true
7717 - use custom-cflags || strip-flags
7718 -
7719 - multilib-minimal_src_configure
7720 -}
7721 -
7722 -multilib_src_configure() {
7723 - local myconf=(
7724 - --sysconfdir=/etc/wine
7725 - $(use_with alsa)
7726 - $(use_with capi)
7727 - $(use_with lcms cms)
7728 - $(use_with cups)
7729 - $(use_with ncurses curses)
7730 - $(use_with udisks dbus)
7731 - $(use_with fontconfig)
7732 - $(use_with ssl gnutls)
7733 - $(use_enable gecko mshtml)
7734 - $(use_with gphoto2 gphoto)
7735 - $(use_with gsm)
7736 - $(use_with gstreamer)
7737 - --without-hal
7738 - $(use_with jpeg)
7739 - $(use_with ldap)
7740 - $(use_enable mono mscoree)
7741 - $(use_with mp3 mpg123)
7742 - $(use_with netapi)
7743 - $(use_with nls gettext)
7744 - $(use_with openal)
7745 - $(use_with opencl)
7746 - $(use_with opengl)
7747 - $(use_with osmesa)
7748 - $(use_with oss)
7749 - $(use_with pcap)
7750 - $(use_with png)
7751 - $(use_with threads pthread)
7752 - $(use_with scanner sane)
7753 - $(use_enable test tests)
7754 - $(use_with truetype freetype)
7755 - $(use_with v4l)
7756 - $(use_with X x)
7757 - $(use_with xcomposite)
7758 - $(use_with xinerama)
7759 - $(use_with xml)
7760 - $(use_with xml xslt)
7761 - )
7762 -
7763 - if use pulseaudio || use staging; then
7764 - myconf+=( $(use_with pulseaudio pulse) )
7765 - fi
7766 - use staging && myconf+=(
7767 - --with-xattr
7768 - $(use_with s3tc txc_dxtn)
7769 - )
7770 -
7771 - local PKG_CONFIG AR RANLIB
7772 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
7773 - # set AR and RANLIB to make QA scripts happy; #483342
7774 - tc-export PKG_CONFIG AR RANLIB
7775 -
7776 - if use amd64; then
7777 - if [[ ${ABI} == amd64 ]]; then
7778 - myconf+=( --enable-win64 )
7779 - else
7780 - myconf+=( --disable-win64 )
7781 - fi
7782 -
7783 - # Note: using --with-wine64 results in problems with multilib.eclass
7784 - # CC/LD hackery. We're using separate tools instead.
7785 - fi
7786 -
7787 - ECONF_SOURCE=${S} \
7788 - econf "${myconf[@]}"
7789 - emake depend
7790 -}
7791 -
7792 -multilib_src_test() {
7793 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
7794 - if [[ ${ABI} == x86 ]]; then
7795 - if [[ $(id -u) == 0 ]]; then
7796 - ewarn "Skipping tests since they cannot be run under the root user."
7797 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
7798 - return
7799 - fi
7800 -
7801 - WINEPREFIX="${T}/.wine-${ABI}" \
7802 - Xemake test
7803 - fi
7804 -}
7805 -
7806 -multilib_src_install_all() {
7807 - local DOCS=( ANNOUNCE AUTHORS README )
7808 - local l
7809 - add_locale_docs() {
7810 - local locale_doc="documentation/README.$1"
7811 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
7812 - }
7813 - l10n_for_each_locale_do add_locale_docs
7814 -
7815 - einstalldocs
7816 - prune_libtool_files --all
7817 -
7818 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
7819 - if use gecko ; then
7820 - insinto /usr/share/wine/gecko
7821 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
7822 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
7823 - fi
7824 - if use mono ; then
7825 - insinto /usr/share/wine/mono
7826 - doins "${DISTDIR}"/wine-mono-${MV}.msi
7827 - fi
7828 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
7829 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
7830 - fi
7831 -
7832 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
7833 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
7834 -
7835 - if use abi_x86_64 && ! use abi_x86_32; then
7836 - dosym /usr/bin/wine{64,} # 404331
7837 - dosym /usr/bin/wine{64,}-preloader
7838 - fi
7839 -
7840 - # respect LINGUAS when installing man pages, #469418
7841 - for l in de fr pl; do
7842 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
7843 - done
7844 -}
7845 -
7846 -pkg_preinst() {
7847 - gnome2_icon_savelist
7848 -}
7849 -
7850 -pkg_postinst() {
7851 - gnome2_icon_cache_update
7852 - fdo-mime_desktop_database_update
7853 -
7854 - if ! use gecko; then
7855 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
7856 - ewarn "implementation of iexplore. Many older windows applications"
7857 - ewarn "rely upon the existence of an iexplore implementation, so"
7858 - ewarn "you will likely need to install an external one, like via winetricks"
7859 - fi
7860 - if ! use mono; then
7861 - ewarn "Without Wine Mono, wine prefixes will not have a default"
7862 - ewarn "implementation of .NET. Many windows applications rely upon"
7863 - ewarn "the existence of a .NET implementation, so you will likely need"
7864 - ewarn "to install an external one, like via winetricks"
7865 - fi
7866 -}
7867 -
7868 -pkg_postrm() {
7869 - gnome2_icon_cache_update
7870 - fdo-mime_desktop_database_update
7871 -}
7872
7873 diff --git a/app-emulation/wine/wine-1.7.34.ebuild b/app-emulation/wine/wine-1.7.34.ebuild
7874 deleted file mode 100644
7875 index 0968495..0000000
7876 --- a/app-emulation/wine/wine-1.7.34.ebuild
7877 +++ /dev/null
7878 @@ -1,435 +0,0 @@
7879 -# Copyright 1999-2015 Gentoo Foundation
7880 -# Distributed under the terms of the GNU General Public License v2
7881 -# $Id$
7882 -
7883 -EAPI="5"
7884 -
7885 -AUTOTOOLS_AUTORECONF=1
7886 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
7887 -PLOCALE_BACKUP="en"
7888 -
7889 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
7890 -
7891 -if [[ ${PV} == "9999" ]] ; then
7892 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
7893 - EGIT_BRANCH="master"
7894 - inherit git-r3
7895 - SRC_URI=""
7896 - #KEYWORDS=""
7897 -else
7898 - MY_P="${PN}-${PV/_/-}"
7899 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
7900 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
7901 - S=${WORKDIR}/${MY_P}
7902 -fi
7903 -
7904 -GV="2.34"
7905 -MV="4.5.4"
7906 -STAGING_P="wine-staging-${PV}"
7907 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
7908 -WINE_GENTOO="wine-gentoo-2015.03.07"
7909 -GST_P="wine-1.7.34-gstreamer-v5"
7910 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
7911 -HOMEPAGE="http://www.winehq.org/"
7912 -SRC_URI="${SRC_URI}
7913 - gecko? (
7914 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
7915 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
7916 - )
7917 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
7918 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
7919 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
7920 -
7921 -if [[ ${PV} == "9999" ]] ; then
7922 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
7923 -else
7924 - SRC_URI="${SRC_URI}
7925 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
7926 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
7927 -fi
7928 -
7929 -LICENSE="LGPL-2.1"
7930 -SLOT="0"
7931 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
7932 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
7933 - test? ( abi_x86_32 )
7934 - elibc_glibc? ( threads )
7935 - mono? ( abi_x86_32 )
7936 - pipelight? ( staging )
7937 - s3tc? ( staging )
7938 - osmesa? ( opengl )" #286560
7939 -
7940 -# FIXME: the test suite is unsuitable for us; many tests require net access
7941 -# or fail due to Xvfb's opengl limitations.
7942 -RESTRICT="test"
7943 -
7944 -COMMON_DEPEND="
7945 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
7946 - capi? ( net-dialup/capi4k-utils )
7947 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
7948 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
7949 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
7950 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
7951 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
7952 - gstreamer? (
7953 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
7954 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
7955 - )
7956 - X? (
7957 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
7958 - x11-libs/libXext[${MULTILIB_USEDEP}]
7959 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
7960 - x11-libs/libXi[${MULTILIB_USEDEP}]
7961 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
7962 - )
7963 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
7964 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
7965 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
7966 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
7967 - opengl? (
7968 - virtual/glu[${MULTILIB_USEDEP}]
7969 - virtual/opengl[${MULTILIB_USEDEP}]
7970 - )
7971 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
7972 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
7973 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
7974 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
7975 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
7976 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
7977 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
7978 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
7979 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
7980 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
7981 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
7982 - s3tc? ( media-libs/libtxc_dxtn[${MULTILIB_USEDEP}] )
7983 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
7984 - xml? (
7985 - dev-libs/libxml2[${MULTILIB_USEDEP}]
7986 - dev-libs/libxslt[${MULTILIB_USEDEP}]
7987 - )
7988 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
7989 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
7990 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
7991 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
7992 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
7993 - abi_x86_32? (
7994 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
7995 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
7996 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
7997 - !<app-emulation/emul-linux-x86-db-20140508-r3
7998 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
7999 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
8000 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
8001 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
8002 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
8003 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
8004 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
8005 - !<app-emulation/emul-linux-x86-soundlibs-20140508
8006 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
8007 - !<app-emulation/emul-linux-x86-xlibs-20140508
8008 - )"
8009 -
8010 -RDEPEND="${COMMON_DEPEND}
8011 - dos? ( games-emulation/dosbox )
8012 - perl? ( dev-lang/perl dev-perl/XML-Simple )
8013 - samba? ( >=net-fs/samba-3.0.25 )
8014 - selinux? ( sec-policy/selinux-wine )
8015 - udisks? ( sys-fs/udisks:2 )
8016 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
8017 -
8018 -# tools/make_requests requires perl
8019 -DEPEND="${COMMON_DEPEND}
8020 - staging? ( dev-lang/perl dev-perl/XML-Simple )
8021 - X? (
8022 - x11-proto/inputproto
8023 - x11-proto/xextproto
8024 - x11-proto/xf86vidmodeproto
8025 - )
8026 - xinerama? ( x11-proto/xineramaproto )
8027 - prelink? ( sys-devel/prelink )
8028 - >=sys-kernel/linux-headers-2.6
8029 - virtual/pkgconfig
8030 - virtual/yacc
8031 - sys-devel/flex"
8032 -
8033 -# These use a non-standard "Wine" category, which is provided by
8034 -# /etc/xdg/applications-merged/wine.menu
8035 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
8036 -usr/share/applications/wine-notepad.desktop
8037 -usr/share/applications/wine-uninstaller.desktop
8038 -usr/share/applications/wine-winecfg.desktop"
8039 -
8040 -wine_build_environment_check() {
8041 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
8042 -
8043 - # bug #549768
8044 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
8045 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
8046 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
8047 - # Run in subshell to prevent "Aborted" message
8048 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
8049 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
8050 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
8051 - eerror "or use gcc-config to select a different compiler version."
8052 - eerror "See https://bugs.gentoo.org/549768"
8053 - eerror
8054 - return 1
8055 - fi
8056 - fi
8057 -
8058 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
8059 - eerror "You need gcc-4.4+ to build 64-bit wine"
8060 - eerror
8061 - return 1
8062 - fi
8063 -
8064 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
8065 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
8066 - eerror "See https://bugs.gentoo.org/487864 for more details."
8067 - eerror
8068 - return 1
8069 - fi
8070 -}
8071 -
8072 -pkg_pretend() {
8073 - wine_build_environment_check || die
8074 -}
8075 -
8076 -pkg_setup() {
8077 - wine_build_environment_check || die
8078 -}
8079 -
8080 -src_unpack() {
8081 - if [[ ${PV} == "9999" ]] ; then
8082 - git-r3_src_unpack
8083 - if use staging || use pulseaudio; then
8084 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
8085 - unset ${PN}_LIVE_REPO;
8086 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
8087 - fi
8088 - else
8089 - unpack ${MY_P}.tar.bz2
8090 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
8091 - fi
8092 -
8093 - unpack "${WINE_GENTOO}.tar.bz2"
8094 - use gstreamer && unpack "${GST_P}.patch.bz2"
8095 -
8096 - l10n_find_plocales_changes "${S}/po" "" ".po"
8097 -}
8098 -
8099 -src_prepare() {
8100 - local md5="$(md5sum server/protocol.def)"
8101 - local PATCHES=(
8102 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
8103 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
8104 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
8105 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
8106 - )
8107 -
8108 - if use gstreamer; then
8109 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
8110 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
8111 - ewarn "this patch has been reported to cause crashes in certain games."
8112 -
8113 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
8114 - fi
8115 - if use staging; then
8116 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
8117 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
8118 - ewarn "unless you can reproduce them with USE=-staging"
8119 -
8120 - # Apply temporary patch to wine-staging to allow for epatch as a backend to wine-staging's new patch script
8121 - pushd "${STAGING_DIR}"
8122 - epatch "${FILESDIR}"/wine-staging-gentoo-epatch-support.patch
8123 - popd
8124 -
8125 - local STAGING_EXCLUDE=""
8126 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
8127 -
8128 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
8129 - ebegin "Running Wine-Staging patch installer"
8130 - (
8131 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
8132 - cd "${STAGING_DIR}/patches"
8133 - source "${STAGING_DIR}/patches/patchinstall.sh"
8134 - )
8135 - eend $?
8136 - elif use pulseaudio; then
8137 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
8138 - fi
8139 - autotools-utils_src_prepare
8140 -
8141 - # Modification of the server protocol requires regenerating the server requests
8142 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
8143 - einfo "server/protocol.def was patched; running tools/make_requests"
8144 - tools/make_requests || die #432348
8145 - fi
8146 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
8147 - if ! use run-exes; then
8148 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
8149 - fi
8150 -
8151 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
8152 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
8153 -
8154 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
8155 -}
8156 -
8157 -src_configure() {
8158 - export LDCONFIG=/bin/true
8159 - use custom-cflags || strip-flags
8160 -
8161 - multilib-minimal_src_configure
8162 -}
8163 -
8164 -multilib_src_configure() {
8165 - local myconf=(
8166 - --sysconfdir=/etc/wine
8167 - $(use_with alsa)
8168 - $(use_with capi)
8169 - $(use_with lcms cms)
8170 - $(use_with cups)
8171 - $(use_with ncurses curses)
8172 - $(use_with udisks dbus)
8173 - $(use_with fontconfig)
8174 - $(use_with ssl gnutls)
8175 - $(use_enable gecko mshtml)
8176 - $(use_with gphoto2 gphoto)
8177 - $(use_with gsm)
8178 - $(use_with gstreamer)
8179 - --without-hal
8180 - $(use_with jpeg)
8181 - $(use_with ldap)
8182 - $(use_enable mono mscoree)
8183 - $(use_with mp3 mpg123)
8184 - $(use_with netapi)
8185 - $(use_with nls gettext)
8186 - $(use_with openal)
8187 - $(use_with opencl)
8188 - $(use_with opengl)
8189 - $(use_with osmesa)
8190 - $(use_with oss)
8191 - $(use_with pcap)
8192 - $(use_with png)
8193 - $(use_with threads pthread)
8194 - $(use_with scanner sane)
8195 - $(use_enable test tests)
8196 - $(use_with truetype freetype)
8197 - $(use_with v4l)
8198 - $(use_with X x)
8199 - $(use_with xcomposite)
8200 - $(use_with xinerama)
8201 - $(use_with xml)
8202 - $(use_with xml xslt)
8203 - )
8204 -
8205 - if use pulseaudio || use staging; then
8206 - myconf+=( $(use_with pulseaudio pulse) )
8207 - fi
8208 - use staging && myconf+=(
8209 - --with-xattr
8210 - $(use_with s3tc txc_dxtn)
8211 - )
8212 -
8213 - local PKG_CONFIG AR RANLIB
8214 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
8215 - # set AR and RANLIB to make QA scripts happy; #483342
8216 - tc-export PKG_CONFIG AR RANLIB
8217 -
8218 - if use amd64; then
8219 - if [[ ${ABI} == amd64 ]]; then
8220 - myconf+=( --enable-win64 )
8221 - else
8222 - myconf+=( --disable-win64 )
8223 - fi
8224 -
8225 - # Note: using --with-wine64 results in problems with multilib.eclass
8226 - # CC/LD hackery. We're using separate tools instead.
8227 - fi
8228 -
8229 - ECONF_SOURCE=${S} \
8230 - econf "${myconf[@]}"
8231 - emake depend
8232 -}
8233 -
8234 -multilib_src_test() {
8235 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
8236 - if [[ ${ABI} == x86 ]]; then
8237 - if [[ $(id -u) == 0 ]]; then
8238 - ewarn "Skipping tests since they cannot be run under the root user."
8239 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
8240 - return
8241 - fi
8242 -
8243 - WINEPREFIX="${T}/.wine-${ABI}" \
8244 - Xemake test
8245 - fi
8246 -}
8247 -
8248 -multilib_src_install_all() {
8249 - local DOCS=( ANNOUNCE AUTHORS README )
8250 - local l
8251 - add_locale_docs() {
8252 - local locale_doc="documentation/README.$1"
8253 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
8254 - }
8255 - l10n_for_each_locale_do add_locale_docs
8256 -
8257 - einstalldocs
8258 - prune_libtool_files --all
8259 -
8260 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
8261 - if use gecko ; then
8262 - insinto /usr/share/wine/gecko
8263 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
8264 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
8265 - fi
8266 - if use mono ; then
8267 - insinto /usr/share/wine/mono
8268 - doins "${DISTDIR}"/wine-mono-${MV}.msi
8269 - fi
8270 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
8271 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
8272 - fi
8273 -
8274 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
8275 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
8276 -
8277 - if use abi_x86_64 && ! use abi_x86_32; then
8278 - dosym /usr/bin/wine{64,} # 404331
8279 - dosym /usr/bin/wine{64,}-preloader
8280 - fi
8281 -
8282 - # respect LINGUAS when installing man pages, #469418
8283 - for l in de fr pl; do
8284 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
8285 - done
8286 -}
8287 -
8288 -pkg_preinst() {
8289 - gnome2_icon_savelist
8290 -}
8291 -
8292 -pkg_postinst() {
8293 - gnome2_icon_cache_update
8294 - fdo-mime_desktop_database_update
8295 -
8296 - if ! use gecko; then
8297 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
8298 - ewarn "implementation of iexplore. Many older windows applications"
8299 - ewarn "rely upon the existence of an iexplore implementation, so"
8300 - ewarn "you will likely need to install an external one, like via winetricks"
8301 - fi
8302 - if ! use mono; then
8303 - ewarn "Without Wine Mono, wine prefixes will not have a default"
8304 - ewarn "implementation of .NET. Many windows applications rely upon"
8305 - ewarn "the existence of a .NET implementation, so you will likely need"
8306 - ewarn "to install an external one, like via winetricks"
8307 - fi
8308 -}
8309 -
8310 -pkg_postrm() {
8311 - gnome2_icon_cache_update
8312 - fdo-mime_desktop_database_update
8313 -}
8314
8315 diff --git a/app-emulation/wine/wine-1.7.35.ebuild b/app-emulation/wine/wine-1.7.35.ebuild
8316 deleted file mode 100644
8317 index 8f493b0..0000000
8318 --- a/app-emulation/wine/wine-1.7.35.ebuild
8319 +++ /dev/null
8320 @@ -1,430 +0,0 @@
8321 -# Copyright 1999-2015 Gentoo Foundation
8322 -# Distributed under the terms of the GNU General Public License v2
8323 -# $Id$
8324 -
8325 -EAPI="5"
8326 -
8327 -AUTOTOOLS_AUTORECONF=1
8328 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
8329 -PLOCALE_BACKUP="en"
8330 -
8331 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
8332 -
8333 -if [[ ${PV} == "9999" ]] ; then
8334 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
8335 - EGIT_BRANCH="master"
8336 - inherit git-r3
8337 - SRC_URI=""
8338 - #KEYWORDS=""
8339 -else
8340 - MY_P="${PN}-${PV/_/-}"
8341 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
8342 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
8343 - S=${WORKDIR}/${MY_P}
8344 -fi
8345 -
8346 -GV="2.34"
8347 -MV="4.5.4"
8348 -STAGING_P="wine-staging-${PV}"
8349 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
8350 -WINE_GENTOO="wine-gentoo-2015.03.07"
8351 -GST_P="wine-1.7.34-gstreamer-v5"
8352 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
8353 -HOMEPAGE="http://www.winehq.org/"
8354 -SRC_URI="${SRC_URI}
8355 - gecko? (
8356 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
8357 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
8358 - )
8359 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
8360 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
8361 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
8362 -
8363 -if [[ ${PV} == "9999" ]] ; then
8364 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
8365 -else
8366 - SRC_URI="${SRC_URI}
8367 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
8368 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
8369 -fi
8370 -
8371 -LICENSE="LGPL-2.1"
8372 -SLOT="0"
8373 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
8374 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
8375 - test? ( abi_x86_32 )
8376 - elibc_glibc? ( threads )
8377 - mono? ( abi_x86_32 )
8378 - pipelight? ( staging )
8379 - s3tc? ( staging )
8380 - osmesa? ( opengl )" #286560
8381 -
8382 -# FIXME: the test suite is unsuitable for us; many tests require net access
8383 -# or fail due to Xvfb's opengl limitations.
8384 -RESTRICT="test"
8385 -
8386 -COMMON_DEPEND="
8387 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
8388 - capi? ( net-dialup/capi4k-utils )
8389 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
8390 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
8391 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
8392 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
8393 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
8394 - gstreamer? (
8395 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
8396 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
8397 - )
8398 - X? (
8399 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
8400 - x11-libs/libXext[${MULTILIB_USEDEP}]
8401 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
8402 - x11-libs/libXi[${MULTILIB_USEDEP}]
8403 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
8404 - )
8405 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
8406 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
8407 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
8408 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
8409 - opengl? (
8410 - virtual/glu[${MULTILIB_USEDEP}]
8411 - virtual/opengl[${MULTILIB_USEDEP}]
8412 - )
8413 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
8414 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
8415 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
8416 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
8417 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
8418 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
8419 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
8420 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
8421 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
8422 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
8423 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
8424 - s3tc? ( media-libs/libtxc_dxtn[${MULTILIB_USEDEP}] )
8425 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
8426 - xml? (
8427 - dev-libs/libxml2[${MULTILIB_USEDEP}]
8428 - dev-libs/libxslt[${MULTILIB_USEDEP}]
8429 - )
8430 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
8431 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
8432 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
8433 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
8434 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
8435 - abi_x86_32? (
8436 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
8437 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
8438 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
8439 - !<app-emulation/emul-linux-x86-db-20140508-r3
8440 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
8441 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
8442 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
8443 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
8444 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
8445 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
8446 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
8447 - !<app-emulation/emul-linux-x86-soundlibs-20140508
8448 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
8449 - !<app-emulation/emul-linux-x86-xlibs-20140508
8450 - )"
8451 -
8452 -RDEPEND="${COMMON_DEPEND}
8453 - dos? ( games-emulation/dosbox )
8454 - perl? ( dev-lang/perl dev-perl/XML-Simple )
8455 - samba? ( >=net-fs/samba-3.0.25 )
8456 - selinux? ( sec-policy/selinux-wine )
8457 - udisks? ( sys-fs/udisks:2 )
8458 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
8459 -
8460 -# tools/make_requests requires perl
8461 -DEPEND="${COMMON_DEPEND}
8462 - staging? ( dev-lang/perl dev-perl/XML-Simple )
8463 - X? (
8464 - x11-proto/inputproto
8465 - x11-proto/xextproto
8466 - x11-proto/xf86vidmodeproto
8467 - )
8468 - xinerama? ( x11-proto/xineramaproto )
8469 - prelink? ( sys-devel/prelink )
8470 - >=sys-kernel/linux-headers-2.6
8471 - virtual/pkgconfig
8472 - virtual/yacc
8473 - sys-devel/flex"
8474 -
8475 -# These use a non-standard "Wine" category, which is provided by
8476 -# /etc/xdg/applications-merged/wine.menu
8477 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
8478 -usr/share/applications/wine-notepad.desktop
8479 -usr/share/applications/wine-uninstaller.desktop
8480 -usr/share/applications/wine-winecfg.desktop"
8481 -
8482 -wine_build_environment_check() {
8483 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
8484 -
8485 - # bug #549768
8486 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
8487 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
8488 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
8489 - # Run in subshell to prevent "Aborted" message
8490 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
8491 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
8492 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
8493 - eerror "or use gcc-config to select a different compiler version."
8494 - eerror "See https://bugs.gentoo.org/549768"
8495 - eerror
8496 - return 1
8497 - fi
8498 - fi
8499 -
8500 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
8501 - eerror "You need gcc-4.4+ to build 64-bit wine"
8502 - eerror
8503 - return 1
8504 - fi
8505 -
8506 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
8507 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
8508 - eerror "See https://bugs.gentoo.org/487864 for more details."
8509 - eerror
8510 - return 1
8511 - fi
8512 -}
8513 -
8514 -pkg_pretend() {
8515 - wine_build_environment_check || die
8516 -}
8517 -
8518 -pkg_setup() {
8519 - wine_build_environment_check || die
8520 -}
8521 -
8522 -src_unpack() {
8523 - if [[ ${PV} == "9999" ]] ; then
8524 - git-r3_src_unpack
8525 - if use staging || use pulseaudio; then
8526 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
8527 - unset ${PN}_LIVE_REPO;
8528 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
8529 - fi
8530 - else
8531 - unpack ${MY_P}.tar.bz2
8532 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
8533 - fi
8534 -
8535 - unpack "${WINE_GENTOO}.tar.bz2"
8536 - use gstreamer && unpack "${GST_P}.patch.bz2"
8537 -
8538 - l10n_find_plocales_changes "${S}/po" "" ".po"
8539 -}
8540 -
8541 -src_prepare() {
8542 - local md5="$(md5sum server/protocol.def)"
8543 - local PATCHES=(
8544 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
8545 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
8546 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
8547 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
8548 - )
8549 -
8550 - if use gstreamer; then
8551 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
8552 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
8553 - ewarn "this patch has been reported to cause crashes in certain games."
8554 -
8555 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
8556 - fi
8557 - if use staging; then
8558 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
8559 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
8560 - ewarn "unless you can reproduce them with USE=-staging"
8561 -
8562 - local STAGING_EXCLUDE=""
8563 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
8564 -
8565 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
8566 - ebegin "Running Wine-Staging patch installer"
8567 - (
8568 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
8569 - cd "${STAGING_DIR}/patches"
8570 - source "${STAGING_DIR}/patches/patchinstall.sh"
8571 - )
8572 - eend $?
8573 - elif use pulseaudio; then
8574 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
8575 - fi
8576 - autotools-utils_src_prepare
8577 -
8578 - # Modification of the server protocol requires regenerating the server requests
8579 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
8580 - einfo "server/protocol.def was patched; running tools/make_requests"
8581 - tools/make_requests || die #432348
8582 - fi
8583 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
8584 - if ! use run-exes; then
8585 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
8586 - fi
8587 -
8588 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
8589 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
8590 -
8591 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
8592 -}
8593 -
8594 -src_configure() {
8595 - export LDCONFIG=/bin/true
8596 - use custom-cflags || strip-flags
8597 -
8598 - multilib-minimal_src_configure
8599 -}
8600 -
8601 -multilib_src_configure() {
8602 - local myconf=(
8603 - --sysconfdir=/etc/wine
8604 - $(use_with alsa)
8605 - $(use_with capi)
8606 - $(use_with lcms cms)
8607 - $(use_with cups)
8608 - $(use_with ncurses curses)
8609 - $(use_with udisks dbus)
8610 - $(use_with fontconfig)
8611 - $(use_with ssl gnutls)
8612 - $(use_enable gecko mshtml)
8613 - $(use_with gphoto2 gphoto)
8614 - $(use_with gsm)
8615 - $(use_with gstreamer)
8616 - --without-hal
8617 - $(use_with jpeg)
8618 - $(use_with ldap)
8619 - $(use_enable mono mscoree)
8620 - $(use_with mp3 mpg123)
8621 - $(use_with netapi)
8622 - $(use_with nls gettext)
8623 - $(use_with openal)
8624 - $(use_with opencl)
8625 - $(use_with opengl)
8626 - $(use_with osmesa)
8627 - $(use_with oss)
8628 - $(use_with pcap)
8629 - $(use_with png)
8630 - $(use_with threads pthread)
8631 - $(use_with scanner sane)
8632 - $(use_enable test tests)
8633 - $(use_with truetype freetype)
8634 - $(use_with v4l)
8635 - $(use_with X x)
8636 - $(use_with xcomposite)
8637 - $(use_with xinerama)
8638 - $(use_with xml)
8639 - $(use_with xml xslt)
8640 - )
8641 -
8642 - if use pulseaudio || use staging; then
8643 - myconf+=( $(use_with pulseaudio pulse) )
8644 - fi
8645 - use staging && myconf+=(
8646 - --with-xattr
8647 - $(use_with s3tc txc_dxtn)
8648 - )
8649 -
8650 - local PKG_CONFIG AR RANLIB
8651 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
8652 - # set AR and RANLIB to make QA scripts happy; #483342
8653 - tc-export PKG_CONFIG AR RANLIB
8654 -
8655 - if use amd64; then
8656 - if [[ ${ABI} == amd64 ]]; then
8657 - myconf+=( --enable-win64 )
8658 - else
8659 - myconf+=( --disable-win64 )
8660 - fi
8661 -
8662 - # Note: using --with-wine64 results in problems with multilib.eclass
8663 - # CC/LD hackery. We're using separate tools instead.
8664 - fi
8665 -
8666 - ECONF_SOURCE=${S} \
8667 - econf "${myconf[@]}"
8668 - emake depend
8669 -}
8670 -
8671 -multilib_src_test() {
8672 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
8673 - if [[ ${ABI} == x86 ]]; then
8674 - if [[ $(id -u) == 0 ]]; then
8675 - ewarn "Skipping tests since they cannot be run under the root user."
8676 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
8677 - return
8678 - fi
8679 -
8680 - WINEPREFIX="${T}/.wine-${ABI}" \
8681 - Xemake test
8682 - fi
8683 -}
8684 -
8685 -multilib_src_install_all() {
8686 - local DOCS=( ANNOUNCE AUTHORS README )
8687 - local l
8688 - add_locale_docs() {
8689 - local locale_doc="documentation/README.$1"
8690 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
8691 - }
8692 - l10n_for_each_locale_do add_locale_docs
8693 -
8694 - einstalldocs
8695 - prune_libtool_files --all
8696 -
8697 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
8698 - if use gecko ; then
8699 - insinto /usr/share/wine/gecko
8700 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
8701 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
8702 - fi
8703 - if use mono ; then
8704 - insinto /usr/share/wine/mono
8705 - doins "${DISTDIR}"/wine-mono-${MV}.msi
8706 - fi
8707 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
8708 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
8709 - fi
8710 -
8711 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
8712 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
8713 -
8714 - if use abi_x86_64 && ! use abi_x86_32; then
8715 - dosym /usr/bin/wine{64,} # 404331
8716 - dosym /usr/bin/wine{64,}-preloader
8717 - fi
8718 -
8719 - # respect LINGUAS when installing man pages, #469418
8720 - for l in de fr pl; do
8721 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
8722 - done
8723 -}
8724 -
8725 -pkg_preinst() {
8726 - gnome2_icon_savelist
8727 -}
8728 -
8729 -pkg_postinst() {
8730 - gnome2_icon_cache_update
8731 - fdo-mime_desktop_database_update
8732 -
8733 - if ! use gecko; then
8734 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
8735 - ewarn "implementation of iexplore. Many older windows applications"
8736 - ewarn "rely upon the existence of an iexplore implementation, so"
8737 - ewarn "you will likely need to install an external one, like via winetricks"
8738 - fi
8739 - if ! use mono; then
8740 - ewarn "Without Wine Mono, wine prefixes will not have a default"
8741 - ewarn "implementation of .NET. Many windows applications rely upon"
8742 - ewarn "the existence of a .NET implementation, so you will likely need"
8743 - ewarn "to install an external one, like via winetricks"
8744 - fi
8745 -}
8746 -
8747 -pkg_postrm() {
8748 - gnome2_icon_cache_update
8749 - fdo-mime_desktop_database_update
8750 -}
8751
8752 diff --git a/app-emulation/wine/wine-1.7.36.ebuild b/app-emulation/wine/wine-1.7.36.ebuild
8753 deleted file mode 100644
8754 index 3d79ebd..0000000
8755 --- a/app-emulation/wine/wine-1.7.36.ebuild
8756 +++ /dev/null
8757 @@ -1,429 +0,0 @@
8758 -# Copyright 1999-2015 Gentoo Foundation
8759 -# Distributed under the terms of the GNU General Public License v2
8760 -# $Id$
8761 -
8762 -EAPI="5"
8763 -
8764 -AUTOTOOLS_AUTORECONF=1
8765 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
8766 -PLOCALE_BACKUP="en"
8767 -
8768 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
8769 -
8770 -if [[ ${PV} == "9999" ]] ; then
8771 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
8772 - EGIT_BRANCH="master"
8773 - inherit git-r3
8774 - SRC_URI=""
8775 - #KEYWORDS=""
8776 -else
8777 - MY_P="${PN}-${PV/_/-}"
8778 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
8779 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
8780 - S=${WORKDIR}/${MY_P}
8781 -fi
8782 -
8783 -GV="2.34"
8784 -MV="4.5.4"
8785 -STAGING_P="wine-staging-${PV}"
8786 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
8787 -WINE_GENTOO="wine-gentoo-2015.03.07"
8788 -GST_P="wine-1.7.34-gstreamer-v5"
8789 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
8790 -HOMEPAGE="http://www.winehq.org/"
8791 -SRC_URI="${SRC_URI}
8792 - gecko? (
8793 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
8794 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
8795 - )
8796 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
8797 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
8798 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
8799 -
8800 -if [[ ${PV} == "9999" ]] ; then
8801 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
8802 -else
8803 - SRC_URI="${SRC_URI}
8804 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
8805 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
8806 -fi
8807 -
8808 -LICENSE="LGPL-2.1"
8809 -SLOT="0"
8810 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
8811 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
8812 - test? ( abi_x86_32 )
8813 - elibc_glibc? ( threads )
8814 - mono? ( abi_x86_32 )
8815 - pipelight? ( staging )
8816 - s3tc? ( staging )
8817 - osmesa? ( opengl )" #286560
8818 -
8819 -# FIXME: the test suite is unsuitable for us; many tests require net access
8820 -# or fail due to Xvfb's opengl limitations.
8821 -RESTRICT="test"
8822 -
8823 -COMMON_DEPEND="
8824 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
8825 - capi? ( net-dialup/capi4k-utils )
8826 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
8827 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
8828 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
8829 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
8830 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
8831 - gstreamer? (
8832 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
8833 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
8834 - )
8835 - X? (
8836 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
8837 - x11-libs/libXext[${MULTILIB_USEDEP}]
8838 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
8839 - x11-libs/libXi[${MULTILIB_USEDEP}]
8840 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
8841 - )
8842 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
8843 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
8844 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
8845 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
8846 - opengl? (
8847 - virtual/glu[${MULTILIB_USEDEP}]
8848 - virtual/opengl[${MULTILIB_USEDEP}]
8849 - )
8850 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
8851 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
8852 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
8853 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
8854 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
8855 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
8856 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
8857 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
8858 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
8859 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
8860 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
8861 - s3tc? ( media-libs/libtxc_dxtn[${MULTILIB_USEDEP}] )
8862 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
8863 - xml? (
8864 - dev-libs/libxml2[${MULTILIB_USEDEP}]
8865 - dev-libs/libxslt[${MULTILIB_USEDEP}]
8866 - )
8867 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
8868 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
8869 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
8870 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
8871 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
8872 - abi_x86_32? (
8873 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
8874 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
8875 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
8876 - !<app-emulation/emul-linux-x86-db-20140508-r3
8877 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
8878 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
8879 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
8880 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
8881 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
8882 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
8883 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
8884 - !<app-emulation/emul-linux-x86-soundlibs-20140508
8885 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
8886 - !<app-emulation/emul-linux-x86-xlibs-20140508
8887 - )"
8888 -RDEPEND="${COMMON_DEPEND}
8889 - dos? ( games-emulation/dosbox )
8890 - perl? ( dev-lang/perl dev-perl/XML-Simple )
8891 - samba? ( >=net-fs/samba-3.0.25 )
8892 - selinux? ( sec-policy/selinux-wine )
8893 - udisks? ( sys-fs/udisks:2 )
8894 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
8895 -
8896 -# tools/make_requests requires perl
8897 -DEPEND="${COMMON_DEPEND}
8898 - staging? ( dev-lang/perl dev-perl/XML-Simple )
8899 - X? (
8900 - x11-proto/inputproto
8901 - x11-proto/xextproto
8902 - x11-proto/xf86vidmodeproto
8903 - )
8904 - xinerama? ( x11-proto/xineramaproto )
8905 - prelink? ( sys-devel/prelink )
8906 - >=sys-kernel/linux-headers-2.6
8907 - virtual/pkgconfig
8908 - virtual/yacc
8909 - sys-devel/flex"
8910 -
8911 -# These use a non-standard "Wine" category, which is provided by
8912 -# /etc/xdg/applications-merged/wine.menu
8913 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
8914 -usr/share/applications/wine-notepad.desktop
8915 -usr/share/applications/wine-uninstaller.desktop
8916 -usr/share/applications/wine-winecfg.desktop"
8917 -
8918 -wine_build_environment_check() {
8919 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
8920 -
8921 - # bug #549768
8922 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
8923 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
8924 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
8925 - # Run in subshell to prevent "Aborted" message
8926 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
8927 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
8928 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
8929 - eerror "or use gcc-config to select a different compiler version."
8930 - eerror "See https://bugs.gentoo.org/549768"
8931 - eerror
8932 - return 1
8933 - fi
8934 - fi
8935 -
8936 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
8937 - eerror "You need gcc-4.4+ to build 64-bit wine"
8938 - eerror
8939 - return 1
8940 - fi
8941 -
8942 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
8943 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
8944 - eerror "See https://bugs.gentoo.org/487864 for more details."
8945 - eerror
8946 - return 1
8947 - fi
8948 -}
8949 -
8950 -pkg_pretend() {
8951 - wine_build_environment_check || die
8952 -}
8953 -
8954 -pkg_setup() {
8955 - wine_build_environment_check || die
8956 -}
8957 -
8958 -src_unpack() {
8959 - if [[ ${PV} == "9999" ]] ; then
8960 - git-r3_src_unpack
8961 - if use staging || use pulseaudio; then
8962 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
8963 - unset ${PN}_LIVE_REPO;
8964 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
8965 - fi
8966 - else
8967 - unpack ${MY_P}.tar.bz2
8968 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
8969 - fi
8970 -
8971 - unpack "${WINE_GENTOO}.tar.bz2"
8972 - use gstreamer && unpack "${GST_P}.patch.bz2"
8973 -
8974 - l10n_find_plocales_changes "${S}/po" "" ".po"
8975 -}
8976 -
8977 -src_prepare() {
8978 - local md5="$(md5sum server/protocol.def)"
8979 - local PATCHES=(
8980 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
8981 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
8982 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
8983 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
8984 - )
8985 -
8986 - if use gstreamer; then
8987 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
8988 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
8989 - ewarn "this patch has been reported to cause crashes in certain games."
8990 -
8991 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
8992 - fi
8993 - if use staging; then
8994 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
8995 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
8996 - ewarn "unless you can reproduce them with USE=-staging"
8997 -
8998 - local STAGING_EXCLUDE=""
8999 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
9000 -
9001 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
9002 - ebegin "Running Wine-Staging patch installer"
9003 - (
9004 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
9005 - cd "${STAGING_DIR}/patches"
9006 - source "${STAGING_DIR}/patches/patchinstall.sh"
9007 - )
9008 - eend $?
9009 - elif use pulseaudio; then
9010 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
9011 - fi
9012 - autotools-utils_src_prepare
9013 -
9014 - # Modification of the server protocol requires regenerating the server requests
9015 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
9016 - einfo "server/protocol.def was patched; running tools/make_requests"
9017 - tools/make_requests || die #432348
9018 - fi
9019 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
9020 - if ! use run-exes; then
9021 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
9022 - fi
9023 -
9024 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
9025 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
9026 -
9027 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
9028 -}
9029 -
9030 -src_configure() {
9031 - export LDCONFIG=/bin/true
9032 - use custom-cflags || strip-flags
9033 -
9034 - multilib-minimal_src_configure
9035 -}
9036 -
9037 -multilib_src_configure() {
9038 - local myconf=(
9039 - --sysconfdir=/etc/wine
9040 - $(use_with alsa)
9041 - $(use_with capi)
9042 - $(use_with lcms cms)
9043 - $(use_with cups)
9044 - $(use_with ncurses curses)
9045 - $(use_with udisks dbus)
9046 - $(use_with fontconfig)
9047 - $(use_with ssl gnutls)
9048 - $(use_enable gecko mshtml)
9049 - $(use_with gphoto2 gphoto)
9050 - $(use_with gsm)
9051 - $(use_with gstreamer)
9052 - --without-hal
9053 - $(use_with jpeg)
9054 - $(use_with ldap)
9055 - $(use_enable mono mscoree)
9056 - $(use_with mp3 mpg123)
9057 - $(use_with netapi)
9058 - $(use_with nls gettext)
9059 - $(use_with openal)
9060 - $(use_with opencl)
9061 - $(use_with opengl)
9062 - $(use_with osmesa)
9063 - $(use_with oss)
9064 - $(use_with pcap)
9065 - $(use_with png)
9066 - $(use_with threads pthread)
9067 - $(use_with scanner sane)
9068 - $(use_enable test tests)
9069 - $(use_with truetype freetype)
9070 - $(use_with v4l)
9071 - $(use_with X x)
9072 - $(use_with xcomposite)
9073 - $(use_with xinerama)
9074 - $(use_with xml)
9075 - $(use_with xml xslt)
9076 - )
9077 -
9078 - if use pulseaudio || use staging; then
9079 - myconf+=( $(use_with pulseaudio pulse) )
9080 - fi
9081 - use staging && myconf+=(
9082 - --with-xattr
9083 - $(use_with s3tc txc_dxtn)
9084 - )
9085 -
9086 - local PKG_CONFIG AR RANLIB
9087 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
9088 - # set AR and RANLIB to make QA scripts happy; #483342
9089 - tc-export PKG_CONFIG AR RANLIB
9090 -
9091 - if use amd64; then
9092 - if [[ ${ABI} == amd64 ]]; then
9093 - myconf+=( --enable-win64 )
9094 - else
9095 - myconf+=( --disable-win64 )
9096 - fi
9097 -
9098 - # Note: using --with-wine64 results in problems with multilib.eclass
9099 - # CC/LD hackery. We're using separate tools instead.
9100 - fi
9101 -
9102 - ECONF_SOURCE=${S} \
9103 - econf "${myconf[@]}"
9104 - emake depend
9105 -}
9106 -
9107 -multilib_src_test() {
9108 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
9109 - if [[ ${ABI} == x86 ]]; then
9110 - if [[ $(id -u) == 0 ]]; then
9111 - ewarn "Skipping tests since they cannot be run under the root user."
9112 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
9113 - return
9114 - fi
9115 -
9116 - WINEPREFIX="${T}/.wine-${ABI}" \
9117 - Xemake test
9118 - fi
9119 -}
9120 -
9121 -multilib_src_install_all() {
9122 - local DOCS=( ANNOUNCE AUTHORS README )
9123 - local l
9124 - add_locale_docs() {
9125 - local locale_doc="documentation/README.$1"
9126 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
9127 - }
9128 - l10n_for_each_locale_do add_locale_docs
9129 -
9130 - einstalldocs
9131 - prune_libtool_files --all
9132 -
9133 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
9134 - if use gecko ; then
9135 - insinto /usr/share/wine/gecko
9136 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
9137 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
9138 - fi
9139 - if use mono ; then
9140 - insinto /usr/share/wine/mono
9141 - doins "${DISTDIR}"/wine-mono-${MV}.msi
9142 - fi
9143 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
9144 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
9145 - fi
9146 -
9147 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
9148 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
9149 -
9150 - if use abi_x86_64 && ! use abi_x86_32; then
9151 - dosym /usr/bin/wine{64,} # 404331
9152 - dosym /usr/bin/wine{64,}-preloader
9153 - fi
9154 -
9155 - # respect LINGUAS when installing man pages, #469418
9156 - for l in de fr pl; do
9157 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
9158 - done
9159 -}
9160 -
9161 -pkg_preinst() {
9162 - gnome2_icon_savelist
9163 -}
9164 -
9165 -pkg_postinst() {
9166 - gnome2_icon_cache_update
9167 - fdo-mime_desktop_database_update
9168 -
9169 - if ! use gecko; then
9170 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
9171 - ewarn "implementation of iexplore. Many older windows applications"
9172 - ewarn "rely upon the existence of an iexplore implementation, so"
9173 - ewarn "you will likely need to install an external one, like via winetricks"
9174 - fi
9175 - if ! use mono; then
9176 - ewarn "Without Wine Mono, wine prefixes will not have a default"
9177 - ewarn "implementation of .NET. Many windows applications rely upon"
9178 - ewarn "the existence of a .NET implementation, so you will likely need"
9179 - ewarn "to install an external one, like via winetricks"
9180 - fi
9181 -}
9182 -
9183 -pkg_postrm() {
9184 - gnome2_icon_cache_update
9185 - fdo-mime_desktop_database_update
9186 -}
9187
9188 diff --git a/app-emulation/wine/wine-1.7.37.ebuild b/app-emulation/wine/wine-1.7.37.ebuild
9189 deleted file mode 100644
9190 index a537166..0000000
9191 --- a/app-emulation/wine/wine-1.7.37.ebuild
9192 +++ /dev/null
9193 @@ -1,432 +0,0 @@
9194 -# Copyright 1999-2015 Gentoo Foundation
9195 -# Distributed under the terms of the GNU General Public License v2
9196 -# $Id$
9197 -
9198 -EAPI="5"
9199 -
9200 -AUTOTOOLS_AUTORECONF=1
9201 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
9202 -PLOCALE_BACKUP="en"
9203 -
9204 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
9205 -
9206 -if [[ ${PV} == "9999" ]] ; then
9207 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
9208 - EGIT_BRANCH="master"
9209 - inherit git-r3
9210 - SRC_URI=""
9211 - #KEYWORDS=""
9212 -else
9213 - MY_P="${PN}-${PV/_/-}"
9214 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
9215 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
9216 - S=${WORKDIR}/${MY_P}
9217 -fi
9218 -
9219 -GV="2.34"
9220 -MV="4.5.4"
9221 -STAGING_P="wine-staging-${PV}"
9222 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
9223 -WINE_GENTOO="wine-gentoo-2015.03.07"
9224 -GST_P="wine-1.7.34-gstreamer-v5"
9225 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
9226 -HOMEPAGE="http://www.winehq.org/"
9227 -SRC_URI="${SRC_URI}
9228 - gecko? (
9229 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
9230 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
9231 - )
9232 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
9233 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
9234 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
9235 -
9236 -if [[ ${PV} == "9999" ]] ; then
9237 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
9238 -else
9239 - SRC_URI="${SRC_URI}
9240 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
9241 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
9242 -fi
9243 -
9244 -LICENSE="LGPL-2.1"
9245 -SLOT="0"
9246 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
9247 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
9248 - test? ( abi_x86_32 )
9249 - elibc_glibc? ( threads )
9250 - mono? ( abi_x86_32 )
9251 - pipelight? ( staging )
9252 - s3tc? ( staging )
9253 - vaapi? ( staging )
9254 - osmesa? ( opengl )" #286560
9255 -
9256 -# FIXME: the test suite is unsuitable for us; many tests require net access
9257 -# or fail due to Xvfb's opengl limitations.
9258 -RESTRICT="test"
9259 -
9260 -COMMON_DEPEND="
9261 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
9262 - capi? ( net-dialup/capi4k-utils )
9263 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
9264 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
9265 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
9266 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
9267 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
9268 - gstreamer? (
9269 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
9270 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
9271 - )
9272 - X? (
9273 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
9274 - x11-libs/libXext[${MULTILIB_USEDEP}]
9275 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
9276 - x11-libs/libXi[${MULTILIB_USEDEP}]
9277 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
9278 - )
9279 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
9280 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
9281 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
9282 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
9283 - opengl? (
9284 - virtual/glu[${MULTILIB_USEDEP}]
9285 - virtual/opengl[${MULTILIB_USEDEP}]
9286 - )
9287 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
9288 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
9289 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
9290 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
9291 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
9292 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
9293 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
9294 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
9295 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
9296 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
9297 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
9298 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
9299 - xml? (
9300 - dev-libs/libxml2[${MULTILIB_USEDEP}]
9301 - dev-libs/libxslt[${MULTILIB_USEDEP}]
9302 - )
9303 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
9304 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
9305 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
9306 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
9307 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
9308 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
9309 - abi_x86_32? (
9310 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
9311 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
9312 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
9313 - !<app-emulation/emul-linux-x86-db-20140508-r3
9314 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
9315 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
9316 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
9317 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
9318 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
9319 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
9320 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
9321 - !<app-emulation/emul-linux-x86-soundlibs-20140508
9322 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
9323 - !<app-emulation/emul-linux-x86-xlibs-20140508
9324 - )"
9325 -
9326 -RDEPEND="${COMMON_DEPEND}
9327 - dos? ( games-emulation/dosbox )
9328 - perl? ( dev-lang/perl dev-perl/XML-Simple )
9329 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
9330 - samba? ( >=net-fs/samba-3.0.25 )
9331 - selinux? ( sec-policy/selinux-wine )
9332 - udisks? ( sys-fs/udisks:2 )
9333 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
9334 -
9335 -# tools/make_requests requires perl
9336 -DEPEND="${COMMON_DEPEND}
9337 - staging? ( dev-lang/perl dev-perl/XML-Simple )
9338 - X? (
9339 - x11-proto/inputproto
9340 - x11-proto/xextproto
9341 - x11-proto/xf86vidmodeproto
9342 - )
9343 - xinerama? ( x11-proto/xineramaproto )
9344 - prelink? ( sys-devel/prelink )
9345 - >=sys-kernel/linux-headers-2.6
9346 - virtual/pkgconfig
9347 - virtual/yacc
9348 - sys-devel/flex"
9349 -
9350 -# These use a non-standard "Wine" category, which is provided by
9351 -# /etc/xdg/applications-merged/wine.menu
9352 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
9353 -usr/share/applications/wine-notepad.desktop
9354 -usr/share/applications/wine-uninstaller.desktop
9355 -usr/share/applications/wine-winecfg.desktop"
9356 -
9357 -wine_build_environment_check() {
9358 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
9359 -
9360 - # bug #549768
9361 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
9362 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
9363 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
9364 - # Run in subshell to prevent "Aborted" message
9365 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
9366 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
9367 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
9368 - eerror "or use gcc-config to select a different compiler version."
9369 - eerror "See https://bugs.gentoo.org/549768"
9370 - eerror
9371 - return 1
9372 - fi
9373 - fi
9374 -
9375 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
9376 - eerror "You need gcc-4.4+ to build 64-bit wine"
9377 - eerror
9378 - return 1
9379 - fi
9380 -
9381 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
9382 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
9383 - eerror "See https://bugs.gentoo.org/487864 for more details."
9384 - eerror
9385 - return 1
9386 - fi
9387 -}
9388 -
9389 -pkg_pretend() {
9390 - wine_build_environment_check || die
9391 -}
9392 -
9393 -pkg_setup() {
9394 - wine_build_environment_check || die
9395 -}
9396 -
9397 -src_unpack() {
9398 - if [[ ${PV} == "9999" ]] ; then
9399 - git-r3_src_unpack
9400 - if use staging || use pulseaudio; then
9401 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
9402 - unset ${PN}_LIVE_REPO;
9403 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
9404 - fi
9405 - else
9406 - unpack ${MY_P}.tar.bz2
9407 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
9408 - fi
9409 -
9410 - unpack "${WINE_GENTOO}.tar.bz2"
9411 - use gstreamer && unpack "${GST_P}.patch.bz2"
9412 -
9413 - l10n_find_plocales_changes "${S}/po" "" ".po"
9414 -}
9415 -
9416 -src_prepare() {
9417 - local md5="$(md5sum server/protocol.def)"
9418 - local PATCHES=(
9419 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
9420 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
9421 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
9422 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
9423 - )
9424 -
9425 - if use gstreamer; then
9426 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
9427 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
9428 - ewarn "this patch has been reported to cause crashes in certain games."
9429 -
9430 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
9431 - fi
9432 - if use staging; then
9433 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
9434 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
9435 - ewarn "unless you can reproduce them with USE=-staging"
9436 -
9437 - local STAGING_EXCLUDE=""
9438 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
9439 -
9440 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
9441 - ebegin "Running Wine-Staging patch installer"
9442 - (
9443 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
9444 - cd "${STAGING_DIR}/patches"
9445 - source "${STAGING_DIR}/patches/patchinstall.sh"
9446 - )
9447 - eend $?
9448 - elif use pulseaudio; then
9449 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
9450 - fi
9451 - autotools-utils_src_prepare
9452 -
9453 - # Modification of the server protocol requires regenerating the server requests
9454 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
9455 - einfo "server/protocol.def was patched; running tools/make_requests"
9456 - tools/make_requests || die #432348
9457 - fi
9458 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
9459 - if ! use run-exes; then
9460 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
9461 - fi
9462 -
9463 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
9464 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
9465 -
9466 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
9467 -}
9468 -
9469 -src_configure() {
9470 - export LDCONFIG=/bin/true
9471 - use custom-cflags || strip-flags
9472 -
9473 - multilib-minimal_src_configure
9474 -}
9475 -
9476 -multilib_src_configure() {
9477 - local myconf=(
9478 - --sysconfdir=/etc/wine
9479 - $(use_with alsa)
9480 - $(use_with capi)
9481 - $(use_with lcms cms)
9482 - $(use_with cups)
9483 - $(use_with ncurses curses)
9484 - $(use_with udisks dbus)
9485 - $(use_with fontconfig)
9486 - $(use_with ssl gnutls)
9487 - $(use_enable gecko mshtml)
9488 - $(use_with gphoto2 gphoto)
9489 - $(use_with gsm)
9490 - $(use_with gstreamer)
9491 - --without-hal
9492 - $(use_with jpeg)
9493 - $(use_with ldap)
9494 - $(use_enable mono mscoree)
9495 - $(use_with mp3 mpg123)
9496 - $(use_with netapi)
9497 - $(use_with nls gettext)
9498 - $(use_with openal)
9499 - $(use_with opencl)
9500 - $(use_with opengl)
9501 - $(use_with osmesa)
9502 - $(use_with oss)
9503 - $(use_with pcap)
9504 - $(use_with png)
9505 - $(use_with threads pthread)
9506 - $(use_with scanner sane)
9507 - $(use_enable test tests)
9508 - $(use_with truetype freetype)
9509 - $(use_with v4l)
9510 - $(use_with X x)
9511 - $(use_with xcomposite)
9512 - $(use_with xinerama)
9513 - $(use_with xml)
9514 - $(use_with xml xslt)
9515 - )
9516 -
9517 - if use pulseaudio || use staging; then
9518 - myconf+=( $(use_with pulseaudio pulse) )
9519 - fi
9520 - use staging && myconf+=(
9521 - --with-xattr
9522 - $(use_with vaapi va)
9523 - )
9524 -
9525 - local PKG_CONFIG AR RANLIB
9526 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
9527 - # set AR and RANLIB to make QA scripts happy; #483342
9528 - tc-export PKG_CONFIG AR RANLIB
9529 -
9530 - if use amd64; then
9531 - if [[ ${ABI} == amd64 ]]; then
9532 - myconf+=( --enable-win64 )
9533 - else
9534 - myconf+=( --disable-win64 )
9535 - fi
9536 -
9537 - # Note: using --with-wine64 results in problems with multilib.eclass
9538 - # CC/LD hackery. We're using separate tools instead.
9539 - fi
9540 -
9541 - ECONF_SOURCE=${S} \
9542 - econf "${myconf[@]}"
9543 - emake depend
9544 -}
9545 -
9546 -multilib_src_test() {
9547 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
9548 - if [[ ${ABI} == x86 ]]; then
9549 - if [[ $(id -u) == 0 ]]; then
9550 - ewarn "Skipping tests since they cannot be run under the root user."
9551 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
9552 - return
9553 - fi
9554 -
9555 - WINEPREFIX="${T}/.wine-${ABI}" \
9556 - Xemake test
9557 - fi
9558 -}
9559 -
9560 -multilib_src_install_all() {
9561 - local DOCS=( ANNOUNCE AUTHORS README )
9562 - local l
9563 - add_locale_docs() {
9564 - local locale_doc="documentation/README.$1"
9565 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
9566 - }
9567 - l10n_for_each_locale_do add_locale_docs
9568 -
9569 - einstalldocs
9570 - prune_libtool_files --all
9571 -
9572 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
9573 - if use gecko ; then
9574 - insinto /usr/share/wine/gecko
9575 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
9576 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
9577 - fi
9578 - if use mono ; then
9579 - insinto /usr/share/wine/mono
9580 - doins "${DISTDIR}"/wine-mono-${MV}.msi
9581 - fi
9582 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
9583 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
9584 - fi
9585 -
9586 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
9587 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
9588 -
9589 - if use abi_x86_64 && ! use abi_x86_32; then
9590 - dosym /usr/bin/wine{64,} # 404331
9591 - dosym /usr/bin/wine{64,}-preloader
9592 - fi
9593 -
9594 - # respect LINGUAS when installing man pages, #469418
9595 - for l in de fr pl; do
9596 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
9597 - done
9598 -}
9599 -
9600 -pkg_preinst() {
9601 - gnome2_icon_savelist
9602 -}
9603 -
9604 -pkg_postinst() {
9605 - gnome2_icon_cache_update
9606 - fdo-mime_desktop_database_update
9607 -
9608 - if ! use gecko; then
9609 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
9610 - ewarn "implementation of iexplore. Many older windows applications"
9611 - ewarn "rely upon the existence of an iexplore implementation, so"
9612 - ewarn "you will likely need to install an external one, like via winetricks"
9613 - fi
9614 - if ! use mono; then
9615 - ewarn "Without Wine Mono, wine prefixes will not have a default"
9616 - ewarn "implementation of .NET. Many windows applications rely upon"
9617 - ewarn "the existence of a .NET implementation, so you will likely need"
9618 - ewarn "to install an external one, like via winetricks"
9619 - fi
9620 -}
9621 -
9622 -pkg_postrm() {
9623 - gnome2_icon_cache_update
9624 - fdo-mime_desktop_database_update
9625 -}
9626
9627 diff --git a/app-emulation/wine/wine-1.7.38-r1.ebuild b/app-emulation/wine/wine-1.7.38-r1.ebuild
9628 deleted file mode 100644
9629 index e8bff65..0000000
9630 --- a/app-emulation/wine/wine-1.7.38-r1.ebuild
9631 +++ /dev/null
9632 @@ -1,442 +0,0 @@
9633 -# Copyright 1999-2015 Gentoo Foundation
9634 -# Distributed under the terms of the GNU General Public License v2
9635 -# $Id$
9636 -
9637 -EAPI="5"
9638 -
9639 -AUTOTOOLS_AUTORECONF=1
9640 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
9641 -PLOCALE_BACKUP="en"
9642 -
9643 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
9644 -
9645 -if [[ ${PV} == "9999" ]] ; then
9646 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
9647 - EGIT_BRANCH="master"
9648 - inherit git-r3
9649 - SRC_URI=""
9650 - #KEYWORDS=""
9651 -else
9652 - MY_P="${PN}-${PV/_/-}"
9653 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
9654 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
9655 - S=${WORKDIR}/${MY_P}
9656 -fi
9657 -
9658 -GV="2.36"
9659 -MV="4.5.6"
9660 -STAGING_P="wine-staging-${PV}"
9661 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
9662 -WINE_GENTOO="wine-gentoo-2015.03.07"
9663 -GST_P="wine-1.7.34-gstreamer-v5"
9664 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
9665 -HOMEPAGE="http://www.winehq.org/"
9666 -SRC_URI="${SRC_URI}
9667 - gecko? (
9668 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
9669 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
9670 - )
9671 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
9672 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
9673 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
9674 -
9675 -if [[ ${PV} == "9999" ]] ; then
9676 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
9677 -else
9678 - SRC_URI="${SRC_URI}
9679 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
9680 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
9681 -fi
9682 -
9683 -LICENSE="LGPL-2.1"
9684 -SLOT="0"
9685 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
9686 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
9687 - test? ( abi_x86_32 )
9688 - elibc_glibc? ( threads )
9689 - mono? ( abi_x86_32 )
9690 - pipelight? ( staging )
9691 - s3tc? ( staging )
9692 - vaapi? ( staging )
9693 - osmesa? ( opengl )" #286560
9694 -
9695 -# FIXME: the test suite is unsuitable for us; many tests require net access
9696 -# or fail due to Xvfb's opengl limitations.
9697 -RESTRICT="test"
9698 -
9699 -COMMON_DEPEND="
9700 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
9701 - capi? ( net-dialup/capi4k-utils )
9702 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
9703 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
9704 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
9705 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
9706 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
9707 - gstreamer? (
9708 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
9709 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
9710 - )
9711 - X? (
9712 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
9713 - x11-libs/libXext[${MULTILIB_USEDEP}]
9714 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
9715 - x11-libs/libXi[${MULTILIB_USEDEP}]
9716 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
9717 - )
9718 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
9719 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
9720 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
9721 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
9722 - opengl? (
9723 - virtual/glu[${MULTILIB_USEDEP}]
9724 - virtual/opengl[${MULTILIB_USEDEP}]
9725 - )
9726 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
9727 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
9728 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
9729 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
9730 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
9731 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
9732 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
9733 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
9734 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
9735 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
9736 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
9737 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
9738 - xml? (
9739 - dev-libs/libxml2[${MULTILIB_USEDEP}]
9740 - dev-libs/libxslt[${MULTILIB_USEDEP}]
9741 - )
9742 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
9743 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
9744 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
9745 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
9746 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
9747 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
9748 - abi_x86_32? (
9749 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
9750 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
9751 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
9752 - !<app-emulation/emul-linux-x86-db-20140508-r3
9753 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
9754 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
9755 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
9756 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
9757 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
9758 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
9759 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
9760 - !<app-emulation/emul-linux-x86-soundlibs-20140508
9761 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
9762 - !<app-emulation/emul-linux-x86-xlibs-20140508
9763 - )"
9764 -
9765 -RDEPEND="${COMMON_DEPEND}
9766 - dos? ( games-emulation/dosbox )
9767 - perl? ( dev-lang/perl dev-perl/XML-Simple )
9768 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
9769 - samba? ( >=net-fs/samba-3.0.25 )
9770 - selinux? ( sec-policy/selinux-wine )
9771 - udisks? ( sys-fs/udisks:2 )
9772 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
9773 -
9774 -# tools/make_requests requires perl
9775 -DEPEND="${COMMON_DEPEND}
9776 - staging? ( dev-lang/perl dev-perl/XML-Simple )
9777 - X? (
9778 - x11-proto/inputproto
9779 - x11-proto/xextproto
9780 - x11-proto/xf86vidmodeproto
9781 - )
9782 - xinerama? ( x11-proto/xineramaproto )
9783 - prelink? ( sys-devel/prelink )
9784 - >=sys-kernel/linux-headers-2.6
9785 - virtual/pkgconfig
9786 - virtual/yacc
9787 - sys-devel/flex"
9788 -
9789 -# These use a non-standard "Wine" category, which is provided by
9790 -# /etc/xdg/applications-merged/wine.menu
9791 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
9792 -usr/share/applications/wine-notepad.desktop
9793 -usr/share/applications/wine-uninstaller.desktop
9794 -usr/share/applications/wine-winecfg.desktop"
9795 -
9796 -wine_build_environment_check() {
9797 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
9798 -
9799 - # bug #549768
9800 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
9801 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
9802 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
9803 - # Run in subshell to prevent "Aborted" message
9804 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
9805 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
9806 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
9807 - eerror "or use gcc-config to select a different compiler version."
9808 - eerror "See https://bugs.gentoo.org/549768"
9809 - eerror
9810 - return 1
9811 - fi
9812 - fi
9813 -
9814 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
9815 - eerror "You need gcc-4.4+ to build 64-bit wine"
9816 - eerror
9817 - return 1
9818 - fi
9819 -
9820 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
9821 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
9822 - eerror "See https://bugs.gentoo.org/487864 for more details."
9823 - eerror
9824 - return 1
9825 - fi
9826 -}
9827 -
9828 -pkg_pretend() {
9829 - wine_build_environment_check || die
9830 -}
9831 -
9832 -pkg_setup() {
9833 - wine_build_environment_check || die
9834 -}
9835 -
9836 -src_unpack() {
9837 - if [[ ${PV} == "9999" ]] ; then
9838 - git-r3_src_unpack
9839 - if use staging || use pulseaudio; then
9840 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
9841 - unset ${PN}_LIVE_REPO;
9842 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
9843 - fi
9844 - else
9845 - unpack ${MY_P}.tar.bz2
9846 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
9847 - fi
9848 -
9849 - unpack "${WINE_GENTOO}.tar.bz2"
9850 - use gstreamer && unpack "${GST_P}.patch.bz2"
9851 -
9852 - l10n_find_plocales_changes "${S}/po" "" ".po"
9853 -}
9854 -
9855 -src_prepare() {
9856 - local md5="$(md5sum server/protocol.def)"
9857 - local PATCHES=(
9858 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
9859 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
9860 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
9861 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
9862 - )
9863 - if use gstreamer; then
9864 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
9865 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
9866 - ewarn "this patch has been reported to cause crashes in certain games."
9867 -
9868 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
9869 - # during shutdown" patch prevents the gstreamer patch from applying cleanly.
9870 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
9871 - # patch on top.
9872 - if use staging; then
9873 - PATCHES+=(
9874 - "${FILESDIR}/${PN}-1.7.38-gstreamer-v5-staging-pre.patch"
9875 - "${WORKDIR}/${GST_P}.patch"
9876 - "${FILESDIR}/${PN}-1.7.38-gstreamer-v5-staging-post.patch" )
9877 - else
9878 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
9879 - fi
9880 - fi
9881 - if use staging; then
9882 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
9883 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
9884 - ewarn "unless you can reproduce them with USE=-staging"
9885 -
9886 - local STAGING_EXCLUDE=""
9887 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
9888 -
9889 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
9890 - ebegin "Running Wine-Staging patch installer"
9891 - (
9892 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
9893 - cd "${STAGING_DIR}/patches"
9894 - source "${STAGING_DIR}/patches/patchinstall.sh"
9895 - )
9896 - eend $?
9897 - elif use pulseaudio; then
9898 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
9899 - fi
9900 - autotools-utils_src_prepare
9901 -
9902 - # Modification of the server protocol requires regenerating the server requests
9903 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
9904 - einfo "server/protocol.def was patched; running tools/make_requests"
9905 - tools/make_requests || die #432348
9906 - fi
9907 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
9908 - if ! use run-exes; then
9909 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
9910 - fi
9911 -
9912 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
9913 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
9914 -
9915 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
9916 -}
9917 -
9918 -src_configure() {
9919 - export LDCONFIG=/bin/true
9920 - use custom-cflags || strip-flags
9921 -
9922 - multilib-minimal_src_configure
9923 -}
9924 -
9925 -multilib_src_configure() {
9926 - local myconf=(
9927 - --sysconfdir=/etc/wine
9928 - $(use_with alsa)
9929 - $(use_with capi)
9930 - $(use_with lcms cms)
9931 - $(use_with cups)
9932 - $(use_with ncurses curses)
9933 - $(use_with udisks dbus)
9934 - $(use_with fontconfig)
9935 - $(use_with ssl gnutls)
9936 - $(use_enable gecko mshtml)
9937 - $(use_with gphoto2 gphoto)
9938 - $(use_with gsm)
9939 - $(use_with gstreamer)
9940 - --without-hal
9941 - $(use_with jpeg)
9942 - $(use_with ldap)
9943 - $(use_enable mono mscoree)
9944 - $(use_with mp3 mpg123)
9945 - $(use_with netapi)
9946 - $(use_with nls gettext)
9947 - $(use_with openal)
9948 - $(use_with opencl)
9949 - $(use_with opengl)
9950 - $(use_with osmesa)
9951 - $(use_with oss)
9952 - $(use_with pcap)
9953 - $(use_with png)
9954 - $(use_with threads pthread)
9955 - $(use_with scanner sane)
9956 - $(use_enable test tests)
9957 - $(use_with truetype freetype)
9958 - $(use_with v4l)
9959 - $(use_with X x)
9960 - $(use_with xcomposite)
9961 - $(use_with xinerama)
9962 - $(use_with xml)
9963 - $(use_with xml xslt)
9964 - )
9965 -
9966 - if use pulseaudio || use staging; then
9967 - myconf+=( $(use_with pulseaudio pulse) )
9968 - fi
9969 - use staging && myconf+=(
9970 - --with-xattr
9971 - $(use_with vaapi va)
9972 - )
9973 -
9974 - local PKG_CONFIG AR RANLIB
9975 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
9976 - # set AR and RANLIB to make QA scripts happy; #483342
9977 - tc-export PKG_CONFIG AR RANLIB
9978 -
9979 - if use amd64; then
9980 - if [[ ${ABI} == amd64 ]]; then
9981 - myconf+=( --enable-win64 )
9982 - else
9983 - myconf+=( --disable-win64 )
9984 - fi
9985 -
9986 - # Note: using --with-wine64 results in problems with multilib.eclass
9987 - # CC/LD hackery. We're using separate tools instead.
9988 - fi
9989 -
9990 - ECONF_SOURCE=${S} \
9991 - econf "${myconf[@]}"
9992 - emake depend
9993 -}
9994 -
9995 -multilib_src_test() {
9996 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
9997 - if [[ ${ABI} == x86 ]]; then
9998 - if [[ $(id -u) == 0 ]]; then
9999 - ewarn "Skipping tests since they cannot be run under the root user."
10000 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
10001 - return
10002 - fi
10003 -
10004 - WINEPREFIX="${T}/.wine-${ABI}" \
10005 - Xemake test
10006 - fi
10007 -}
10008 -
10009 -multilib_src_install_all() {
10010 - local DOCS=( ANNOUNCE AUTHORS README )
10011 - local l
10012 - add_locale_docs() {
10013 - local locale_doc="documentation/README.$1"
10014 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
10015 - }
10016 - l10n_for_each_locale_do add_locale_docs
10017 -
10018 - einstalldocs
10019 - prune_libtool_files --all
10020 -
10021 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
10022 - if use gecko ; then
10023 - insinto /usr/share/wine/gecko
10024 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
10025 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
10026 - fi
10027 - if use mono ; then
10028 - insinto /usr/share/wine/mono
10029 - doins "${DISTDIR}"/wine-mono-${MV}.msi
10030 - fi
10031 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
10032 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
10033 - fi
10034 -
10035 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
10036 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
10037 -
10038 - if use abi_x86_64 && ! use abi_x86_32; then
10039 - dosym /usr/bin/wine{64,} # 404331
10040 - dosym /usr/bin/wine{64,}-preloader
10041 - fi
10042 -
10043 - # respect LINGUAS when installing man pages, #469418
10044 - for l in de fr pl; do
10045 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
10046 - done
10047 -}
10048 -
10049 -pkg_preinst() {
10050 - gnome2_icon_savelist
10051 -}
10052 -
10053 -pkg_postinst() {
10054 - gnome2_icon_cache_update
10055 - fdo-mime_desktop_database_update
10056 -
10057 - if ! use gecko; then
10058 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
10059 - ewarn "implementation of iexplore. Many older windows applications"
10060 - ewarn "rely upon the existence of an iexplore implementation, so"
10061 - ewarn "you will likely need to install an external one, like via winetricks"
10062 - fi
10063 - if ! use mono; then
10064 - ewarn "Without Wine Mono, wine prefixes will not have a default"
10065 - ewarn "implementation of .NET. Many windows applications rely upon"
10066 - ewarn "the existence of a .NET implementation, so you will likely need"
10067 - ewarn "to install an external one, like via winetricks"
10068 - fi
10069 -}
10070 -
10071 -pkg_postrm() {
10072 - gnome2_icon_cache_update
10073 - fdo-mime_desktop_database_update
10074 -}
10075
10076 diff --git a/app-emulation/wine/wine-1.7.39-r1.ebuild b/app-emulation/wine/wine-1.7.39-r1.ebuild
10077 deleted file mode 100644
10078 index cba7501..0000000
10079 --- a/app-emulation/wine/wine-1.7.39-r1.ebuild
10080 +++ /dev/null
10081 @@ -1,444 +0,0 @@
10082 -# Copyright 1999-2015 Gentoo Foundation
10083 -# Distributed under the terms of the GNU General Public License v2
10084 -# $Id$
10085 -
10086 -EAPI="5"
10087 -
10088 -AUTOTOOLS_AUTORECONF=1
10089 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
10090 -PLOCALE_BACKUP="en"
10091 -
10092 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
10093 -
10094 -if [[ ${PV} == "9999" ]] ; then
10095 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
10096 - EGIT_BRANCH="master"
10097 - inherit git-r3
10098 - SRC_URI=""
10099 - #KEYWORDS=""
10100 -else
10101 - MY_P="${PN}-${PV/_/-}"
10102 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
10103 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
10104 - S=${WORKDIR}/${MY_P}
10105 -fi
10106 -
10107 -GV="2.36"
10108 -MV="4.5.6"
10109 -STAGING_P="wine-staging-${PV}"
10110 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
10111 -WINE_GENTOO="wine-gentoo-2015.03.07"
10112 -GST_P="wine-1.7.34-gstreamer-v5"
10113 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
10114 -HOMEPAGE="http://www.winehq.org/"
10115 -SRC_URI="${SRC_URI}
10116 - gecko? (
10117 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
10118 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
10119 - )
10120 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
10121 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
10122 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
10123 -
10124 -if [[ ${PV} == "9999" ]] ; then
10125 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
10126 -else
10127 - SRC_URI="${SRC_URI}
10128 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
10129 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
10130 -fi
10131 -
10132 -LICENSE="LGPL-2.1"
10133 -SLOT="0"
10134 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
10135 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
10136 - test? ( abi_x86_32 )
10137 - elibc_glibc? ( threads )
10138 - mono? ( abi_x86_32 )
10139 - pipelight? ( staging )
10140 - s3tc? ( staging )
10141 - vaapi? ( staging )
10142 - osmesa? ( opengl )" #286560
10143 -
10144 -# FIXME: the test suite is unsuitable for us; many tests require net access
10145 -# or fail due to Xvfb's opengl limitations.
10146 -RESTRICT="test"
10147 -
10148 -COMMON_DEPEND="
10149 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
10150 - capi? ( net-dialup/capi4k-utils )
10151 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
10152 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
10153 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
10154 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
10155 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
10156 - gstreamer? (
10157 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
10158 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
10159 - )
10160 - X? (
10161 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
10162 - x11-libs/libXext[${MULTILIB_USEDEP}]
10163 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
10164 - x11-libs/libXi[${MULTILIB_USEDEP}]
10165 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
10166 - )
10167 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
10168 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
10169 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
10170 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
10171 - opengl? (
10172 - virtual/glu[${MULTILIB_USEDEP}]
10173 - virtual/opengl[${MULTILIB_USEDEP}]
10174 - )
10175 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
10176 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
10177 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
10178 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
10179 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
10180 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
10181 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
10182 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
10183 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
10184 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
10185 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
10186 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
10187 - xml? (
10188 - dev-libs/libxml2[${MULTILIB_USEDEP}]
10189 - dev-libs/libxslt[${MULTILIB_USEDEP}]
10190 - )
10191 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
10192 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
10193 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
10194 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
10195 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
10196 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
10197 - abi_x86_32? (
10198 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
10199 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
10200 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
10201 - !<app-emulation/emul-linux-x86-db-20140508-r3
10202 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
10203 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
10204 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
10205 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
10206 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
10207 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
10208 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
10209 - !<app-emulation/emul-linux-x86-soundlibs-20140508
10210 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
10211 - !<app-emulation/emul-linux-x86-xlibs-20140508
10212 - )"
10213 -
10214 -RDEPEND="${COMMON_DEPEND}
10215 - dos? ( games-emulation/dosbox )
10216 - perl? ( dev-lang/perl dev-perl/XML-Simple )
10217 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
10218 - samba? ( >=net-fs/samba-3.0.25 )
10219 - selinux? ( sec-policy/selinux-wine )
10220 - udisks? ( sys-fs/udisks:2 )
10221 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
10222 -
10223 -# tools/make_requests requires perl
10224 -DEPEND="${COMMON_DEPEND}
10225 - staging? ( dev-lang/perl dev-perl/XML-Simple )
10226 - X? (
10227 - x11-proto/inputproto
10228 - x11-proto/xextproto
10229 - x11-proto/xf86vidmodeproto
10230 - )
10231 - xinerama? ( x11-proto/xineramaproto )
10232 - prelink? ( sys-devel/prelink )
10233 - >=sys-kernel/linux-headers-2.6
10234 - virtual/pkgconfig
10235 - virtual/yacc
10236 - sys-devel/flex"
10237 -
10238 -# These use a non-standard "Wine" category, which is provided by
10239 -# /etc/xdg/applications-merged/wine.menu
10240 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
10241 -usr/share/applications/wine-notepad.desktop
10242 -usr/share/applications/wine-uninstaller.desktop
10243 -usr/share/applications/wine-winecfg.desktop"
10244 -
10245 -wine_build_environment_check() {
10246 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
10247 -
10248 - # bug #549768
10249 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
10250 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
10251 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
10252 - # Run in subshell to prevent "Aborted" message
10253 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
10254 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
10255 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
10256 - eerror "or use gcc-config to select a different compiler version."
10257 - eerror "See https://bugs.gentoo.org/549768"
10258 - eerror
10259 - return 1
10260 - fi
10261 - fi
10262 -
10263 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
10264 - eerror "You need gcc-4.4+ to build 64-bit wine"
10265 - eerror
10266 - return 1
10267 - fi
10268 -
10269 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
10270 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
10271 - eerror "See https://bugs.gentoo.org/487864 for more details."
10272 - eerror
10273 - return 1
10274 - fi
10275 -}
10276 -
10277 -pkg_pretend() {
10278 - wine_build_environment_check || die
10279 -}
10280 -
10281 -pkg_setup() {
10282 - wine_build_environment_check || die
10283 -}
10284 -
10285 -src_unpack() {
10286 - if [[ ${PV} == "9999" ]] ; then
10287 - git-r3_src_unpack
10288 - if use staging || use pulseaudio; then
10289 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
10290 - unset ${PN}_LIVE_REPO;
10291 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
10292 - fi
10293 - else
10294 - unpack ${MY_P}.tar.bz2
10295 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
10296 - fi
10297 -
10298 - unpack "${WINE_GENTOO}.tar.bz2"
10299 - use gstreamer && unpack "${GST_P}.patch.bz2"
10300 -
10301 - l10n_find_plocales_changes "${S}/po" "" ".po"
10302 -}
10303 -
10304 -src_prepare() {
10305 - local md5="$(md5sum server/protocol.def)"
10306 - local PATCHES=(
10307 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
10308 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
10309 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
10310 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
10311 - )
10312 - if use gstreamer; then
10313 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
10314 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
10315 - ewarn "this patch has been reported to cause crashes in certain games."
10316 -
10317 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
10318 - # during shutdown" patch and "Added patch to implement shared memory
10319 - # wineserver communication for various user32 functions" prevents the
10320 - # gstreamer patch from applying cleanly.
10321 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
10322 - # patch on top.
10323 - if use staging; then
10324 - PATCHES+=(
10325 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
10326 - "${WORKDIR}/${GST_P}.patch"
10327 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
10328 - else
10329 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
10330 - fi
10331 - fi
10332 - if use staging; then
10333 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
10334 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
10335 - ewarn "unless you can reproduce them with USE=-staging"
10336 -
10337 - local STAGING_EXCLUDE=""
10338 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
10339 -
10340 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
10341 - ebegin "Running Wine-Staging patch installer"
10342 - (
10343 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
10344 - cd "${STAGING_DIR}/patches"
10345 - source "${STAGING_DIR}/patches/patchinstall.sh"
10346 - )
10347 - eend $?
10348 - elif use pulseaudio; then
10349 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
10350 - fi
10351 - autotools-utils_src_prepare
10352 -
10353 - # Modification of the server protocol requires regenerating the server requests
10354 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
10355 - einfo "server/protocol.def was patched; running tools/make_requests"
10356 - tools/make_requests || die #432348
10357 - fi
10358 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
10359 - if ! use run-exes; then
10360 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
10361 - fi
10362 -
10363 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
10364 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
10365 -
10366 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
10367 -}
10368 -
10369 -src_configure() {
10370 - export LDCONFIG=/bin/true
10371 - use custom-cflags || strip-flags
10372 -
10373 - multilib-minimal_src_configure
10374 -}
10375 -
10376 -multilib_src_configure() {
10377 - local myconf=(
10378 - --sysconfdir=/etc/wine
10379 - $(use_with alsa)
10380 - $(use_with capi)
10381 - $(use_with lcms cms)
10382 - $(use_with cups)
10383 - $(use_with ncurses curses)
10384 - $(use_with udisks dbus)
10385 - $(use_with fontconfig)
10386 - $(use_with ssl gnutls)
10387 - $(use_enable gecko mshtml)
10388 - $(use_with gphoto2 gphoto)
10389 - $(use_with gsm)
10390 - $(use_with gstreamer)
10391 - --without-hal
10392 - $(use_with jpeg)
10393 - $(use_with ldap)
10394 - $(use_enable mono mscoree)
10395 - $(use_with mp3 mpg123)
10396 - $(use_with netapi)
10397 - $(use_with nls gettext)
10398 - $(use_with openal)
10399 - $(use_with opencl)
10400 - $(use_with opengl)
10401 - $(use_with osmesa)
10402 - $(use_with oss)
10403 - $(use_with pcap)
10404 - $(use_with png)
10405 - $(use_with threads pthread)
10406 - $(use_with scanner sane)
10407 - $(use_enable test tests)
10408 - $(use_with truetype freetype)
10409 - $(use_with v4l)
10410 - $(use_with X x)
10411 - $(use_with xcomposite)
10412 - $(use_with xinerama)
10413 - $(use_with xml)
10414 - $(use_with xml xslt)
10415 - )
10416 -
10417 - if use pulseaudio || use staging; then
10418 - myconf+=( $(use_with pulseaudio pulse) )
10419 - fi
10420 - use staging && myconf+=(
10421 - --with-xattr
10422 - $(use_with vaapi va)
10423 - )
10424 -
10425 - local PKG_CONFIG AR RANLIB
10426 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
10427 - # set AR and RANLIB to make QA scripts happy; #483342
10428 - tc-export PKG_CONFIG AR RANLIB
10429 -
10430 - if use amd64; then
10431 - if [[ ${ABI} == amd64 ]]; then
10432 - myconf+=( --enable-win64 )
10433 - else
10434 - myconf+=( --disable-win64 )
10435 - fi
10436 -
10437 - # Note: using --with-wine64 results in problems with multilib.eclass
10438 - # CC/LD hackery. We're using separate tools instead.
10439 - fi
10440 -
10441 - ECONF_SOURCE=${S} \
10442 - econf "${myconf[@]}"
10443 - emake depend
10444 -}
10445 -
10446 -multilib_src_test() {
10447 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
10448 - if [[ ${ABI} == x86 ]]; then
10449 - if [[ $(id -u) == 0 ]]; then
10450 - ewarn "Skipping tests since they cannot be run under the root user."
10451 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
10452 - return
10453 - fi
10454 -
10455 - WINEPREFIX="${T}/.wine-${ABI}" \
10456 - Xemake test
10457 - fi
10458 -}
10459 -
10460 -multilib_src_install_all() {
10461 - local DOCS=( ANNOUNCE AUTHORS README )
10462 - local l
10463 - add_locale_docs() {
10464 - local locale_doc="documentation/README.$1"
10465 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
10466 - }
10467 - l10n_for_each_locale_do add_locale_docs
10468 -
10469 - einstalldocs
10470 - prune_libtool_files --all
10471 -
10472 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
10473 - if use gecko ; then
10474 - insinto /usr/share/wine/gecko
10475 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
10476 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
10477 - fi
10478 - if use mono ; then
10479 - insinto /usr/share/wine/mono
10480 - doins "${DISTDIR}"/wine-mono-${MV}.msi
10481 - fi
10482 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
10483 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
10484 - fi
10485 -
10486 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
10487 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
10488 -
10489 - if use abi_x86_64 && ! use abi_x86_32; then
10490 - dosym /usr/bin/wine{64,} # 404331
10491 - dosym /usr/bin/wine{64,}-preloader
10492 - fi
10493 -
10494 - # respect LINGUAS when installing man pages, #469418
10495 - for l in de fr pl; do
10496 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
10497 - done
10498 -}
10499 -
10500 -pkg_preinst() {
10501 - gnome2_icon_savelist
10502 -}
10503 -
10504 -pkg_postinst() {
10505 - gnome2_icon_cache_update
10506 - fdo-mime_desktop_database_update
10507 -
10508 - if ! use gecko; then
10509 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
10510 - ewarn "implementation of iexplore. Many older windows applications"
10511 - ewarn "rely upon the existence of an iexplore implementation, so"
10512 - ewarn "you will likely need to install an external one, like via winetricks"
10513 - fi
10514 - if ! use mono; then
10515 - ewarn "Without Wine Mono, wine prefixes will not have a default"
10516 - ewarn "implementation of .NET. Many windows applications rely upon"
10517 - ewarn "the existence of a .NET implementation, so you will likely need"
10518 - ewarn "to install an external one, like via winetricks"
10519 - fi
10520 -}
10521 -
10522 -pkg_postrm() {
10523 - gnome2_icon_cache_update
10524 - fdo-mime_desktop_database_update
10525 -}
10526
10527 diff --git a/app-emulation/wine/wine-1.7.4-r1.ebuild b/app-emulation/wine/wine-1.7.4-r1.ebuild
10528 deleted file mode 100644
10529 index e157195..0000000
10530 --- a/app-emulation/wine/wine-1.7.4-r1.ebuild
10531 +++ /dev/null
10532 @@ -1,377 +0,0 @@
10533 -# Copyright 1999-2015 Gentoo Foundation
10534 -# Distributed under the terms of the GNU General Public License v2
10535 -# $Id$
10536 -
10537 -EAPI="5"
10538 -
10539 -AUTOTOOLS_AUTORECONF=1
10540 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
10541 -PLOCALE_BACKUP="en"
10542 -
10543 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
10544 -
10545 -if [[ ${PV} == "9999" ]] ; then
10546 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
10547 - EGIT_BRANCH="master"
10548 - inherit git-r3
10549 - SRC_URI=""
10550 - #KEYWORDS=""
10551 -else
10552 - MY_P="${PN}-${PV/_/-}"
10553 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
10554 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
10555 - S=${WORKDIR}/${MY_P}
10556 -fi
10557 -
10558 -GV="2.24"
10559 -MV="0.0.8"
10560 -PULSE_PATCHES="winepulse-patches-1.7.4"
10561 -WINE_GENTOO="wine-gentoo-2015.03.07"
10562 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
10563 -HOMEPAGE="http://www.winehq.org/"
10564 -SRC_URI="${SRC_URI}
10565 - gecko? (
10566 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
10567 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
10568 - )
10569 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
10570 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
10571 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
10572 -
10573 -LICENSE="LGPL-2.1"
10574 -SLOT="0"
10575 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
10576 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
10577 - test? ( abi_x86_32 )
10578 - elibc_glibc? ( threads )
10579 - mono? ( abi_x86_32 )
10580 - osmesa? ( opengl )" #286560
10581 -
10582 -# FIXME: the test suite is unsuitable for us; many tests require net access
10583 -# or fail due to Xvfb's opengl limitations.
10584 -RESTRICT="test"
10585 -
10586 -COMMON_DEPEND="
10587 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
10588 - capi? ( net-dialup/capi4k-utils )
10589 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
10590 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
10591 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
10592 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
10593 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
10594 - gstreamer? (
10595 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
10596 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
10597 - )
10598 - X? (
10599 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
10600 - x11-libs/libXext[${MULTILIB_USEDEP}]
10601 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
10602 - x11-libs/libXi[${MULTILIB_USEDEP}]
10603 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
10604 - )
10605 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
10606 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
10607 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
10608 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
10609 - opengl? (
10610 - virtual/glu[${MULTILIB_USEDEP}]
10611 - virtual/opengl[${MULTILIB_USEDEP}]
10612 - )
10613 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
10614 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
10615 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
10616 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
10617 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
10618 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
10619 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
10620 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
10621 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
10622 - xml? (
10623 - dev-libs/libxml2[${MULTILIB_USEDEP}]
10624 - dev-libs/libxslt[${MULTILIB_USEDEP}]
10625 - )
10626 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
10627 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
10628 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
10629 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
10630 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
10631 - abi_x86_32? (
10632 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
10633 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
10634 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
10635 - !<app-emulation/emul-linux-x86-db-20140508-r3
10636 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
10637 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
10638 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
10639 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
10640 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
10641 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
10642 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
10643 - !<app-emulation/emul-linux-x86-soundlibs-20140508
10644 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
10645 - !<app-emulation/emul-linux-x86-xlibs-20140508
10646 - )"
10647 -
10648 -RDEPEND="${COMMON_DEPEND}
10649 - dos? ( games-emulation/dosbox )
10650 - perl? ( dev-lang/perl dev-perl/XML-Simple )
10651 - samba? ( >=net-fs/samba-3.0.25 )
10652 - selinux? ( sec-policy/selinux-wine )
10653 - udisks? ( sys-fs/udisks:2 )
10654 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
10655 -
10656 -DEPEND="${COMMON_DEPEND}
10657 - X? (
10658 - x11-proto/inputproto
10659 - x11-proto/xextproto
10660 - x11-proto/xf86vidmodeproto
10661 - )
10662 - xinerama? ( x11-proto/xineramaproto )
10663 - prelink? ( sys-devel/prelink )
10664 - >=sys-kernel/linux-headers-2.6
10665 - virtual/pkgconfig
10666 - virtual/yacc
10667 - sys-devel/flex"
10668 -
10669 -# These use a non-standard "Wine" category, which is provided by
10670 -# /etc/xdg/applications-merged/wine.menu
10671 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
10672 -usr/share/applications/wine-notepad.desktop
10673 -usr/share/applications/wine-uninstaller.desktop
10674 -usr/share/applications/wine-winecfg.desktop"
10675 -
10676 -wine_build_environment_check() {
10677 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
10678 -
10679 - # bug #549768
10680 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
10681 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
10682 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
10683 - # Run in subshell to prevent "Aborted" message
10684 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
10685 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
10686 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
10687 - eerror "or use gcc-config to select a different compiler version."
10688 - eerror "See https://bugs.gentoo.org/549768"
10689 - eerror
10690 - return 1
10691 - fi
10692 - fi
10693 -
10694 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
10695 - eerror "You need gcc-4.4+ to build 64-bit wine"
10696 - eerror
10697 - return 1
10698 - fi
10699 -
10700 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
10701 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
10702 - eerror "See https://bugs.gentoo.org/487864 for more details."
10703 - eerror
10704 - return 1
10705 - fi
10706 -}
10707 -
10708 -pkg_pretend() {
10709 - wine_build_environment_check || die
10710 -}
10711 -
10712 -pkg_setup() {
10713 - wine_build_environment_check || die
10714 -}
10715 -
10716 -src_unpack() {
10717 - if [[ ${PV} == "9999" ]] ; then
10718 - git-r3_src_unpack
10719 - else
10720 - unpack ${MY_P}.tar.bz2
10721 - fi
10722 -
10723 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
10724 - unpack "${WINE_GENTOO}.tar.bz2"
10725 -
10726 - l10n_find_plocales_changes "${S}/po" "" ".po"
10727 -}
10728 -
10729 -src_prepare() {
10730 - local md5="$(md5sum server/protocol.def)"
10731 - local PATCHES=(
10732 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
10733 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
10734 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
10735 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
10736 - "${FILESDIR}"/${PN}-1.7.0-freetype-header-location.patch #539830
10737 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
10738 - )
10739 - use pulseaudio && PATCHES+=(
10740 - "../${PULSE_PATCHES}"/*.patch #421365
10741 - )
10742 -
10743 - autotools-utils_src_prepare
10744 -
10745 - # Modification of the server protocol requires regenerating the server requests
10746 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
10747 - einfo "server/protocol.def was patched; running tools/make_requests"
10748 - tools/make_requests || die #432348
10749 - fi
10750 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
10751 - if ! use run-exes; then
10752 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
10753 - fi
10754 -
10755 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
10756 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
10757 -
10758 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
10759 -}
10760 -
10761 -src_configure() {
10762 - export LDCONFIG=/bin/true
10763 - use custom-cflags || strip-flags
10764 -
10765 - multilib-minimal_src_configure
10766 -}
10767 -
10768 -multilib_src_configure() {
10769 - local myconf=(
10770 - --sysconfdir=/etc/wine
10771 - $(use_with alsa)
10772 - $(use_with capi)
10773 - $(use_with lcms cms)
10774 - $(use_with cups)
10775 - $(use_with ncurses curses)
10776 - $(use_with udisks dbus)
10777 - $(use_with fontconfig)
10778 - $(use_with ssl gnutls)
10779 - $(use_enable gecko mshtml)
10780 - $(use_with gphoto2 gphoto)
10781 - $(use_with gsm)
10782 - $(use_with gstreamer)
10783 - --without-hal
10784 - $(use_with jpeg)
10785 - $(use_with ldap)
10786 - $(use_enable mono mscoree)
10787 - $(use_with mp3 mpg123)
10788 - $(use_with nls gettext)
10789 - $(use_with openal)
10790 - $(use_with opencl)
10791 - $(use_with opengl)
10792 - $(use_with osmesa)
10793 - $(use_with oss)
10794 - $(use_with png)
10795 - $(use_with threads pthread)
10796 - $(use_with scanner sane)
10797 - $(use_enable test tests)
10798 - $(use_with truetype freetype)
10799 - $(use_with v4l)
10800 - $(use_with X x)
10801 - $(use_with xcomposite)
10802 - $(use_with xinerama)
10803 - $(use_with xml)
10804 - $(use_with xml xslt)
10805 - )
10806 -
10807 - use pulseaudio && myconf+=( --with-pulse )
10808 -
10809 - local PKG_CONFIG AR RANLIB
10810 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
10811 - # set AR and RANLIB to make QA scripts happy; #483342
10812 - tc-export PKG_CONFIG AR RANLIB
10813 -
10814 - if use amd64; then
10815 - if [[ ${ABI} == amd64 ]]; then
10816 - myconf+=( --enable-win64 )
10817 - else
10818 - myconf+=( --disable-win64 )
10819 - fi
10820 -
10821 - # Note: using --with-wine64 results in problems with multilib.eclass
10822 - # CC/LD hackery. We're using separate tools instead.
10823 - fi
10824 -
10825 - ECONF_SOURCE=${S} \
10826 - econf "${myconf[@]}"
10827 - emake depend
10828 -}
10829 -
10830 -multilib_src_test() {
10831 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
10832 - if [[ ${ABI} == x86 ]]; then
10833 - if [[ $(id -u) == 0 ]]; then
10834 - ewarn "Skipping tests since they cannot be run under the root user."
10835 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
10836 - return
10837 - fi
10838 -
10839 - WINEPREFIX="${T}/.wine-${ABI}" \
10840 - Xemake test
10841 - fi
10842 -}
10843 -
10844 -multilib_src_install_all() {
10845 - local DOCS=( ANNOUNCE AUTHORS README )
10846 - local l
10847 - add_locale_docs() {
10848 - local locale_doc="documentation/README.$1"
10849 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
10850 - }
10851 - l10n_for_each_locale_do add_locale_docs
10852 -
10853 - einstalldocs
10854 - prune_libtool_files --all
10855 -
10856 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
10857 - if use gecko ; then
10858 - insinto /usr/share/wine/gecko
10859 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
10860 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
10861 - fi
10862 - if use mono ; then
10863 - insinto /usr/share/wine/mono
10864 - doins "${DISTDIR}"/wine-mono-${MV}.msi
10865 - fi
10866 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
10867 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
10868 - fi
10869 -
10870 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
10871 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
10872 -
10873 - if use abi_x86_64 && ! use abi_x86_32; then
10874 - dosym /usr/bin/wine{64,} # 404331
10875 - dosym /usr/bin/wine{64,}-preloader
10876 - fi
10877 -
10878 - # respect LINGUAS when installing man pages, #469418
10879 - for l in de fr pl; do
10880 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
10881 - done
10882 -}
10883 -
10884 -pkg_preinst() {
10885 - gnome2_icon_savelist
10886 -}
10887 -
10888 -pkg_postinst() {
10889 - gnome2_icon_cache_update
10890 - fdo-mime_desktop_database_update
10891 -
10892 - if ! use gecko; then
10893 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
10894 - ewarn "implementation of iexplore. Many older windows applications"
10895 - ewarn "rely upon the existence of an iexplore implementation, so"
10896 - ewarn "you will likely need to install an external one, like via winetricks"
10897 - fi
10898 - if ! use mono; then
10899 - ewarn "Without Wine Mono, wine prefixes will not have a default"
10900 - ewarn "implementation of .NET. Many windows applications rely upon"
10901 - ewarn "the existence of a .NET implementation, so you will likely need"
10902 - ewarn "to install an external one, like via winetricks"
10903 - fi
10904 -}
10905 -
10906 -pkg_postrm() {
10907 - gnome2_icon_cache_update
10908 - fdo-mime_desktop_database_update
10909 -}
10910
10911 diff --git a/app-emulation/wine/wine-1.7.40-r1.ebuild b/app-emulation/wine/wine-1.7.40-r1.ebuild
10912 deleted file mode 100644
10913 index cba7501..0000000
10914 --- a/app-emulation/wine/wine-1.7.40-r1.ebuild
10915 +++ /dev/null
10916 @@ -1,444 +0,0 @@
10917 -# Copyright 1999-2015 Gentoo Foundation
10918 -# Distributed under the terms of the GNU General Public License v2
10919 -# $Id$
10920 -
10921 -EAPI="5"
10922 -
10923 -AUTOTOOLS_AUTORECONF=1
10924 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
10925 -PLOCALE_BACKUP="en"
10926 -
10927 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
10928 -
10929 -if [[ ${PV} == "9999" ]] ; then
10930 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
10931 - EGIT_BRANCH="master"
10932 - inherit git-r3
10933 - SRC_URI=""
10934 - #KEYWORDS=""
10935 -else
10936 - MY_P="${PN}-${PV/_/-}"
10937 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
10938 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
10939 - S=${WORKDIR}/${MY_P}
10940 -fi
10941 -
10942 -GV="2.36"
10943 -MV="4.5.6"
10944 -STAGING_P="wine-staging-${PV}"
10945 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
10946 -WINE_GENTOO="wine-gentoo-2015.03.07"
10947 -GST_P="wine-1.7.34-gstreamer-v5"
10948 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
10949 -HOMEPAGE="http://www.winehq.org/"
10950 -SRC_URI="${SRC_URI}
10951 - gecko? (
10952 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
10953 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
10954 - )
10955 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
10956 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
10957 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
10958 -
10959 -if [[ ${PV} == "9999" ]] ; then
10960 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
10961 -else
10962 - SRC_URI="${SRC_URI}
10963 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
10964 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
10965 -fi
10966 -
10967 -LICENSE="LGPL-2.1"
10968 -SLOT="0"
10969 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
10970 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
10971 - test? ( abi_x86_32 )
10972 - elibc_glibc? ( threads )
10973 - mono? ( abi_x86_32 )
10974 - pipelight? ( staging )
10975 - s3tc? ( staging )
10976 - vaapi? ( staging )
10977 - osmesa? ( opengl )" #286560
10978 -
10979 -# FIXME: the test suite is unsuitable for us; many tests require net access
10980 -# or fail due to Xvfb's opengl limitations.
10981 -RESTRICT="test"
10982 -
10983 -COMMON_DEPEND="
10984 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
10985 - capi? ( net-dialup/capi4k-utils )
10986 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
10987 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
10988 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
10989 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
10990 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
10991 - gstreamer? (
10992 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
10993 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
10994 - )
10995 - X? (
10996 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
10997 - x11-libs/libXext[${MULTILIB_USEDEP}]
10998 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
10999 - x11-libs/libXi[${MULTILIB_USEDEP}]
11000 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
11001 - )
11002 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
11003 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
11004 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
11005 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
11006 - opengl? (
11007 - virtual/glu[${MULTILIB_USEDEP}]
11008 - virtual/opengl[${MULTILIB_USEDEP}]
11009 - )
11010 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
11011 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
11012 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
11013 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
11014 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
11015 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
11016 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
11017 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
11018 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
11019 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
11020 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
11021 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
11022 - xml? (
11023 - dev-libs/libxml2[${MULTILIB_USEDEP}]
11024 - dev-libs/libxslt[${MULTILIB_USEDEP}]
11025 - )
11026 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
11027 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
11028 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
11029 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
11030 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
11031 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
11032 - abi_x86_32? (
11033 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
11034 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
11035 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
11036 - !<app-emulation/emul-linux-x86-db-20140508-r3
11037 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
11038 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
11039 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
11040 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
11041 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
11042 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
11043 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
11044 - !<app-emulation/emul-linux-x86-soundlibs-20140508
11045 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
11046 - !<app-emulation/emul-linux-x86-xlibs-20140508
11047 - )"
11048 -
11049 -RDEPEND="${COMMON_DEPEND}
11050 - dos? ( games-emulation/dosbox )
11051 - perl? ( dev-lang/perl dev-perl/XML-Simple )
11052 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
11053 - samba? ( >=net-fs/samba-3.0.25 )
11054 - selinux? ( sec-policy/selinux-wine )
11055 - udisks? ( sys-fs/udisks:2 )
11056 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
11057 -
11058 -# tools/make_requests requires perl
11059 -DEPEND="${COMMON_DEPEND}
11060 - staging? ( dev-lang/perl dev-perl/XML-Simple )
11061 - X? (
11062 - x11-proto/inputproto
11063 - x11-proto/xextproto
11064 - x11-proto/xf86vidmodeproto
11065 - )
11066 - xinerama? ( x11-proto/xineramaproto )
11067 - prelink? ( sys-devel/prelink )
11068 - >=sys-kernel/linux-headers-2.6
11069 - virtual/pkgconfig
11070 - virtual/yacc
11071 - sys-devel/flex"
11072 -
11073 -# These use a non-standard "Wine" category, which is provided by
11074 -# /etc/xdg/applications-merged/wine.menu
11075 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
11076 -usr/share/applications/wine-notepad.desktop
11077 -usr/share/applications/wine-uninstaller.desktop
11078 -usr/share/applications/wine-winecfg.desktop"
11079 -
11080 -wine_build_environment_check() {
11081 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
11082 -
11083 - # bug #549768
11084 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
11085 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
11086 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
11087 - # Run in subshell to prevent "Aborted" message
11088 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
11089 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
11090 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
11091 - eerror "or use gcc-config to select a different compiler version."
11092 - eerror "See https://bugs.gentoo.org/549768"
11093 - eerror
11094 - return 1
11095 - fi
11096 - fi
11097 -
11098 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
11099 - eerror "You need gcc-4.4+ to build 64-bit wine"
11100 - eerror
11101 - return 1
11102 - fi
11103 -
11104 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
11105 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
11106 - eerror "See https://bugs.gentoo.org/487864 for more details."
11107 - eerror
11108 - return 1
11109 - fi
11110 -}
11111 -
11112 -pkg_pretend() {
11113 - wine_build_environment_check || die
11114 -}
11115 -
11116 -pkg_setup() {
11117 - wine_build_environment_check || die
11118 -}
11119 -
11120 -src_unpack() {
11121 - if [[ ${PV} == "9999" ]] ; then
11122 - git-r3_src_unpack
11123 - if use staging || use pulseaudio; then
11124 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
11125 - unset ${PN}_LIVE_REPO;
11126 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
11127 - fi
11128 - else
11129 - unpack ${MY_P}.tar.bz2
11130 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
11131 - fi
11132 -
11133 - unpack "${WINE_GENTOO}.tar.bz2"
11134 - use gstreamer && unpack "${GST_P}.patch.bz2"
11135 -
11136 - l10n_find_plocales_changes "${S}/po" "" ".po"
11137 -}
11138 -
11139 -src_prepare() {
11140 - local md5="$(md5sum server/protocol.def)"
11141 - local PATCHES=(
11142 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
11143 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
11144 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
11145 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
11146 - )
11147 - if use gstreamer; then
11148 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
11149 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
11150 - ewarn "this patch has been reported to cause crashes in certain games."
11151 -
11152 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
11153 - # during shutdown" patch and "Added patch to implement shared memory
11154 - # wineserver communication for various user32 functions" prevents the
11155 - # gstreamer patch from applying cleanly.
11156 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
11157 - # patch on top.
11158 - if use staging; then
11159 - PATCHES+=(
11160 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
11161 - "${WORKDIR}/${GST_P}.patch"
11162 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
11163 - else
11164 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
11165 - fi
11166 - fi
11167 - if use staging; then
11168 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
11169 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
11170 - ewarn "unless you can reproduce them with USE=-staging"
11171 -
11172 - local STAGING_EXCLUDE=""
11173 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
11174 -
11175 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
11176 - ebegin "Running Wine-Staging patch installer"
11177 - (
11178 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
11179 - cd "${STAGING_DIR}/patches"
11180 - source "${STAGING_DIR}/patches/patchinstall.sh"
11181 - )
11182 - eend $?
11183 - elif use pulseaudio; then
11184 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
11185 - fi
11186 - autotools-utils_src_prepare
11187 -
11188 - # Modification of the server protocol requires regenerating the server requests
11189 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
11190 - einfo "server/protocol.def was patched; running tools/make_requests"
11191 - tools/make_requests || die #432348
11192 - fi
11193 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
11194 - if ! use run-exes; then
11195 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
11196 - fi
11197 -
11198 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
11199 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
11200 -
11201 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
11202 -}
11203 -
11204 -src_configure() {
11205 - export LDCONFIG=/bin/true
11206 - use custom-cflags || strip-flags
11207 -
11208 - multilib-minimal_src_configure
11209 -}
11210 -
11211 -multilib_src_configure() {
11212 - local myconf=(
11213 - --sysconfdir=/etc/wine
11214 - $(use_with alsa)
11215 - $(use_with capi)
11216 - $(use_with lcms cms)
11217 - $(use_with cups)
11218 - $(use_with ncurses curses)
11219 - $(use_with udisks dbus)
11220 - $(use_with fontconfig)
11221 - $(use_with ssl gnutls)
11222 - $(use_enable gecko mshtml)
11223 - $(use_with gphoto2 gphoto)
11224 - $(use_with gsm)
11225 - $(use_with gstreamer)
11226 - --without-hal
11227 - $(use_with jpeg)
11228 - $(use_with ldap)
11229 - $(use_enable mono mscoree)
11230 - $(use_with mp3 mpg123)
11231 - $(use_with netapi)
11232 - $(use_with nls gettext)
11233 - $(use_with openal)
11234 - $(use_with opencl)
11235 - $(use_with opengl)
11236 - $(use_with osmesa)
11237 - $(use_with oss)
11238 - $(use_with pcap)
11239 - $(use_with png)
11240 - $(use_with threads pthread)
11241 - $(use_with scanner sane)
11242 - $(use_enable test tests)
11243 - $(use_with truetype freetype)
11244 - $(use_with v4l)
11245 - $(use_with X x)
11246 - $(use_with xcomposite)
11247 - $(use_with xinerama)
11248 - $(use_with xml)
11249 - $(use_with xml xslt)
11250 - )
11251 -
11252 - if use pulseaudio || use staging; then
11253 - myconf+=( $(use_with pulseaudio pulse) )
11254 - fi
11255 - use staging && myconf+=(
11256 - --with-xattr
11257 - $(use_with vaapi va)
11258 - )
11259 -
11260 - local PKG_CONFIG AR RANLIB
11261 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
11262 - # set AR and RANLIB to make QA scripts happy; #483342
11263 - tc-export PKG_CONFIG AR RANLIB
11264 -
11265 - if use amd64; then
11266 - if [[ ${ABI} == amd64 ]]; then
11267 - myconf+=( --enable-win64 )
11268 - else
11269 - myconf+=( --disable-win64 )
11270 - fi
11271 -
11272 - # Note: using --with-wine64 results in problems with multilib.eclass
11273 - # CC/LD hackery. We're using separate tools instead.
11274 - fi
11275 -
11276 - ECONF_SOURCE=${S} \
11277 - econf "${myconf[@]}"
11278 - emake depend
11279 -}
11280 -
11281 -multilib_src_test() {
11282 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
11283 - if [[ ${ABI} == x86 ]]; then
11284 - if [[ $(id -u) == 0 ]]; then
11285 - ewarn "Skipping tests since they cannot be run under the root user."
11286 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
11287 - return
11288 - fi
11289 -
11290 - WINEPREFIX="${T}/.wine-${ABI}" \
11291 - Xemake test
11292 - fi
11293 -}
11294 -
11295 -multilib_src_install_all() {
11296 - local DOCS=( ANNOUNCE AUTHORS README )
11297 - local l
11298 - add_locale_docs() {
11299 - local locale_doc="documentation/README.$1"
11300 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
11301 - }
11302 - l10n_for_each_locale_do add_locale_docs
11303 -
11304 - einstalldocs
11305 - prune_libtool_files --all
11306 -
11307 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
11308 - if use gecko ; then
11309 - insinto /usr/share/wine/gecko
11310 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
11311 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
11312 - fi
11313 - if use mono ; then
11314 - insinto /usr/share/wine/mono
11315 - doins "${DISTDIR}"/wine-mono-${MV}.msi
11316 - fi
11317 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
11318 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
11319 - fi
11320 -
11321 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
11322 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
11323 -
11324 - if use abi_x86_64 && ! use abi_x86_32; then
11325 - dosym /usr/bin/wine{64,} # 404331
11326 - dosym /usr/bin/wine{64,}-preloader
11327 - fi
11328 -
11329 - # respect LINGUAS when installing man pages, #469418
11330 - for l in de fr pl; do
11331 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
11332 - done
11333 -}
11334 -
11335 -pkg_preinst() {
11336 - gnome2_icon_savelist
11337 -}
11338 -
11339 -pkg_postinst() {
11340 - gnome2_icon_cache_update
11341 - fdo-mime_desktop_database_update
11342 -
11343 - if ! use gecko; then
11344 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
11345 - ewarn "implementation of iexplore. Many older windows applications"
11346 - ewarn "rely upon the existence of an iexplore implementation, so"
11347 - ewarn "you will likely need to install an external one, like via winetricks"
11348 - fi
11349 - if ! use mono; then
11350 - ewarn "Without Wine Mono, wine prefixes will not have a default"
11351 - ewarn "implementation of .NET. Many windows applications rely upon"
11352 - ewarn "the existence of a .NET implementation, so you will likely need"
11353 - ewarn "to install an external one, like via winetricks"
11354 - fi
11355 -}
11356 -
11357 -pkg_postrm() {
11358 - gnome2_icon_cache_update
11359 - fdo-mime_desktop_database_update
11360 -}
11361
11362 diff --git a/app-emulation/wine/wine-1.7.41.ebuild b/app-emulation/wine/wine-1.7.41.ebuild
11363 deleted file mode 100644
11364 index cba7501..0000000
11365 --- a/app-emulation/wine/wine-1.7.41.ebuild
11366 +++ /dev/null
11367 @@ -1,444 +0,0 @@
11368 -# Copyright 1999-2015 Gentoo Foundation
11369 -# Distributed under the terms of the GNU General Public License v2
11370 -# $Id$
11371 -
11372 -EAPI="5"
11373 -
11374 -AUTOTOOLS_AUTORECONF=1
11375 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
11376 -PLOCALE_BACKUP="en"
11377 -
11378 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
11379 -
11380 -if [[ ${PV} == "9999" ]] ; then
11381 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
11382 - EGIT_BRANCH="master"
11383 - inherit git-r3
11384 - SRC_URI=""
11385 - #KEYWORDS=""
11386 -else
11387 - MY_P="${PN}-${PV/_/-}"
11388 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
11389 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
11390 - S=${WORKDIR}/${MY_P}
11391 -fi
11392 -
11393 -GV="2.36"
11394 -MV="4.5.6"
11395 -STAGING_P="wine-staging-${PV}"
11396 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
11397 -WINE_GENTOO="wine-gentoo-2015.03.07"
11398 -GST_P="wine-1.7.34-gstreamer-v5"
11399 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
11400 -HOMEPAGE="http://www.winehq.org/"
11401 -SRC_URI="${SRC_URI}
11402 - gecko? (
11403 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
11404 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
11405 - )
11406 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
11407 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
11408 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
11409 -
11410 -if [[ ${PV} == "9999" ]] ; then
11411 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
11412 -else
11413 - SRC_URI="${SRC_URI}
11414 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
11415 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
11416 -fi
11417 -
11418 -LICENSE="LGPL-2.1"
11419 -SLOT="0"
11420 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
11421 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
11422 - test? ( abi_x86_32 )
11423 - elibc_glibc? ( threads )
11424 - mono? ( abi_x86_32 )
11425 - pipelight? ( staging )
11426 - s3tc? ( staging )
11427 - vaapi? ( staging )
11428 - osmesa? ( opengl )" #286560
11429 -
11430 -# FIXME: the test suite is unsuitable for us; many tests require net access
11431 -# or fail due to Xvfb's opengl limitations.
11432 -RESTRICT="test"
11433 -
11434 -COMMON_DEPEND="
11435 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
11436 - capi? ( net-dialup/capi4k-utils )
11437 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
11438 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
11439 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
11440 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
11441 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
11442 - gstreamer? (
11443 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
11444 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
11445 - )
11446 - X? (
11447 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
11448 - x11-libs/libXext[${MULTILIB_USEDEP}]
11449 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
11450 - x11-libs/libXi[${MULTILIB_USEDEP}]
11451 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
11452 - )
11453 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
11454 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
11455 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
11456 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
11457 - opengl? (
11458 - virtual/glu[${MULTILIB_USEDEP}]
11459 - virtual/opengl[${MULTILIB_USEDEP}]
11460 - )
11461 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
11462 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
11463 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
11464 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
11465 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
11466 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
11467 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
11468 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
11469 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
11470 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
11471 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
11472 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
11473 - xml? (
11474 - dev-libs/libxml2[${MULTILIB_USEDEP}]
11475 - dev-libs/libxslt[${MULTILIB_USEDEP}]
11476 - )
11477 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
11478 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
11479 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
11480 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
11481 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
11482 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
11483 - abi_x86_32? (
11484 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
11485 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
11486 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
11487 - !<app-emulation/emul-linux-x86-db-20140508-r3
11488 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
11489 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
11490 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
11491 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
11492 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
11493 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
11494 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
11495 - !<app-emulation/emul-linux-x86-soundlibs-20140508
11496 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
11497 - !<app-emulation/emul-linux-x86-xlibs-20140508
11498 - )"
11499 -
11500 -RDEPEND="${COMMON_DEPEND}
11501 - dos? ( games-emulation/dosbox )
11502 - perl? ( dev-lang/perl dev-perl/XML-Simple )
11503 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
11504 - samba? ( >=net-fs/samba-3.0.25 )
11505 - selinux? ( sec-policy/selinux-wine )
11506 - udisks? ( sys-fs/udisks:2 )
11507 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
11508 -
11509 -# tools/make_requests requires perl
11510 -DEPEND="${COMMON_DEPEND}
11511 - staging? ( dev-lang/perl dev-perl/XML-Simple )
11512 - X? (
11513 - x11-proto/inputproto
11514 - x11-proto/xextproto
11515 - x11-proto/xf86vidmodeproto
11516 - )
11517 - xinerama? ( x11-proto/xineramaproto )
11518 - prelink? ( sys-devel/prelink )
11519 - >=sys-kernel/linux-headers-2.6
11520 - virtual/pkgconfig
11521 - virtual/yacc
11522 - sys-devel/flex"
11523 -
11524 -# These use a non-standard "Wine" category, which is provided by
11525 -# /etc/xdg/applications-merged/wine.menu
11526 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
11527 -usr/share/applications/wine-notepad.desktop
11528 -usr/share/applications/wine-uninstaller.desktop
11529 -usr/share/applications/wine-winecfg.desktop"
11530 -
11531 -wine_build_environment_check() {
11532 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
11533 -
11534 - # bug #549768
11535 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
11536 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
11537 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
11538 - # Run in subshell to prevent "Aborted" message
11539 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
11540 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
11541 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
11542 - eerror "or use gcc-config to select a different compiler version."
11543 - eerror "See https://bugs.gentoo.org/549768"
11544 - eerror
11545 - return 1
11546 - fi
11547 - fi
11548 -
11549 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
11550 - eerror "You need gcc-4.4+ to build 64-bit wine"
11551 - eerror
11552 - return 1
11553 - fi
11554 -
11555 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
11556 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
11557 - eerror "See https://bugs.gentoo.org/487864 for more details."
11558 - eerror
11559 - return 1
11560 - fi
11561 -}
11562 -
11563 -pkg_pretend() {
11564 - wine_build_environment_check || die
11565 -}
11566 -
11567 -pkg_setup() {
11568 - wine_build_environment_check || die
11569 -}
11570 -
11571 -src_unpack() {
11572 - if [[ ${PV} == "9999" ]] ; then
11573 - git-r3_src_unpack
11574 - if use staging || use pulseaudio; then
11575 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
11576 - unset ${PN}_LIVE_REPO;
11577 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
11578 - fi
11579 - else
11580 - unpack ${MY_P}.tar.bz2
11581 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
11582 - fi
11583 -
11584 - unpack "${WINE_GENTOO}.tar.bz2"
11585 - use gstreamer && unpack "${GST_P}.patch.bz2"
11586 -
11587 - l10n_find_plocales_changes "${S}/po" "" ".po"
11588 -}
11589 -
11590 -src_prepare() {
11591 - local md5="$(md5sum server/protocol.def)"
11592 - local PATCHES=(
11593 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
11594 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
11595 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
11596 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
11597 - )
11598 - if use gstreamer; then
11599 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
11600 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
11601 - ewarn "this patch has been reported to cause crashes in certain games."
11602 -
11603 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
11604 - # during shutdown" patch and "Added patch to implement shared memory
11605 - # wineserver communication for various user32 functions" prevents the
11606 - # gstreamer patch from applying cleanly.
11607 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
11608 - # patch on top.
11609 - if use staging; then
11610 - PATCHES+=(
11611 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
11612 - "${WORKDIR}/${GST_P}.patch"
11613 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
11614 - else
11615 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
11616 - fi
11617 - fi
11618 - if use staging; then
11619 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
11620 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
11621 - ewarn "unless you can reproduce them with USE=-staging"
11622 -
11623 - local STAGING_EXCLUDE=""
11624 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
11625 -
11626 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
11627 - ebegin "Running Wine-Staging patch installer"
11628 - (
11629 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
11630 - cd "${STAGING_DIR}/patches"
11631 - source "${STAGING_DIR}/patches/patchinstall.sh"
11632 - )
11633 - eend $?
11634 - elif use pulseaudio; then
11635 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
11636 - fi
11637 - autotools-utils_src_prepare
11638 -
11639 - # Modification of the server protocol requires regenerating the server requests
11640 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
11641 - einfo "server/protocol.def was patched; running tools/make_requests"
11642 - tools/make_requests || die #432348
11643 - fi
11644 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
11645 - if ! use run-exes; then
11646 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
11647 - fi
11648 -
11649 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
11650 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
11651 -
11652 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
11653 -}
11654 -
11655 -src_configure() {
11656 - export LDCONFIG=/bin/true
11657 - use custom-cflags || strip-flags
11658 -
11659 - multilib-minimal_src_configure
11660 -}
11661 -
11662 -multilib_src_configure() {
11663 - local myconf=(
11664 - --sysconfdir=/etc/wine
11665 - $(use_with alsa)
11666 - $(use_with capi)
11667 - $(use_with lcms cms)
11668 - $(use_with cups)
11669 - $(use_with ncurses curses)
11670 - $(use_with udisks dbus)
11671 - $(use_with fontconfig)
11672 - $(use_with ssl gnutls)
11673 - $(use_enable gecko mshtml)
11674 - $(use_with gphoto2 gphoto)
11675 - $(use_with gsm)
11676 - $(use_with gstreamer)
11677 - --without-hal
11678 - $(use_with jpeg)
11679 - $(use_with ldap)
11680 - $(use_enable mono mscoree)
11681 - $(use_with mp3 mpg123)
11682 - $(use_with netapi)
11683 - $(use_with nls gettext)
11684 - $(use_with openal)
11685 - $(use_with opencl)
11686 - $(use_with opengl)
11687 - $(use_with osmesa)
11688 - $(use_with oss)
11689 - $(use_with pcap)
11690 - $(use_with png)
11691 - $(use_with threads pthread)
11692 - $(use_with scanner sane)
11693 - $(use_enable test tests)
11694 - $(use_with truetype freetype)
11695 - $(use_with v4l)
11696 - $(use_with X x)
11697 - $(use_with xcomposite)
11698 - $(use_with xinerama)
11699 - $(use_with xml)
11700 - $(use_with xml xslt)
11701 - )
11702 -
11703 - if use pulseaudio || use staging; then
11704 - myconf+=( $(use_with pulseaudio pulse) )
11705 - fi
11706 - use staging && myconf+=(
11707 - --with-xattr
11708 - $(use_with vaapi va)
11709 - )
11710 -
11711 - local PKG_CONFIG AR RANLIB
11712 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
11713 - # set AR and RANLIB to make QA scripts happy; #483342
11714 - tc-export PKG_CONFIG AR RANLIB
11715 -
11716 - if use amd64; then
11717 - if [[ ${ABI} == amd64 ]]; then
11718 - myconf+=( --enable-win64 )
11719 - else
11720 - myconf+=( --disable-win64 )
11721 - fi
11722 -
11723 - # Note: using --with-wine64 results in problems with multilib.eclass
11724 - # CC/LD hackery. We're using separate tools instead.
11725 - fi
11726 -
11727 - ECONF_SOURCE=${S} \
11728 - econf "${myconf[@]}"
11729 - emake depend
11730 -}
11731 -
11732 -multilib_src_test() {
11733 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
11734 - if [[ ${ABI} == x86 ]]; then
11735 - if [[ $(id -u) == 0 ]]; then
11736 - ewarn "Skipping tests since they cannot be run under the root user."
11737 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
11738 - return
11739 - fi
11740 -
11741 - WINEPREFIX="${T}/.wine-${ABI}" \
11742 - Xemake test
11743 - fi
11744 -}
11745 -
11746 -multilib_src_install_all() {
11747 - local DOCS=( ANNOUNCE AUTHORS README )
11748 - local l
11749 - add_locale_docs() {
11750 - local locale_doc="documentation/README.$1"
11751 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
11752 - }
11753 - l10n_for_each_locale_do add_locale_docs
11754 -
11755 - einstalldocs
11756 - prune_libtool_files --all
11757 -
11758 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
11759 - if use gecko ; then
11760 - insinto /usr/share/wine/gecko
11761 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
11762 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
11763 - fi
11764 - if use mono ; then
11765 - insinto /usr/share/wine/mono
11766 - doins "${DISTDIR}"/wine-mono-${MV}.msi
11767 - fi
11768 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
11769 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
11770 - fi
11771 -
11772 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
11773 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
11774 -
11775 - if use abi_x86_64 && ! use abi_x86_32; then
11776 - dosym /usr/bin/wine{64,} # 404331
11777 - dosym /usr/bin/wine{64,}-preloader
11778 - fi
11779 -
11780 - # respect LINGUAS when installing man pages, #469418
11781 - for l in de fr pl; do
11782 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
11783 - done
11784 -}
11785 -
11786 -pkg_preinst() {
11787 - gnome2_icon_savelist
11788 -}
11789 -
11790 -pkg_postinst() {
11791 - gnome2_icon_cache_update
11792 - fdo-mime_desktop_database_update
11793 -
11794 - if ! use gecko; then
11795 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
11796 - ewarn "implementation of iexplore. Many older windows applications"
11797 - ewarn "rely upon the existence of an iexplore implementation, so"
11798 - ewarn "you will likely need to install an external one, like via winetricks"
11799 - fi
11800 - if ! use mono; then
11801 - ewarn "Without Wine Mono, wine prefixes will not have a default"
11802 - ewarn "implementation of .NET. Many windows applications rely upon"
11803 - ewarn "the existence of a .NET implementation, so you will likely need"
11804 - ewarn "to install an external one, like via winetricks"
11805 - fi
11806 -}
11807 -
11808 -pkg_postrm() {
11809 - gnome2_icon_cache_update
11810 - fdo-mime_desktop_database_update
11811 -}
11812
11813 diff --git a/app-emulation/wine/wine-1.7.42.ebuild b/app-emulation/wine/wine-1.7.42.ebuild
11814 deleted file mode 100644
11815 index cba7501..0000000
11816 --- a/app-emulation/wine/wine-1.7.42.ebuild
11817 +++ /dev/null
11818 @@ -1,444 +0,0 @@
11819 -# Copyright 1999-2015 Gentoo Foundation
11820 -# Distributed under the terms of the GNU General Public License v2
11821 -# $Id$
11822 -
11823 -EAPI="5"
11824 -
11825 -AUTOTOOLS_AUTORECONF=1
11826 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
11827 -PLOCALE_BACKUP="en"
11828 -
11829 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
11830 -
11831 -if [[ ${PV} == "9999" ]] ; then
11832 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
11833 - EGIT_BRANCH="master"
11834 - inherit git-r3
11835 - SRC_URI=""
11836 - #KEYWORDS=""
11837 -else
11838 - MY_P="${PN}-${PV/_/-}"
11839 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
11840 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
11841 - S=${WORKDIR}/${MY_P}
11842 -fi
11843 -
11844 -GV="2.36"
11845 -MV="4.5.6"
11846 -STAGING_P="wine-staging-${PV}"
11847 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
11848 -WINE_GENTOO="wine-gentoo-2015.03.07"
11849 -GST_P="wine-1.7.34-gstreamer-v5"
11850 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
11851 -HOMEPAGE="http://www.winehq.org/"
11852 -SRC_URI="${SRC_URI}
11853 - gecko? (
11854 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
11855 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
11856 - )
11857 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
11858 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
11859 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
11860 -
11861 -if [[ ${PV} == "9999" ]] ; then
11862 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
11863 -else
11864 - SRC_URI="${SRC_URI}
11865 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
11866 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
11867 -fi
11868 -
11869 -LICENSE="LGPL-2.1"
11870 -SLOT="0"
11871 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
11872 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
11873 - test? ( abi_x86_32 )
11874 - elibc_glibc? ( threads )
11875 - mono? ( abi_x86_32 )
11876 - pipelight? ( staging )
11877 - s3tc? ( staging )
11878 - vaapi? ( staging )
11879 - osmesa? ( opengl )" #286560
11880 -
11881 -# FIXME: the test suite is unsuitable for us; many tests require net access
11882 -# or fail due to Xvfb's opengl limitations.
11883 -RESTRICT="test"
11884 -
11885 -COMMON_DEPEND="
11886 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
11887 - capi? ( net-dialup/capi4k-utils )
11888 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
11889 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
11890 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
11891 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
11892 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
11893 - gstreamer? (
11894 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
11895 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
11896 - )
11897 - X? (
11898 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
11899 - x11-libs/libXext[${MULTILIB_USEDEP}]
11900 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
11901 - x11-libs/libXi[${MULTILIB_USEDEP}]
11902 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
11903 - )
11904 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
11905 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
11906 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
11907 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
11908 - opengl? (
11909 - virtual/glu[${MULTILIB_USEDEP}]
11910 - virtual/opengl[${MULTILIB_USEDEP}]
11911 - )
11912 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
11913 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
11914 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
11915 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
11916 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
11917 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
11918 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
11919 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
11920 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
11921 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
11922 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
11923 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
11924 - xml? (
11925 - dev-libs/libxml2[${MULTILIB_USEDEP}]
11926 - dev-libs/libxslt[${MULTILIB_USEDEP}]
11927 - )
11928 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
11929 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
11930 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
11931 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
11932 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
11933 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
11934 - abi_x86_32? (
11935 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
11936 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
11937 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
11938 - !<app-emulation/emul-linux-x86-db-20140508-r3
11939 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
11940 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
11941 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
11942 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
11943 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
11944 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
11945 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
11946 - !<app-emulation/emul-linux-x86-soundlibs-20140508
11947 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
11948 - !<app-emulation/emul-linux-x86-xlibs-20140508
11949 - )"
11950 -
11951 -RDEPEND="${COMMON_DEPEND}
11952 - dos? ( games-emulation/dosbox )
11953 - perl? ( dev-lang/perl dev-perl/XML-Simple )
11954 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
11955 - samba? ( >=net-fs/samba-3.0.25 )
11956 - selinux? ( sec-policy/selinux-wine )
11957 - udisks? ( sys-fs/udisks:2 )
11958 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
11959 -
11960 -# tools/make_requests requires perl
11961 -DEPEND="${COMMON_DEPEND}
11962 - staging? ( dev-lang/perl dev-perl/XML-Simple )
11963 - X? (
11964 - x11-proto/inputproto
11965 - x11-proto/xextproto
11966 - x11-proto/xf86vidmodeproto
11967 - )
11968 - xinerama? ( x11-proto/xineramaproto )
11969 - prelink? ( sys-devel/prelink )
11970 - >=sys-kernel/linux-headers-2.6
11971 - virtual/pkgconfig
11972 - virtual/yacc
11973 - sys-devel/flex"
11974 -
11975 -# These use a non-standard "Wine" category, which is provided by
11976 -# /etc/xdg/applications-merged/wine.menu
11977 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
11978 -usr/share/applications/wine-notepad.desktop
11979 -usr/share/applications/wine-uninstaller.desktop
11980 -usr/share/applications/wine-winecfg.desktop"
11981 -
11982 -wine_build_environment_check() {
11983 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
11984 -
11985 - # bug #549768
11986 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
11987 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
11988 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
11989 - # Run in subshell to prevent "Aborted" message
11990 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
11991 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
11992 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
11993 - eerror "or use gcc-config to select a different compiler version."
11994 - eerror "See https://bugs.gentoo.org/549768"
11995 - eerror
11996 - return 1
11997 - fi
11998 - fi
11999 -
12000 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
12001 - eerror "You need gcc-4.4+ to build 64-bit wine"
12002 - eerror
12003 - return 1
12004 - fi
12005 -
12006 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
12007 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
12008 - eerror "See https://bugs.gentoo.org/487864 for more details."
12009 - eerror
12010 - return 1
12011 - fi
12012 -}
12013 -
12014 -pkg_pretend() {
12015 - wine_build_environment_check || die
12016 -}
12017 -
12018 -pkg_setup() {
12019 - wine_build_environment_check || die
12020 -}
12021 -
12022 -src_unpack() {
12023 - if [[ ${PV} == "9999" ]] ; then
12024 - git-r3_src_unpack
12025 - if use staging || use pulseaudio; then
12026 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
12027 - unset ${PN}_LIVE_REPO;
12028 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
12029 - fi
12030 - else
12031 - unpack ${MY_P}.tar.bz2
12032 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
12033 - fi
12034 -
12035 - unpack "${WINE_GENTOO}.tar.bz2"
12036 - use gstreamer && unpack "${GST_P}.patch.bz2"
12037 -
12038 - l10n_find_plocales_changes "${S}/po" "" ".po"
12039 -}
12040 -
12041 -src_prepare() {
12042 - local md5="$(md5sum server/protocol.def)"
12043 - local PATCHES=(
12044 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
12045 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
12046 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
12047 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
12048 - )
12049 - if use gstreamer; then
12050 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
12051 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
12052 - ewarn "this patch has been reported to cause crashes in certain games."
12053 -
12054 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
12055 - # during shutdown" patch and "Added patch to implement shared memory
12056 - # wineserver communication for various user32 functions" prevents the
12057 - # gstreamer patch from applying cleanly.
12058 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
12059 - # patch on top.
12060 - if use staging; then
12061 - PATCHES+=(
12062 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
12063 - "${WORKDIR}/${GST_P}.patch"
12064 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
12065 - else
12066 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
12067 - fi
12068 - fi
12069 - if use staging; then
12070 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
12071 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
12072 - ewarn "unless you can reproduce them with USE=-staging"
12073 -
12074 - local STAGING_EXCLUDE=""
12075 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
12076 -
12077 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
12078 - ebegin "Running Wine-Staging patch installer"
12079 - (
12080 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
12081 - cd "${STAGING_DIR}/patches"
12082 - source "${STAGING_DIR}/patches/patchinstall.sh"
12083 - )
12084 - eend $?
12085 - elif use pulseaudio; then
12086 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
12087 - fi
12088 - autotools-utils_src_prepare
12089 -
12090 - # Modification of the server protocol requires regenerating the server requests
12091 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
12092 - einfo "server/protocol.def was patched; running tools/make_requests"
12093 - tools/make_requests || die #432348
12094 - fi
12095 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
12096 - if ! use run-exes; then
12097 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
12098 - fi
12099 -
12100 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
12101 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
12102 -
12103 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
12104 -}
12105 -
12106 -src_configure() {
12107 - export LDCONFIG=/bin/true
12108 - use custom-cflags || strip-flags
12109 -
12110 - multilib-minimal_src_configure
12111 -}
12112 -
12113 -multilib_src_configure() {
12114 - local myconf=(
12115 - --sysconfdir=/etc/wine
12116 - $(use_with alsa)
12117 - $(use_with capi)
12118 - $(use_with lcms cms)
12119 - $(use_with cups)
12120 - $(use_with ncurses curses)
12121 - $(use_with udisks dbus)
12122 - $(use_with fontconfig)
12123 - $(use_with ssl gnutls)
12124 - $(use_enable gecko mshtml)
12125 - $(use_with gphoto2 gphoto)
12126 - $(use_with gsm)
12127 - $(use_with gstreamer)
12128 - --without-hal
12129 - $(use_with jpeg)
12130 - $(use_with ldap)
12131 - $(use_enable mono mscoree)
12132 - $(use_with mp3 mpg123)
12133 - $(use_with netapi)
12134 - $(use_with nls gettext)
12135 - $(use_with openal)
12136 - $(use_with opencl)
12137 - $(use_with opengl)
12138 - $(use_with osmesa)
12139 - $(use_with oss)
12140 - $(use_with pcap)
12141 - $(use_with png)
12142 - $(use_with threads pthread)
12143 - $(use_with scanner sane)
12144 - $(use_enable test tests)
12145 - $(use_with truetype freetype)
12146 - $(use_with v4l)
12147 - $(use_with X x)
12148 - $(use_with xcomposite)
12149 - $(use_with xinerama)
12150 - $(use_with xml)
12151 - $(use_with xml xslt)
12152 - )
12153 -
12154 - if use pulseaudio || use staging; then
12155 - myconf+=( $(use_with pulseaudio pulse) )
12156 - fi
12157 - use staging && myconf+=(
12158 - --with-xattr
12159 - $(use_with vaapi va)
12160 - )
12161 -
12162 - local PKG_CONFIG AR RANLIB
12163 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
12164 - # set AR and RANLIB to make QA scripts happy; #483342
12165 - tc-export PKG_CONFIG AR RANLIB
12166 -
12167 - if use amd64; then
12168 - if [[ ${ABI} == amd64 ]]; then
12169 - myconf+=( --enable-win64 )
12170 - else
12171 - myconf+=( --disable-win64 )
12172 - fi
12173 -
12174 - # Note: using --with-wine64 results in problems with multilib.eclass
12175 - # CC/LD hackery. We're using separate tools instead.
12176 - fi
12177 -
12178 - ECONF_SOURCE=${S} \
12179 - econf "${myconf[@]}"
12180 - emake depend
12181 -}
12182 -
12183 -multilib_src_test() {
12184 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
12185 - if [[ ${ABI} == x86 ]]; then
12186 - if [[ $(id -u) == 0 ]]; then
12187 - ewarn "Skipping tests since they cannot be run under the root user."
12188 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
12189 - return
12190 - fi
12191 -
12192 - WINEPREFIX="${T}/.wine-${ABI}" \
12193 - Xemake test
12194 - fi
12195 -}
12196 -
12197 -multilib_src_install_all() {
12198 - local DOCS=( ANNOUNCE AUTHORS README )
12199 - local l
12200 - add_locale_docs() {
12201 - local locale_doc="documentation/README.$1"
12202 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
12203 - }
12204 - l10n_for_each_locale_do add_locale_docs
12205 -
12206 - einstalldocs
12207 - prune_libtool_files --all
12208 -
12209 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
12210 - if use gecko ; then
12211 - insinto /usr/share/wine/gecko
12212 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
12213 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
12214 - fi
12215 - if use mono ; then
12216 - insinto /usr/share/wine/mono
12217 - doins "${DISTDIR}"/wine-mono-${MV}.msi
12218 - fi
12219 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
12220 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
12221 - fi
12222 -
12223 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
12224 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
12225 -
12226 - if use abi_x86_64 && ! use abi_x86_32; then
12227 - dosym /usr/bin/wine{64,} # 404331
12228 - dosym /usr/bin/wine{64,}-preloader
12229 - fi
12230 -
12231 - # respect LINGUAS when installing man pages, #469418
12232 - for l in de fr pl; do
12233 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
12234 - done
12235 -}
12236 -
12237 -pkg_preinst() {
12238 - gnome2_icon_savelist
12239 -}
12240 -
12241 -pkg_postinst() {
12242 - gnome2_icon_cache_update
12243 - fdo-mime_desktop_database_update
12244 -
12245 - if ! use gecko; then
12246 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
12247 - ewarn "implementation of iexplore. Many older windows applications"
12248 - ewarn "rely upon the existence of an iexplore implementation, so"
12249 - ewarn "you will likely need to install an external one, like via winetricks"
12250 - fi
12251 - if ! use mono; then
12252 - ewarn "Without Wine Mono, wine prefixes will not have a default"
12253 - ewarn "implementation of .NET. Many windows applications rely upon"
12254 - ewarn "the existence of a .NET implementation, so you will likely need"
12255 - ewarn "to install an external one, like via winetricks"
12256 - fi
12257 -}
12258 -
12259 -pkg_postrm() {
12260 - gnome2_icon_cache_update
12261 - fdo-mime_desktop_database_update
12262 -}
12263
12264 diff --git a/app-emulation/wine/wine-1.7.43.ebuild b/app-emulation/wine/wine-1.7.43.ebuild
12265 deleted file mode 100644
12266 index cba7501..0000000
12267 --- a/app-emulation/wine/wine-1.7.43.ebuild
12268 +++ /dev/null
12269 @@ -1,444 +0,0 @@
12270 -# Copyright 1999-2015 Gentoo Foundation
12271 -# Distributed under the terms of the GNU General Public License v2
12272 -# $Id$
12273 -
12274 -EAPI="5"
12275 -
12276 -AUTOTOOLS_AUTORECONF=1
12277 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
12278 -PLOCALE_BACKUP="en"
12279 -
12280 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
12281 -
12282 -if [[ ${PV} == "9999" ]] ; then
12283 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
12284 - EGIT_BRANCH="master"
12285 - inherit git-r3
12286 - SRC_URI=""
12287 - #KEYWORDS=""
12288 -else
12289 - MY_P="${PN}-${PV/_/-}"
12290 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
12291 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
12292 - S=${WORKDIR}/${MY_P}
12293 -fi
12294 -
12295 -GV="2.36"
12296 -MV="4.5.6"
12297 -STAGING_P="wine-staging-${PV}"
12298 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
12299 -WINE_GENTOO="wine-gentoo-2015.03.07"
12300 -GST_P="wine-1.7.34-gstreamer-v5"
12301 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
12302 -HOMEPAGE="http://www.winehq.org/"
12303 -SRC_URI="${SRC_URI}
12304 - gecko? (
12305 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
12306 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
12307 - )
12308 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
12309 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
12310 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
12311 -
12312 -if [[ ${PV} == "9999" ]] ; then
12313 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
12314 -else
12315 - SRC_URI="${SRC_URI}
12316 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
12317 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
12318 -fi
12319 -
12320 -LICENSE="LGPL-2.1"
12321 -SLOT="0"
12322 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
12323 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
12324 - test? ( abi_x86_32 )
12325 - elibc_glibc? ( threads )
12326 - mono? ( abi_x86_32 )
12327 - pipelight? ( staging )
12328 - s3tc? ( staging )
12329 - vaapi? ( staging )
12330 - osmesa? ( opengl )" #286560
12331 -
12332 -# FIXME: the test suite is unsuitable for us; many tests require net access
12333 -# or fail due to Xvfb's opengl limitations.
12334 -RESTRICT="test"
12335 -
12336 -COMMON_DEPEND="
12337 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
12338 - capi? ( net-dialup/capi4k-utils )
12339 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
12340 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
12341 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
12342 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
12343 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
12344 - gstreamer? (
12345 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
12346 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
12347 - )
12348 - X? (
12349 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
12350 - x11-libs/libXext[${MULTILIB_USEDEP}]
12351 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
12352 - x11-libs/libXi[${MULTILIB_USEDEP}]
12353 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
12354 - )
12355 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
12356 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
12357 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
12358 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
12359 - opengl? (
12360 - virtual/glu[${MULTILIB_USEDEP}]
12361 - virtual/opengl[${MULTILIB_USEDEP}]
12362 - )
12363 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
12364 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
12365 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
12366 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
12367 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
12368 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
12369 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
12370 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
12371 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
12372 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
12373 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
12374 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
12375 - xml? (
12376 - dev-libs/libxml2[${MULTILIB_USEDEP}]
12377 - dev-libs/libxslt[${MULTILIB_USEDEP}]
12378 - )
12379 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
12380 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
12381 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
12382 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
12383 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
12384 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
12385 - abi_x86_32? (
12386 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
12387 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
12388 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
12389 - !<app-emulation/emul-linux-x86-db-20140508-r3
12390 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
12391 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
12392 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
12393 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
12394 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
12395 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
12396 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
12397 - !<app-emulation/emul-linux-x86-soundlibs-20140508
12398 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
12399 - !<app-emulation/emul-linux-x86-xlibs-20140508
12400 - )"
12401 -
12402 -RDEPEND="${COMMON_DEPEND}
12403 - dos? ( games-emulation/dosbox )
12404 - perl? ( dev-lang/perl dev-perl/XML-Simple )
12405 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
12406 - samba? ( >=net-fs/samba-3.0.25 )
12407 - selinux? ( sec-policy/selinux-wine )
12408 - udisks? ( sys-fs/udisks:2 )
12409 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
12410 -
12411 -# tools/make_requests requires perl
12412 -DEPEND="${COMMON_DEPEND}
12413 - staging? ( dev-lang/perl dev-perl/XML-Simple )
12414 - X? (
12415 - x11-proto/inputproto
12416 - x11-proto/xextproto
12417 - x11-proto/xf86vidmodeproto
12418 - )
12419 - xinerama? ( x11-proto/xineramaproto )
12420 - prelink? ( sys-devel/prelink )
12421 - >=sys-kernel/linux-headers-2.6
12422 - virtual/pkgconfig
12423 - virtual/yacc
12424 - sys-devel/flex"
12425 -
12426 -# These use a non-standard "Wine" category, which is provided by
12427 -# /etc/xdg/applications-merged/wine.menu
12428 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
12429 -usr/share/applications/wine-notepad.desktop
12430 -usr/share/applications/wine-uninstaller.desktop
12431 -usr/share/applications/wine-winecfg.desktop"
12432 -
12433 -wine_build_environment_check() {
12434 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
12435 -
12436 - # bug #549768
12437 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
12438 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
12439 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
12440 - # Run in subshell to prevent "Aborted" message
12441 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
12442 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
12443 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
12444 - eerror "or use gcc-config to select a different compiler version."
12445 - eerror "See https://bugs.gentoo.org/549768"
12446 - eerror
12447 - return 1
12448 - fi
12449 - fi
12450 -
12451 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
12452 - eerror "You need gcc-4.4+ to build 64-bit wine"
12453 - eerror
12454 - return 1
12455 - fi
12456 -
12457 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
12458 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
12459 - eerror "See https://bugs.gentoo.org/487864 for more details."
12460 - eerror
12461 - return 1
12462 - fi
12463 -}
12464 -
12465 -pkg_pretend() {
12466 - wine_build_environment_check || die
12467 -}
12468 -
12469 -pkg_setup() {
12470 - wine_build_environment_check || die
12471 -}
12472 -
12473 -src_unpack() {
12474 - if [[ ${PV} == "9999" ]] ; then
12475 - git-r3_src_unpack
12476 - if use staging || use pulseaudio; then
12477 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
12478 - unset ${PN}_LIVE_REPO;
12479 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
12480 - fi
12481 - else
12482 - unpack ${MY_P}.tar.bz2
12483 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
12484 - fi
12485 -
12486 - unpack "${WINE_GENTOO}.tar.bz2"
12487 - use gstreamer && unpack "${GST_P}.patch.bz2"
12488 -
12489 - l10n_find_plocales_changes "${S}/po" "" ".po"
12490 -}
12491 -
12492 -src_prepare() {
12493 - local md5="$(md5sum server/protocol.def)"
12494 - local PATCHES=(
12495 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
12496 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
12497 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
12498 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
12499 - )
12500 - if use gstreamer; then
12501 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
12502 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
12503 - ewarn "this patch has been reported to cause crashes in certain games."
12504 -
12505 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
12506 - # during shutdown" patch and "Added patch to implement shared memory
12507 - # wineserver communication for various user32 functions" prevents the
12508 - # gstreamer patch from applying cleanly.
12509 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
12510 - # patch on top.
12511 - if use staging; then
12512 - PATCHES+=(
12513 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
12514 - "${WORKDIR}/${GST_P}.patch"
12515 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
12516 - else
12517 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
12518 - fi
12519 - fi
12520 - if use staging; then
12521 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
12522 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
12523 - ewarn "unless you can reproduce them with USE=-staging"
12524 -
12525 - local STAGING_EXCLUDE=""
12526 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
12527 -
12528 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
12529 - ebegin "Running Wine-Staging patch installer"
12530 - (
12531 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
12532 - cd "${STAGING_DIR}/patches"
12533 - source "${STAGING_DIR}/patches/patchinstall.sh"
12534 - )
12535 - eend $?
12536 - elif use pulseaudio; then
12537 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
12538 - fi
12539 - autotools-utils_src_prepare
12540 -
12541 - # Modification of the server protocol requires regenerating the server requests
12542 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
12543 - einfo "server/protocol.def was patched; running tools/make_requests"
12544 - tools/make_requests || die #432348
12545 - fi
12546 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
12547 - if ! use run-exes; then
12548 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
12549 - fi
12550 -
12551 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
12552 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
12553 -
12554 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
12555 -}
12556 -
12557 -src_configure() {
12558 - export LDCONFIG=/bin/true
12559 - use custom-cflags || strip-flags
12560 -
12561 - multilib-minimal_src_configure
12562 -}
12563 -
12564 -multilib_src_configure() {
12565 - local myconf=(
12566 - --sysconfdir=/etc/wine
12567 - $(use_with alsa)
12568 - $(use_with capi)
12569 - $(use_with lcms cms)
12570 - $(use_with cups)
12571 - $(use_with ncurses curses)
12572 - $(use_with udisks dbus)
12573 - $(use_with fontconfig)
12574 - $(use_with ssl gnutls)
12575 - $(use_enable gecko mshtml)
12576 - $(use_with gphoto2 gphoto)
12577 - $(use_with gsm)
12578 - $(use_with gstreamer)
12579 - --without-hal
12580 - $(use_with jpeg)
12581 - $(use_with ldap)
12582 - $(use_enable mono mscoree)
12583 - $(use_with mp3 mpg123)
12584 - $(use_with netapi)
12585 - $(use_with nls gettext)
12586 - $(use_with openal)
12587 - $(use_with opencl)
12588 - $(use_with opengl)
12589 - $(use_with osmesa)
12590 - $(use_with oss)
12591 - $(use_with pcap)
12592 - $(use_with png)
12593 - $(use_with threads pthread)
12594 - $(use_with scanner sane)
12595 - $(use_enable test tests)
12596 - $(use_with truetype freetype)
12597 - $(use_with v4l)
12598 - $(use_with X x)
12599 - $(use_with xcomposite)
12600 - $(use_with xinerama)
12601 - $(use_with xml)
12602 - $(use_with xml xslt)
12603 - )
12604 -
12605 - if use pulseaudio || use staging; then
12606 - myconf+=( $(use_with pulseaudio pulse) )
12607 - fi
12608 - use staging && myconf+=(
12609 - --with-xattr
12610 - $(use_with vaapi va)
12611 - )
12612 -
12613 - local PKG_CONFIG AR RANLIB
12614 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
12615 - # set AR and RANLIB to make QA scripts happy; #483342
12616 - tc-export PKG_CONFIG AR RANLIB
12617 -
12618 - if use amd64; then
12619 - if [[ ${ABI} == amd64 ]]; then
12620 - myconf+=( --enable-win64 )
12621 - else
12622 - myconf+=( --disable-win64 )
12623 - fi
12624 -
12625 - # Note: using --with-wine64 results in problems with multilib.eclass
12626 - # CC/LD hackery. We're using separate tools instead.
12627 - fi
12628 -
12629 - ECONF_SOURCE=${S} \
12630 - econf "${myconf[@]}"
12631 - emake depend
12632 -}
12633 -
12634 -multilib_src_test() {
12635 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
12636 - if [[ ${ABI} == x86 ]]; then
12637 - if [[ $(id -u) == 0 ]]; then
12638 - ewarn "Skipping tests since they cannot be run under the root user."
12639 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
12640 - return
12641 - fi
12642 -
12643 - WINEPREFIX="${T}/.wine-${ABI}" \
12644 - Xemake test
12645 - fi
12646 -}
12647 -
12648 -multilib_src_install_all() {
12649 - local DOCS=( ANNOUNCE AUTHORS README )
12650 - local l
12651 - add_locale_docs() {
12652 - local locale_doc="documentation/README.$1"
12653 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
12654 - }
12655 - l10n_for_each_locale_do add_locale_docs
12656 -
12657 - einstalldocs
12658 - prune_libtool_files --all
12659 -
12660 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
12661 - if use gecko ; then
12662 - insinto /usr/share/wine/gecko
12663 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
12664 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
12665 - fi
12666 - if use mono ; then
12667 - insinto /usr/share/wine/mono
12668 - doins "${DISTDIR}"/wine-mono-${MV}.msi
12669 - fi
12670 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
12671 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
12672 - fi
12673 -
12674 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
12675 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
12676 -
12677 - if use abi_x86_64 && ! use abi_x86_32; then
12678 - dosym /usr/bin/wine{64,} # 404331
12679 - dosym /usr/bin/wine{64,}-preloader
12680 - fi
12681 -
12682 - # respect LINGUAS when installing man pages, #469418
12683 - for l in de fr pl; do
12684 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
12685 - done
12686 -}
12687 -
12688 -pkg_preinst() {
12689 - gnome2_icon_savelist
12690 -}
12691 -
12692 -pkg_postinst() {
12693 - gnome2_icon_cache_update
12694 - fdo-mime_desktop_database_update
12695 -
12696 - if ! use gecko; then
12697 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
12698 - ewarn "implementation of iexplore. Many older windows applications"
12699 - ewarn "rely upon the existence of an iexplore implementation, so"
12700 - ewarn "you will likely need to install an external one, like via winetricks"
12701 - fi
12702 - if ! use mono; then
12703 - ewarn "Without Wine Mono, wine prefixes will not have a default"
12704 - ewarn "implementation of .NET. Many windows applications rely upon"
12705 - ewarn "the existence of a .NET implementation, so you will likely need"
12706 - ewarn "to install an external one, like via winetricks"
12707 - fi
12708 -}
12709 -
12710 -pkg_postrm() {
12711 - gnome2_icon_cache_update
12712 - fdo-mime_desktop_database_update
12713 -}
12714
12715 diff --git a/app-emulation/wine/wine-1.7.44.ebuild b/app-emulation/wine/wine-1.7.44.ebuild
12716 deleted file mode 100644
12717 index cba7501..0000000
12718 --- a/app-emulation/wine/wine-1.7.44.ebuild
12719 +++ /dev/null
12720 @@ -1,444 +0,0 @@
12721 -# Copyright 1999-2015 Gentoo Foundation
12722 -# Distributed under the terms of the GNU General Public License v2
12723 -# $Id$
12724 -
12725 -EAPI="5"
12726 -
12727 -AUTOTOOLS_AUTORECONF=1
12728 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
12729 -PLOCALE_BACKUP="en"
12730 -
12731 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
12732 -
12733 -if [[ ${PV} == "9999" ]] ; then
12734 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
12735 - EGIT_BRANCH="master"
12736 - inherit git-r3
12737 - SRC_URI=""
12738 - #KEYWORDS=""
12739 -else
12740 - MY_P="${PN}-${PV/_/-}"
12741 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
12742 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
12743 - S=${WORKDIR}/${MY_P}
12744 -fi
12745 -
12746 -GV="2.36"
12747 -MV="4.5.6"
12748 -STAGING_P="wine-staging-${PV}"
12749 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
12750 -WINE_GENTOO="wine-gentoo-2015.03.07"
12751 -GST_P="wine-1.7.34-gstreamer-v5"
12752 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
12753 -HOMEPAGE="http://www.winehq.org/"
12754 -SRC_URI="${SRC_URI}
12755 - gecko? (
12756 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
12757 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
12758 - )
12759 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
12760 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
12761 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
12762 -
12763 -if [[ ${PV} == "9999" ]] ; then
12764 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
12765 -else
12766 - SRC_URI="${SRC_URI}
12767 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
12768 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
12769 -fi
12770 -
12771 -LICENSE="LGPL-2.1"
12772 -SLOT="0"
12773 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
12774 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
12775 - test? ( abi_x86_32 )
12776 - elibc_glibc? ( threads )
12777 - mono? ( abi_x86_32 )
12778 - pipelight? ( staging )
12779 - s3tc? ( staging )
12780 - vaapi? ( staging )
12781 - osmesa? ( opengl )" #286560
12782 -
12783 -# FIXME: the test suite is unsuitable for us; many tests require net access
12784 -# or fail due to Xvfb's opengl limitations.
12785 -RESTRICT="test"
12786 -
12787 -COMMON_DEPEND="
12788 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
12789 - capi? ( net-dialup/capi4k-utils )
12790 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
12791 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
12792 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
12793 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
12794 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
12795 - gstreamer? (
12796 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
12797 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
12798 - )
12799 - X? (
12800 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
12801 - x11-libs/libXext[${MULTILIB_USEDEP}]
12802 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
12803 - x11-libs/libXi[${MULTILIB_USEDEP}]
12804 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
12805 - )
12806 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
12807 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
12808 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
12809 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
12810 - opengl? (
12811 - virtual/glu[${MULTILIB_USEDEP}]
12812 - virtual/opengl[${MULTILIB_USEDEP}]
12813 - )
12814 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
12815 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
12816 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
12817 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
12818 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
12819 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
12820 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
12821 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
12822 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
12823 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
12824 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
12825 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
12826 - xml? (
12827 - dev-libs/libxml2[${MULTILIB_USEDEP}]
12828 - dev-libs/libxslt[${MULTILIB_USEDEP}]
12829 - )
12830 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
12831 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
12832 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
12833 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
12834 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
12835 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
12836 - abi_x86_32? (
12837 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
12838 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
12839 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
12840 - !<app-emulation/emul-linux-x86-db-20140508-r3
12841 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
12842 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
12843 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
12844 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
12845 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
12846 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
12847 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
12848 - !<app-emulation/emul-linux-x86-soundlibs-20140508
12849 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
12850 - !<app-emulation/emul-linux-x86-xlibs-20140508
12851 - )"
12852 -
12853 -RDEPEND="${COMMON_DEPEND}
12854 - dos? ( games-emulation/dosbox )
12855 - perl? ( dev-lang/perl dev-perl/XML-Simple )
12856 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
12857 - samba? ( >=net-fs/samba-3.0.25 )
12858 - selinux? ( sec-policy/selinux-wine )
12859 - udisks? ( sys-fs/udisks:2 )
12860 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
12861 -
12862 -# tools/make_requests requires perl
12863 -DEPEND="${COMMON_DEPEND}
12864 - staging? ( dev-lang/perl dev-perl/XML-Simple )
12865 - X? (
12866 - x11-proto/inputproto
12867 - x11-proto/xextproto
12868 - x11-proto/xf86vidmodeproto
12869 - )
12870 - xinerama? ( x11-proto/xineramaproto )
12871 - prelink? ( sys-devel/prelink )
12872 - >=sys-kernel/linux-headers-2.6
12873 - virtual/pkgconfig
12874 - virtual/yacc
12875 - sys-devel/flex"
12876 -
12877 -# These use a non-standard "Wine" category, which is provided by
12878 -# /etc/xdg/applications-merged/wine.menu
12879 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
12880 -usr/share/applications/wine-notepad.desktop
12881 -usr/share/applications/wine-uninstaller.desktop
12882 -usr/share/applications/wine-winecfg.desktop"
12883 -
12884 -wine_build_environment_check() {
12885 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
12886 -
12887 - # bug #549768
12888 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
12889 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
12890 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
12891 - # Run in subshell to prevent "Aborted" message
12892 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
12893 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
12894 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
12895 - eerror "or use gcc-config to select a different compiler version."
12896 - eerror "See https://bugs.gentoo.org/549768"
12897 - eerror
12898 - return 1
12899 - fi
12900 - fi
12901 -
12902 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
12903 - eerror "You need gcc-4.4+ to build 64-bit wine"
12904 - eerror
12905 - return 1
12906 - fi
12907 -
12908 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
12909 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
12910 - eerror "See https://bugs.gentoo.org/487864 for more details."
12911 - eerror
12912 - return 1
12913 - fi
12914 -}
12915 -
12916 -pkg_pretend() {
12917 - wine_build_environment_check || die
12918 -}
12919 -
12920 -pkg_setup() {
12921 - wine_build_environment_check || die
12922 -}
12923 -
12924 -src_unpack() {
12925 - if [[ ${PV} == "9999" ]] ; then
12926 - git-r3_src_unpack
12927 - if use staging || use pulseaudio; then
12928 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
12929 - unset ${PN}_LIVE_REPO;
12930 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
12931 - fi
12932 - else
12933 - unpack ${MY_P}.tar.bz2
12934 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
12935 - fi
12936 -
12937 - unpack "${WINE_GENTOO}.tar.bz2"
12938 - use gstreamer && unpack "${GST_P}.patch.bz2"
12939 -
12940 - l10n_find_plocales_changes "${S}/po" "" ".po"
12941 -}
12942 -
12943 -src_prepare() {
12944 - local md5="$(md5sum server/protocol.def)"
12945 - local PATCHES=(
12946 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
12947 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
12948 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
12949 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
12950 - )
12951 - if use gstreamer; then
12952 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
12953 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
12954 - ewarn "this patch has been reported to cause crashes in certain games."
12955 -
12956 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
12957 - # during shutdown" patch and "Added patch to implement shared memory
12958 - # wineserver communication for various user32 functions" prevents the
12959 - # gstreamer patch from applying cleanly.
12960 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
12961 - # patch on top.
12962 - if use staging; then
12963 - PATCHES+=(
12964 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
12965 - "${WORKDIR}/${GST_P}.patch"
12966 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
12967 - else
12968 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
12969 - fi
12970 - fi
12971 - if use staging; then
12972 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
12973 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
12974 - ewarn "unless you can reproduce them with USE=-staging"
12975 -
12976 - local STAGING_EXCLUDE=""
12977 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
12978 -
12979 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
12980 - ebegin "Running Wine-Staging patch installer"
12981 - (
12982 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
12983 - cd "${STAGING_DIR}/patches"
12984 - source "${STAGING_DIR}/patches/patchinstall.sh"
12985 - )
12986 - eend $?
12987 - elif use pulseaudio; then
12988 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
12989 - fi
12990 - autotools-utils_src_prepare
12991 -
12992 - # Modification of the server protocol requires regenerating the server requests
12993 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
12994 - einfo "server/protocol.def was patched; running tools/make_requests"
12995 - tools/make_requests || die #432348
12996 - fi
12997 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
12998 - if ! use run-exes; then
12999 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
13000 - fi
13001 -
13002 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
13003 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
13004 -
13005 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
13006 -}
13007 -
13008 -src_configure() {
13009 - export LDCONFIG=/bin/true
13010 - use custom-cflags || strip-flags
13011 -
13012 - multilib-minimal_src_configure
13013 -}
13014 -
13015 -multilib_src_configure() {
13016 - local myconf=(
13017 - --sysconfdir=/etc/wine
13018 - $(use_with alsa)
13019 - $(use_with capi)
13020 - $(use_with lcms cms)
13021 - $(use_with cups)
13022 - $(use_with ncurses curses)
13023 - $(use_with udisks dbus)
13024 - $(use_with fontconfig)
13025 - $(use_with ssl gnutls)
13026 - $(use_enable gecko mshtml)
13027 - $(use_with gphoto2 gphoto)
13028 - $(use_with gsm)
13029 - $(use_with gstreamer)
13030 - --without-hal
13031 - $(use_with jpeg)
13032 - $(use_with ldap)
13033 - $(use_enable mono mscoree)
13034 - $(use_with mp3 mpg123)
13035 - $(use_with netapi)
13036 - $(use_with nls gettext)
13037 - $(use_with openal)
13038 - $(use_with opencl)
13039 - $(use_with opengl)
13040 - $(use_with osmesa)
13041 - $(use_with oss)
13042 - $(use_with pcap)
13043 - $(use_with png)
13044 - $(use_with threads pthread)
13045 - $(use_with scanner sane)
13046 - $(use_enable test tests)
13047 - $(use_with truetype freetype)
13048 - $(use_with v4l)
13049 - $(use_with X x)
13050 - $(use_with xcomposite)
13051 - $(use_with xinerama)
13052 - $(use_with xml)
13053 - $(use_with xml xslt)
13054 - )
13055 -
13056 - if use pulseaudio || use staging; then
13057 - myconf+=( $(use_with pulseaudio pulse) )
13058 - fi
13059 - use staging && myconf+=(
13060 - --with-xattr
13061 - $(use_with vaapi va)
13062 - )
13063 -
13064 - local PKG_CONFIG AR RANLIB
13065 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
13066 - # set AR and RANLIB to make QA scripts happy; #483342
13067 - tc-export PKG_CONFIG AR RANLIB
13068 -
13069 - if use amd64; then
13070 - if [[ ${ABI} == amd64 ]]; then
13071 - myconf+=( --enable-win64 )
13072 - else
13073 - myconf+=( --disable-win64 )
13074 - fi
13075 -
13076 - # Note: using --with-wine64 results in problems with multilib.eclass
13077 - # CC/LD hackery. We're using separate tools instead.
13078 - fi
13079 -
13080 - ECONF_SOURCE=${S} \
13081 - econf "${myconf[@]}"
13082 - emake depend
13083 -}
13084 -
13085 -multilib_src_test() {
13086 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
13087 - if [[ ${ABI} == x86 ]]; then
13088 - if [[ $(id -u) == 0 ]]; then
13089 - ewarn "Skipping tests since they cannot be run under the root user."
13090 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
13091 - return
13092 - fi
13093 -
13094 - WINEPREFIX="${T}/.wine-${ABI}" \
13095 - Xemake test
13096 - fi
13097 -}
13098 -
13099 -multilib_src_install_all() {
13100 - local DOCS=( ANNOUNCE AUTHORS README )
13101 - local l
13102 - add_locale_docs() {
13103 - local locale_doc="documentation/README.$1"
13104 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
13105 - }
13106 - l10n_for_each_locale_do add_locale_docs
13107 -
13108 - einstalldocs
13109 - prune_libtool_files --all
13110 -
13111 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
13112 - if use gecko ; then
13113 - insinto /usr/share/wine/gecko
13114 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
13115 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
13116 - fi
13117 - if use mono ; then
13118 - insinto /usr/share/wine/mono
13119 - doins "${DISTDIR}"/wine-mono-${MV}.msi
13120 - fi
13121 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
13122 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
13123 - fi
13124 -
13125 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
13126 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
13127 -
13128 - if use abi_x86_64 && ! use abi_x86_32; then
13129 - dosym /usr/bin/wine{64,} # 404331
13130 - dosym /usr/bin/wine{64,}-preloader
13131 - fi
13132 -
13133 - # respect LINGUAS when installing man pages, #469418
13134 - for l in de fr pl; do
13135 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
13136 - done
13137 -}
13138 -
13139 -pkg_preinst() {
13140 - gnome2_icon_savelist
13141 -}
13142 -
13143 -pkg_postinst() {
13144 - gnome2_icon_cache_update
13145 - fdo-mime_desktop_database_update
13146 -
13147 - if ! use gecko; then
13148 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
13149 - ewarn "implementation of iexplore. Many older windows applications"
13150 - ewarn "rely upon the existence of an iexplore implementation, so"
13151 - ewarn "you will likely need to install an external one, like via winetricks"
13152 - fi
13153 - if ! use mono; then
13154 - ewarn "Without Wine Mono, wine prefixes will not have a default"
13155 - ewarn "implementation of .NET. Many windows applications rely upon"
13156 - ewarn "the existence of a .NET implementation, so you will likely need"
13157 - ewarn "to install an external one, like via winetricks"
13158 - fi
13159 -}
13160 -
13161 -pkg_postrm() {
13162 - gnome2_icon_cache_update
13163 - fdo-mime_desktop_database_update
13164 -}
13165
13166 diff --git a/app-emulation/wine/wine-1.7.45.ebuild b/app-emulation/wine/wine-1.7.45.ebuild
13167 deleted file mode 100644
13168 index 555a7d1..0000000
13169 --- a/app-emulation/wine/wine-1.7.45.ebuild
13170 +++ /dev/null
13171 @@ -1,445 +0,0 @@
13172 -# Copyright 1999-2015 Gentoo Foundation
13173 -# Distributed under the terms of the GNU General Public License v2
13174 -# $Id$
13175 -
13176 -EAPI="5"
13177 -
13178 -AUTOTOOLS_AUTORECONF=1
13179 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
13180 -PLOCALE_BACKUP="en"
13181 -
13182 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
13183 -
13184 -if [[ ${PV} == "9999" ]] ; then
13185 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
13186 - EGIT_BRANCH="master"
13187 - inherit git-r3
13188 - SRC_URI=""
13189 - #KEYWORDS=""
13190 -else
13191 - MY_P="${PN}-${PV/_/-}"
13192 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
13193 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
13194 - S=${WORKDIR}/${MY_P}
13195 -fi
13196 -
13197 -GV="2.36"
13198 -MV="4.5.6"
13199 -STAGING_P="wine-staging-${PV}"
13200 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
13201 -WINE_GENTOO="wine-gentoo-2015.03.07"
13202 -GST_P="wine-1.7.34-gstreamer-v5"
13203 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
13204 -HOMEPAGE="http://www.winehq.org/"
13205 -SRC_URI="${SRC_URI}
13206 - gecko? (
13207 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
13208 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
13209 - )
13210 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
13211 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
13212 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
13213 -
13214 -if [[ ${PV} == "9999" ]] ; then
13215 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
13216 -else
13217 - SRC_URI="${SRC_URI}
13218 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
13219 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
13220 -fi
13221 -
13222 -LICENSE="LGPL-2.1"
13223 -SLOT="0"
13224 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
13225 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
13226 - test? ( abi_x86_32 )
13227 - elibc_glibc? ( threads )
13228 - mono? ( abi_x86_32 )
13229 - pipelight? ( staging )
13230 - s3tc? ( staging )
13231 - vaapi? ( staging )
13232 - osmesa? ( opengl )" #286560
13233 -
13234 -# FIXME: the test suite is unsuitable for us; many tests require net access
13235 -# or fail due to Xvfb's opengl limitations.
13236 -RESTRICT="test"
13237 -
13238 -COMMON_DEPEND="
13239 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
13240 - capi? ( net-dialup/capi4k-utils )
13241 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
13242 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
13243 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
13244 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
13245 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
13246 - gstreamer? (
13247 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
13248 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
13249 - )
13250 - X? (
13251 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
13252 - x11-libs/libXext[${MULTILIB_USEDEP}]
13253 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
13254 - x11-libs/libXi[${MULTILIB_USEDEP}]
13255 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
13256 - )
13257 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
13258 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
13259 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
13260 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
13261 - opengl? (
13262 - virtual/glu[${MULTILIB_USEDEP}]
13263 - virtual/opengl[${MULTILIB_USEDEP}]
13264 - )
13265 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
13266 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
13267 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
13268 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
13269 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
13270 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
13271 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
13272 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
13273 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
13274 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
13275 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
13276 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
13277 - xml? (
13278 - dev-libs/libxml2[${MULTILIB_USEDEP}]
13279 - dev-libs/libxslt[${MULTILIB_USEDEP}]
13280 - )
13281 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
13282 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
13283 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
13284 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
13285 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
13286 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
13287 - abi_x86_32? (
13288 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
13289 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
13290 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
13291 - !<app-emulation/emul-linux-x86-db-20140508-r3
13292 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
13293 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
13294 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
13295 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
13296 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
13297 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
13298 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
13299 - !<app-emulation/emul-linux-x86-soundlibs-20140508
13300 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
13301 - !<app-emulation/emul-linux-x86-xlibs-20140508
13302 - )"
13303 -
13304 -RDEPEND="${COMMON_DEPEND}
13305 - dos? ( games-emulation/dosbox )
13306 - perl? ( dev-lang/perl dev-perl/XML-Simple )
13307 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
13308 - samba? ( >=net-fs/samba-3.0.25 )
13309 - selinux? ( sec-policy/selinux-wine )
13310 - udisks? ( sys-fs/udisks:2 )
13311 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
13312 -
13313 -# tools/make_requests requires perl
13314 -DEPEND="${COMMON_DEPEND}
13315 - staging? ( dev-lang/perl dev-perl/XML-Simple )
13316 - X? (
13317 - x11-proto/inputproto
13318 - x11-proto/xextproto
13319 - x11-proto/xf86vidmodeproto
13320 - )
13321 - xinerama? ( x11-proto/xineramaproto )
13322 - prelink? ( sys-devel/prelink )
13323 - >=sys-kernel/linux-headers-2.6
13324 - virtual/pkgconfig
13325 - virtual/yacc
13326 - sys-devel/flex"
13327 -
13328 -# These use a non-standard "Wine" category, which is provided by
13329 -# /etc/xdg/applications-merged/wine.menu
13330 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
13331 -usr/share/applications/wine-notepad.desktop
13332 -usr/share/applications/wine-uninstaller.desktop
13333 -usr/share/applications/wine-winecfg.desktop"
13334 -
13335 -wine_build_environment_check() {
13336 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
13337 -
13338 - # bug #549768
13339 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
13340 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
13341 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
13342 - # Run in subshell to prevent "Aborted" message
13343 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
13344 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
13345 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
13346 - eerror "or use gcc-config to select a different compiler version."
13347 - eerror "See https://bugs.gentoo.org/549768"
13348 - eerror
13349 - return 1
13350 - fi
13351 - fi
13352 -
13353 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
13354 - eerror "You need gcc-4.4+ to build 64-bit wine"
13355 - eerror
13356 - return 1
13357 - fi
13358 -
13359 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
13360 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
13361 - eerror "See https://bugs.gentoo.org/487864 for more details."
13362 - eerror
13363 - return 1
13364 - fi
13365 -}
13366 -
13367 -pkg_pretend() {
13368 - wine_build_environment_check || die
13369 -}
13370 -
13371 -pkg_setup() {
13372 - wine_build_environment_check || die
13373 -}
13374 -
13375 -src_unpack() {
13376 - if [[ ${PV} == "9999" ]] ; then
13377 - git-r3_src_unpack
13378 - if use staging || use pulseaudio; then
13379 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
13380 - unset ${PN}_LIVE_REPO;
13381 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
13382 - fi
13383 - else
13384 - unpack ${MY_P}.tar.bz2
13385 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
13386 - fi
13387 -
13388 - unpack "${WINE_GENTOO}.tar.bz2"
13389 - use gstreamer && unpack "${GST_P}.patch.bz2"
13390 -
13391 - l10n_find_plocales_changes "${S}/po" "" ".po"
13392 -}
13393 -
13394 -src_prepare() {
13395 - local md5="$(md5sum server/protocol.def)"
13396 - local PATCHES=(
13397 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
13398 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
13399 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
13400 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
13401 - "${FILESDIR}"/${PN}-1.7.45-libunwind-osx-only.patch # only applies to this version
13402 - )
13403 - if use gstreamer; then
13404 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
13405 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
13406 - ewarn "this patch has been reported to cause crashes in certain games."
13407 -
13408 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
13409 - # during shutdown" patch and "Added patch to implement shared memory
13410 - # wineserver communication for various user32 functions" prevents the
13411 - # gstreamer patch from applying cleanly.
13412 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
13413 - # patch on top.
13414 - if use staging; then
13415 - PATCHES+=(
13416 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
13417 - "${WORKDIR}/${GST_P}.patch"
13418 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
13419 - else
13420 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
13421 - fi
13422 - fi
13423 - if use staging; then
13424 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
13425 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
13426 - ewarn "unless you can reproduce them with USE=-staging"
13427 -
13428 - local STAGING_EXCLUDE=""
13429 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
13430 -
13431 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
13432 - ebegin "Running Wine-Staging patch installer"
13433 - (
13434 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
13435 - cd "${STAGING_DIR}/patches"
13436 - source "${STAGING_DIR}/patches/patchinstall.sh"
13437 - )
13438 - eend $?
13439 - elif use pulseaudio; then
13440 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
13441 - fi
13442 - autotools-utils_src_prepare
13443 -
13444 - # Modification of the server protocol requires regenerating the server requests
13445 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
13446 - einfo "server/protocol.def was patched; running tools/make_requests"
13447 - tools/make_requests || die #432348
13448 - fi
13449 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
13450 - if ! use run-exes; then
13451 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
13452 - fi
13453 -
13454 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
13455 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
13456 -
13457 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
13458 -}
13459 -
13460 -src_configure() {
13461 - export LDCONFIG=/bin/true
13462 - use custom-cflags || strip-flags
13463 -
13464 - multilib-minimal_src_configure
13465 -}
13466 -
13467 -multilib_src_configure() {
13468 - local myconf=(
13469 - --sysconfdir=/etc/wine
13470 - $(use_with alsa)
13471 - $(use_with capi)
13472 - $(use_with lcms cms)
13473 - $(use_with cups)
13474 - $(use_with ncurses curses)
13475 - $(use_with udisks dbus)
13476 - $(use_with fontconfig)
13477 - $(use_with ssl gnutls)
13478 - $(use_enable gecko mshtml)
13479 - $(use_with gphoto2 gphoto)
13480 - $(use_with gsm)
13481 - $(use_with gstreamer)
13482 - --without-hal
13483 - $(use_with jpeg)
13484 - $(use_with ldap)
13485 - $(use_enable mono mscoree)
13486 - $(use_with mp3 mpg123)
13487 - $(use_with netapi)
13488 - $(use_with nls gettext)
13489 - $(use_with openal)
13490 - $(use_with opencl)
13491 - $(use_with opengl)
13492 - $(use_with osmesa)
13493 - $(use_with oss)
13494 - $(use_with pcap)
13495 - $(use_with png)
13496 - $(use_with threads pthread)
13497 - $(use_with scanner sane)
13498 - $(use_enable test tests)
13499 - $(use_with truetype freetype)
13500 - $(use_with v4l)
13501 - $(use_with X x)
13502 - $(use_with xcomposite)
13503 - $(use_with xinerama)
13504 - $(use_with xml)
13505 - $(use_with xml xslt)
13506 - )
13507 -
13508 - if use pulseaudio || use staging; then
13509 - myconf+=( $(use_with pulseaudio pulse) )
13510 - fi
13511 - use staging && myconf+=(
13512 - --with-xattr
13513 - $(use_with vaapi va)
13514 - )
13515 -
13516 - local PKG_CONFIG AR RANLIB
13517 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
13518 - # set AR and RANLIB to make QA scripts happy; #483342
13519 - tc-export PKG_CONFIG AR RANLIB
13520 -
13521 - if use amd64; then
13522 - if [[ ${ABI} == amd64 ]]; then
13523 - myconf+=( --enable-win64 )
13524 - else
13525 - myconf+=( --disable-win64 )
13526 - fi
13527 -
13528 - # Note: using --with-wine64 results in problems with multilib.eclass
13529 - # CC/LD hackery. We're using separate tools instead.
13530 - fi
13531 -
13532 - ECONF_SOURCE=${S} \
13533 - econf "${myconf[@]}"
13534 - emake depend
13535 -}
13536 -
13537 -multilib_src_test() {
13538 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
13539 - if [[ ${ABI} == x86 ]]; then
13540 - if [[ $(id -u) == 0 ]]; then
13541 - ewarn "Skipping tests since they cannot be run under the root user."
13542 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
13543 - return
13544 - fi
13545 -
13546 - WINEPREFIX="${T}/.wine-${ABI}" \
13547 - Xemake test
13548 - fi
13549 -}
13550 -
13551 -multilib_src_install_all() {
13552 - local DOCS=( ANNOUNCE AUTHORS README )
13553 - local l
13554 - add_locale_docs() {
13555 - local locale_doc="documentation/README.$1"
13556 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
13557 - }
13558 - l10n_for_each_locale_do add_locale_docs
13559 -
13560 - einstalldocs
13561 - prune_libtool_files --all
13562 -
13563 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
13564 - if use gecko ; then
13565 - insinto /usr/share/wine/gecko
13566 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
13567 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
13568 - fi
13569 - if use mono ; then
13570 - insinto /usr/share/wine/mono
13571 - doins "${DISTDIR}"/wine-mono-${MV}.msi
13572 - fi
13573 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
13574 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
13575 - fi
13576 -
13577 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
13578 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
13579 -
13580 - if use abi_x86_64 && ! use abi_x86_32; then
13581 - dosym /usr/bin/wine{64,} # 404331
13582 - dosym /usr/bin/wine{64,}-preloader
13583 - fi
13584 -
13585 - # respect LINGUAS when installing man pages, #469418
13586 - for l in de fr pl; do
13587 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
13588 - done
13589 -}
13590 -
13591 -pkg_preinst() {
13592 - gnome2_icon_savelist
13593 -}
13594 -
13595 -pkg_postinst() {
13596 - gnome2_icon_cache_update
13597 - fdo-mime_desktop_database_update
13598 -
13599 - if ! use gecko; then
13600 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
13601 - ewarn "implementation of iexplore. Many older windows applications"
13602 - ewarn "rely upon the existence of an iexplore implementation, so"
13603 - ewarn "you will likely need to install an external one, like via winetricks"
13604 - fi
13605 - if ! use mono; then
13606 - ewarn "Without Wine Mono, wine prefixes will not have a default"
13607 - ewarn "implementation of .NET. Many windows applications rely upon"
13608 - ewarn "the existence of a .NET implementation, so you will likely need"
13609 - ewarn "to install an external one, like via winetricks"
13610 - fi
13611 -}
13612 -
13613 -pkg_postrm() {
13614 - gnome2_icon_cache_update
13615 - fdo-mime_desktop_database_update
13616 -}
13617
13618 diff --git a/app-emulation/wine/wine-1.7.46.ebuild b/app-emulation/wine/wine-1.7.46.ebuild
13619 deleted file mode 100644
13620 index cba7501..0000000
13621 --- a/app-emulation/wine/wine-1.7.46.ebuild
13622 +++ /dev/null
13623 @@ -1,444 +0,0 @@
13624 -# Copyright 1999-2015 Gentoo Foundation
13625 -# Distributed under the terms of the GNU General Public License v2
13626 -# $Id$
13627 -
13628 -EAPI="5"
13629 -
13630 -AUTOTOOLS_AUTORECONF=1
13631 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
13632 -PLOCALE_BACKUP="en"
13633 -
13634 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
13635 -
13636 -if [[ ${PV} == "9999" ]] ; then
13637 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
13638 - EGIT_BRANCH="master"
13639 - inherit git-r3
13640 - SRC_URI=""
13641 - #KEYWORDS=""
13642 -else
13643 - MY_P="${PN}-${PV/_/-}"
13644 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
13645 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
13646 - S=${WORKDIR}/${MY_P}
13647 -fi
13648 -
13649 -GV="2.36"
13650 -MV="4.5.6"
13651 -STAGING_P="wine-staging-${PV}"
13652 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
13653 -WINE_GENTOO="wine-gentoo-2015.03.07"
13654 -GST_P="wine-1.7.34-gstreamer-v5"
13655 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
13656 -HOMEPAGE="http://www.winehq.org/"
13657 -SRC_URI="${SRC_URI}
13658 - gecko? (
13659 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
13660 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
13661 - )
13662 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
13663 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
13664 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
13665 -
13666 -if [[ ${PV} == "9999" ]] ; then
13667 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
13668 -else
13669 - SRC_URI="${SRC_URI}
13670 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
13671 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
13672 -fi
13673 -
13674 -LICENSE="LGPL-2.1"
13675 -SLOT="0"
13676 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
13677 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
13678 - test? ( abi_x86_32 )
13679 - elibc_glibc? ( threads )
13680 - mono? ( abi_x86_32 )
13681 - pipelight? ( staging )
13682 - s3tc? ( staging )
13683 - vaapi? ( staging )
13684 - osmesa? ( opengl )" #286560
13685 -
13686 -# FIXME: the test suite is unsuitable for us; many tests require net access
13687 -# or fail due to Xvfb's opengl limitations.
13688 -RESTRICT="test"
13689 -
13690 -COMMON_DEPEND="
13691 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
13692 - capi? ( net-dialup/capi4k-utils )
13693 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
13694 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
13695 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
13696 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
13697 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
13698 - gstreamer? (
13699 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
13700 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
13701 - )
13702 - X? (
13703 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
13704 - x11-libs/libXext[${MULTILIB_USEDEP}]
13705 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
13706 - x11-libs/libXi[${MULTILIB_USEDEP}]
13707 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
13708 - )
13709 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
13710 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
13711 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
13712 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
13713 - opengl? (
13714 - virtual/glu[${MULTILIB_USEDEP}]
13715 - virtual/opengl[${MULTILIB_USEDEP}]
13716 - )
13717 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
13718 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
13719 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
13720 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
13721 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
13722 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
13723 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
13724 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
13725 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
13726 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
13727 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
13728 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
13729 - xml? (
13730 - dev-libs/libxml2[${MULTILIB_USEDEP}]
13731 - dev-libs/libxslt[${MULTILIB_USEDEP}]
13732 - )
13733 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
13734 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
13735 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
13736 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
13737 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
13738 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
13739 - abi_x86_32? (
13740 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
13741 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
13742 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
13743 - !<app-emulation/emul-linux-x86-db-20140508-r3
13744 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
13745 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
13746 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
13747 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
13748 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
13749 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
13750 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
13751 - !<app-emulation/emul-linux-x86-soundlibs-20140508
13752 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
13753 - !<app-emulation/emul-linux-x86-xlibs-20140508
13754 - )"
13755 -
13756 -RDEPEND="${COMMON_DEPEND}
13757 - dos? ( games-emulation/dosbox )
13758 - perl? ( dev-lang/perl dev-perl/XML-Simple )
13759 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
13760 - samba? ( >=net-fs/samba-3.0.25 )
13761 - selinux? ( sec-policy/selinux-wine )
13762 - udisks? ( sys-fs/udisks:2 )
13763 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
13764 -
13765 -# tools/make_requests requires perl
13766 -DEPEND="${COMMON_DEPEND}
13767 - staging? ( dev-lang/perl dev-perl/XML-Simple )
13768 - X? (
13769 - x11-proto/inputproto
13770 - x11-proto/xextproto
13771 - x11-proto/xf86vidmodeproto
13772 - )
13773 - xinerama? ( x11-proto/xineramaproto )
13774 - prelink? ( sys-devel/prelink )
13775 - >=sys-kernel/linux-headers-2.6
13776 - virtual/pkgconfig
13777 - virtual/yacc
13778 - sys-devel/flex"
13779 -
13780 -# These use a non-standard "Wine" category, which is provided by
13781 -# /etc/xdg/applications-merged/wine.menu
13782 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
13783 -usr/share/applications/wine-notepad.desktop
13784 -usr/share/applications/wine-uninstaller.desktop
13785 -usr/share/applications/wine-winecfg.desktop"
13786 -
13787 -wine_build_environment_check() {
13788 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
13789 -
13790 - # bug #549768
13791 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
13792 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
13793 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
13794 - # Run in subshell to prevent "Aborted" message
13795 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
13796 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
13797 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
13798 - eerror "or use gcc-config to select a different compiler version."
13799 - eerror "See https://bugs.gentoo.org/549768"
13800 - eerror
13801 - return 1
13802 - fi
13803 - fi
13804 -
13805 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
13806 - eerror "You need gcc-4.4+ to build 64-bit wine"
13807 - eerror
13808 - return 1
13809 - fi
13810 -
13811 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
13812 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
13813 - eerror "See https://bugs.gentoo.org/487864 for more details."
13814 - eerror
13815 - return 1
13816 - fi
13817 -}
13818 -
13819 -pkg_pretend() {
13820 - wine_build_environment_check || die
13821 -}
13822 -
13823 -pkg_setup() {
13824 - wine_build_environment_check || die
13825 -}
13826 -
13827 -src_unpack() {
13828 - if [[ ${PV} == "9999" ]] ; then
13829 - git-r3_src_unpack
13830 - if use staging || use pulseaudio; then
13831 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
13832 - unset ${PN}_LIVE_REPO;
13833 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
13834 - fi
13835 - else
13836 - unpack ${MY_P}.tar.bz2
13837 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
13838 - fi
13839 -
13840 - unpack "${WINE_GENTOO}.tar.bz2"
13841 - use gstreamer && unpack "${GST_P}.patch.bz2"
13842 -
13843 - l10n_find_plocales_changes "${S}/po" "" ".po"
13844 -}
13845 -
13846 -src_prepare() {
13847 - local md5="$(md5sum server/protocol.def)"
13848 - local PATCHES=(
13849 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
13850 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
13851 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
13852 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
13853 - )
13854 - if use gstreamer; then
13855 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
13856 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
13857 - ewarn "this patch has been reported to cause crashes in certain games."
13858 -
13859 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
13860 - # during shutdown" patch and "Added patch to implement shared memory
13861 - # wineserver communication for various user32 functions" prevents the
13862 - # gstreamer patch from applying cleanly.
13863 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
13864 - # patch on top.
13865 - if use staging; then
13866 - PATCHES+=(
13867 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
13868 - "${WORKDIR}/${GST_P}.patch"
13869 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
13870 - else
13871 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
13872 - fi
13873 - fi
13874 - if use staging; then
13875 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
13876 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
13877 - ewarn "unless you can reproduce them with USE=-staging"
13878 -
13879 - local STAGING_EXCLUDE=""
13880 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
13881 -
13882 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
13883 - ebegin "Running Wine-Staging patch installer"
13884 - (
13885 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
13886 - cd "${STAGING_DIR}/patches"
13887 - source "${STAGING_DIR}/patches/patchinstall.sh"
13888 - )
13889 - eend $?
13890 - elif use pulseaudio; then
13891 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
13892 - fi
13893 - autotools-utils_src_prepare
13894 -
13895 - # Modification of the server protocol requires regenerating the server requests
13896 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
13897 - einfo "server/protocol.def was patched; running tools/make_requests"
13898 - tools/make_requests || die #432348
13899 - fi
13900 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
13901 - if ! use run-exes; then
13902 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
13903 - fi
13904 -
13905 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
13906 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
13907 -
13908 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
13909 -}
13910 -
13911 -src_configure() {
13912 - export LDCONFIG=/bin/true
13913 - use custom-cflags || strip-flags
13914 -
13915 - multilib-minimal_src_configure
13916 -}
13917 -
13918 -multilib_src_configure() {
13919 - local myconf=(
13920 - --sysconfdir=/etc/wine
13921 - $(use_with alsa)
13922 - $(use_with capi)
13923 - $(use_with lcms cms)
13924 - $(use_with cups)
13925 - $(use_with ncurses curses)
13926 - $(use_with udisks dbus)
13927 - $(use_with fontconfig)
13928 - $(use_with ssl gnutls)
13929 - $(use_enable gecko mshtml)
13930 - $(use_with gphoto2 gphoto)
13931 - $(use_with gsm)
13932 - $(use_with gstreamer)
13933 - --without-hal
13934 - $(use_with jpeg)
13935 - $(use_with ldap)
13936 - $(use_enable mono mscoree)
13937 - $(use_with mp3 mpg123)
13938 - $(use_with netapi)
13939 - $(use_with nls gettext)
13940 - $(use_with openal)
13941 - $(use_with opencl)
13942 - $(use_with opengl)
13943 - $(use_with osmesa)
13944 - $(use_with oss)
13945 - $(use_with pcap)
13946 - $(use_with png)
13947 - $(use_with threads pthread)
13948 - $(use_with scanner sane)
13949 - $(use_enable test tests)
13950 - $(use_with truetype freetype)
13951 - $(use_with v4l)
13952 - $(use_with X x)
13953 - $(use_with xcomposite)
13954 - $(use_with xinerama)
13955 - $(use_with xml)
13956 - $(use_with xml xslt)
13957 - )
13958 -
13959 - if use pulseaudio || use staging; then
13960 - myconf+=( $(use_with pulseaudio pulse) )
13961 - fi
13962 - use staging && myconf+=(
13963 - --with-xattr
13964 - $(use_with vaapi va)
13965 - )
13966 -
13967 - local PKG_CONFIG AR RANLIB
13968 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
13969 - # set AR and RANLIB to make QA scripts happy; #483342
13970 - tc-export PKG_CONFIG AR RANLIB
13971 -
13972 - if use amd64; then
13973 - if [[ ${ABI} == amd64 ]]; then
13974 - myconf+=( --enable-win64 )
13975 - else
13976 - myconf+=( --disable-win64 )
13977 - fi
13978 -
13979 - # Note: using --with-wine64 results in problems with multilib.eclass
13980 - # CC/LD hackery. We're using separate tools instead.
13981 - fi
13982 -
13983 - ECONF_SOURCE=${S} \
13984 - econf "${myconf[@]}"
13985 - emake depend
13986 -}
13987 -
13988 -multilib_src_test() {
13989 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
13990 - if [[ ${ABI} == x86 ]]; then
13991 - if [[ $(id -u) == 0 ]]; then
13992 - ewarn "Skipping tests since they cannot be run under the root user."
13993 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
13994 - return
13995 - fi
13996 -
13997 - WINEPREFIX="${T}/.wine-${ABI}" \
13998 - Xemake test
13999 - fi
14000 -}
14001 -
14002 -multilib_src_install_all() {
14003 - local DOCS=( ANNOUNCE AUTHORS README )
14004 - local l
14005 - add_locale_docs() {
14006 - local locale_doc="documentation/README.$1"
14007 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
14008 - }
14009 - l10n_for_each_locale_do add_locale_docs
14010 -
14011 - einstalldocs
14012 - prune_libtool_files --all
14013 -
14014 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
14015 - if use gecko ; then
14016 - insinto /usr/share/wine/gecko
14017 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
14018 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
14019 - fi
14020 - if use mono ; then
14021 - insinto /usr/share/wine/mono
14022 - doins "${DISTDIR}"/wine-mono-${MV}.msi
14023 - fi
14024 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
14025 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
14026 - fi
14027 -
14028 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
14029 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
14030 -
14031 - if use abi_x86_64 && ! use abi_x86_32; then
14032 - dosym /usr/bin/wine{64,} # 404331
14033 - dosym /usr/bin/wine{64,}-preloader
14034 - fi
14035 -
14036 - # respect LINGUAS when installing man pages, #469418
14037 - for l in de fr pl; do
14038 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
14039 - done
14040 -}
14041 -
14042 -pkg_preinst() {
14043 - gnome2_icon_savelist
14044 -}
14045 -
14046 -pkg_postinst() {
14047 - gnome2_icon_cache_update
14048 - fdo-mime_desktop_database_update
14049 -
14050 - if ! use gecko; then
14051 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
14052 - ewarn "implementation of iexplore. Many older windows applications"
14053 - ewarn "rely upon the existence of an iexplore implementation, so"
14054 - ewarn "you will likely need to install an external one, like via winetricks"
14055 - fi
14056 - if ! use mono; then
14057 - ewarn "Without Wine Mono, wine prefixes will not have a default"
14058 - ewarn "implementation of .NET. Many windows applications rely upon"
14059 - ewarn "the existence of a .NET implementation, so you will likely need"
14060 - ewarn "to install an external one, like via winetricks"
14061 - fi
14062 -}
14063 -
14064 -pkg_postrm() {
14065 - gnome2_icon_cache_update
14066 - fdo-mime_desktop_database_update
14067 -}
14068
14069 diff --git a/app-emulation/wine/wine-1.7.47.ebuild b/app-emulation/wine/wine-1.7.47.ebuild
14070 deleted file mode 100644
14071 index 4f5cc8e..0000000
14072 --- a/app-emulation/wine/wine-1.7.47.ebuild
14073 +++ /dev/null
14074 @@ -1,446 +0,0 @@
14075 -# Copyright 1999-2015 Gentoo Foundation
14076 -# Distributed under the terms of the GNU General Public License v2
14077 -# $Id$
14078 -
14079 -EAPI="5"
14080 -
14081 -AUTOTOOLS_AUTORECONF=1
14082 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
14083 -PLOCALE_BACKUP="en"
14084 -
14085 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
14086 -
14087 -if [[ ${PV} == "9999" ]] ; then
14088 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
14089 - EGIT_BRANCH="master"
14090 - inherit git-r3
14091 - SRC_URI=""
14092 - #KEYWORDS=""
14093 -else
14094 - MY_P="${PN}-${PV/_/-}"
14095 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
14096 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
14097 - S=${WORKDIR}/${MY_P}
14098 -fi
14099 -
14100 -GV="2.36"
14101 -MV="4.5.6"
14102 -STAGING_P="wine-staging-${PV}"
14103 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
14104 -WINE_GENTOO="wine-gentoo-2015.03.07"
14105 -GST_P="wine-1.7.34-gstreamer-v5"
14106 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
14107 -HOMEPAGE="http://www.winehq.org/"
14108 -SRC_URI="${SRC_URI}
14109 - gecko? (
14110 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
14111 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
14112 - )
14113 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
14114 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
14115 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
14116 -
14117 -if [[ ${PV} == "9999" ]] ; then
14118 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
14119 -else
14120 - SRC_URI="${SRC_URI}
14121 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
14122 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
14123 -fi
14124 -
14125 -LICENSE="LGPL-2.1"
14126 -SLOT="0"
14127 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
14128 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
14129 - test? ( abi_x86_32 )
14130 - elibc_glibc? ( threads )
14131 - mono? ( abi_x86_32 )
14132 - pipelight? ( staging )
14133 - s3tc? ( staging )
14134 - vaapi? ( staging )
14135 - osmesa? ( opengl )" #286560
14136 -
14137 -# FIXME: the test suite is unsuitable for us; many tests require net access
14138 -# or fail due to Xvfb's opengl limitations.
14139 -RESTRICT="test"
14140 -
14141 -COMMON_DEPEND="
14142 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
14143 - capi? ( net-dialup/capi4k-utils )
14144 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
14145 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
14146 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
14147 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
14148 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
14149 - gstreamer? (
14150 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
14151 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
14152 - )
14153 - X? (
14154 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
14155 - x11-libs/libXext[${MULTILIB_USEDEP}]
14156 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
14157 - x11-libs/libXi[${MULTILIB_USEDEP}]
14158 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
14159 - )
14160 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
14161 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
14162 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
14163 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
14164 - opengl? (
14165 - virtual/glu[${MULTILIB_USEDEP}]
14166 - virtual/opengl[${MULTILIB_USEDEP}]
14167 - )
14168 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
14169 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
14170 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
14171 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
14172 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
14173 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
14174 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
14175 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
14176 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
14177 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
14178 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
14179 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
14180 - xml? (
14181 - dev-libs/libxml2[${MULTILIB_USEDEP}]
14182 - dev-libs/libxslt[${MULTILIB_USEDEP}]
14183 - )
14184 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
14185 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
14186 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
14187 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
14188 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
14189 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
14190 - abi_x86_32? (
14191 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
14192 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
14193 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
14194 - !<app-emulation/emul-linux-x86-db-20140508-r3
14195 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
14196 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
14197 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
14198 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
14199 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
14200 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
14201 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
14202 - !<app-emulation/emul-linux-x86-soundlibs-20140508
14203 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
14204 - !<app-emulation/emul-linux-x86-xlibs-20140508
14205 - )"
14206 -
14207 -RDEPEND="${COMMON_DEPEND}
14208 - dos? ( games-emulation/dosbox )
14209 - perl? ( dev-lang/perl dev-perl/XML-Simple )
14210 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
14211 - samba? ( >=net-fs/samba-3.0.25 )
14212 - selinux? ( sec-policy/selinux-wine )
14213 - udisks? ( sys-fs/udisks:2 )
14214 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
14215 -
14216 -# tools/make_requests requires perl
14217 -DEPEND="${COMMON_DEPEND}
14218 - staging? ( dev-lang/perl dev-perl/XML-Simple )
14219 - X? (
14220 - x11-proto/inputproto
14221 - x11-proto/xextproto
14222 - x11-proto/xf86vidmodeproto
14223 - )
14224 - xinerama? ( x11-proto/xineramaproto )
14225 - prelink? ( sys-devel/prelink )
14226 - >=sys-kernel/linux-headers-2.6
14227 - virtual/pkgconfig
14228 - virtual/yacc
14229 - sys-devel/flex"
14230 -
14231 -# These use a non-standard "Wine" category, which is provided by
14232 -# /etc/xdg/applications-merged/wine.menu
14233 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
14234 -usr/share/applications/wine-notepad.desktop
14235 -usr/share/applications/wine-uninstaller.desktop
14236 -usr/share/applications/wine-winecfg.desktop"
14237 -
14238 -wine_build_environment_check() {
14239 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
14240 -
14241 - # bug #549768
14242 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
14243 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
14244 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
14245 - # Run in subshell to prevent "Aborted" message
14246 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
14247 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
14248 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
14249 - eerror "or use gcc-config to select a different compiler version."
14250 - eerror "See https://bugs.gentoo.org/549768"
14251 - eerror
14252 - return 1
14253 - fi
14254 - fi
14255 -
14256 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
14257 - eerror "You need gcc-4.4+ to build 64-bit wine"
14258 - eerror
14259 - return 1
14260 - fi
14261 -
14262 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
14263 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
14264 - eerror "See https://bugs.gentoo.org/487864 for more details."
14265 - eerror
14266 - return 1
14267 - fi
14268 -}
14269 -
14270 -pkg_pretend() {
14271 - wine_build_environment_check || die
14272 -}
14273 -
14274 -pkg_setup() {
14275 - wine_build_environment_check || die
14276 -}
14277 -
14278 -src_unpack() {
14279 - if [[ ${PV} == "9999" ]] ; then
14280 - git-r3_src_unpack
14281 - if use staging || use pulseaudio; then
14282 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
14283 - unset ${PN}_LIVE_REPO;
14284 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
14285 - fi
14286 - else
14287 - unpack ${MY_P}.tar.bz2
14288 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
14289 - fi
14290 -
14291 - unpack "${WINE_GENTOO}.tar.bz2"
14292 - use gstreamer && unpack "${GST_P}.patch.bz2"
14293 -
14294 - l10n_find_plocales_changes "${S}/po" "" ".po"
14295 -}
14296 -
14297 -src_prepare() {
14298 - local md5="$(md5sum server/protocol.def)"
14299 - local PATCHES=(
14300 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
14301 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
14302 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
14303 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
14304 - "${FILESDIR}"/${PN}-1.7.47-critical-security-cookie-fix.patch # only necessary for this version, upstream #38895
14305 - )
14306 - if use gstreamer; then
14307 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
14308 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
14309 - ewarn "this patch has been reported to cause crashes in certain games."
14310 -
14311 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
14312 - # during shutdown" patch and "Added patch to implement shared memory
14313 - # wineserver communication for various user32 functions" prevents the
14314 - # gstreamer patch from applying cleanly.
14315 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
14316 - # patch on top.
14317 - if use staging; then
14318 - PATCHES+=(
14319 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
14320 - "${WORKDIR}/${GST_P}.patch"
14321 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
14322 - else
14323 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
14324 - fi
14325 - fi
14326 - if use staging; then
14327 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
14328 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
14329 - ewarn "unless you can reproduce them with USE=-staging"
14330 -
14331 - local STAGING_EXCLUDE=""
14332 - STAGING_EXCLUDE="${STAGING_EXCLUDE} -W ntdll-Revert_Security_Cookie" # only necessary in this version
14333 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
14334 -
14335 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
14336 - ebegin "Running Wine-Staging patch installer"
14337 - (
14338 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
14339 - cd "${STAGING_DIR}/patches"
14340 - source "${STAGING_DIR}/patches/patchinstall.sh"
14341 - )
14342 - eend $?
14343 - elif use pulseaudio; then
14344 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
14345 - fi
14346 - autotools-utils_src_prepare
14347 -
14348 - # Modification of the server protocol requires regenerating the server requests
14349 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
14350 - einfo "server/protocol.def was patched; running tools/make_requests"
14351 - tools/make_requests || die #432348
14352 - fi
14353 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
14354 - if ! use run-exes; then
14355 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
14356 - fi
14357 -
14358 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
14359 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
14360 -
14361 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
14362 -}
14363 -
14364 -src_configure() {
14365 - export LDCONFIG=/bin/true
14366 - use custom-cflags || strip-flags
14367 -
14368 - multilib-minimal_src_configure
14369 -}
14370 -
14371 -multilib_src_configure() {
14372 - local myconf=(
14373 - --sysconfdir=/etc/wine
14374 - $(use_with alsa)
14375 - $(use_with capi)
14376 - $(use_with lcms cms)
14377 - $(use_with cups)
14378 - $(use_with ncurses curses)
14379 - $(use_with udisks dbus)
14380 - $(use_with fontconfig)
14381 - $(use_with ssl gnutls)
14382 - $(use_enable gecko mshtml)
14383 - $(use_with gphoto2 gphoto)
14384 - $(use_with gsm)
14385 - $(use_with gstreamer)
14386 - --without-hal
14387 - $(use_with jpeg)
14388 - $(use_with ldap)
14389 - $(use_enable mono mscoree)
14390 - $(use_with mp3 mpg123)
14391 - $(use_with netapi)
14392 - $(use_with nls gettext)
14393 - $(use_with openal)
14394 - $(use_with opencl)
14395 - $(use_with opengl)
14396 - $(use_with osmesa)
14397 - $(use_with oss)
14398 - $(use_with pcap)
14399 - $(use_with png)
14400 - $(use_with threads pthread)
14401 - $(use_with scanner sane)
14402 - $(use_enable test tests)
14403 - $(use_with truetype freetype)
14404 - $(use_with v4l)
14405 - $(use_with X x)
14406 - $(use_with xcomposite)
14407 - $(use_with xinerama)
14408 - $(use_with xml)
14409 - $(use_with xml xslt)
14410 - )
14411 -
14412 - if use pulseaudio || use staging; then
14413 - myconf+=( $(use_with pulseaudio pulse) )
14414 - fi
14415 - use staging && myconf+=(
14416 - --with-xattr
14417 - $(use_with vaapi va)
14418 - )
14419 -
14420 - local PKG_CONFIG AR RANLIB
14421 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
14422 - # set AR and RANLIB to make QA scripts happy; #483342
14423 - tc-export PKG_CONFIG AR RANLIB
14424 -
14425 - if use amd64; then
14426 - if [[ ${ABI} == amd64 ]]; then
14427 - myconf+=( --enable-win64 )
14428 - else
14429 - myconf+=( --disable-win64 )
14430 - fi
14431 -
14432 - # Note: using --with-wine64 results in problems with multilib.eclass
14433 - # CC/LD hackery. We're using separate tools instead.
14434 - fi
14435 -
14436 - ECONF_SOURCE=${S} \
14437 - econf "${myconf[@]}"
14438 - emake depend
14439 -}
14440 -
14441 -multilib_src_test() {
14442 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
14443 - if [[ ${ABI} == x86 ]]; then
14444 - if [[ $(id -u) == 0 ]]; then
14445 - ewarn "Skipping tests since they cannot be run under the root user."
14446 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
14447 - return
14448 - fi
14449 -
14450 - WINEPREFIX="${T}/.wine-${ABI}" \
14451 - Xemake test
14452 - fi
14453 -}
14454 -
14455 -multilib_src_install_all() {
14456 - local DOCS=( ANNOUNCE AUTHORS README )
14457 - local l
14458 - add_locale_docs() {
14459 - local locale_doc="documentation/README.$1"
14460 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
14461 - }
14462 - l10n_for_each_locale_do add_locale_docs
14463 -
14464 - einstalldocs
14465 - prune_libtool_files --all
14466 -
14467 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
14468 - if use gecko ; then
14469 - insinto /usr/share/wine/gecko
14470 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
14471 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
14472 - fi
14473 - if use mono ; then
14474 - insinto /usr/share/wine/mono
14475 - doins "${DISTDIR}"/wine-mono-${MV}.msi
14476 - fi
14477 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
14478 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
14479 - fi
14480 -
14481 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
14482 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
14483 -
14484 - if use abi_x86_64 && ! use abi_x86_32; then
14485 - dosym /usr/bin/wine{64,} # 404331
14486 - dosym /usr/bin/wine{64,}-preloader
14487 - fi
14488 -
14489 - # respect LINGUAS when installing man pages, #469418
14490 - for l in de fr pl; do
14491 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
14492 - done
14493 -}
14494 -
14495 -pkg_preinst() {
14496 - gnome2_icon_savelist
14497 -}
14498 -
14499 -pkg_postinst() {
14500 - gnome2_icon_cache_update
14501 - fdo-mime_desktop_database_update
14502 -
14503 - if ! use gecko; then
14504 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
14505 - ewarn "implementation of iexplore. Many older windows applications"
14506 - ewarn "rely upon the existence of an iexplore implementation, so"
14507 - ewarn "you will likely need to install an external one, like via winetricks"
14508 - fi
14509 - if ! use mono; then
14510 - ewarn "Without Wine Mono, wine prefixes will not have a default"
14511 - ewarn "implementation of .NET. Many windows applications rely upon"
14512 - ewarn "the existence of a .NET implementation, so you will likely need"
14513 - ewarn "to install an external one, like via winetricks"
14514 - fi
14515 -}
14516 -
14517 -pkg_postrm() {
14518 - gnome2_icon_cache_update
14519 - fdo-mime_desktop_database_update
14520 -}
14521
14522 diff --git a/app-emulation/wine/wine-1.7.50.ebuild b/app-emulation/wine/wine-1.7.50.ebuild
14523 deleted file mode 100644
14524 index 8a8d5c1..0000000
14525 --- a/app-emulation/wine/wine-1.7.50.ebuild
14526 +++ /dev/null
14527 @@ -1,445 +0,0 @@
14528 -# Copyright 1999-2015 Gentoo Foundation
14529 -# Distributed under the terms of the GNU General Public License v2
14530 -# $Id$
14531 -
14532 -EAPI="5"
14533 -
14534 -AUTOTOOLS_AUTORECONF=1
14535 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
14536 -PLOCALE_BACKUP="en"
14537 -
14538 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
14539 -
14540 -if [[ ${PV} == "9999" ]] ; then
14541 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
14542 - EGIT_BRANCH="master"
14543 - inherit git-r3
14544 - SRC_URI=""
14545 - #KEYWORDS=""
14546 -else
14547 - MY_P="${PN}-${PV/_/-}"
14548 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
14549 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
14550 - S=${WORKDIR}/${MY_P}
14551 -fi
14552 -
14553 -GV="2.40"
14554 -MV="4.5.6"
14555 -STAGING_P="wine-staging-${PV}"
14556 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
14557 -WINE_GENTOO="wine-gentoo-2015.03.07"
14558 -GST_P="wine-1.7.34-gstreamer-v5"
14559 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
14560 -HOMEPAGE="http://www.winehq.org/"
14561 -SRC_URI="${SRC_URI}
14562 - gecko? (
14563 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
14564 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
14565 - )
14566 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
14567 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
14568 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
14569 -
14570 -if [[ ${PV} == "9999" ]] ; then
14571 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
14572 -else
14573 - SRC_URI="${SRC_URI}
14574 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
14575 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
14576 -fi
14577 -
14578 -LICENSE="LGPL-2.1"
14579 -SLOT="0"
14580 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
14581 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
14582 - test? ( abi_x86_32 )
14583 - elibc_glibc? ( threads )
14584 - mono? ( abi_x86_32 )
14585 - pipelight? ( staging )
14586 - s3tc? ( staging )
14587 - vaapi? ( staging )
14588 - ?? ( gstreamer staging )
14589 - osmesa? ( opengl )" #286560
14590 -
14591 -# FIXME: the test suite is unsuitable for us; many tests require net access
14592 -# or fail due to Xvfb's opengl limitations.
14593 -RESTRICT="test"
14594 -
14595 -COMMON_DEPEND="
14596 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
14597 - capi? ( net-dialup/capi4k-utils )
14598 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
14599 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
14600 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
14601 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
14602 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
14603 - gstreamer? (
14604 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
14605 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
14606 - )
14607 - X? (
14608 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
14609 - x11-libs/libXext[${MULTILIB_USEDEP}]
14610 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
14611 - x11-libs/libXi[${MULTILIB_USEDEP}]
14612 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
14613 - )
14614 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
14615 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
14616 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
14617 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
14618 - opengl? (
14619 - virtual/glu[${MULTILIB_USEDEP}]
14620 - virtual/opengl[${MULTILIB_USEDEP}]
14621 - )
14622 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
14623 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
14624 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
14625 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
14626 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
14627 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
14628 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
14629 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
14630 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
14631 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
14632 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
14633 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
14634 - xml? (
14635 - dev-libs/libxml2[${MULTILIB_USEDEP}]
14636 - dev-libs/libxslt[${MULTILIB_USEDEP}]
14637 - )
14638 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
14639 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
14640 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
14641 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
14642 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
14643 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
14644 - abi_x86_32? (
14645 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
14646 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
14647 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
14648 - !<app-emulation/emul-linux-x86-db-20140508-r3
14649 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
14650 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
14651 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
14652 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
14653 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
14654 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
14655 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
14656 - !<app-emulation/emul-linux-x86-soundlibs-20140508
14657 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
14658 - !<app-emulation/emul-linux-x86-xlibs-20140508
14659 - )"
14660 -
14661 -RDEPEND="${COMMON_DEPEND}
14662 - dos? ( games-emulation/dosbox )
14663 - perl? ( dev-lang/perl dev-perl/XML-Simple )
14664 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
14665 - samba? ( >=net-fs/samba-3.0.25 )
14666 - selinux? ( sec-policy/selinux-wine )
14667 - udisks? ( sys-fs/udisks:2 )
14668 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
14669 -
14670 -# tools/make_requests requires perl
14671 -DEPEND="${COMMON_DEPEND}
14672 - staging? ( dev-lang/perl dev-perl/XML-Simple )
14673 - X? (
14674 - x11-proto/inputproto
14675 - x11-proto/xextproto
14676 - x11-proto/xf86vidmodeproto
14677 - )
14678 - xinerama? ( x11-proto/xineramaproto )
14679 - prelink? ( sys-devel/prelink )
14680 - >=sys-kernel/linux-headers-2.6
14681 - virtual/pkgconfig
14682 - virtual/yacc
14683 - sys-devel/flex"
14684 -
14685 -# These use a non-standard "Wine" category, which is provided by
14686 -# /etc/xdg/applications-merged/wine.menu
14687 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
14688 -usr/share/applications/wine-notepad.desktop
14689 -usr/share/applications/wine-uninstaller.desktop
14690 -usr/share/applications/wine-winecfg.desktop"
14691 -
14692 -wine_build_environment_check() {
14693 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
14694 -
14695 - # bug #549768
14696 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
14697 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
14698 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
14699 - # Run in subshell to prevent "Aborted" message
14700 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
14701 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
14702 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
14703 - eerror "or use gcc-config to select a different compiler version."
14704 - eerror "See https://bugs.gentoo.org/549768"
14705 - eerror
14706 - return 1
14707 - fi
14708 - fi
14709 -
14710 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
14711 - eerror "You need gcc-4.4+ to build 64-bit wine"
14712 - eerror
14713 - return 1
14714 - fi
14715 -
14716 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
14717 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
14718 - eerror "See https://bugs.gentoo.org/487864 for more details."
14719 - eerror
14720 - return 1
14721 - fi
14722 -}
14723 -
14724 -pkg_pretend() {
14725 - wine_build_environment_check || die
14726 -}
14727 -
14728 -pkg_setup() {
14729 - wine_build_environment_check || die
14730 -}
14731 -
14732 -src_unpack() {
14733 - if [[ ${PV} == "9999" ]] ; then
14734 - git-r3_src_unpack
14735 - if use staging || use pulseaudio; then
14736 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
14737 - unset ${PN}_LIVE_REPO;
14738 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
14739 - fi
14740 - else
14741 - unpack ${MY_P}.tar.bz2
14742 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
14743 - fi
14744 -
14745 - unpack "${WINE_GENTOO}.tar.bz2"
14746 - use gstreamer && unpack "${GST_P}.patch.bz2"
14747 -
14748 - l10n_find_plocales_changes "${S}/po" "" ".po"
14749 -}
14750 -
14751 -src_prepare() {
14752 - local md5="$(md5sum server/protocol.def)"
14753 - local PATCHES=(
14754 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
14755 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
14756 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
14757 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
14758 - )
14759 - if use gstreamer; then
14760 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
14761 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
14762 - ewarn "this patch has been reported to cause crashes in certain games."
14763 -
14764 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
14765 - # during shutdown" patch and "Added patch to implement shared memory
14766 - # wineserver communication for various user32 functions" prevents the
14767 - # gstreamer patch from applying cleanly.
14768 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
14769 - # patch on top.
14770 - if use staging; then
14771 - PATCHES+=(
14772 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
14773 - "${WORKDIR}/${GST_P}.patch"
14774 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
14775 - else
14776 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
14777 - fi
14778 - fi
14779 - if use staging; then
14780 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
14781 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
14782 - ewarn "unless you can reproduce them with USE=-staging"
14783 -
14784 - local STAGING_EXCLUDE=""
14785 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
14786 -
14787 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
14788 - ebegin "Running Wine-Staging patch installer"
14789 - (
14790 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
14791 - cd "${STAGING_DIR}/patches"
14792 - source "${STAGING_DIR}/patches/patchinstall.sh"
14793 - )
14794 - eend $?
14795 - elif use pulseaudio; then
14796 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
14797 - fi
14798 - autotools-utils_src_prepare
14799 -
14800 - # Modification of the server protocol requires regenerating the server requests
14801 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
14802 - einfo "server/protocol.def was patched; running tools/make_requests"
14803 - tools/make_requests || die #432348
14804 - fi
14805 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
14806 - if ! use run-exes; then
14807 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
14808 - fi
14809 -
14810 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
14811 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
14812 -
14813 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
14814 -}
14815 -
14816 -src_configure() {
14817 - export LDCONFIG=/bin/true
14818 - use custom-cflags || strip-flags
14819 -
14820 - multilib-minimal_src_configure
14821 -}
14822 -
14823 -multilib_src_configure() {
14824 - local myconf=(
14825 - --sysconfdir=/etc/wine
14826 - $(use_with alsa)
14827 - $(use_with capi)
14828 - $(use_with lcms cms)
14829 - $(use_with cups)
14830 - $(use_with ncurses curses)
14831 - $(use_with udisks dbus)
14832 - $(use_with fontconfig)
14833 - $(use_with ssl gnutls)
14834 - $(use_enable gecko mshtml)
14835 - $(use_with gphoto2 gphoto)
14836 - $(use_with gsm)
14837 - $(use_with gstreamer)
14838 - --without-hal
14839 - $(use_with jpeg)
14840 - $(use_with ldap)
14841 - $(use_enable mono mscoree)
14842 - $(use_with mp3 mpg123)
14843 - $(use_with netapi)
14844 - $(use_with nls gettext)
14845 - $(use_with openal)
14846 - $(use_with opencl)
14847 - $(use_with opengl)
14848 - $(use_with osmesa)
14849 - $(use_with oss)
14850 - $(use_with pcap)
14851 - $(use_with png)
14852 - $(use_with threads pthread)
14853 - $(use_with scanner sane)
14854 - $(use_enable test tests)
14855 - $(use_with truetype freetype)
14856 - $(use_with v4l)
14857 - $(use_with X x)
14858 - $(use_with xcomposite)
14859 - $(use_with xinerama)
14860 - $(use_with xml)
14861 - $(use_with xml xslt)
14862 - )
14863 -
14864 - if use pulseaudio || use staging; then
14865 - myconf+=( $(use_with pulseaudio pulse) )
14866 - fi
14867 - use staging && myconf+=(
14868 - --with-xattr
14869 - $(use_with vaapi va)
14870 - )
14871 -
14872 - local PKG_CONFIG AR RANLIB
14873 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
14874 - # set AR and RANLIB to make QA scripts happy; #483342
14875 - tc-export PKG_CONFIG AR RANLIB
14876 -
14877 - if use amd64; then
14878 - if [[ ${ABI} == amd64 ]]; then
14879 - myconf+=( --enable-win64 )
14880 - else
14881 - myconf+=( --disable-win64 )
14882 - fi
14883 -
14884 - # Note: using --with-wine64 results in problems with multilib.eclass
14885 - # CC/LD hackery. We're using separate tools instead.
14886 - fi
14887 -
14888 - ECONF_SOURCE=${S} \
14889 - econf "${myconf[@]}"
14890 - emake depend
14891 -}
14892 -
14893 -multilib_src_test() {
14894 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
14895 - if [[ ${ABI} == x86 ]]; then
14896 - if [[ $(id -u) == 0 ]]; then
14897 - ewarn "Skipping tests since they cannot be run under the root user."
14898 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
14899 - return
14900 - fi
14901 -
14902 - WINEPREFIX="${T}/.wine-${ABI}" \
14903 - Xemake test
14904 - fi
14905 -}
14906 -
14907 -multilib_src_install_all() {
14908 - local DOCS=( ANNOUNCE AUTHORS README )
14909 - local l
14910 - add_locale_docs() {
14911 - local locale_doc="documentation/README.$1"
14912 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
14913 - }
14914 - l10n_for_each_locale_do add_locale_docs
14915 -
14916 - einstalldocs
14917 - prune_libtool_files --all
14918 -
14919 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
14920 - if use gecko ; then
14921 - insinto /usr/share/wine/gecko
14922 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
14923 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
14924 - fi
14925 - if use mono ; then
14926 - insinto /usr/share/wine/mono
14927 - doins "${DISTDIR}"/wine-mono-${MV}.msi
14928 - fi
14929 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
14930 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
14931 - fi
14932 -
14933 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
14934 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
14935 -
14936 - if use abi_x86_64 && ! use abi_x86_32; then
14937 - dosym /usr/bin/wine{64,} # 404331
14938 - dosym /usr/bin/wine{64,}-preloader
14939 - fi
14940 -
14941 - # respect LINGUAS when installing man pages, #469418
14942 - for l in de fr pl; do
14943 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
14944 - done
14945 -}
14946 -
14947 -pkg_preinst() {
14948 - gnome2_icon_savelist
14949 -}
14950 -
14951 -pkg_postinst() {
14952 - gnome2_icon_cache_update
14953 - fdo-mime_desktop_database_update
14954 -
14955 - if ! use gecko; then
14956 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
14957 - ewarn "implementation of iexplore. Many older windows applications"
14958 - ewarn "rely upon the existence of an iexplore implementation, so"
14959 - ewarn "you will likely need to install an external one, like via winetricks"
14960 - fi
14961 - if ! use mono; then
14962 - ewarn "Without Wine Mono, wine prefixes will not have a default"
14963 - ewarn "implementation of .NET. Many windows applications rely upon"
14964 - ewarn "the existence of a .NET implementation, so you will likely need"
14965 - ewarn "to install an external one, like via winetricks"
14966 - fi
14967 -}
14968 -
14969 -pkg_postrm() {
14970 - gnome2_icon_cache_update
14971 - fdo-mime_desktop_database_update
14972 -}
14973
14974 diff --git a/app-emulation/wine/wine-1.7.51.ebuild b/app-emulation/wine/wine-1.7.51.ebuild
14975 deleted file mode 100644
14976 index 8a8d5c1..0000000
14977 --- a/app-emulation/wine/wine-1.7.51.ebuild
14978 +++ /dev/null
14979 @@ -1,445 +0,0 @@
14980 -# Copyright 1999-2015 Gentoo Foundation
14981 -# Distributed under the terms of the GNU General Public License v2
14982 -# $Id$
14983 -
14984 -EAPI="5"
14985 -
14986 -AUTOTOOLS_AUTORECONF=1
14987 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
14988 -PLOCALE_BACKUP="en"
14989 -
14990 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
14991 -
14992 -if [[ ${PV} == "9999" ]] ; then
14993 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
14994 - EGIT_BRANCH="master"
14995 - inherit git-r3
14996 - SRC_URI=""
14997 - #KEYWORDS=""
14998 -else
14999 - MY_P="${PN}-${PV/_/-}"
15000 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
15001 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
15002 - S=${WORKDIR}/${MY_P}
15003 -fi
15004 -
15005 -GV="2.40"
15006 -MV="4.5.6"
15007 -STAGING_P="wine-staging-${PV}"
15008 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
15009 -WINE_GENTOO="wine-gentoo-2015.03.07"
15010 -GST_P="wine-1.7.34-gstreamer-v5"
15011 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
15012 -HOMEPAGE="http://www.winehq.org/"
15013 -SRC_URI="${SRC_URI}
15014 - gecko? (
15015 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
15016 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
15017 - )
15018 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
15019 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
15020 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
15021 -
15022 -if [[ ${PV} == "9999" ]] ; then
15023 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
15024 -else
15025 - SRC_URI="${SRC_URI}
15026 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
15027 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
15028 -fi
15029 -
15030 -LICENSE="LGPL-2.1"
15031 -SLOT="0"
15032 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
15033 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
15034 - test? ( abi_x86_32 )
15035 - elibc_glibc? ( threads )
15036 - mono? ( abi_x86_32 )
15037 - pipelight? ( staging )
15038 - s3tc? ( staging )
15039 - vaapi? ( staging )
15040 - ?? ( gstreamer staging )
15041 - osmesa? ( opengl )" #286560
15042 -
15043 -# FIXME: the test suite is unsuitable for us; many tests require net access
15044 -# or fail due to Xvfb's opengl limitations.
15045 -RESTRICT="test"
15046 -
15047 -COMMON_DEPEND="
15048 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
15049 - capi? ( net-dialup/capi4k-utils )
15050 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
15051 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
15052 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
15053 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
15054 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
15055 - gstreamer? (
15056 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
15057 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
15058 - )
15059 - X? (
15060 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
15061 - x11-libs/libXext[${MULTILIB_USEDEP}]
15062 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
15063 - x11-libs/libXi[${MULTILIB_USEDEP}]
15064 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
15065 - )
15066 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
15067 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
15068 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
15069 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
15070 - opengl? (
15071 - virtual/glu[${MULTILIB_USEDEP}]
15072 - virtual/opengl[${MULTILIB_USEDEP}]
15073 - )
15074 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
15075 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
15076 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
15077 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
15078 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
15079 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
15080 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
15081 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
15082 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
15083 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
15084 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
15085 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
15086 - xml? (
15087 - dev-libs/libxml2[${MULTILIB_USEDEP}]
15088 - dev-libs/libxslt[${MULTILIB_USEDEP}]
15089 - )
15090 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
15091 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
15092 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
15093 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
15094 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
15095 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
15096 - abi_x86_32? (
15097 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
15098 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
15099 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
15100 - !<app-emulation/emul-linux-x86-db-20140508-r3
15101 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
15102 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
15103 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
15104 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
15105 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
15106 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
15107 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
15108 - !<app-emulation/emul-linux-x86-soundlibs-20140508
15109 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
15110 - !<app-emulation/emul-linux-x86-xlibs-20140508
15111 - )"
15112 -
15113 -RDEPEND="${COMMON_DEPEND}
15114 - dos? ( games-emulation/dosbox )
15115 - perl? ( dev-lang/perl dev-perl/XML-Simple )
15116 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
15117 - samba? ( >=net-fs/samba-3.0.25 )
15118 - selinux? ( sec-policy/selinux-wine )
15119 - udisks? ( sys-fs/udisks:2 )
15120 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
15121 -
15122 -# tools/make_requests requires perl
15123 -DEPEND="${COMMON_DEPEND}
15124 - staging? ( dev-lang/perl dev-perl/XML-Simple )
15125 - X? (
15126 - x11-proto/inputproto
15127 - x11-proto/xextproto
15128 - x11-proto/xf86vidmodeproto
15129 - )
15130 - xinerama? ( x11-proto/xineramaproto )
15131 - prelink? ( sys-devel/prelink )
15132 - >=sys-kernel/linux-headers-2.6
15133 - virtual/pkgconfig
15134 - virtual/yacc
15135 - sys-devel/flex"
15136 -
15137 -# These use a non-standard "Wine" category, which is provided by
15138 -# /etc/xdg/applications-merged/wine.menu
15139 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
15140 -usr/share/applications/wine-notepad.desktop
15141 -usr/share/applications/wine-uninstaller.desktop
15142 -usr/share/applications/wine-winecfg.desktop"
15143 -
15144 -wine_build_environment_check() {
15145 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
15146 -
15147 - # bug #549768
15148 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
15149 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
15150 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
15151 - # Run in subshell to prevent "Aborted" message
15152 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
15153 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
15154 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
15155 - eerror "or use gcc-config to select a different compiler version."
15156 - eerror "See https://bugs.gentoo.org/549768"
15157 - eerror
15158 - return 1
15159 - fi
15160 - fi
15161 -
15162 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
15163 - eerror "You need gcc-4.4+ to build 64-bit wine"
15164 - eerror
15165 - return 1
15166 - fi
15167 -
15168 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
15169 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
15170 - eerror "See https://bugs.gentoo.org/487864 for more details."
15171 - eerror
15172 - return 1
15173 - fi
15174 -}
15175 -
15176 -pkg_pretend() {
15177 - wine_build_environment_check || die
15178 -}
15179 -
15180 -pkg_setup() {
15181 - wine_build_environment_check || die
15182 -}
15183 -
15184 -src_unpack() {
15185 - if [[ ${PV} == "9999" ]] ; then
15186 - git-r3_src_unpack
15187 - if use staging || use pulseaudio; then
15188 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
15189 - unset ${PN}_LIVE_REPO;
15190 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
15191 - fi
15192 - else
15193 - unpack ${MY_P}.tar.bz2
15194 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
15195 - fi
15196 -
15197 - unpack "${WINE_GENTOO}.tar.bz2"
15198 - use gstreamer && unpack "${GST_P}.patch.bz2"
15199 -
15200 - l10n_find_plocales_changes "${S}/po" "" ".po"
15201 -}
15202 -
15203 -src_prepare() {
15204 - local md5="$(md5sum server/protocol.def)"
15205 - local PATCHES=(
15206 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
15207 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
15208 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
15209 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
15210 - )
15211 - if use gstreamer; then
15212 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
15213 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
15214 - ewarn "this patch has been reported to cause crashes in certain games."
15215 -
15216 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
15217 - # during shutdown" patch and "Added patch to implement shared memory
15218 - # wineserver communication for various user32 functions" prevents the
15219 - # gstreamer patch from applying cleanly.
15220 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
15221 - # patch on top.
15222 - if use staging; then
15223 - PATCHES+=(
15224 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
15225 - "${WORKDIR}/${GST_P}.patch"
15226 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
15227 - else
15228 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
15229 - fi
15230 - fi
15231 - if use staging; then
15232 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
15233 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
15234 - ewarn "unless you can reproduce them with USE=-staging"
15235 -
15236 - local STAGING_EXCLUDE=""
15237 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
15238 -
15239 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
15240 - ebegin "Running Wine-Staging patch installer"
15241 - (
15242 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
15243 - cd "${STAGING_DIR}/patches"
15244 - source "${STAGING_DIR}/patches/patchinstall.sh"
15245 - )
15246 - eend $?
15247 - elif use pulseaudio; then
15248 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
15249 - fi
15250 - autotools-utils_src_prepare
15251 -
15252 - # Modification of the server protocol requires regenerating the server requests
15253 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
15254 - einfo "server/protocol.def was patched; running tools/make_requests"
15255 - tools/make_requests || die #432348
15256 - fi
15257 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
15258 - if ! use run-exes; then
15259 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
15260 - fi
15261 -
15262 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
15263 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
15264 -
15265 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
15266 -}
15267 -
15268 -src_configure() {
15269 - export LDCONFIG=/bin/true
15270 - use custom-cflags || strip-flags
15271 -
15272 - multilib-minimal_src_configure
15273 -}
15274 -
15275 -multilib_src_configure() {
15276 - local myconf=(
15277 - --sysconfdir=/etc/wine
15278 - $(use_with alsa)
15279 - $(use_with capi)
15280 - $(use_with lcms cms)
15281 - $(use_with cups)
15282 - $(use_with ncurses curses)
15283 - $(use_with udisks dbus)
15284 - $(use_with fontconfig)
15285 - $(use_with ssl gnutls)
15286 - $(use_enable gecko mshtml)
15287 - $(use_with gphoto2 gphoto)
15288 - $(use_with gsm)
15289 - $(use_with gstreamer)
15290 - --without-hal
15291 - $(use_with jpeg)
15292 - $(use_with ldap)
15293 - $(use_enable mono mscoree)
15294 - $(use_with mp3 mpg123)
15295 - $(use_with netapi)
15296 - $(use_with nls gettext)
15297 - $(use_with openal)
15298 - $(use_with opencl)
15299 - $(use_with opengl)
15300 - $(use_with osmesa)
15301 - $(use_with oss)
15302 - $(use_with pcap)
15303 - $(use_with png)
15304 - $(use_with threads pthread)
15305 - $(use_with scanner sane)
15306 - $(use_enable test tests)
15307 - $(use_with truetype freetype)
15308 - $(use_with v4l)
15309 - $(use_with X x)
15310 - $(use_with xcomposite)
15311 - $(use_with xinerama)
15312 - $(use_with xml)
15313 - $(use_with xml xslt)
15314 - )
15315 -
15316 - if use pulseaudio || use staging; then
15317 - myconf+=( $(use_with pulseaudio pulse) )
15318 - fi
15319 - use staging && myconf+=(
15320 - --with-xattr
15321 - $(use_with vaapi va)
15322 - )
15323 -
15324 - local PKG_CONFIG AR RANLIB
15325 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
15326 - # set AR and RANLIB to make QA scripts happy; #483342
15327 - tc-export PKG_CONFIG AR RANLIB
15328 -
15329 - if use amd64; then
15330 - if [[ ${ABI} == amd64 ]]; then
15331 - myconf+=( --enable-win64 )
15332 - else
15333 - myconf+=( --disable-win64 )
15334 - fi
15335 -
15336 - # Note: using --with-wine64 results in problems with multilib.eclass
15337 - # CC/LD hackery. We're using separate tools instead.
15338 - fi
15339 -
15340 - ECONF_SOURCE=${S} \
15341 - econf "${myconf[@]}"
15342 - emake depend
15343 -}
15344 -
15345 -multilib_src_test() {
15346 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
15347 - if [[ ${ABI} == x86 ]]; then
15348 - if [[ $(id -u) == 0 ]]; then
15349 - ewarn "Skipping tests since they cannot be run under the root user."
15350 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
15351 - return
15352 - fi
15353 -
15354 - WINEPREFIX="${T}/.wine-${ABI}" \
15355 - Xemake test
15356 - fi
15357 -}
15358 -
15359 -multilib_src_install_all() {
15360 - local DOCS=( ANNOUNCE AUTHORS README )
15361 - local l
15362 - add_locale_docs() {
15363 - local locale_doc="documentation/README.$1"
15364 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
15365 - }
15366 - l10n_for_each_locale_do add_locale_docs
15367 -
15368 - einstalldocs
15369 - prune_libtool_files --all
15370 -
15371 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
15372 - if use gecko ; then
15373 - insinto /usr/share/wine/gecko
15374 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
15375 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
15376 - fi
15377 - if use mono ; then
15378 - insinto /usr/share/wine/mono
15379 - doins "${DISTDIR}"/wine-mono-${MV}.msi
15380 - fi
15381 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
15382 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
15383 - fi
15384 -
15385 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
15386 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
15387 -
15388 - if use abi_x86_64 && ! use abi_x86_32; then
15389 - dosym /usr/bin/wine{64,} # 404331
15390 - dosym /usr/bin/wine{64,}-preloader
15391 - fi
15392 -
15393 - # respect LINGUAS when installing man pages, #469418
15394 - for l in de fr pl; do
15395 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
15396 - done
15397 -}
15398 -
15399 -pkg_preinst() {
15400 - gnome2_icon_savelist
15401 -}
15402 -
15403 -pkg_postinst() {
15404 - gnome2_icon_cache_update
15405 - fdo-mime_desktop_database_update
15406 -
15407 - if ! use gecko; then
15408 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
15409 - ewarn "implementation of iexplore. Many older windows applications"
15410 - ewarn "rely upon the existence of an iexplore implementation, so"
15411 - ewarn "you will likely need to install an external one, like via winetricks"
15412 - fi
15413 - if ! use mono; then
15414 - ewarn "Without Wine Mono, wine prefixes will not have a default"
15415 - ewarn "implementation of .NET. Many windows applications rely upon"
15416 - ewarn "the existence of a .NET implementation, so you will likely need"
15417 - ewarn "to install an external one, like via winetricks"
15418 - fi
15419 -}
15420 -
15421 -pkg_postrm() {
15422 - gnome2_icon_cache_update
15423 - fdo-mime_desktop_database_update
15424 -}
15425
15426 diff --git a/app-emulation/wine/wine-1.7.52.ebuild b/app-emulation/wine/wine-1.7.52.ebuild
15427 deleted file mode 100644
15428 index 8a8d5c1..0000000
15429 --- a/app-emulation/wine/wine-1.7.52.ebuild
15430 +++ /dev/null
15431 @@ -1,445 +0,0 @@
15432 -# Copyright 1999-2015 Gentoo Foundation
15433 -# Distributed under the terms of the GNU General Public License v2
15434 -# $Id$
15435 -
15436 -EAPI="5"
15437 -
15438 -AUTOTOOLS_AUTORECONF=1
15439 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
15440 -PLOCALE_BACKUP="en"
15441 -
15442 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
15443 -
15444 -if [[ ${PV} == "9999" ]] ; then
15445 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
15446 - EGIT_BRANCH="master"
15447 - inherit git-r3
15448 - SRC_URI=""
15449 - #KEYWORDS=""
15450 -else
15451 - MY_P="${PN}-${PV/_/-}"
15452 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
15453 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
15454 - S=${WORKDIR}/${MY_P}
15455 -fi
15456 -
15457 -GV="2.40"
15458 -MV="4.5.6"
15459 -STAGING_P="wine-staging-${PV}"
15460 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
15461 -WINE_GENTOO="wine-gentoo-2015.03.07"
15462 -GST_P="wine-1.7.34-gstreamer-v5"
15463 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
15464 -HOMEPAGE="http://www.winehq.org/"
15465 -SRC_URI="${SRC_URI}
15466 - gecko? (
15467 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
15468 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
15469 - )
15470 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
15471 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
15472 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
15473 -
15474 -if [[ ${PV} == "9999" ]] ; then
15475 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
15476 -else
15477 - SRC_URI="${SRC_URI}
15478 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
15479 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
15480 -fi
15481 -
15482 -LICENSE="LGPL-2.1"
15483 -SLOT="0"
15484 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
15485 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
15486 - test? ( abi_x86_32 )
15487 - elibc_glibc? ( threads )
15488 - mono? ( abi_x86_32 )
15489 - pipelight? ( staging )
15490 - s3tc? ( staging )
15491 - vaapi? ( staging )
15492 - ?? ( gstreamer staging )
15493 - osmesa? ( opengl )" #286560
15494 -
15495 -# FIXME: the test suite is unsuitable for us; many tests require net access
15496 -# or fail due to Xvfb's opengl limitations.
15497 -RESTRICT="test"
15498 -
15499 -COMMON_DEPEND="
15500 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
15501 - capi? ( net-dialup/capi4k-utils )
15502 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
15503 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
15504 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
15505 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
15506 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
15507 - gstreamer? (
15508 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
15509 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
15510 - )
15511 - X? (
15512 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
15513 - x11-libs/libXext[${MULTILIB_USEDEP}]
15514 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
15515 - x11-libs/libXi[${MULTILIB_USEDEP}]
15516 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
15517 - )
15518 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
15519 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
15520 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
15521 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
15522 - opengl? (
15523 - virtual/glu[${MULTILIB_USEDEP}]
15524 - virtual/opengl[${MULTILIB_USEDEP}]
15525 - )
15526 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
15527 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
15528 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
15529 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
15530 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
15531 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
15532 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
15533 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
15534 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
15535 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
15536 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
15537 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
15538 - xml? (
15539 - dev-libs/libxml2[${MULTILIB_USEDEP}]
15540 - dev-libs/libxslt[${MULTILIB_USEDEP}]
15541 - )
15542 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
15543 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
15544 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
15545 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
15546 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
15547 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
15548 - abi_x86_32? (
15549 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
15550 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
15551 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
15552 - !<app-emulation/emul-linux-x86-db-20140508-r3
15553 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
15554 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
15555 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
15556 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
15557 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
15558 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
15559 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
15560 - !<app-emulation/emul-linux-x86-soundlibs-20140508
15561 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
15562 - !<app-emulation/emul-linux-x86-xlibs-20140508
15563 - )"
15564 -
15565 -RDEPEND="${COMMON_DEPEND}
15566 - dos? ( games-emulation/dosbox )
15567 - perl? ( dev-lang/perl dev-perl/XML-Simple )
15568 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
15569 - samba? ( >=net-fs/samba-3.0.25 )
15570 - selinux? ( sec-policy/selinux-wine )
15571 - udisks? ( sys-fs/udisks:2 )
15572 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
15573 -
15574 -# tools/make_requests requires perl
15575 -DEPEND="${COMMON_DEPEND}
15576 - staging? ( dev-lang/perl dev-perl/XML-Simple )
15577 - X? (
15578 - x11-proto/inputproto
15579 - x11-proto/xextproto
15580 - x11-proto/xf86vidmodeproto
15581 - )
15582 - xinerama? ( x11-proto/xineramaproto )
15583 - prelink? ( sys-devel/prelink )
15584 - >=sys-kernel/linux-headers-2.6
15585 - virtual/pkgconfig
15586 - virtual/yacc
15587 - sys-devel/flex"
15588 -
15589 -# These use a non-standard "Wine" category, which is provided by
15590 -# /etc/xdg/applications-merged/wine.menu
15591 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
15592 -usr/share/applications/wine-notepad.desktop
15593 -usr/share/applications/wine-uninstaller.desktop
15594 -usr/share/applications/wine-winecfg.desktop"
15595 -
15596 -wine_build_environment_check() {
15597 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
15598 -
15599 - # bug #549768
15600 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
15601 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
15602 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
15603 - # Run in subshell to prevent "Aborted" message
15604 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
15605 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
15606 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
15607 - eerror "or use gcc-config to select a different compiler version."
15608 - eerror "See https://bugs.gentoo.org/549768"
15609 - eerror
15610 - return 1
15611 - fi
15612 - fi
15613 -
15614 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
15615 - eerror "You need gcc-4.4+ to build 64-bit wine"
15616 - eerror
15617 - return 1
15618 - fi
15619 -
15620 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
15621 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
15622 - eerror "See https://bugs.gentoo.org/487864 for more details."
15623 - eerror
15624 - return 1
15625 - fi
15626 -}
15627 -
15628 -pkg_pretend() {
15629 - wine_build_environment_check || die
15630 -}
15631 -
15632 -pkg_setup() {
15633 - wine_build_environment_check || die
15634 -}
15635 -
15636 -src_unpack() {
15637 - if [[ ${PV} == "9999" ]] ; then
15638 - git-r3_src_unpack
15639 - if use staging || use pulseaudio; then
15640 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
15641 - unset ${PN}_LIVE_REPO;
15642 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
15643 - fi
15644 - else
15645 - unpack ${MY_P}.tar.bz2
15646 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
15647 - fi
15648 -
15649 - unpack "${WINE_GENTOO}.tar.bz2"
15650 - use gstreamer && unpack "${GST_P}.patch.bz2"
15651 -
15652 - l10n_find_plocales_changes "${S}/po" "" ".po"
15653 -}
15654 -
15655 -src_prepare() {
15656 - local md5="$(md5sum server/protocol.def)"
15657 - local PATCHES=(
15658 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
15659 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
15660 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
15661 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
15662 - )
15663 - if use gstreamer; then
15664 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
15665 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
15666 - ewarn "this patch has been reported to cause crashes in certain games."
15667 -
15668 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
15669 - # during shutdown" patch and "Added patch to implement shared memory
15670 - # wineserver communication for various user32 functions" prevents the
15671 - # gstreamer patch from applying cleanly.
15672 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
15673 - # patch on top.
15674 - if use staging; then
15675 - PATCHES+=(
15676 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
15677 - "${WORKDIR}/${GST_P}.patch"
15678 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
15679 - else
15680 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
15681 - fi
15682 - fi
15683 - if use staging; then
15684 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
15685 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
15686 - ewarn "unless you can reproduce them with USE=-staging"
15687 -
15688 - local STAGING_EXCLUDE=""
15689 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
15690 -
15691 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
15692 - ebegin "Running Wine-Staging patch installer"
15693 - (
15694 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
15695 - cd "${STAGING_DIR}/patches"
15696 - source "${STAGING_DIR}/patches/patchinstall.sh"
15697 - )
15698 - eend $?
15699 - elif use pulseaudio; then
15700 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
15701 - fi
15702 - autotools-utils_src_prepare
15703 -
15704 - # Modification of the server protocol requires regenerating the server requests
15705 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
15706 - einfo "server/protocol.def was patched; running tools/make_requests"
15707 - tools/make_requests || die #432348
15708 - fi
15709 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
15710 - if ! use run-exes; then
15711 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
15712 - fi
15713 -
15714 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
15715 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
15716 -
15717 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
15718 -}
15719 -
15720 -src_configure() {
15721 - export LDCONFIG=/bin/true
15722 - use custom-cflags || strip-flags
15723 -
15724 - multilib-minimal_src_configure
15725 -}
15726 -
15727 -multilib_src_configure() {
15728 - local myconf=(
15729 - --sysconfdir=/etc/wine
15730 - $(use_with alsa)
15731 - $(use_with capi)
15732 - $(use_with lcms cms)
15733 - $(use_with cups)
15734 - $(use_with ncurses curses)
15735 - $(use_with udisks dbus)
15736 - $(use_with fontconfig)
15737 - $(use_with ssl gnutls)
15738 - $(use_enable gecko mshtml)
15739 - $(use_with gphoto2 gphoto)
15740 - $(use_with gsm)
15741 - $(use_with gstreamer)
15742 - --without-hal
15743 - $(use_with jpeg)
15744 - $(use_with ldap)
15745 - $(use_enable mono mscoree)
15746 - $(use_with mp3 mpg123)
15747 - $(use_with netapi)
15748 - $(use_with nls gettext)
15749 - $(use_with openal)
15750 - $(use_with opencl)
15751 - $(use_with opengl)
15752 - $(use_with osmesa)
15753 - $(use_with oss)
15754 - $(use_with pcap)
15755 - $(use_with png)
15756 - $(use_with threads pthread)
15757 - $(use_with scanner sane)
15758 - $(use_enable test tests)
15759 - $(use_with truetype freetype)
15760 - $(use_with v4l)
15761 - $(use_with X x)
15762 - $(use_with xcomposite)
15763 - $(use_with xinerama)
15764 - $(use_with xml)
15765 - $(use_with xml xslt)
15766 - )
15767 -
15768 - if use pulseaudio || use staging; then
15769 - myconf+=( $(use_with pulseaudio pulse) )
15770 - fi
15771 - use staging && myconf+=(
15772 - --with-xattr
15773 - $(use_with vaapi va)
15774 - )
15775 -
15776 - local PKG_CONFIG AR RANLIB
15777 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
15778 - # set AR and RANLIB to make QA scripts happy; #483342
15779 - tc-export PKG_CONFIG AR RANLIB
15780 -
15781 - if use amd64; then
15782 - if [[ ${ABI} == amd64 ]]; then
15783 - myconf+=( --enable-win64 )
15784 - else
15785 - myconf+=( --disable-win64 )
15786 - fi
15787 -
15788 - # Note: using --with-wine64 results in problems with multilib.eclass
15789 - # CC/LD hackery. We're using separate tools instead.
15790 - fi
15791 -
15792 - ECONF_SOURCE=${S} \
15793 - econf "${myconf[@]}"
15794 - emake depend
15795 -}
15796 -
15797 -multilib_src_test() {
15798 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
15799 - if [[ ${ABI} == x86 ]]; then
15800 - if [[ $(id -u) == 0 ]]; then
15801 - ewarn "Skipping tests since they cannot be run under the root user."
15802 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
15803 - return
15804 - fi
15805 -
15806 - WINEPREFIX="${T}/.wine-${ABI}" \
15807 - Xemake test
15808 - fi
15809 -}
15810 -
15811 -multilib_src_install_all() {
15812 - local DOCS=( ANNOUNCE AUTHORS README )
15813 - local l
15814 - add_locale_docs() {
15815 - local locale_doc="documentation/README.$1"
15816 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
15817 - }
15818 - l10n_for_each_locale_do add_locale_docs
15819 -
15820 - einstalldocs
15821 - prune_libtool_files --all
15822 -
15823 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
15824 - if use gecko ; then
15825 - insinto /usr/share/wine/gecko
15826 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
15827 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
15828 - fi
15829 - if use mono ; then
15830 - insinto /usr/share/wine/mono
15831 - doins "${DISTDIR}"/wine-mono-${MV}.msi
15832 - fi
15833 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
15834 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
15835 - fi
15836 -
15837 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
15838 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
15839 -
15840 - if use abi_x86_64 && ! use abi_x86_32; then
15841 - dosym /usr/bin/wine{64,} # 404331
15842 - dosym /usr/bin/wine{64,}-preloader
15843 - fi
15844 -
15845 - # respect LINGUAS when installing man pages, #469418
15846 - for l in de fr pl; do
15847 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
15848 - done
15849 -}
15850 -
15851 -pkg_preinst() {
15852 - gnome2_icon_savelist
15853 -}
15854 -
15855 -pkg_postinst() {
15856 - gnome2_icon_cache_update
15857 - fdo-mime_desktop_database_update
15858 -
15859 - if ! use gecko; then
15860 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
15861 - ewarn "implementation of iexplore. Many older windows applications"
15862 - ewarn "rely upon the existence of an iexplore implementation, so"
15863 - ewarn "you will likely need to install an external one, like via winetricks"
15864 - fi
15865 - if ! use mono; then
15866 - ewarn "Without Wine Mono, wine prefixes will not have a default"
15867 - ewarn "implementation of .NET. Many windows applications rely upon"
15868 - ewarn "the existence of a .NET implementation, so you will likely need"
15869 - ewarn "to install an external one, like via winetricks"
15870 - fi
15871 -}
15872 -
15873 -pkg_postrm() {
15874 - gnome2_icon_cache_update
15875 - fdo-mime_desktop_database_update
15876 -}
15877
15878 diff --git a/app-emulation/wine/wine-1.7.53.ebuild b/app-emulation/wine/wine-1.7.53.ebuild
15879 deleted file mode 100644
15880 index 8a8d5c1..0000000
15881 --- a/app-emulation/wine/wine-1.7.53.ebuild
15882 +++ /dev/null
15883 @@ -1,445 +0,0 @@
15884 -# Copyright 1999-2015 Gentoo Foundation
15885 -# Distributed under the terms of the GNU General Public License v2
15886 -# $Id$
15887 -
15888 -EAPI="5"
15889 -
15890 -AUTOTOOLS_AUTORECONF=1
15891 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
15892 -PLOCALE_BACKUP="en"
15893 -
15894 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
15895 -
15896 -if [[ ${PV} == "9999" ]] ; then
15897 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
15898 - EGIT_BRANCH="master"
15899 - inherit git-r3
15900 - SRC_URI=""
15901 - #KEYWORDS=""
15902 -else
15903 - MY_P="${PN}-${PV/_/-}"
15904 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
15905 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
15906 - S=${WORKDIR}/${MY_P}
15907 -fi
15908 -
15909 -GV="2.40"
15910 -MV="4.5.6"
15911 -STAGING_P="wine-staging-${PV}"
15912 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
15913 -WINE_GENTOO="wine-gentoo-2015.03.07"
15914 -GST_P="wine-1.7.34-gstreamer-v5"
15915 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
15916 -HOMEPAGE="http://www.winehq.org/"
15917 -SRC_URI="${SRC_URI}
15918 - gecko? (
15919 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
15920 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
15921 - )
15922 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
15923 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
15924 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
15925 -
15926 -if [[ ${PV} == "9999" ]] ; then
15927 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
15928 -else
15929 - SRC_URI="${SRC_URI}
15930 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
15931 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
15932 -fi
15933 -
15934 -LICENSE="LGPL-2.1"
15935 -SLOT="0"
15936 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
15937 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
15938 - test? ( abi_x86_32 )
15939 - elibc_glibc? ( threads )
15940 - mono? ( abi_x86_32 )
15941 - pipelight? ( staging )
15942 - s3tc? ( staging )
15943 - vaapi? ( staging )
15944 - ?? ( gstreamer staging )
15945 - osmesa? ( opengl )" #286560
15946 -
15947 -# FIXME: the test suite is unsuitable for us; many tests require net access
15948 -# or fail due to Xvfb's opengl limitations.
15949 -RESTRICT="test"
15950 -
15951 -COMMON_DEPEND="
15952 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
15953 - capi? ( net-dialup/capi4k-utils )
15954 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
15955 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
15956 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
15957 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
15958 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
15959 - gstreamer? (
15960 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
15961 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
15962 - )
15963 - X? (
15964 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
15965 - x11-libs/libXext[${MULTILIB_USEDEP}]
15966 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
15967 - x11-libs/libXi[${MULTILIB_USEDEP}]
15968 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
15969 - )
15970 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
15971 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
15972 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
15973 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
15974 - opengl? (
15975 - virtual/glu[${MULTILIB_USEDEP}]
15976 - virtual/opengl[${MULTILIB_USEDEP}]
15977 - )
15978 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
15979 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
15980 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
15981 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
15982 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
15983 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
15984 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
15985 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
15986 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
15987 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
15988 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
15989 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
15990 - xml? (
15991 - dev-libs/libxml2[${MULTILIB_USEDEP}]
15992 - dev-libs/libxslt[${MULTILIB_USEDEP}]
15993 - )
15994 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
15995 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
15996 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
15997 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
15998 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
15999 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
16000 - abi_x86_32? (
16001 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
16002 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
16003 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
16004 - !<app-emulation/emul-linux-x86-db-20140508-r3
16005 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
16006 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
16007 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
16008 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
16009 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
16010 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
16011 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
16012 - !<app-emulation/emul-linux-x86-soundlibs-20140508
16013 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
16014 - !<app-emulation/emul-linux-x86-xlibs-20140508
16015 - )"
16016 -
16017 -RDEPEND="${COMMON_DEPEND}
16018 - dos? ( games-emulation/dosbox )
16019 - perl? ( dev-lang/perl dev-perl/XML-Simple )
16020 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
16021 - samba? ( >=net-fs/samba-3.0.25 )
16022 - selinux? ( sec-policy/selinux-wine )
16023 - udisks? ( sys-fs/udisks:2 )
16024 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
16025 -
16026 -# tools/make_requests requires perl
16027 -DEPEND="${COMMON_DEPEND}
16028 - staging? ( dev-lang/perl dev-perl/XML-Simple )
16029 - X? (
16030 - x11-proto/inputproto
16031 - x11-proto/xextproto
16032 - x11-proto/xf86vidmodeproto
16033 - )
16034 - xinerama? ( x11-proto/xineramaproto )
16035 - prelink? ( sys-devel/prelink )
16036 - >=sys-kernel/linux-headers-2.6
16037 - virtual/pkgconfig
16038 - virtual/yacc
16039 - sys-devel/flex"
16040 -
16041 -# These use a non-standard "Wine" category, which is provided by
16042 -# /etc/xdg/applications-merged/wine.menu
16043 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
16044 -usr/share/applications/wine-notepad.desktop
16045 -usr/share/applications/wine-uninstaller.desktop
16046 -usr/share/applications/wine-winecfg.desktop"
16047 -
16048 -wine_build_environment_check() {
16049 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
16050 -
16051 - # bug #549768
16052 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
16053 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
16054 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
16055 - # Run in subshell to prevent "Aborted" message
16056 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
16057 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
16058 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
16059 - eerror "or use gcc-config to select a different compiler version."
16060 - eerror "See https://bugs.gentoo.org/549768"
16061 - eerror
16062 - return 1
16063 - fi
16064 - fi
16065 -
16066 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
16067 - eerror "You need gcc-4.4+ to build 64-bit wine"
16068 - eerror
16069 - return 1
16070 - fi
16071 -
16072 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
16073 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
16074 - eerror "See https://bugs.gentoo.org/487864 for more details."
16075 - eerror
16076 - return 1
16077 - fi
16078 -}
16079 -
16080 -pkg_pretend() {
16081 - wine_build_environment_check || die
16082 -}
16083 -
16084 -pkg_setup() {
16085 - wine_build_environment_check || die
16086 -}
16087 -
16088 -src_unpack() {
16089 - if [[ ${PV} == "9999" ]] ; then
16090 - git-r3_src_unpack
16091 - if use staging || use pulseaudio; then
16092 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
16093 - unset ${PN}_LIVE_REPO;
16094 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
16095 - fi
16096 - else
16097 - unpack ${MY_P}.tar.bz2
16098 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
16099 - fi
16100 -
16101 - unpack "${WINE_GENTOO}.tar.bz2"
16102 - use gstreamer && unpack "${GST_P}.patch.bz2"
16103 -
16104 - l10n_find_plocales_changes "${S}/po" "" ".po"
16105 -}
16106 -
16107 -src_prepare() {
16108 - local md5="$(md5sum server/protocol.def)"
16109 - local PATCHES=(
16110 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
16111 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
16112 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
16113 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
16114 - )
16115 - if use gstreamer; then
16116 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
16117 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
16118 - ewarn "this patch has been reported to cause crashes in certain games."
16119 -
16120 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
16121 - # during shutdown" patch and "Added patch to implement shared memory
16122 - # wineserver communication for various user32 functions" prevents the
16123 - # gstreamer patch from applying cleanly.
16124 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
16125 - # patch on top.
16126 - if use staging; then
16127 - PATCHES+=(
16128 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
16129 - "${WORKDIR}/${GST_P}.patch"
16130 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
16131 - else
16132 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
16133 - fi
16134 - fi
16135 - if use staging; then
16136 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
16137 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
16138 - ewarn "unless you can reproduce them with USE=-staging"
16139 -
16140 - local STAGING_EXCLUDE=""
16141 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
16142 -
16143 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
16144 - ebegin "Running Wine-Staging patch installer"
16145 - (
16146 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
16147 - cd "${STAGING_DIR}/patches"
16148 - source "${STAGING_DIR}/patches/patchinstall.sh"
16149 - )
16150 - eend $?
16151 - elif use pulseaudio; then
16152 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
16153 - fi
16154 - autotools-utils_src_prepare
16155 -
16156 - # Modification of the server protocol requires regenerating the server requests
16157 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
16158 - einfo "server/protocol.def was patched; running tools/make_requests"
16159 - tools/make_requests || die #432348
16160 - fi
16161 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
16162 - if ! use run-exes; then
16163 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
16164 - fi
16165 -
16166 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
16167 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
16168 -
16169 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
16170 -}
16171 -
16172 -src_configure() {
16173 - export LDCONFIG=/bin/true
16174 - use custom-cflags || strip-flags
16175 -
16176 - multilib-minimal_src_configure
16177 -}
16178 -
16179 -multilib_src_configure() {
16180 - local myconf=(
16181 - --sysconfdir=/etc/wine
16182 - $(use_with alsa)
16183 - $(use_with capi)
16184 - $(use_with lcms cms)
16185 - $(use_with cups)
16186 - $(use_with ncurses curses)
16187 - $(use_with udisks dbus)
16188 - $(use_with fontconfig)
16189 - $(use_with ssl gnutls)
16190 - $(use_enable gecko mshtml)
16191 - $(use_with gphoto2 gphoto)
16192 - $(use_with gsm)
16193 - $(use_with gstreamer)
16194 - --without-hal
16195 - $(use_with jpeg)
16196 - $(use_with ldap)
16197 - $(use_enable mono mscoree)
16198 - $(use_with mp3 mpg123)
16199 - $(use_with netapi)
16200 - $(use_with nls gettext)
16201 - $(use_with openal)
16202 - $(use_with opencl)
16203 - $(use_with opengl)
16204 - $(use_with osmesa)
16205 - $(use_with oss)
16206 - $(use_with pcap)
16207 - $(use_with png)
16208 - $(use_with threads pthread)
16209 - $(use_with scanner sane)
16210 - $(use_enable test tests)
16211 - $(use_with truetype freetype)
16212 - $(use_with v4l)
16213 - $(use_with X x)
16214 - $(use_with xcomposite)
16215 - $(use_with xinerama)
16216 - $(use_with xml)
16217 - $(use_with xml xslt)
16218 - )
16219 -
16220 - if use pulseaudio || use staging; then
16221 - myconf+=( $(use_with pulseaudio pulse) )
16222 - fi
16223 - use staging && myconf+=(
16224 - --with-xattr
16225 - $(use_with vaapi va)
16226 - )
16227 -
16228 - local PKG_CONFIG AR RANLIB
16229 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
16230 - # set AR and RANLIB to make QA scripts happy; #483342
16231 - tc-export PKG_CONFIG AR RANLIB
16232 -
16233 - if use amd64; then
16234 - if [[ ${ABI} == amd64 ]]; then
16235 - myconf+=( --enable-win64 )
16236 - else
16237 - myconf+=( --disable-win64 )
16238 - fi
16239 -
16240 - # Note: using --with-wine64 results in problems with multilib.eclass
16241 - # CC/LD hackery. We're using separate tools instead.
16242 - fi
16243 -
16244 - ECONF_SOURCE=${S} \
16245 - econf "${myconf[@]}"
16246 - emake depend
16247 -}
16248 -
16249 -multilib_src_test() {
16250 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
16251 - if [[ ${ABI} == x86 ]]; then
16252 - if [[ $(id -u) == 0 ]]; then
16253 - ewarn "Skipping tests since they cannot be run under the root user."
16254 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
16255 - return
16256 - fi
16257 -
16258 - WINEPREFIX="${T}/.wine-${ABI}" \
16259 - Xemake test
16260 - fi
16261 -}
16262 -
16263 -multilib_src_install_all() {
16264 - local DOCS=( ANNOUNCE AUTHORS README )
16265 - local l
16266 - add_locale_docs() {
16267 - local locale_doc="documentation/README.$1"
16268 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
16269 - }
16270 - l10n_for_each_locale_do add_locale_docs
16271 -
16272 - einstalldocs
16273 - prune_libtool_files --all
16274 -
16275 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
16276 - if use gecko ; then
16277 - insinto /usr/share/wine/gecko
16278 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
16279 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
16280 - fi
16281 - if use mono ; then
16282 - insinto /usr/share/wine/mono
16283 - doins "${DISTDIR}"/wine-mono-${MV}.msi
16284 - fi
16285 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
16286 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
16287 - fi
16288 -
16289 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
16290 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
16291 -
16292 - if use abi_x86_64 && ! use abi_x86_32; then
16293 - dosym /usr/bin/wine{64,} # 404331
16294 - dosym /usr/bin/wine{64,}-preloader
16295 - fi
16296 -
16297 - # respect LINGUAS when installing man pages, #469418
16298 - for l in de fr pl; do
16299 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
16300 - done
16301 -}
16302 -
16303 -pkg_preinst() {
16304 - gnome2_icon_savelist
16305 -}
16306 -
16307 -pkg_postinst() {
16308 - gnome2_icon_cache_update
16309 - fdo-mime_desktop_database_update
16310 -
16311 - if ! use gecko; then
16312 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
16313 - ewarn "implementation of iexplore. Many older windows applications"
16314 - ewarn "rely upon the existence of an iexplore implementation, so"
16315 - ewarn "you will likely need to install an external one, like via winetricks"
16316 - fi
16317 - if ! use mono; then
16318 - ewarn "Without Wine Mono, wine prefixes will not have a default"
16319 - ewarn "implementation of .NET. Many windows applications rely upon"
16320 - ewarn "the existence of a .NET implementation, so you will likely need"
16321 - ewarn "to install an external one, like via winetricks"
16322 - fi
16323 -}
16324 -
16325 -pkg_postrm() {
16326 - gnome2_icon_cache_update
16327 - fdo-mime_desktop_database_update
16328 -}
16329
16330 diff --git a/app-emulation/wine/wine-1.7.54-r1.ebuild b/app-emulation/wine/wine-1.7.54-r1.ebuild
16331 deleted file mode 100644
16332 index 37b9d26..0000000
16333 --- a/app-emulation/wine/wine-1.7.54-r1.ebuild
16334 +++ /dev/null
16335 @@ -1,445 +0,0 @@
16336 -# Copyright 1999-2015 Gentoo Foundation
16337 -# Distributed under the terms of the GNU General Public License v2
16338 -# $Id$
16339 -
16340 -EAPI="5"
16341 -
16342 -AUTOTOOLS_AUTORECONF=1
16343 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
16344 -PLOCALE_BACKUP="en"
16345 -
16346 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
16347 -
16348 -if [[ ${PV} == "9999" ]] ; then
16349 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
16350 - EGIT_BRANCH="master"
16351 - inherit git-r3
16352 - SRC_URI=""
16353 - #KEYWORDS=""
16354 -else
16355 - MY_P="${PN}-${PV/_/-}"
16356 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
16357 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16358 - S=${WORKDIR}/${MY_P}
16359 -fi
16360 -
16361 -GV="2.40"
16362 -MV="4.5.6"
16363 -STAGING_P="wine-staging-${PV}"
16364 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
16365 -WINE_GENTOO="wine-gentoo-2015.03.07"
16366 -GST_P="wine-1.7.34-gstreamer-v5"
16367 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
16368 -HOMEPAGE="http://www.winehq.org/"
16369 -SRC_URI="${SRC_URI}
16370 - gecko? (
16371 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
16372 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
16373 - )
16374 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
16375 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
16376 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
16377 -
16378 -if [[ ${PV} == "9999" ]] ; then
16379 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
16380 -else
16381 - SRC_URI="${SRC_URI}
16382 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
16383 - pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
16384 -fi
16385 -
16386 -LICENSE="LGPL-2.1"
16387 -SLOT="0"
16388 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
16389 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
16390 - test? ( abi_x86_32 )
16391 - elibc_glibc? ( threads )
16392 - mono? ( abi_x86_32 )
16393 - pipelight? ( staging )
16394 - s3tc? ( staging )
16395 - vaapi? ( staging )
16396 - ?? ( gstreamer staging )
16397 - osmesa? ( opengl )" #286560
16398 -
16399 -# FIXME: the test suite is unsuitable for us; many tests require net access
16400 -# or fail due to Xvfb's opengl limitations.
16401 -RESTRICT="test"
16402 -
16403 -COMMON_DEPEND="
16404 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
16405 - capi? ( net-dialup/capi4k-utils )
16406 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
16407 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
16408 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
16409 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
16410 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
16411 - gstreamer? (
16412 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
16413 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
16414 - )
16415 - X? (
16416 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
16417 - x11-libs/libXext[${MULTILIB_USEDEP}]
16418 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
16419 - x11-libs/libXi[${MULTILIB_USEDEP}]
16420 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
16421 - )
16422 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
16423 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
16424 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
16425 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
16426 - opengl? (
16427 - virtual/glu[${MULTILIB_USEDEP}]
16428 - virtual/opengl[${MULTILIB_USEDEP}]
16429 - )
16430 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
16431 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
16432 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
16433 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
16434 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
16435 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
16436 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
16437 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
16438 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
16439 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
16440 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
16441 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
16442 - xml? (
16443 - dev-libs/libxml2[${MULTILIB_USEDEP}]
16444 - dev-libs/libxslt[${MULTILIB_USEDEP}]
16445 - )
16446 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
16447 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
16448 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
16449 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
16450 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
16451 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
16452 - abi_x86_32? (
16453 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
16454 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
16455 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
16456 - !<app-emulation/emul-linux-x86-db-20140508-r3
16457 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
16458 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
16459 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
16460 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
16461 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
16462 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
16463 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
16464 - !<app-emulation/emul-linux-x86-soundlibs-20140508
16465 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
16466 - !<app-emulation/emul-linux-x86-xlibs-20140508
16467 - )"
16468 -
16469 -RDEPEND="${COMMON_DEPEND}
16470 - dos? ( games-emulation/dosbox )
16471 - perl? ( dev-lang/perl dev-perl/XML-Simple )
16472 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
16473 - samba? ( >=net-fs/samba-3.0.25 )
16474 - selinux? ( sec-policy/selinux-wine )
16475 - udisks? ( sys-fs/udisks:2 )
16476 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
16477 -
16478 -# tools/make_requests requires perl
16479 -DEPEND="${COMMON_DEPEND}
16480 - staging? ( dev-lang/perl dev-perl/XML-Simple )
16481 - X? (
16482 - x11-proto/inputproto
16483 - x11-proto/xextproto
16484 - x11-proto/xf86vidmodeproto
16485 - )
16486 - xinerama? ( x11-proto/xineramaproto )
16487 - prelink? ( sys-devel/prelink )
16488 - >=sys-kernel/linux-headers-2.6
16489 - virtual/pkgconfig
16490 - virtual/yacc
16491 - sys-devel/flex"
16492 -
16493 -# These use a non-standard "Wine" category, which is provided by
16494 -# /etc/xdg/applications-merged/wine.menu
16495 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
16496 -usr/share/applications/wine-notepad.desktop
16497 -usr/share/applications/wine-uninstaller.desktop
16498 -usr/share/applications/wine-winecfg.desktop"
16499 -
16500 -wine_build_environment_check() {
16501 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
16502 -
16503 - # bug #549768
16504 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
16505 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
16506 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
16507 - # Run in subshell to prevent "Aborted" message
16508 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
16509 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
16510 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
16511 - eerror "or use gcc-config to select a different compiler version."
16512 - eerror "See https://bugs.gentoo.org/549768"
16513 - eerror
16514 - return 1
16515 - fi
16516 - fi
16517 -
16518 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
16519 - eerror "You need gcc-4.4+ to build 64-bit wine"
16520 - eerror
16521 - return 1
16522 - fi
16523 -
16524 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
16525 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
16526 - eerror "See https://bugs.gentoo.org/487864 for more details."
16527 - eerror
16528 - return 1
16529 - fi
16530 -}
16531 -
16532 -pkg_pretend() {
16533 - wine_build_environment_check || die
16534 -}
16535 -
16536 -pkg_setup() {
16537 - wine_build_environment_check || die
16538 -}
16539 -
16540 -src_unpack() {
16541 - if [[ ${PV} == "9999" ]] ; then
16542 - git-r3_src_unpack
16543 - if use staging || use pulseaudio; then
16544 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
16545 - unset ${PN}_LIVE_REPO;
16546 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
16547 - fi
16548 - else
16549 - unpack ${MY_P}.tar.bz2
16550 - use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
16551 - fi
16552 -
16553 - unpack "${WINE_GENTOO}.tar.bz2"
16554 - use gstreamer && unpack "${GST_P}.patch.bz2"
16555 -
16556 - l10n_find_plocales_changes "${S}/po" "" ".po"
16557 -}
16558 -
16559 -src_prepare() {
16560 - local md5="$(md5sum server/protocol.def)"
16561 - local PATCHES=(
16562 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
16563 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
16564 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
16565 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
16566 - )
16567 - if use gstreamer; then
16568 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
16569 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
16570 - ewarn "this patch has been reported to cause crashes in certain games."
16571 -
16572 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
16573 - # during shutdown" patch and "Added patch to implement shared memory
16574 - # wineserver communication for various user32 functions" prevents the
16575 - # gstreamer patch from applying cleanly.
16576 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
16577 - # patch on top.
16578 - if use staging; then
16579 - PATCHES+=(
16580 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
16581 - "${WORKDIR}/${GST_P}.patch"
16582 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
16583 - else
16584 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
16585 - fi
16586 - fi
16587 - if use staging; then
16588 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
16589 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
16590 - ewarn "unless you can reproduce them with USE=-staging"
16591 -
16592 - local STAGING_EXCLUDE=""
16593 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
16594 -
16595 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
16596 - ebegin "Running Wine-Staging patch installer"
16597 - (
16598 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
16599 - cd "${STAGING_DIR}/patches"
16600 - source "${STAGING_DIR}/patches/patchinstall.sh"
16601 - )
16602 - eend $?
16603 - elif use pulseaudio; then
16604 - PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
16605 - fi
16606 - autotools-utils_src_prepare
16607 -
16608 - # Modification of the server protocol requires regenerating the server requests
16609 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
16610 - einfo "server/protocol.def was patched; running tools/make_requests"
16611 - tools/make_requests || die #432348
16612 - fi
16613 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
16614 - if ! use run-exes; then
16615 - sed -i '/^MimeType/d' loader/wine.desktop || die #117785
16616 - fi
16617 -
16618 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
16619 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
16620 -
16621 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
16622 -}
16623 -
16624 -src_configure() {
16625 - export LDCONFIG=/bin/true
16626 - use custom-cflags || strip-flags
16627 -
16628 - multilib-minimal_src_configure
16629 -}
16630 -
16631 -multilib_src_configure() {
16632 - local myconf=(
16633 - --sysconfdir=/etc/wine
16634 - $(use_with alsa)
16635 - $(use_with capi)
16636 - $(use_with lcms cms)
16637 - $(use_with cups)
16638 - $(use_with ncurses curses)
16639 - $(use_with udisks dbus)
16640 - $(use_with fontconfig)
16641 - $(use_with ssl gnutls)
16642 - $(use_enable gecko mshtml)
16643 - $(use_with gphoto2 gphoto)
16644 - $(use_with gsm)
16645 - $(use_with gstreamer)
16646 - --without-hal
16647 - $(use_with jpeg)
16648 - $(use_with ldap)
16649 - $(use_enable mono mscoree)
16650 - $(use_with mp3 mpg123)
16651 - $(use_with netapi)
16652 - $(use_with nls gettext)
16653 - $(use_with openal)
16654 - $(use_with opencl)
16655 - $(use_with opengl)
16656 - $(use_with osmesa)
16657 - $(use_with oss)
16658 - $(use_with pcap)
16659 - $(use_with png)
16660 - $(use_with threads pthread)
16661 - $(use_with scanner sane)
16662 - $(use_enable test tests)
16663 - $(use_with truetype freetype)
16664 - $(use_with v4l)
16665 - $(use_with X x)
16666 - $(use_with xcomposite)
16667 - $(use_with xinerama)
16668 - $(use_with xml)
16669 - $(use_with xml xslt)
16670 - )
16671 -
16672 - if use pulseaudio || use staging; then
16673 - myconf+=( $(use_with pulseaudio pulse) )
16674 - fi
16675 - use staging && myconf+=(
16676 - --with-xattr
16677 - $(use_with vaapi va)
16678 - )
16679 -
16680 - local PKG_CONFIG AR RANLIB
16681 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
16682 - # set AR and RANLIB to make QA scripts happy; #483342
16683 - tc-export PKG_CONFIG AR RANLIB
16684 -
16685 - if use amd64; then
16686 - if [[ ${ABI} == amd64 ]]; then
16687 - myconf+=( --enable-win64 )
16688 - else
16689 - myconf+=( --disable-win64 )
16690 - fi
16691 -
16692 - # Note: using --with-wine64 results in problems with multilib.eclass
16693 - # CC/LD hackery. We're using separate tools instead.
16694 - fi
16695 -
16696 - ECONF_SOURCE=${S} \
16697 - econf "${myconf[@]}"
16698 - emake depend
16699 -}
16700 -
16701 -multilib_src_test() {
16702 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
16703 - if [[ ${ABI} == x86 ]]; then
16704 - if [[ $(id -u) == 0 ]]; then
16705 - ewarn "Skipping tests since they cannot be run under the root user."
16706 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
16707 - return
16708 - fi
16709 -
16710 - WINEPREFIX="${T}/.wine-${ABI}" \
16711 - Xemake test
16712 - fi
16713 -}
16714 -
16715 -multilib_src_install_all() {
16716 - local DOCS=( ANNOUNCE AUTHORS README )
16717 - local l
16718 - add_locale_docs() {
16719 - local locale_doc="documentation/README.$1"
16720 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
16721 - }
16722 - l10n_for_each_locale_do add_locale_docs
16723 -
16724 - einstalldocs
16725 - prune_libtool_files --all
16726 -
16727 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
16728 - if use gecko ; then
16729 - insinto /usr/share/wine/gecko
16730 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
16731 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
16732 - fi
16733 - if use mono ; then
16734 - insinto /usr/share/wine/mono
16735 - doins "${DISTDIR}"/wine-mono-${MV}.msi
16736 - fi
16737 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
16738 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
16739 - fi
16740 -
16741 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
16742 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
16743 -
16744 - if use abi_x86_64 && ! use abi_x86_32; then
16745 - dosym /usr/bin/wine{64,} # 404331
16746 - dosym /usr/bin/wine{64,}-preloader
16747 - fi
16748 -
16749 - # respect LINGUAS when installing man pages, #469418
16750 - for l in de fr pl; do
16751 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
16752 - done
16753 -}
16754 -
16755 -pkg_preinst() {
16756 - gnome2_icon_savelist
16757 -}
16758 -
16759 -pkg_postinst() {
16760 - gnome2_icon_cache_update
16761 - fdo-mime_desktop_database_update
16762 -
16763 - if ! use gecko; then
16764 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
16765 - ewarn "implementation of iexplore. Many older windows applications"
16766 - ewarn "rely upon the existence of an iexplore implementation, so"
16767 - ewarn "you will likely need to install an external one, like via winetricks"
16768 - fi
16769 - if ! use mono; then
16770 - ewarn "Without Wine Mono, wine prefixes will not have a default"
16771 - ewarn "implementation of .NET. Many windows applications rely upon"
16772 - ewarn "the existence of a .NET implementation, so you will likely need"
16773 - ewarn "to install an external one, like via winetricks"
16774 - fi
16775 -}
16776 -
16777 -pkg_postrm() {
16778 - gnome2_icon_cache_update
16779 - fdo-mime_desktop_database_update
16780 -}
16781
16782 diff --git a/app-emulation/wine/wine-1.7.55.ebuild b/app-emulation/wine/wine-1.7.55.ebuild
16783 deleted file mode 100644
16784 index 5150817..0000000
16785 --- a/app-emulation/wine/wine-1.7.55.ebuild
16786 +++ /dev/null
16787 @@ -1,439 +0,0 @@
16788 -# Copyright 1999-2015 Gentoo Foundation
16789 -# Distributed under the terms of the GNU General Public License v2
16790 -# $Id$
16791 -
16792 -EAPI="5"
16793 -
16794 -AUTOTOOLS_AUTORECONF=1
16795 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
16796 -PLOCALE_BACKUP="en"
16797 -
16798 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator
16799 -
16800 -if [[ ${PV} == "9999" ]] ; then
16801 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
16802 - EGIT_BRANCH="master"
16803 - inherit git-r3
16804 - SRC_URI=""
16805 - #KEYWORDS=""
16806 -else
16807 - MAJOR_V=$(get_version_component_range 1-2)
16808 - SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}/${P}.tar.bz2"
16809 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16810 -fi
16811 -
16812 -GV="2.40"
16813 -MV="4.5.6"
16814 -STAGING_P="wine-staging-${PV}"
16815 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
16816 -WINE_GENTOO="wine-gentoo-2015.03.07"
16817 -GST_P="wine-1.7.34-gstreamer-v5"
16818 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
16819 -HOMEPAGE="http://www.winehq.org/"
16820 -SRC_URI="${SRC_URI}
16821 - gecko? (
16822 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
16823 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
16824 - )
16825 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
16826 - gstreamer? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
16827 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
16828 -
16829 -if [[ ${PV} == "9999" ]] ; then
16830 - STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
16831 -else
16832 - SRC_URI="${SRC_URI}
16833 - staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
16834 -fi
16835 -
16836 -LICENSE="LGPL-2.1"
16837 -SLOT="0"
16838 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
16839 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
16840 - test? ( abi_x86_32 )
16841 - elibc_glibc? ( threads )
16842 - mono? ( abi_x86_32 )
16843 - pipelight? ( staging )
16844 - s3tc? ( staging )
16845 - vaapi? ( staging )
16846 - ?? ( gstreamer staging )
16847 - osmesa? ( opengl )" #286560
16848 -
16849 -# FIXME: the test suite is unsuitable for us; many tests require net access
16850 -# or fail due to Xvfb's opengl limitations.
16851 -RESTRICT="test"
16852 -
16853 -COMMON_DEPEND="
16854 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
16855 - capi? ( net-dialup/capi4k-utils )
16856 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
16857 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
16858 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
16859 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
16860 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
16861 - gstreamer? (
16862 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
16863 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
16864 - )
16865 - X? (
16866 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
16867 - x11-libs/libXext[${MULTILIB_USEDEP}]
16868 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
16869 - x11-libs/libXi[${MULTILIB_USEDEP}]
16870 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
16871 - )
16872 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
16873 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
16874 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
16875 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
16876 - opengl? (
16877 - virtual/glu[${MULTILIB_USEDEP}]
16878 - virtual/opengl[${MULTILIB_USEDEP}]
16879 - )
16880 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
16881 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
16882 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
16883 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
16884 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
16885 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
16886 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
16887 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
16888 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
16889 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
16890 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
16891 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
16892 - xml? (
16893 - dev-libs/libxml2[${MULTILIB_USEDEP}]
16894 - dev-libs/libxslt[${MULTILIB_USEDEP}]
16895 - )
16896 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
16897 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
16898 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
16899 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
16900 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
16901 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
16902 - abi_x86_32? (
16903 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
16904 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
16905 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
16906 - !<app-emulation/emul-linux-x86-db-20140508-r3
16907 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
16908 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
16909 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
16910 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
16911 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
16912 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
16913 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
16914 - !<app-emulation/emul-linux-x86-soundlibs-20140508
16915 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
16916 - !<app-emulation/emul-linux-x86-xlibs-20140508
16917 - )"
16918 -
16919 -RDEPEND="${COMMON_DEPEND}
16920 - dos? ( games-emulation/dosbox )
16921 - perl? ( dev-lang/perl dev-perl/XML-Simple )
16922 - s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
16923 - samba? ( >=net-fs/samba-3.0.25 )
16924 - selinux? ( sec-policy/selinux-wine )
16925 - udisks? ( sys-fs/udisks:2 )
16926 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
16927 -
16928 -# tools/make_requests requires perl
16929 -DEPEND="${COMMON_DEPEND}
16930 - staging? ( dev-lang/perl dev-perl/XML-Simple )
16931 - X? (
16932 - x11-proto/inputproto
16933 - x11-proto/xextproto
16934 - x11-proto/xf86vidmodeproto
16935 - )
16936 - xinerama? ( x11-proto/xineramaproto )
16937 - prelink? ( sys-devel/prelink )
16938 - >=sys-kernel/linux-headers-2.6
16939 - virtual/pkgconfig
16940 - virtual/yacc
16941 - sys-devel/flex"
16942 -
16943 -# These use a non-standard "Wine" category, which is provided by
16944 -# /etc/xdg/applications-merged/wine.menu
16945 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
16946 -usr/share/applications/wine-notepad.desktop
16947 -usr/share/applications/wine-uninstaller.desktop
16948 -usr/share/applications/wine-winecfg.desktop"
16949 -
16950 -wine_build_environment_check() {
16951 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
16952 -
16953 - # bug #549768
16954 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
16955 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
16956 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
16957 - # Run in subshell to prevent "Aborted" message
16958 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
16959 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
16960 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
16961 - eerror "or use gcc-config to select a different compiler version."
16962 - eerror "See https://bugs.gentoo.org/549768"
16963 - eerror
16964 - return 1
16965 - fi
16966 - fi
16967 -
16968 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
16969 - eerror "You need gcc-4.4+ to build 64-bit wine"
16970 - eerror
16971 - return 1
16972 - fi
16973 -
16974 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
16975 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
16976 - eerror "See https://bugs.gentoo.org/487864 for more details."
16977 - eerror
16978 - return 1
16979 - fi
16980 -}
16981 -
16982 -pkg_pretend() {
16983 - wine_build_environment_check || die
16984 -}
16985 -
16986 -pkg_setup() {
16987 - wine_build_environment_check || die
16988 -}
16989 -
16990 -src_unpack() {
16991 - if [[ ${PV} == "9999" ]] ; then
16992 - git-r3_src_unpack
16993 - if use staging; then
16994 - EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
16995 - unset ${PN}_LIVE_REPO;
16996 - EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
16997 - fi
16998 - else
16999 - unpack ${P}.tar.bz2
17000 - use staging && unpack "${STAGING_P}.tar.gz"
17001 - fi
17002 -
17003 - unpack "${WINE_GENTOO}.tar.bz2"
17004 - use gstreamer && unpack "${GST_P}.patch.bz2"
17005 -
17006 - l10n_find_plocales_changes "${S}/po" "" ".po"
17007 -}
17008 -
17009 -src_prepare() {
17010 - local md5="$(md5sum server/protocol.def)"
17011 - local PATCHES=(
17012 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
17013 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
17014 - "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
17015 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
17016 - )
17017 - if use gstreamer; then
17018 - # See http://bugs.winehq.org/show_bug.cgi?id=30557
17019 - ewarn "Applying experimental patch to fix GStreamer support. Note that"
17020 - ewarn "this patch has been reported to cause crashes in certain games."
17021 -
17022 - # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
17023 - # during shutdown" patch and "Added patch to implement shared memory
17024 - # wineserver communication for various user32 functions" prevents the
17025 - # gstreamer patch from applying cleanly.
17026 - # So undo the staging patch, apply gstreamer, then re-apply rebased staging
17027 - # patch on top.
17028 - if use staging; then
17029 - PATCHES+=(
17030 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
17031 - "${WORKDIR}/${GST_P}.patch"
17032 - "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
17033 - else
17034 - PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
17035 - fi
17036 - fi
17037 - if use staging; then
17038 - ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
17039 - ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
17040 - ewarn "unless you can reproduce them with USE=-staging"
17041 -
17042 - local STAGING_EXCLUDE=""
17043 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
17044 -
17045 - # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
17046 - ebegin "Running Wine-Staging patch installer"
17047 - (
17048 - set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
17049 - cd "${STAGING_DIR}/patches"
17050 - source "${STAGING_DIR}/patches/patchinstall.sh"
17051 - )
17052 - eend $?
17053 - fi
17054 - autotools-utils_src_prepare
17055 -
17056 - # Modification of the server protocol requires regenerating the server requests
17057 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
17058 - einfo "server/protocol.def was patched; running tools/make_requests"
17059 - tools/make_requests || die #432348
17060 - fi
17061 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
17062 - if ! use run-exes; then
17063 - sed -i '/^MimeType/d' loader/wine.desktop || die #117785
17064 - fi
17065 -
17066 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
17067 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
17068 -
17069 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
17070 -}
17071 -
17072 -src_configure() {
17073 - export LDCONFIG=/bin/true
17074 - use custom-cflags || strip-flags
17075 -
17076 - multilib-minimal_src_configure
17077 -}
17078 -
17079 -multilib_src_configure() {
17080 - local myconf=(
17081 - --sysconfdir=/etc/wine
17082 - $(use_with alsa)
17083 - $(use_with capi)
17084 - $(use_with lcms cms)
17085 - $(use_with cups)
17086 - $(use_with ncurses curses)
17087 - $(use_with udisks dbus)
17088 - $(use_with fontconfig)
17089 - $(use_with ssl gnutls)
17090 - $(use_enable gecko mshtml)
17091 - $(use_with gphoto2 gphoto)
17092 - $(use_with gsm)
17093 - $(use_with gstreamer)
17094 - --without-hal
17095 - $(use_with jpeg)
17096 - $(use_with ldap)
17097 - $(use_enable mono mscoree)
17098 - $(use_with mp3 mpg123)
17099 - $(use_with netapi)
17100 - $(use_with nls gettext)
17101 - $(use_with openal)
17102 - $(use_with opencl)
17103 - $(use_with opengl)
17104 - $(use_with osmesa)
17105 - $(use_with oss)
17106 - $(use_with pcap)
17107 - $(use_with png)
17108 - $(use_with pulseaudio)
17109 - $(use_with threads pthread)
17110 - $(use_with scanner sane)
17111 - $(use_enable test tests)
17112 - $(use_with truetype freetype)
17113 - $(use_with v4l)
17114 - $(use_with X x)
17115 - $(use_with xcomposite)
17116 - $(use_with xinerama)
17117 - $(use_with xml)
17118 - $(use_with xml xslt)
17119 - )
17120 -
17121 - use staging && myconf+=(
17122 - --with-xattr
17123 - $(use_with vaapi va)
17124 - )
17125 -
17126 - local PKG_CONFIG AR RANLIB
17127 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
17128 - # set AR and RANLIB to make QA scripts happy; #483342
17129 - tc-export PKG_CONFIG AR RANLIB
17130 -
17131 - if use amd64; then
17132 - if [[ ${ABI} == amd64 ]]; then
17133 - myconf+=( --enable-win64 )
17134 - else
17135 - myconf+=( --disable-win64 )
17136 - fi
17137 -
17138 - # Note: using --with-wine64 results in problems with multilib.eclass
17139 - # CC/LD hackery. We're using separate tools instead.
17140 - fi
17141 -
17142 - ECONF_SOURCE=${S} \
17143 - econf "${myconf[@]}"
17144 - emake depend
17145 -}
17146 -
17147 -multilib_src_test() {
17148 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
17149 - if [[ ${ABI} == x86 ]]; then
17150 - if [[ $(id -u) == 0 ]]; then
17151 - ewarn "Skipping tests since they cannot be run under the root user."
17152 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
17153 - return
17154 - fi
17155 -
17156 - WINEPREFIX="${T}/.wine-${ABI}" \
17157 - Xemake test
17158 - fi
17159 -}
17160 -
17161 -multilib_src_install_all() {
17162 - local DOCS=( ANNOUNCE AUTHORS README )
17163 - local l
17164 - add_locale_docs() {
17165 - local locale_doc="documentation/README.$1"
17166 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
17167 - }
17168 - l10n_for_each_locale_do add_locale_docs
17169 -
17170 - einstalldocs
17171 - prune_libtool_files --all
17172 -
17173 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
17174 - if use gecko ; then
17175 - insinto /usr/share/wine/gecko
17176 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
17177 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
17178 - fi
17179 - if use mono ; then
17180 - insinto /usr/share/wine/mono
17181 - doins "${DISTDIR}"/wine-mono-${MV}.msi
17182 - fi
17183 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
17184 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
17185 - fi
17186 -
17187 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
17188 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
17189 -
17190 - if use abi_x86_64 && ! use abi_x86_32; then
17191 - dosym /usr/bin/wine{64,} # 404331
17192 - dosym /usr/bin/wine{64,}-preloader
17193 - fi
17194 -
17195 - # respect LINGUAS when installing man pages, #469418
17196 - for l in de fr pl; do
17197 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
17198 - done
17199 -}
17200 -
17201 -pkg_preinst() {
17202 - gnome2_icon_savelist
17203 -}
17204 -
17205 -pkg_postinst() {
17206 - gnome2_icon_cache_update
17207 - fdo-mime_desktop_database_update
17208 -
17209 - if ! use gecko; then
17210 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
17211 - ewarn "implementation of iexplore. Many older windows applications"
17212 - ewarn "rely upon the existence of an iexplore implementation, so"
17213 - ewarn "you will likely need to install an external one, like via winetricks"
17214 - fi
17215 - if ! use mono; then
17216 - ewarn "Without Wine Mono, wine prefixes will not have a default"
17217 - ewarn "implementation of .NET. Many windows applications rely upon"
17218 - ewarn "the existence of a .NET implementation, so you will likely need"
17219 - ewarn "to install an external one, like via winetricks"
17220 - fi
17221 -}
17222 -
17223 -pkg_postrm() {
17224 - gnome2_icon_cache_update
17225 - fdo-mime_desktop_database_update
17226 -}
17227
17228 diff --git a/app-emulation/wine/wine-1.7.8-r1.ebuild b/app-emulation/wine/wine-1.7.8-r1.ebuild
17229 deleted file mode 100644
17230 index 090fb1c..0000000
17231 --- a/app-emulation/wine/wine-1.7.8-r1.ebuild
17232 +++ /dev/null
17233 @@ -1,378 +0,0 @@
17234 -# Copyright 1999-2015 Gentoo Foundation
17235 -# Distributed under the terms of the GNU General Public License v2
17236 -# $Id$
17237 -
17238 -EAPI="5"
17239 -
17240 -AUTOTOOLS_AUTORECONF=1
17241 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
17242 -PLOCALE_BACKUP="en"
17243 -
17244 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
17245 -
17246 -if [[ ${PV} == "9999" ]] ; then
17247 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
17248 - EGIT_BRANCH="master"
17249 - inherit git-r3
17250 - SRC_URI=""
17251 - #KEYWORDS=""
17252 -else
17253 - MY_P="${PN}-${PV/_/-}"
17254 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
17255 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
17256 - S=${WORKDIR}/${MY_P}
17257 -fi
17258 -
17259 -GV="2.24"
17260 -MV="4.5.2"
17261 -PULSE_PATCHES="winepulse-patches-1.7.8"
17262 -WINE_GENTOO="wine-gentoo-2015.03.07"
17263 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
17264 -HOMEPAGE="http://www.winehq.org/"
17265 -SRC_URI="${SRC_URI}
17266 - gecko? (
17267 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
17268 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
17269 - )
17270 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
17271 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
17272 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
17273 -
17274 -LICENSE="LGPL-2.1"
17275 -SLOT="0"
17276 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
17277 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
17278 - test? ( abi_x86_32 )
17279 - elibc_glibc? ( threads )
17280 - mono? ( abi_x86_32 )
17281 - osmesa? ( opengl )" #286560
17282 -
17283 -# FIXME: the test suite is unsuitable for us; many tests require net access
17284 -# or fail due to Xvfb's opengl limitations.
17285 -RESTRICT="test"
17286 -
17287 -COMMON_DEPEND="
17288 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
17289 - capi? ( net-dialup/capi4k-utils )
17290 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
17291 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
17292 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
17293 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
17294 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
17295 - gstreamer? (
17296 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
17297 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
17298 - )
17299 - X? (
17300 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
17301 - x11-libs/libXext[${MULTILIB_USEDEP}]
17302 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
17303 - x11-libs/libXi[${MULTILIB_USEDEP}]
17304 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
17305 - )
17306 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
17307 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
17308 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
17309 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
17310 - opengl? (
17311 - virtual/glu[${MULTILIB_USEDEP}]
17312 - virtual/opengl[${MULTILIB_USEDEP}]
17313 - )
17314 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
17315 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
17316 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
17317 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
17318 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
17319 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
17320 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
17321 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
17322 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
17323 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
17324 - xml? (
17325 - dev-libs/libxml2[${MULTILIB_USEDEP}]
17326 - dev-libs/libxslt[${MULTILIB_USEDEP}]
17327 - )
17328 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
17329 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
17330 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
17331 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
17332 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
17333 - abi_x86_32? (
17334 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
17335 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
17336 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
17337 - !<app-emulation/emul-linux-x86-db-20140508-r3
17338 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
17339 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
17340 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
17341 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
17342 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
17343 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
17344 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
17345 - !<app-emulation/emul-linux-x86-soundlibs-20140508
17346 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
17347 - !<app-emulation/emul-linux-x86-xlibs-20140508
17348 - )"
17349 -
17350 -RDEPEND="${COMMON_DEPEND}
17351 - dos? ( games-emulation/dosbox )
17352 - perl? ( dev-lang/perl dev-perl/XML-Simple )
17353 - samba? ( >=net-fs/samba-3.0.25 )
17354 - selinux? ( sec-policy/selinux-wine )
17355 - udisks? ( sys-fs/udisks:2 )
17356 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
17357 -
17358 -DEPEND="${COMMON_DEPEND}
17359 - X? (
17360 - x11-proto/inputproto
17361 - x11-proto/xextproto
17362 - x11-proto/xf86vidmodeproto
17363 - )
17364 - xinerama? ( x11-proto/xineramaproto )
17365 - prelink? ( sys-devel/prelink )
17366 - >=sys-kernel/linux-headers-2.6
17367 - virtual/pkgconfig
17368 - virtual/yacc
17369 - sys-devel/flex"
17370 -
17371 -# These use a non-standard "Wine" category, which is provided by
17372 -# /etc/xdg/applications-merged/wine.menu
17373 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
17374 -usr/share/applications/wine-notepad.desktop
17375 -usr/share/applications/wine-uninstaller.desktop
17376 -usr/share/applications/wine-winecfg.desktop"
17377 -
17378 -wine_build_environment_check() {
17379 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
17380 -
17381 - # bug #549768
17382 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
17383 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
17384 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
17385 - # Run in subshell to prevent "Aborted" message
17386 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
17387 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
17388 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
17389 - eerror "or use gcc-config to select a different compiler version."
17390 - eerror "See https://bugs.gentoo.org/549768"
17391 - eerror
17392 - return 1
17393 - fi
17394 - fi
17395 -
17396 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
17397 - eerror "You need gcc-4.4+ to build 64-bit wine"
17398 - eerror
17399 - return 1
17400 - fi
17401 -
17402 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
17403 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
17404 - eerror "See https://bugs.gentoo.org/487864 for more details."
17405 - eerror
17406 - return 1
17407 - fi
17408 -}
17409 -
17410 -pkg_pretend() {
17411 - wine_build_environment_check || die
17412 -}
17413 -
17414 -pkg_setup() {
17415 - wine_build_environment_check || die
17416 -}
17417 -
17418 -src_unpack() {
17419 - if [[ ${PV} == "9999" ]] ; then
17420 - git-r3_src_unpack
17421 - else
17422 - unpack ${MY_P}.tar.bz2
17423 - fi
17424 -
17425 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
17426 - unpack "${WINE_GENTOO}.tar.bz2"
17427 -
17428 - l10n_find_plocales_changes "${S}/po" "" ".po"
17429 -}
17430 -
17431 -src_prepare() {
17432 - local md5="$(md5sum server/protocol.def)"
17433 - local PATCHES=(
17434 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
17435 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
17436 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
17437 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
17438 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
17439 - )
17440 - use pulseaudio && PATCHES+=(
17441 - "../${PULSE_PATCHES}"/*.patch #421365
17442 - )
17443 -
17444 - autotools-utils_src_prepare
17445 -
17446 - # Modification of the server protocol requires regenerating the server requests
17447 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
17448 - einfo "server/protocol.def was patched; running tools/make_requests"
17449 - tools/make_requests || die #432348
17450 - fi
17451 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
17452 - if ! use run-exes; then
17453 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
17454 - fi
17455 -
17456 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
17457 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
17458 -
17459 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
17460 -}
17461 -
17462 -src_configure() {
17463 - export LDCONFIG=/bin/true
17464 - use custom-cflags || strip-flags
17465 -
17466 - multilib-minimal_src_configure
17467 -}
17468 -
17469 -multilib_src_configure() {
17470 - local myconf=(
17471 - --sysconfdir=/etc/wine
17472 - $(use_with alsa)
17473 - $(use_with capi)
17474 - $(use_with lcms cms)
17475 - $(use_with cups)
17476 - $(use_with ncurses curses)
17477 - $(use_with udisks dbus)
17478 - $(use_with fontconfig)
17479 - $(use_with ssl gnutls)
17480 - $(use_enable gecko mshtml)
17481 - $(use_with gphoto2 gphoto)
17482 - $(use_with gsm)
17483 - $(use_with gstreamer)
17484 - --without-hal
17485 - $(use_with jpeg)
17486 - $(use_with ldap)
17487 - $(use_enable mono mscoree)
17488 - $(use_with mp3 mpg123)
17489 - $(use_with netapi)
17490 - $(use_with nls gettext)
17491 - $(use_with openal)
17492 - $(use_with opencl)
17493 - $(use_with opengl)
17494 - $(use_with osmesa)
17495 - $(use_with oss)
17496 - $(use_with png)
17497 - $(use_with threads pthread)
17498 - $(use_with scanner sane)
17499 - $(use_enable test tests)
17500 - $(use_with truetype freetype)
17501 - $(use_with v4l)
17502 - $(use_with X x)
17503 - $(use_with xcomposite)
17504 - $(use_with xinerama)
17505 - $(use_with xml)
17506 - $(use_with xml xslt)
17507 - )
17508 -
17509 - use pulseaudio && myconf+=( --with-pulse )
17510 -
17511 - local PKG_CONFIG AR RANLIB
17512 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
17513 - # set AR and RANLIB to make QA scripts happy; #483342
17514 - tc-export PKG_CONFIG AR RANLIB
17515 -
17516 - if use amd64; then
17517 - if [[ ${ABI} == amd64 ]]; then
17518 - myconf+=( --enable-win64 )
17519 - else
17520 - myconf+=( --disable-win64 )
17521 - fi
17522 -
17523 - # Note: using --with-wine64 results in problems with multilib.eclass
17524 - # CC/LD hackery. We're using separate tools instead.
17525 - fi
17526 -
17527 - ECONF_SOURCE=${S} \
17528 - econf "${myconf[@]}"
17529 - emake depend
17530 -}
17531 -
17532 -multilib_src_test() {
17533 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
17534 - if [[ ${ABI} == x86 ]]; then
17535 - if [[ $(id -u) == 0 ]]; then
17536 - ewarn "Skipping tests since they cannot be run under the root user."
17537 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
17538 - return
17539 - fi
17540 -
17541 - WINEPREFIX="${T}/.wine-${ABI}" \
17542 - Xemake test
17543 - fi
17544 -}
17545 -
17546 -multilib_src_install_all() {
17547 - local DOCS=( ANNOUNCE AUTHORS README )
17548 - local l
17549 - add_locale_docs() {
17550 - local locale_doc="documentation/README.$1"
17551 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
17552 - }
17553 - l10n_for_each_locale_do add_locale_docs
17554 -
17555 - einstalldocs
17556 - prune_libtool_files --all
17557 -
17558 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
17559 - if use gecko ; then
17560 - insinto /usr/share/wine/gecko
17561 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
17562 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
17563 - fi
17564 - if use mono ; then
17565 - insinto /usr/share/wine/mono
17566 - doins "${DISTDIR}"/wine-mono-${MV}.msi
17567 - fi
17568 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
17569 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
17570 - fi
17571 -
17572 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
17573 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
17574 -
17575 - if use abi_x86_64 && ! use abi_x86_32; then
17576 - dosym /usr/bin/wine{64,} # 404331
17577 - dosym /usr/bin/wine{64,}-preloader
17578 - fi
17579 -
17580 - # respect LINGUAS when installing man pages, #469418
17581 - for l in de fr pl; do
17582 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
17583 - done
17584 -}
17585 -
17586 -pkg_preinst() {
17587 - gnome2_icon_savelist
17588 -}
17589 -
17590 -pkg_postinst() {
17591 - gnome2_icon_cache_update
17592 - fdo-mime_desktop_database_update
17593 -
17594 - if ! use gecko; then
17595 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
17596 - ewarn "implementation of iexplore. Many older windows applications"
17597 - ewarn "rely upon the existence of an iexplore implementation, so"
17598 - ewarn "you will likely need to install an external one, like via winetricks"
17599 - fi
17600 - if ! use mono; then
17601 - ewarn "Without Wine Mono, wine prefixes will not have a default"
17602 - ewarn "implementation of .NET. Many windows applications rely upon"
17603 - ewarn "the existence of a .NET implementation, so you will likely need"
17604 - ewarn "to install an external one, like via winetricks"
17605 - fi
17606 -}
17607 -
17608 -pkg_postrm() {
17609 - gnome2_icon_cache_update
17610 - fdo-mime_desktop_database_update
17611 -}
17612
17613 diff --git a/app-emulation/wine/wine-1.7.9-r1.ebuild b/app-emulation/wine/wine-1.7.9-r1.ebuild
17614 deleted file mode 100644
17615 index 090fb1c..0000000
17616 --- a/app-emulation/wine/wine-1.7.9-r1.ebuild
17617 +++ /dev/null
17618 @@ -1,378 +0,0 @@
17619 -# Copyright 1999-2015 Gentoo Foundation
17620 -# Distributed under the terms of the GNU General Public License v2
17621 -# $Id$
17622 -
17623 -EAPI="5"
17624 -
17625 -AUTOTOOLS_AUTORECONF=1
17626 -PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
17627 -PLOCALE_BACKUP="en"
17628 -
17629 -inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
17630 -
17631 -if [[ ${PV} == "9999" ]] ; then
17632 - EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
17633 - EGIT_BRANCH="master"
17634 - inherit git-r3
17635 - SRC_URI=""
17636 - #KEYWORDS=""
17637 -else
17638 - MY_P="${PN}-${PV/_/-}"
17639 - SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
17640 - KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
17641 - S=${WORKDIR}/${MY_P}
17642 -fi
17643 -
17644 -GV="2.24"
17645 -MV="4.5.2"
17646 -PULSE_PATCHES="winepulse-patches-1.7.8"
17647 -WINE_GENTOO="wine-gentoo-2015.03.07"
17648 -DESCRIPTION="Free implementation of Windows(tm) on Unix"
17649 -HOMEPAGE="http://www.winehq.org/"
17650 -SRC_URI="${SRC_URI}
17651 - gecko? (
17652 - abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
17653 - abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
17654 - )
17655 - mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
17656 - pulseaudio? ( https://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
17657 - https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
17658 -
17659 -LICENSE="LGPL-2.1"
17660 -SLOT="0"
17661 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X +xcomposite xinerama +xml"
17662 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
17663 - test? ( abi_x86_32 )
17664 - elibc_glibc? ( threads )
17665 - mono? ( abi_x86_32 )
17666 - osmesa? ( opengl )" #286560
17667 -
17668 -# FIXME: the test suite is unsuitable for us; many tests require net access
17669 -# or fail due to Xvfb's opengl limitations.
17670 -RESTRICT="test"
17671 -
17672 -COMMON_DEPEND="
17673 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
17674 - capi? ( net-dialup/capi4k-utils )
17675 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
17676 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
17677 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
17678 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
17679 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
17680 - gstreamer? (
17681 - media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
17682 - media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
17683 - )
17684 - X? (
17685 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
17686 - x11-libs/libXext[${MULTILIB_USEDEP}]
17687 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
17688 - x11-libs/libXi[${MULTILIB_USEDEP}]
17689 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
17690 - )
17691 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
17692 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
17693 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
17694 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
17695 - opengl? (
17696 - virtual/glu[${MULTILIB_USEDEP}]
17697 - virtual/opengl[${MULTILIB_USEDEP}]
17698 - )
17699 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
17700 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
17701 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
17702 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
17703 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
17704 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
17705 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
17706 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
17707 - osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
17708 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
17709 - xml? (
17710 - dev-libs/libxml2[${MULTILIB_USEDEP}]
17711 - dev-libs/libxslt[${MULTILIB_USEDEP}]
17712 - )
17713 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
17714 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
17715 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
17716 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
17717 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
17718 - abi_x86_32? (
17719 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
17720 - !<app-emulation/emul-linux-x86-baselibs-20140508-r14
17721 - !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
17722 - !<app-emulation/emul-linux-x86-db-20140508-r3
17723 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
17724 - !<app-emulation/emul-linux-x86-medialibs-20140508-r6
17725 - !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
17726 - !<app-emulation/emul-linux-x86-opengl-20140508-r1
17727 - !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
17728 - !<app-emulation/emul-linux-x86-sdl-20140508-r1
17729 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
17730 - !<app-emulation/emul-linux-x86-soundlibs-20140508
17731 - !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
17732 - !<app-emulation/emul-linux-x86-xlibs-20140508
17733 - )"
17734 -
17735 -RDEPEND="${COMMON_DEPEND}
17736 - dos? ( games-emulation/dosbox )
17737 - perl? ( dev-lang/perl dev-perl/XML-Simple )
17738 - samba? ( >=net-fs/samba-3.0.25 )
17739 - selinux? ( sec-policy/selinux-wine )
17740 - udisks? ( sys-fs/udisks:2 )
17741 - pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
17742 -
17743 -DEPEND="${COMMON_DEPEND}
17744 - X? (
17745 - x11-proto/inputproto
17746 - x11-proto/xextproto
17747 - x11-proto/xf86vidmodeproto
17748 - )
17749 - xinerama? ( x11-proto/xineramaproto )
17750 - prelink? ( sys-devel/prelink )
17751 - >=sys-kernel/linux-headers-2.6
17752 - virtual/pkgconfig
17753 - virtual/yacc
17754 - sys-devel/flex"
17755 -
17756 -# These use a non-standard "Wine" category, which is provided by
17757 -# /etc/xdg/applications-merged/wine.menu
17758 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
17759 -usr/share/applications/wine-notepad.desktop
17760 -usr/share/applications/wine-uninstaller.desktop
17761 -usr/share/applications/wine-winecfg.desktop"
17762 -
17763 -wine_build_environment_check() {
17764 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
17765 -
17766 - # bug #549768
17767 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
17768 - einfo "Checking for gcc-5 ms_abi compiler bug ..."
17769 - $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
17770 - # Run in subshell to prevent "Aborted" message
17771 - if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
17772 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
17773 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
17774 - eerror "or use gcc-config to select a different compiler version."
17775 - eerror "See https://bugs.gentoo.org/549768"
17776 - eerror
17777 - return 1
17778 - fi
17779 - fi
17780 -
17781 - if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
17782 - eerror "You need gcc-4.4+ to build 64-bit wine"
17783 - eerror
17784 - return 1
17785 - fi
17786 -
17787 - if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
17788 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
17789 - eerror "See https://bugs.gentoo.org/487864 for more details."
17790 - eerror
17791 - return 1
17792 - fi
17793 -}
17794 -
17795 -pkg_pretend() {
17796 - wine_build_environment_check || die
17797 -}
17798 -
17799 -pkg_setup() {
17800 - wine_build_environment_check || die
17801 -}
17802 -
17803 -src_unpack() {
17804 - if [[ ${PV} == "9999" ]] ; then
17805 - git-r3_src_unpack
17806 - else
17807 - unpack ${MY_P}.tar.bz2
17808 - fi
17809 -
17810 - use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
17811 - unpack "${WINE_GENTOO}.tar.bz2"
17812 -
17813 - l10n_find_plocales_changes "${S}/po" "" ".po"
17814 -}
17815 -
17816 -src_prepare() {
17817 - local md5="$(md5sum server/protocol.def)"
17818 - local PATCHES=(
17819 - "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
17820 - "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
17821 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
17822 - "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
17823 - "${FILESDIR}"/${PN}-gcc-4.9-null-pointer.patch #543446
17824 - )
17825 - use pulseaudio && PATCHES+=(
17826 - "../${PULSE_PATCHES}"/*.patch #421365
17827 - )
17828 -
17829 - autotools-utils_src_prepare
17830 -
17831 - # Modification of the server protocol requires regenerating the server requests
17832 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
17833 - einfo "server/protocol.def was patched; running tools/make_requests"
17834 - tools/make_requests || die #432348
17835 - fi
17836 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
17837 - if ! use run-exes; then
17838 - sed -i '/^MimeType/d' tools/wine.desktop || die #117785
17839 - fi
17840 -
17841 - # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
17842 - cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
17843 -
17844 - l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
17845 -}
17846 -
17847 -src_configure() {
17848 - export LDCONFIG=/bin/true
17849 - use custom-cflags || strip-flags
17850 -
17851 - multilib-minimal_src_configure
17852 -}
17853 -
17854 -multilib_src_configure() {
17855 - local myconf=(
17856 - --sysconfdir=/etc/wine
17857 - $(use_with alsa)
17858 - $(use_with capi)
17859 - $(use_with lcms cms)
17860 - $(use_with cups)
17861 - $(use_with ncurses curses)
17862 - $(use_with udisks dbus)
17863 - $(use_with fontconfig)
17864 - $(use_with ssl gnutls)
17865 - $(use_enable gecko mshtml)
17866 - $(use_with gphoto2 gphoto)
17867 - $(use_with gsm)
17868 - $(use_with gstreamer)
17869 - --without-hal
17870 - $(use_with jpeg)
17871 - $(use_with ldap)
17872 - $(use_enable mono mscoree)
17873 - $(use_with mp3 mpg123)
17874 - $(use_with netapi)
17875 - $(use_with nls gettext)
17876 - $(use_with openal)
17877 - $(use_with opencl)
17878 - $(use_with opengl)
17879 - $(use_with osmesa)
17880 - $(use_with oss)
17881 - $(use_with png)
17882 - $(use_with threads pthread)
17883 - $(use_with scanner sane)
17884 - $(use_enable test tests)
17885 - $(use_with truetype freetype)
17886 - $(use_with v4l)
17887 - $(use_with X x)
17888 - $(use_with xcomposite)
17889 - $(use_with xinerama)
17890 - $(use_with xml)
17891 - $(use_with xml xslt)
17892 - )
17893 -
17894 - use pulseaudio && myconf+=( --with-pulse )
17895 -
17896 - local PKG_CONFIG AR RANLIB
17897 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
17898 - # set AR and RANLIB to make QA scripts happy; #483342
17899 - tc-export PKG_CONFIG AR RANLIB
17900 -
17901 - if use amd64; then
17902 - if [[ ${ABI} == amd64 ]]; then
17903 - myconf+=( --enable-win64 )
17904 - else
17905 - myconf+=( --disable-win64 )
17906 - fi
17907 -
17908 - # Note: using --with-wine64 results in problems with multilib.eclass
17909 - # CC/LD hackery. We're using separate tools instead.
17910 - fi
17911 -
17912 - ECONF_SOURCE=${S} \
17913 - econf "${myconf[@]}"
17914 - emake depend
17915 -}
17916 -
17917 -multilib_src_test() {
17918 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
17919 - if [[ ${ABI} == x86 ]]; then
17920 - if [[ $(id -u) == 0 ]]; then
17921 - ewarn "Skipping tests since they cannot be run under the root user."
17922 - ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
17923 - return
17924 - fi
17925 -
17926 - WINEPREFIX="${T}/.wine-${ABI}" \
17927 - Xemake test
17928 - fi
17929 -}
17930 -
17931 -multilib_src_install_all() {
17932 - local DOCS=( ANNOUNCE AUTHORS README )
17933 - local l
17934 - add_locale_docs() {
17935 - local locale_doc="documentation/README.$1"
17936 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
17937 - }
17938 - l10n_for_each_locale_do add_locale_docs
17939 -
17940 - einstalldocs
17941 - prune_libtool_files --all
17942 -
17943 - emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
17944 - if use gecko ; then
17945 - insinto /usr/share/wine/gecko
17946 - use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
17947 - use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
17948 - fi
17949 - if use mono ; then
17950 - insinto /usr/share/wine/mono
17951 - doins "${DISTDIR}"/wine-mono-${MV}.msi
17952 - fi
17953 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
17954 - rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
17955 - fi
17956 -
17957 - use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
17958 - use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
17959 -
17960 - if use abi_x86_64 && ! use abi_x86_32; then
17961 - dosym /usr/bin/wine{64,} # 404331
17962 - dosym /usr/bin/wine{64,}-preloader
17963 - fi
17964 -
17965 - # respect LINGUAS when installing man pages, #469418
17966 - for l in de fr pl; do
17967 - use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
17968 - done
17969 -}
17970 -
17971 -pkg_preinst() {
17972 - gnome2_icon_savelist
17973 -}
17974 -
17975 -pkg_postinst() {
17976 - gnome2_icon_cache_update
17977 - fdo-mime_desktop_database_update
17978 -
17979 - if ! use gecko; then
17980 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
17981 - ewarn "implementation of iexplore. Many older windows applications"
17982 - ewarn "rely upon the existence of an iexplore implementation, so"
17983 - ewarn "you will likely need to install an external one, like via winetricks"
17984 - fi
17985 - if ! use mono; then
17986 - ewarn "Without Wine Mono, wine prefixes will not have a default"
17987 - ewarn "implementation of .NET. Many windows applications rely upon"
17988 - ewarn "the existence of a .NET implementation, so you will likely need"
17989 - ewarn "to install an external one, like via winetricks"
17990 - fi
17991 -}
17992 -
17993 -pkg_postrm() {
17994 - gnome2_icon_cache_update
17995 - fdo-mime_desktop_database_update
17996 -}