add old swt

Package-Manager: portage-2.2.14
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2015-08-08 04:46:13 +02:00
parent 29e10890e5
commit 78cdc16aad
5 changed files with 228 additions and 1 deletions

View File

@ -2,6 +2,12 @@
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*swt-3.4.1 (08 Aug 2015)
08 Aug 2015; Mario Fetka <mario.fetka@gmail.com> +files/swt-3.3-manifest,
+files/swt-3.4.1-manifest, +swt-3.4.1.ebuild:
add old swt
*swt-3.6.1 (07 Aug 2015)
*swt-3.7.1 (07 Aug 2015)
*swt-3.7.2-r1 (07 Aug 2015)

View File

@ -2,9 +2,11 @@ AUX as-needed-and-flag-fixes-3.6.patch 7755 SHA256 4a33ab3b2f617d137977562b096c6
AUX as-needed-and-flag-fixes.patch 7229 SHA256 016a810cc9649235fcab73467a056240b712d5557663b7756d4de64c939256ee SHA512 1c4d217965bd8ee9a293095dcf8abca399277a103e523610340a6f3cc25291cc53c2e89b9fed396298e5f9e7b78221df5c4bc881d65713058f029810799f8010 WHIRLPOOL c2abc3a0dfb593f8f3ab2d2f2427cc6c817367ec0c73108dff238e1110bde39c6d98b5e0adeede7d89c9296f227970db17e23893318b60f2becfb352837a69ef
AUX build.xml 458 SHA256 bbac0fb3bf9454b81e6d27dae4ebb9538cf62f2be17adcf169538749230dc8e7 SHA512 49f3a4cc04d4d9cf0609aa97e01fa409a8f2dbb953ab3a52bc9984799d0bf4092d2a63fe665d8ba6ca0428089984b6ef47bc78900c613373ca1a7b588f6c5525 WHIRLPOOL e70d35ed0834e72c83818e346e4c40af55059de096fb6ef4c4f4927f13886e88925b9caa538306aa1ec9ece966f28782282139a60f2dbefc4aec53a0401db9a9
AUX swt-3.3-callback-pointer-dereferencing.patch 882 SHA256 27c4120bdcc4bb8f5a65d7c85343ee185c6270366c9f9a3cfc530838b5378cab SHA512 882a9ff60ef229b5fe585f3debaa09dcdb26b43cba993b521236fe422dab0c28e2d32f0edfedc81bf95b4efaba7895d8f156d90f37f2c7aedeb4a8724afb73b9 WHIRLPOOL d2cc7d91ef05766855ae23058069cf609463a11909d75bdfd548778dcbddd666271926a4328bb1f08cb6756ad78c8f6ac4b5bfe6ca2fae1cb7fc9a2968e641d4
AUX swt-3.3-manifest 752 SHA256 f0c98cefd1ddebe0a5a0c15558edba16b00a3ecc910a3fb0a52babb56fd72dae SHA512 4f58f6606c28fa09537e6426511a3ba14cf8340af927538fbb67c31ec47de5f157092f36da3bef642af3ba2a353ce3905706f6b43d8988f12996a58352ef7d51 WHIRLPOOL 3875966d6c0a2b02d930e1dddb4def0633258ef4f62d098c09a508a94ec3a3f08ca632713604c0628c44ac258135ddec493ec4b9584f01fc2f13cfcfa81626b1
AUX swt-3.4-manifest 753 SHA256 6401f555a867cba47463a36d3c150f7cf5962ac85be53e14c43a88eadf74c94e SHA512 e103929e14d2b05599e2467b7fc99a56735549cdc83d866cdab17c5ddb4c68805446e83deaa5a5ec3678eb52b78f49053ced4f41f89d56d5bd3ef8d9f8b786b9 WHIRLPOOL 095a29c8c91f6acde8cf6814dbf67dcd70fbebfb9da5977dd436480f16e853fa0c083ab11e63c0ae501c6285ca8bfa0d88196da3c023307d0eba8a7a57da924c
AUX swt-3.4-xulrunner-1.9.1-amd64.patch 12209 SHA256 485ea48f096c433a951691e087019cbc2c1b2d119a01fef2b57e33d98e9bd1b2 SHA512 c0064112acf2ef5f7f8dd327e5cccdfbda9a48374a4ac39fc31ea068d31d249b5c2f440b3d3315a9a3ba1da3ca1814ecc36c8f95ac1d56b438212a6581a940b8 WHIRLPOOL 5f9a42a136f7c3c074470ff8c9a1e2cadd65adf38c756e6a4bc8ac49c8b1cf4b70983fe4eaec6fe258dcc4b68aa7642d28c288d064a847114af171a0ee876854
AUX swt-3.4-xulrunner-1.9.1.patch 12209 SHA256 08e4ed334b37347ad9ea267264b46fb6700d57aef4d7817efbabfcb11de82d9c SHA512 924914c5e15542fbde260f6047196a43b1345b1daa21c322bea552c44e83bf815f96ef52cafbe063f98f9407b22c96a2dfe470eb0b092f7dcf0f31c1cf7c5d3f WHIRLPOOL febf558d21344b91fe175c45f07ad9751b6ed19bce1bfa8c378339ceeb8b377bf9accaa47c6e16a9a41223b6cf5ff0f6cd532185b739c1ee437bf4df11db4b57
AUX swt-3.4.1-manifest 753 SHA256 bd0023f4246114cf1119caa7187f65c5bb21966cb2fef8c430b6851a8095bf34 SHA512 32c13e76952b7b6af6d40bf82e17f5accc8c18b06c51ff496e5702da545989fc64e891e0cf8181545498e0c27a15e3a53d65e006653702706950f3cffbde16e9 WHIRLPOOL 956bb3635e7674b465478db9307a17c78fcaefb1fafd47069e217f6273e269ec8eb4cc29aba97382908dfd70a22327e71301e6ecc3ed9602629ff672878ea92d
AUX swt-3.5-manifest 752 SHA256 8ad9d69aa58e533cc03b9ccf3d8e0356505c357aaeb14968bf146f94d8b79be9 SHA512 7021ce5766ff50b999ad3474de00a2f19490e5eaef1f811b95d3cf01a43467de3e8e4913b668d019d59513ca54a159b50fd0bda427c4efcb3fddc522fa2925a6 WHIRLPOOL 09ba77a4ef824120624b9d6122a9eb6a39004e643b7e95f5a7f0f3e934a985f1cef86c838f5663ae4f3149f1953ceee0231e0d86ae7c3b9ab47a62ddee9a16ec
AUX swt-3.6-manifest 752 SHA256 f5a8e3db5c47d3b82541a73b5b0f172342efc5754adcc00b9b62a5abe4b30096 SHA512 6b9fb3e2dc5d3da9f7988e46409a9086108dc8cf5facfe5ff09791ff8782a6babbb6a517f8282671d0800f207f7aef518dc480ca8d56740fade218851d2822fb WHIRLPOOL 72224faab73cda56beb9feb93140537868b25298b0903fcbcacbac3460eb7c955414504f7eb669f9b0a27ca1cbf3f2b76c9c6ab90ce3840b582e575220421be0
AUX swt-3.7-manifest 750 SHA256 4c911bfa6f4def901570ca715da547c1d13766915f3244e5d6282bee8be6564f SHA512 e4f6aa5ce58cdc697c234a2a4be43de0510d3c082a2737627a35df74d378a50edc0f7d3e62221f402eed602fcdc50fa7eff969b12602189fd400e1f1580f0d8f WHIRLPOOL b84f61067d00c864f1029718b560a33fd04d76e6cae8f5aa5e5aa0da31af752494277d759d909dc4a78f5412e963c21c95125ae01ac405fd72c7a8223032f558
@ -15,6 +17,9 @@ AUX swt-3.8-manifest 750 SHA256 5beeddd8f5e381811e9ac50167dc8c0408773d40591f9ef4
AUX swt-3.8.2-gthread.patch 1225 SHA256 e7c477aba9475ce582b493b541296f8e4d28a68c8dbef8a6ad1815deb27aba89 SHA512 035ea3dda893481f67ac0447e0c7382a9761eb3ee77b65ca77038bd17117b68a2d93058c8414d9b2656ceeecde3e6ebc06c0f27e044f217fe8f44945104dcbd4 WHIRLPOOL d7e474e2ddc65db5f00ce9846a57a7a5a73760237308cd921ba6c601d6648163e75e74fd397f984dc21de1a95b8848d49ffc840f2996fbcf49a002d25ff21c5f
AUX swt-4.2-as-needed-and-flag-fixes.patch 7840 SHA256 3aed5349c3c0cf1a2e63fdd4b40d053804ecbba7a5b798de73be36f64b42fb65 SHA512 00cc50a0432bb17272a40c3606c9a5729171708af5581c861a5bfae3d1b694289de92164961bfceb841813fb9161befdc2114616556296e81401f133f07c1db1 WHIRLPOOL e9f21b6745422aa1ac74f25530f4ae829165b77c1843319a21aed59e8a7da27fdf803eaaad4acc49e5373ff7f2e7209f35bbe8cdc4ffe0e62ff576f03eb912c2
AUX swt-4.2-manifest 739 SHA256 3c67656a0798cd6f464ce6db022fab04fa23ff3b07e7079d8c3364d950f8acc4 SHA512 f17bdc21083c70896d82d12d6918bb121db838b895d1db95dbbf9bbc0368b1b26e6b6acf5a90b709ff961f3640911111932391fa45ae898d1de8a387d17594b1 WHIRLPOOL 31f9e54ceb9640c0e3d1ac0c67bd290295a424997d8633be5d172b0467e9aac4b0b94420862864e29531ae3ef67610007729fba1b944bf22551cd8450d4326ff
DIST swt-3.4.1-gtk-linux-ppc.zip 4631702 SHA256 97f2ee7873986d9e92d1f21bf02010023b562cb6f4d963fffa5bd7f0800dd84d SHA512 662fc7a98f2453961805c22c89f74fe849ce3cc6c96cca44c17eb6509d5189c7b9b48fd26cd16634903a66866a5e4f6da88ba3075f9f8581b0e5871140ce28fb WHIRLPOOL 2d9fc6b128a4087eb1af5413382f55185db8f9164596fc1af4341405910c4b545c6798699f28464f2b5bd0c787c8d3a244597163cb30b7d2ee5363efee133c17
DIST swt-3.4.1-gtk-linux-x86.zip 4563980 SHA256 12cc6ce1a17de34fc97943dd43f5593a4b28e09f85b9405487099496347cdae3 SHA512 7e733d447331281c0f2e114b82cbf22d8f4009e0c7aea9947c7d261e9cd06e5a893afe205783d721075b086c10ad0c32c7e9468b4c16c84c354df1ec8387c843 WHIRLPOOL a52c276b53c6a476d585c489fbc9f2f46d0517131db4ce0d19f887d222c07939bfe1dc41d372c704408cd700072a0e45a0602b4acfb7cf33880e46af9a60707b
DIST swt-3.4.1-gtk-linux-x86_64.zip 4746984 SHA256 99ab9da4df47e93d458c155ba81dba3d1912f6e0f18ec07bd9914c87179e8ca0 SHA512 6b1af223f075cc4adda8b4b5f1d07d1bf0d5f5f35831e83cada9c142b73f10f158210c5862d72947b7d4ebb691192b83005888d1d4f658acc180edd5660fa98c WHIRLPOOL 6d239d1e5663679fb3d224f53c2f6072993f326e206548a61686d7c233bcf820bda09295f4c712aedddcc1ee108168543640ff5cdf8e92052b364b9bd09e9b82
DIST swt-3.5.2-gtk-linux-ppc.zip 4947929 SHA256 f2619f6e107eee3c55c6694df4c89e77976d2d5517b6f3c17c358602536abf28 SHA512 2d3d194d2bb4c7f0e6d5bc801d41cb6de970de78c544a7edd2f18c4ed9291f7639dbedab4594c5221e76dd559c884c6fda7f32d11d0465a2d017fe0398a33dae WHIRLPOOL 282057de0d2e23c887db96d20ff8e39a1ea1e87adde415357903323095d4439e966218390932bebd2234dfed2117a0afa93372e9088e695770cb521ff7180501
DIST swt-3.5.2-gtk-linux-x86.zip 4881316 SHA256 00477e6fc3c913916cd980a1ec29629c5250afc52dc0fcee74b035af0360eef7 SHA512 f53226458e5404cc03475c3bb903de81efa328625b713fe97b3b418a769b0476695e437e0693b5e10fa9a356de90302d6a2d267fe5e13f172803c684db9e9c82 WHIRLPOOL 4ca8f495c6d499ed8f1f6789333a6b357978029a6138a9986b6ef309a3e60303b6399b3c288e3732b13b75eb1db45e3679a559c806113a80572b0a05a226cadd
DIST swt-3.5.2-gtk-linux-x86_64.zip 5068674 SHA256 91f9e2d4f6ca3926252d33895aafe82ba1b72bcdb77ec71dafa20d154f5d5bc7 SHA512 f226d531002dc472852f09ce9814c8dcf7b0c4209353a5639d8b814308807df6477c4a8aa0fd49743578282e6662ca8d5c316371720dca50953ad7ec44b7c6d3 WHIRLPOOL 335ab0845f3c27d3396286f26b45583cf4b71469c3567dd2a978fa3b82af7828d02925529ec686825d283207b3e3858237664f43ab4ecb56835a84ffb066033b
@ -33,6 +38,7 @@ DIST swt-3.8.2-gtk-linux-x86_64.zip 5865160 SHA256 b4e7aeefbf1b44afe37c7850bbae3
DIST swt-4.2-gtk-linux-ppc64.zip 5935799 SHA256 b853c9601ae0808634722976392319405bee53e6bc30864d0bfbf0507159d1db SHA512 bedd64099380980a6dbe47b86f4719666366680f7580150f97282c6f6b6acc95822493469e950e8fcbc9c584f6fca9f35a59937551ae8b6e799b188dc3751e9d WHIRLPOOL 8fe20ed46de94bb554205929fd142a2ac21aca543289a48cd6417f60f8a4d2d55062b7ebbda7f6712aabc6c7de8998c75c48eeffe73139c756e44e71c2ef84be
DIST swt-4.2-gtk-linux-x86.zip 5561088 SHA256 e0e2977837c905b61219eb94544d89757ac3d01a88c3a81abff6d7446d48d9ac SHA512 e3d53bcd0521411c40f4c37719917f3570a17fb3ea5c617560986273fd155b99d9b0790ba27c57da26663d49ebec4c6a8387b41bd01b0ba934b21724ba98e133 WHIRLPOOL ad4fd1113f6e4b2605433ac7a53aa416c29824164b97b2b3a3ceb61e6bc812108c38841b75c5ec6f9a093ed2b8a7c58bf883d701403e8399a18ccb2a8c214165
DIST swt-4.2-gtk-linux-x86_64.zip 5867140 SHA256 f549bb8309e1523dd4d3867aaf6f0582cdbe5a504ae8aba52900fe6fdb63f336 SHA512 56c5ec4ca2ddeed5256dd6ff350dc3911034ecbc414a06ba879f04ab53d6380ca9da9037097f76228ca8182f6076bcd9cc4cb9b01c10766c10048e6576fc5f50 WHIRLPOOL 5f60bfe556d6551fdabe4184dfc5a4a9df250b10010d59200902017a9f9cbed379a557e5179232d05a8542d531542c3eb6d0afc57c752717dca7a9d7f4177e62
EBUILD swt-3.4.1.ebuild 4888 SHA256 5c49a0d38b35a127e38a4466df380628ca708d0b870d7ce65199f5eabea0b601 SHA512 9d3b117ea791c781e8d962a5e4f9a04b02075c80fcccbc80cd91dd589c1f666109e5d588d88f210a4692ce7531cc0c897f9a7e9c972312a7094b6b4ca5381935 WHIRLPOOL 52f05f1c478d04cfc675030dba50d04e7eb34607e19b33e6771fe473155e19c1209cc6489756565805a9949a3964fd66a3b9b69192fe7f5a945d58736bb3f3b3
EBUILD swt-3.5.2.ebuild 4885 SHA256 1d68178bdcfea520ab2046119390b307c1c2f11e71b98a5d0aee257e3d2c50d4 SHA512 9c62b6e6c4b50cd24345c67172762c05df1f6a4f189683bba498cc331af1138653a6d77083ccf6c5eb814ca0c6954d570c236b25540b4f5b98197b0904fe9a57 WHIRLPOOL 918cd95905283bacf155c286911403ddf77d7bdebf25b7f6fbe6c5747a6c5217af1bc52403161d48ce8715a97eb8a9142db3fa9f47c3e8bb8d8fffe7b55f70c9
EBUILD swt-3.6.1.ebuild 4893 SHA256 a3820701235a563f6182f0e2f09593af2b8944f98540aa6ca061b7ea7e9cda0f SHA512 8d0d46db5518aa497e0d570fab838b4cf3e4ebfb3c92815aa92e1bde4bd1cef19daef744856693bfce614f8937fa597f20d74b66401ca3fe09a8259a710e5a75 WHIRLPOOL 150dd173db71531d3f20b969cacbbe8d04ad2f1e38d99acf9e67c1fb36a25be4182a12cecd38a42b9230e53618fdd82bedce3dc4fa47cfb26cf183010d9d073d
EBUILD swt-3.7.1.ebuild 4902 SHA256 62d1c125f1b6425354180a168653e34a1796aba783c450959f6fabc9237eb503 SHA512 543de0ed0547760d6afc5048297dda2386d5473bee7d401ad588277e89291c15cdea5e271eace67b868287a316f37a92b710d9707fad0515e06cfd5e83afa14d WHIRLPOOL 7ce75d826cc9c8a908e4dbf864ddcc71edaaf5671a3ce5ac06a7bbfda1758e582a4526876e6eee9f2b34f4e94a63498675756016a8f6fdbc4af52e70fe9a2ab5
@ -42,5 +48,5 @@ EBUILD swt-3.8.2.ebuild 4881 SHA256 cdf7cc00234854a64d553764ec78d3bef2e93919ec4a
EBUILD swt-4.2-r1.ebuild 4930 SHA256 5d661f9b2a99cbbf828e82aec77f49b2126a1c288cba8d0a0c5751ff6321766e SHA512 d6860f2c91ceb9cce6556551dda4142e0b7946370f9205398966e41744f52f442944920a5072776c34be4c777a2c18087adfe22c7d28f8a7cea97fa8bd15d4ae WHIRLPOOL 93d4241b15af63d6c5e6d7620504d25df07d723c93d91d851fc0e8f6efd4e1c962717c8fdea82d4d9a7ed4f995a1671875e164e4118bbabccd17574356bd0460
EBUILD swt-4.2-r2.ebuild 5056 SHA256 404a41710b3abf76c08c5b442463281e8d395dbffd4a4469a39c05bd1aae6594 SHA512 5fff61a37d3cd5e197f085bae78ce913e4b2249b8131ca65d2c0c850e34da197552811a12f4d59684432a493c69a8d7d9f567491ec0b151f715a283038be52f3 WHIRLPOOL 5c5f5ae21ee7c26991077f7489af52663d887c91e84dd8a5c5255703d3629596180a9d5bd25e1da9896c8bdd80665443b6bd03cba24aae85baa1dac7aa5dbb8a
EBUILD swt-4.2.ebuild 4818 SHA256 8fbd3ec2f972cbd0228632e189c178f3bd73c7626e6ef39b0dd6a525083e067c SHA512 5c81ac5ad9e6cbb5d2e186de3f19b0f0fd4ef6b22952457beb8f867503a621f5cf7a7e3d8cef5e60802cf85c4125a18e5f78475e0de33a29d4e8a4b48ffca345 WHIRLPOOL 7037e5b4793146d6d72ca152da90771aaaf0b5d8eaa5c98724ce46550f28628d0ac0bdc0deef986f21de6fa1691e76f4292f23a4ae677a93db3a0da8b3c64c96
MISC ChangeLog 1290 SHA256 531f6a4463efb975f75dab5d3b5c00c44960897608090df6b3b905b6ed377aee SHA512 9468fb0279a5d7d1d8df734270d0ff3cc800aec82d65fda8cae570b2dcbe5995205b7fea3ce50c717822e432ce5c044567b7fa66c528c4b93644c8430f660004 WHIRLPOOL eb4e8b7fc755aa812e62b7ee45a1f958821be6f96bb12c9c3b6e86fdc37fd22992a83bb6fae6d74d3326e1019285e24de2cc469d91852e30f4fd0f3a46be967b
MISC ChangeLog 1455 SHA256 10d105075aa7d9a8fc1192a91893102fe9cfb12dc3346992cc783e712e36d511 SHA512 4d408bee4d0fba82c6d1261e10bfb6e1d568728241348e879dab9ba9c285a55acc21fd5dec89f8fc81bee4e98dbd5bd478a6cd7812bea985b2857a9ad452f9b8 WHIRLPOOL ee65d527e8017510c94826468448a12436152b338a38e91dd7b0430afda58a1fc9a6cce95b60d745af669074202ccaa6582eb49b58f23752c6a285c42aaf18be
MISC metadata.xml 578 SHA256 1e4845acfd81dc03aba0b504ac5c3307bf8d8a3bf666ece773fc483e458eaea0 SHA512 2b9ed1965582b5cd8371b473a296d620005273c82b393f5f32c3c45ce65926330bb75e4a312256c21bdb3f69a9c2a4b99f18e9396a349ba17ba94ebe647e5b8a WHIRLPOOL a32177b01a02581a0b4762e31cdf8029a88fc7e57ec9809c9a8156326a843e604a861e8f5f7bb44d8adc9e1c0c09eebb58d8d6ffd613ae531f99d6f1113cf044

View File

@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Fragment-Host: org.eclipse.swt; bundle-version="[3.0.0,4.0.0)"
Bundle-SymbolicName: org.eclipse.swt.gtk.linux.SWT_ARCH; singleton:=true
Bundle-Version: 3.3.0
Eclipse-PlatformFilter: (& (osgi.ws=gtk) (osgi.os=linux) (osgi.arch=SWT_ARCH))
Export-Package: org.eclipse.swt.internal.accessibility.gtk; x-internal:=true,
org.eclipse.swt.internal.cairo; x-internal:=true,
org.eclipse.swt.internal.cde; x-internal:=true,
org.eclipse.swt.internal.gnome; x-internal:=true,
org.eclipse.swt.internal.gtk; x-internal:=true,
org.eclipse.swt.internal.mozilla; x-internal:=true,
org.eclipse.swt.internal.opengl.glx; x-internal:=true

View File

@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Fragment-Host: org.eclipse.swt; bundle-version="[3.0.0,4.0.0)"
Bundle-SymbolicName: org.eclipse.swt.gtk.linux.SWT_ARCH; singleton:=true
Bundle-Version: 3.4.1
Eclipse-PlatformFilter: (& (osgi.ws=gtk) (osgi.os=linux) (osgi.arch=SWT_ARCH))
Export-Package: org.eclipse.swt.internal.accessibility.gtk; x-internal:=true,
org.eclipse.swt.internal.cairo; x-internal:=true,
org.eclipse.swt.internal.cde; x-internal:=true,
org.eclipse.swt.internal.gnome; x-internal:=true,
org.eclipse.swt.internal.gtk; x-internal:=true,
org.eclipse.swt.internal.mozilla; x-internal:=true,
org.eclipse.swt.internal.opengl.glx; x-internal:=true

View File

@ -0,0 +1,183 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="1"
inherit eutils java-pkg-2 java-ant-2 toolchain-funcs java-osgi
MY_PV="${PV/_pre/M}"
MY_DMF="archive.eclipse.org/eclipse/downloads/drops/R-${MY_PV}-200809111700"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="GTK based SWT Library"
HOMEPAGE="http://www.eclipse.org/"
SRC_URI="arm? (
http://${MY_DMF}/${MY_P}-gtk-linux-x86.zip
)
x86? (
http://${MY_DMF}/${MY_P}-gtk-linux-x86.zip
)
x86-fbsd? (
http://${MY_DMF}/${MY_P}-gtk-linux-x86.zip
)
amd64? (
http://${MY_DMF}/${MY_P}-gtk-linux-x86_64.zip
)
ppc? (
http://${MY_DMF}/${MY_P}-gtk-linux-ppc.zip
)
ppc64? (
http://${MY_DMF}/${MY_P}-gtk-linux-x86_64.zip
)"
SLOT="3.4"
LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1"
KEYWORDS="~amd64"
IUSE="cairo gnome opengl"
COMMON=">=dev-libs/glib-2.6
>=x11-libs/gtk+-2.6.8
>=dev-libs/atk-1.10.2
cairo? ( >=x11-libs/cairo-1.4.14 )
gnome? (
=gnome-base/libgnome-2*
=gnome-base/gnome-vfs-2*
=gnome-base/libgnomeui-2*
)
opengl? (
virtual/opengl
virtual/glu
)"
# Use a blocker to avoid file collisions when upgrading to the slotted version
# We cannot use slotmove, java packages are expected to be in /usr/share/PN-SLOT
# so this is the only way to prevent collisions
DEPEND=">=virtual/jdk-1.4
!=dev-java/swt-3.4*:3
app-arch/unzip
x11-libs/libX11
x11-libs/libXrender
x11-libs/libXt
x11-proto/xextproto
x11-proto/inputproto
${COMMON}"
RDEPEND=">=virtual/jre-1.4
x11-libs/libXtst
${COMMON}"
S="${WORKDIR}"
src_unpack() {
local DISTFILE=${A}
unzip -jq "${DISTDIR}"/${DISTFILE} "*src.zip" || die "Unable to extract distfile"
unpack "./src.zip"
# Cleanup the redirtied directory structure
rm -rf about_files/ || die
# Replace the build.xml to allow compilation without Eclipse tasks
cp "${FILESDIR}/build.xml" "${S}/build.xml" || die "Unable to update build.xml"
mkdir "${S}/src" && mv "${S}/org" "${S}/src" || die "Unable to restructure SWT sources"
# Apply all the patches, including arch-specific
# EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" epatch
sed -i "s/CFLAGS = -O -Wall/CFLAGS = ${CFLAGS} -Wall/" \
make_linux.mak || die "Failed to tweak make_linux.mak"
sed -i "s/MOZILLACFLAGS = -O/MOZILLACFLAGS = ${CXXFLAGS}/" \
make_linux.mak || die "Failed to tweak make_linux.mak"
# Kill some strict-aliasing warnings
epatch "${FILESDIR}/${PN}-3.3-callback-pointer-dereferencing.patch"
}
src_compile() {
# Drop jikes support as it seems to be unfriendly with SWT
java-pkg_filter-compiler jikes
local AWT_ARCH
local JAWTSO="libjawt.so"
if [[ $(tc-arch) == 'arm' ]] ; then
AWT_ARCH="arm"
elif [[ $(tc-arch) == 'x86' ]] ; then
AWT_ARCH="i386"
elif [[ $(tc-arch) == 'ppc' ]] ; then
AWT_ARCH="ppc"
elif [[ $(tc-arch) == 'ppc64' ]] ; then
AWT_ARCH="ppc64"
else
AWT_ARCH="amd64"
fi
if [[ -f "${JAVA_HOME}/jre/lib/${AWT_ARCH}/${JAWTSO}" ]]; then
export AWT_LIB_PATH="${JAVA_HOME}/jre/lib/${AWT_ARCH}"
elif [[ -f "${JAVA_HOME}/jre/bin/${JAWTSO}" ]]; then
export AWT_LIB_PATH="${JAVA_HOME}/jre/bin"
elif [[ -f "${JAVA_HOME}/$(get_libdir)/${JAWTSO}" ]] ; then
export AWT_LIB_PATH="${JAVA_HOME}/$(get_libdir)"
else
eerror "${JAWTSO} not found in the JDK being used for compilation!"
die "cannot build AWT library"
fi
# Fix the pointer size for AMD64
[[ ${ARCH} == "amd64" || ${ARCH} == "ppc64" ]] && export SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
local platform="linux"
use elibc_FreeBSD && platform="freebsd"
local make="emake -f make_${platform}.mak NO_STRIP=y"
einfo "Building AWT library"
${make} make_awt || die "Failed to build AWT support"
einfo "Building SWT library"
${make} make_swt || die "Failed to build SWT support"
einfo "Building JAVA-AT-SPI bridge"
${make} make_atk || die "Failed to build ATK support"
if use gnome ; then
einfo "Building GNOME VFS support"
${make} make_gnome || die "Failed to build GNOME VFS support"
fi
if use cairo ; then
einfo "Building CAIRO support"
${make} make_cairo || die "Unable to build CAIRO support"
fi
if use opengl ; then
einfo "Building OpenGL component"
${make} make_glx || die "Unable to build OpenGL component"
fi
einfo "Building JNI libraries"
eant compile
einfo "Copying missing files"
cp -i "${S}/version.txt" "${S}/build/version.txt"
cp -i "${S}/src/org/eclipse/swt/internal/SWTMessages.properties" \
"${S}/build/org/eclipse/swt/internal/"
einfo "Packing JNI libraries"
eant jar
}
src_install() {
swtArch=${ARCH}
use amd64 && swtArch=x86_64
use x86-fbsd && swtArch=x86
sed "s/SWT_ARCH/${swtArch}/" "${FILESDIR}/${PN}-3.4.1-manifest" > "MANIFEST_TMP.MF"
java-osgi_newjar-fromfile "swt.jar" "MANIFEST_TMP.MF" "Standard Widget Toolkit for GTK 2.0"
java-pkg_sointo /usr/$(get_libdir)
java-pkg_doso *.so
dohtml about.html || die
}