summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2015-04-12 19:15:46 +0000
committerAndrew Savchenko <bircoph@gentoo.org>2015-04-12 19:15:46 +0000
commit8e7200e4b92dd23addee1fb0cb84c4250893c09a (patch)
tree08fcd2ed2f3943efdd403eca449ca616c65b087d /sci-physics
parentversion bump (diff)
downloadhistorical-8e7200e4b92dd23addee1fb0cb84c4250893c09a.tar.gz
historical-8e7200e4b92dd23addee1fb0cb84c4250893c09a.tar.bz2
historical-8e7200e4b92dd23addee1fb0cb84c4250893c09a.zip
version bump
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org> Package-Manager: portage-2.2.18/cvs/Linux i686 Manifest-Sign-Key: 0x565953B95372756C
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/root/ChangeLog12
-rw-r--r--sci-physics/root/Manifest39
-rw-r--r--sci-physics/root/files/root-6.00.01-dotfont.patch58
-rw-r--r--sci-physics/root/files/root-6.00.01-geocad.patch15
-rw-r--r--sci-physics/root/files/root-6.00.01-llvm.patch13
-rw-r--r--sci-physics/root/files/root-6.00.01-nobyte-compile.patch33
-rw-r--r--sci-physics/root/files/root-6.00.01-prop-flags.patch17
-rw-r--r--sci-physics/root/files/root-6.02.05-dictpch.patch31
-rw-r--r--sci-physics/root/files/root-6.02.05-xrootd4.patch11
-rw-r--r--sci-physics/root/metadata.xml5
-rw-r--r--sci-physics/root/root-6.02.05-r2.ebuild482
11 files changed, 700 insertions, 16 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
index 5f346c1100d4..ed29bddd9cf4 100644
--- a/sci-physics/root/ChangeLog
+++ b/sci-physics/root/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sci-physics/root
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.140 2015/03/25 21:38:59 bircoph Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.141 2015/04/12 19:15:40 bircoph Exp $
+
+*root-6.02.05-r2 (12 Apr 2015)
+
+ 12 Apr 2015; Andrew Savchenko <bircoph@gentoo.org> +root-6.02.05-r2.ebuild,
+ +files/root-6.00.01-dotfont.patch, +files/root-6.00.01-geocad.patch,
+ +files/root-6.00.01-llvm.patch, +files/root-6.00.01-nobyte-compile.patch,
+ +files/root-6.00.01-prop-flags.patch, +files/root-6.02.05-dictpch.patch,
+ +files/root-6.02.05-xrootd4.patch, metadata.xml:
+ Version bump from science overlay. Add new USE flags, remove
+ minimal USE flag.
*root-5.34.28 (25 Mar 2015)
diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest
index e50bd5e32c7e..6e75507b73cf 100644
--- a/sci-physics/root/Manifest
+++ b/sci-physics/root/Manifest
@@ -18,6 +18,13 @@ AUX root-5.34.05-nobyte-compile.patch 5504 SHA256 5f550158605286f915dfb6ea7c44b4
AUX root-5.34.13-desktop.patch 455 SHA256 7845b879a62349515b07b6ad6e5031f615f1227bb83760bf0a08cb3ed31e54b7 SHA512 0db7186aa00614c4ad2eaceac922c837b016f9cf4df0561a89bbb00c587c97430d190b27dc1b82333ed25c8903673635ceecb4ea44ba2285aab91949b6927c5b WHIRLPOOL 206ce05c33005b856ed4a1bcbb8f6cae1330eaee8dfe238946150c17d4491e01f24cc3ee3b5e7e568bc5d0da1d7390c9b16145c3fd9b9c707b26578972f4ff35
AUX root-5.34.13-unuran.patch 1555 SHA256 279c7f4495ddbd508ac6f2e9fff53d65fc6e623997d1fbe917c4e6a8adb627e8 SHA512 571d6bd56d2419e4b96f7ca95d14d291768cc98024f871ca35bfae1a7d1e010a7c101f927c66ece4c006ca89401aeaea89945b8502f1ae2b2068f535d0bc95f3 WHIRLPOOL cb1b889e0d35a0d1f0969491c8909eb62ef931dd9d2f76e93cefab2cd9cb9a5aeb79337ba124089a45c069a75b936b9225d2e8909be751f0b8d6ed87063dac79
AUX root-5.34.26-ldflags.patch 626 SHA256 1b4b6bee742ce4641fd6fad89d8c2425fcdfc41742743ff40b13ce1450be3a24 SHA512 fa38441a472b8b811c293aecbf1e233ea619cb4a2c9bfb8dda1706c0ac34bf5c3dcf23a43a517a72aab5faa63e733eee74515cbf70b6f15e3cfba46e3e5c4ccc WHIRLPOOL d3bf11dd359c4ed73f4bd0e70703b2407f33f02f71b9ad92419bf1bf4608525db0572b6f39baf3caf262a67978ba73df2ea0973c1ad68579e28172f17ec4ba60
+AUX root-6.00.01-dotfont.patch 2718 SHA256 27d05ede039fb85472203839a628b15f8ee9fc3c39e1d29a19349e069f891d61 SHA512 8f01655e863d36678dea37df934e3d8d9c2bc85920497345feb8d863bdc1b7413c783b916050d1e7b476ecdf9e1e8afdcbb32e621d625305898d51947b6955c6 WHIRLPOOL 75e2712f13cf64102fd0dce6d92c7c21c3606ad4679615336ce6b607f236eb6b1d57ffa0498ae3df194b08c6cdc371fef36912fb3e3cc1fc84ac3f1664793708
+AUX root-6.00.01-geocad.patch 365 SHA256 6fb2a28c41ee9d7afff177f8758d0faf39ac269d2d58dc732c6f1375c00bdcc3 SHA512 ed624468c66152a9e199feee572f689f9aa1a3a6725fabd1f157a4d97c11bd0de53da3871265cf2cad7afda40d2df995d899c86b8756ed565005d19a90833be6 WHIRLPOOL b4fbfe290f2af560008631dd8910eb10abd43fd4eed662b5765f412c762b6ddab2d27c62c77d7f153098f1bdf66127cea0ae950823003847b0ce38779a17dd79
+AUX root-6.00.01-llvm.patch 439 SHA256 aff58b4454204daa4f68deb4ace730137d9083d11cb679c8d37a7b5ceab2b101 SHA512 cb9edb78a937ace744687506a6ec45b9022b6c7ca687e8fe1e2ee2ddf9e01b49fe8d6933910e2898f14247bdcf5d86b248d28938d28e3453615d56d5f12291d0 WHIRLPOOL dd22f60f3b9ae19b3965114a824f2f0dce153a285312b878fe663d9a51b5195f76f47d299904ce237de4d98e26d3417b27cfbca18ac8f5e1bfbc1e8d3093a0f9
+AUX root-6.00.01-nobyte-compile.patch 1308 SHA256 6b93b8bd7f8a2bc68289c7a4bf316ab3d75a2d4d28669dd05baadf8f22d93f92 SHA512 6387c3277ec16ceb23caa1952b3a9e3869fedd12ed1fd93a4241e865898cd74b4abfe99e0f6fb266cfd5f3a46ede98e56f933ed0ad83829e8445ef583555b674 WHIRLPOOL 401c5144709896b54c894077e4c7fa41e9df230b87f1bfa589d6ddddacab36d1ce5bd62b465cc01a70608d4f751f0048172ff1689bd5c72691ac98678ea0dac3
+AUX root-6.00.01-prop-flags.patch 581 SHA256 646753c16a1310ae1312edc6ebf8e5678a392e8abb45ff3e9d0bf08bd74a82ab SHA512 b5c609624480d51abddd33dfb0d7499e948861c34939fbcfbd6df66fcfea723ddeebe8523d65a4b357242cbc05cef46e75be85af46ef0449c84745803052607f WHIRLPOOL c5a3ec031c02928b5dc68650892bebf7b262d6aea29fb8bc309dbe19a27bfb1abb2233d842dfde07c289c8a37d947514d7233b6c836a97eda5e897f4752d2a22
+AUX root-6.02.05-dictpch.patch 1277 SHA256 f358832f43e03948f8eea97f26fe5df3e59e5333680f13c6bb63e239479b6b82 SHA512 7b14aa07f8928819329608ab6530000c2446548d93a84f5ea7cbbf44cba70974b0a3f3bab88968b288ec833e105f2a1e8a4fc326f4c9a6fc98a2078fde1cd174 WHIRLPOOL efa0bca1dc7a309a87838fe38bd388cd3353a4b08b8becef4a03a51a097af689f487d60f7fffbf00f5f45ab2241e75b4e269223b381e069148643027bd0b556a
+AUX root-6.02.05-xrootd4.patch 478 SHA256 8dd88f12eb0f3982ede6cd6279a7c8e16ba91e4f02f21000c4b47c2bd2cc23e2 SHA512 47f37ca84c06d71fc207b18bc38798ccde457e61758ec56f84543aa4619929869e15dd53a8d7302bd4ca458b1e880428aafba4963d63bc5711f4540a096c4ff8 WHIRLPOOL 0545d00ca85b564c294e5301f6266c67925b838b4b9618191cca0dddebfc010f2638318aae7c688327543b91c9aa1eaa1f2eccacb3fd55d5aa9b0463f639d0d2
AUX rootd.confd 199 SHA256 7b69f646ce0b2546ce797ec4a05949b02302dc5f4e41d2e8896ed0bc6575ac8d SHA512 2ce6753d37a7f22cc3656f110f802b8e07c1469bfe4524606c1472369352f8c584c01c716760252fab40369470b72d8c77cdbb2d52126c39371faaf597bf58d8 WHIRLPOOL b4c65e5026d6583775cda7b13fdbc5ae48c82c36710efbdd6b112243310090c05b5726d6e76d1ae25d585ecaa4aec4a5059336bf54135bafd0e4a921db468742
AUX rootd.initd 732 SHA256 42b9fe01aa41965359c16d4b23f874cea65806d8c7ec11215dbba95ab80e90f3 SHA512 65152830554ed509db7e5545bffb4976a608ee576d62ac648fc5520ff96ea5062c9b20c195dad2cf8dc2b34079e6beb252d427030825e14dc867ae4599bc64b8 WHIRLPOOL ec03db863e079b3f910ec0f86b036a828b2a5804f6bd6e0398e5207000f1ca10b6b1e71504d6c6b3a2d216b20d7db27d2425070f9d6bb0696ef384dfe8526fc0
DIST ROOTUsersGuide.pdf 9124822 SHA256 70a96c4a2573dc0d320142f86993ecfda24caa755e910340a3014120f2997c8b SHA512 c3b4c18ef2e13968afdf67c6003249d4cfe6ea661fa32ce25127361bae7e3376a25cd3b11591292f3975bcd8105291aca52f2f6214c9fe45f4bd6e7e44d54b25 WHIRLPOOL 11256ba7837d17e5795cf71ac32db43d7d8f797bfbddf5f71612fe2f8fb2e01354372c0ea8f0bc22868881eb0bfdc8a3e3f1b05293d2750d293aa4d59217b2e6
@@ -28,26 +35,28 @@ DIST root-banner.png 132555 SHA256 d165e1cc175f654ff79af39193a6144678f600e14a53d
DIST root_v5.32.03.source.tar.gz 55529362 SHA256 575057c429625df69f0fa5c303287acefff185cda8cf8d1e9a6b2d21097d5ae6 SHA512 2e067eb9c6bbda5cf4df6973a3cf5307540247fb07c349f7ee74c0cf6a4abbb63f585a9ff67139cae985250fc5c5106b5ea03d7d9d2bcd20269e0ec8760ebd02 WHIRLPOOL 87dbf6f55f82001e07afc3b467e95f841f185f1f67d1dbd953f73e8aa9127ef8485db84100d6e9a08f0ae6aa5b45a565398eb6723145fff16c07e5158bb3e3ab
DIST root_v5.34.26.source.tar.gz 75171961 SHA256 c1fd2a249bb7210914b42e35dba4f1262cfa46b79ef7a41f73d7f08f8c54a643 SHA512 f5da5e20d1763608a32d78c48581e574a3f51aef47ecf6987a4064d1fb3234dfc9f626e041a17213f881f52f807ed6a6da60bf1d24951fa7dc2cadd94f8dd8b4 WHIRLPOOL 77b48b815c971642da68b71732a0ea3372648634281be634037b13cb58488f7075ec8bfc9a684e55d85cd9b038f229be29b19a15dfc829f0ce63a5f17241c23c
DIST root_v5.34.28.source.tar.gz 75178811 SHA256 aae8fbcd86ad78ded68e764f294ab493d6d814ebe0baadd5bdf33034cda874d1 SHA512 2985def942affedc6654b33c440b3828c104d74b92fffe9a2b47ea329ff2e572219142d751794b332b4ceb92532ca06401928f340bebd42809c0616ed14baee2 WHIRLPOOL 4062d6eae5bfe68447c60bd37cdd6e27447c1b4f45ce9a377bbffc16300c5bec58111ea1fb1483aaf87bbe03fb72834cb2c4a53f10d69b89f06160b86c45caae
+DIST root_v6.02.05.source.tar.gz 99121880 SHA256 7a5d4af171ba3b8a736c462b2041f8f35bd4c1d3b6a22c32a3ebd3ffe144ae60 SHA512 b30bc4aafe294ee069ee4c884ff70c983539a48eda586cd1938d00d4688f10e94a435640965b89c6d100fdd998453a4c1ae2109d5f1427f23865a868c561d684 WHIRLPOOL de363835fa00ffa0ff6e596b3c92b59ed59378bac3a344c066f7603d6104058203f76181d4c15478fd9066aedbe6a514257d5796feedb2d5d0d789b263e92955
DIST rootdrawing-logo.png 15051 SHA256 1dfd913cad53a3ebd6bf560d14df918cab5a295cc7d155944a8e27284af83a6b SHA512 14aa13ebfed3c9412d7d7d04c250740b25fe3af6bcb07e618045a5cec2dc23698a251fd7df2db1a6c37331084db99b029b387ea81c25ac825fc7ae10ad164a68 WHIRLPOOL 877a959a5aead73ba69dbb805c9869cbd6a047ea476bd4e7fef80781563a61d20dad49dd4d8b0005bfc58e8f7c7d38efbb3e085a95974feb81dfc9e339c18741
EBUILD root-5.32.03-r2.ebuild 11346 SHA256 2431e382432c6cb26f556cc800c942fd0da3eb4bbe134e9fc4715074798d753f SHA512 064c484c73010598cbfa3664b6d004c33ea0766b31a39c4a59ce0a1cfc4f06f168488e4b8c9e524e1500e3d7584a51ab87f0ff82df92feff670e6b4b11266846 WHIRLPOOL 579ae021c54867895a4c627f1e06a3bba81e9d8fe84a97af3df506b485ce31b05e667b7aec940572d100b010f5d079f8ad32035185841d5eed170a97b0b81a43
EBUILD root-5.34.26.ebuild 12334 SHA256 1c4670f87bdf5a54513f2f5763336ae477a44f59638aff02ee4c14360b45766d SHA512 6b0b083017e89f8e54c1484e898d6a25398f31e3dc7188f3013935733a2b55debf562d38a844d4f4b3fe6e534d1558a41f2cd712153d8e3c5e7922ab9394c1ae WHIRLPOOL 803ca628ad14f315743ceff94254ea6099de100f2f487ec4400a60c2dd2862a7e9c32eda30ccccb7b520410d3171886315410466b9556d86499f22c7ed437581
EBUILD root-5.34.28.ebuild 12288 SHA256 aed20b8908745211b7d2af7e1f867a267badb77687026a82ed1a69399dc531d7 SHA512 804d48027eab7502b7d8b032fe94df7f9c470ebac1683fdf02a0da20badbc7410daf31a272082bc4e985bf67c455ea2d87bf9996da7d145f64f9534695dbbb95 WHIRLPOOL f2669f6933c85adf46b4ec7a7355dd59edf266913c2fd7e194627a77be0d7a6e37b6767a40e3f225512efbfe1625af1f5a1f19eb5ea614a119c85a23130f4420
-MISC ChangeLog 41213 SHA256 848b5309e292f1bd78bd434082cbd4afb026c7d84e4902423f405f132fedde4e SHA512 160f4247e6afdb31342c7355b7678de98e8869a50ab57be70a969e5d05729a2821ca1a8653749870b16ab8274fa2512439adc5388ea4fc8f5ef82038d348ab99 WHIRLPOOL 86e1ca8ad57203a23e7a2cab910b5f97bf52b7281d210656a95cc25639ec5d88f3401f044490d0efd2fb22f6202553d9ed266bc1f39d575535851d40e7edd1b9
-MISC metadata.xml 1658 SHA256 a97502ec01ffd35dbe28fe6562e2c0a2e699ff857855431353f66764b74c357a SHA512 186aeb009a703bb8a2b24cfa1b67ce72ef484d6fce770b839e3c4634ff0011aec3bae2c643ac6f0fadc55ebcb53f08e8d7030bbf427d372535752461106e3976 WHIRLPOOL 11fbdc771af7d17fdb39b400182c38c73ec7f8b22d7014f45a0465dd94f7a8cbd0e9e8b3a1237fb94f254f9676d0b2c09e238919ed540f0cffbecd51967da0b8
+EBUILD root-6.02.05-r2.ebuild 14379 SHA256 f85625e3aba2c13c2af480d431610a345a66c631fba7f8b12c75d9dbecc0b021 SHA512 33e73b71e1a56745ab8d0fa36fe0b82caceca8a5628a21aef67aa1dd00283fc6b63158d3c264c4e6b7874871c6cf97702643a111261766147c1b5b141a769631 WHIRLPOOL 3e540244ddbece942512dcae3e2a7f8820ad73a65aebd4a71c8d7677bd3497fc03f058a62b2a7a87a21f78e189733e8d43e1026b352f79123cbc3bdb4dd55dca
+MISC ChangeLog 41680 SHA256 5979208e1f32c391d9af3f32296d59d13574d476776312335d72905993513e92 SHA512 8ca8a8d9877f35764b4616be8815136ab4215d6e99831e8a1a975eb1a617034663d1ceedbf3efdbd647f71b50a1ee1b82e2bdf8db3aec26ebae5d61842beed4a WHIRLPOOL 67efaeba04ac379bad0683e901c71fbfdf4463a9745902992e3d99047eaf43d498e3d5dbcc0df939cddf5b3735fbbc3512e77ccc2f518fe9da9e5dc4a0e28799
+MISC metadata.xml 2037 SHA256 782a0418ce7592d98fb0a0ea39acb4fdda34c8e5693916203c7603c2a6949d82 SHA512 2dd71edf2ef82897be6d4f7cf5454ae26c5c1aaeeca158828b79e67367f16de280c67dd26a20e783bbcb1005f5b190166ccb119abbf0b417bed69e58d6169923 WHIRLPOOL a82e8e4a80f3d5994c42137c46bc59267b64ffb89cf66f22a4803608d53cca56b763f66895ae8efc6150f747ea45f0c00905272a9c52c7f5381930509343728c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJVEyr0AAoJEPZTWjO6HuSNUQcQALb6+34LyzXjGjgNWxaft2g4
-igCd1Ii01IKmXfOZG+zoEvDvweFA8fPSImPT5CyeTrhgJSQVcBEtpNR4thDjZ13Q
-/9lze/cfnFUbIGu+eGPmgsl4gpEXb5BkpYU4F1YmZeYuOZU5NdublTxl3/3L5LJE
-rVO5Pbr4NVc6ol97f8LtWFBxylFC97Qug1UUeJ+NcqpIBdxgYyOXpBcvhrTxEtUZ
-uO3gwoH3/CwSX9XQ6ffH1snpmU8gqvAQkVIUiLsT8YmaoX7xHawpWighFPib2WK7
-kTRvaXtKn9flaUTHJWJE9m0lraRBvgeLIuc7txgns22orJ55tUgbkjseUag15+24
-8FKkOdrq90a/rkbpFFZomf733b+fT63QxWQ9vxzwefCkgC0X9geUfikQxM4VRFXa
-nvGO/5zSD7GgVFnuaTL0p7Z9JBozWOes6dper/NRBYudtgJiYKNPQXXiDHD0ar0s
-2XpZ523pbqctemwfG4+GzSF3jOCApvBsHoIrhf1f7L2ek3Cx/4iuFYp7TIGb2i8Q
-uKDDfYpPL9T1o3NsFN6g7NsGDX7LlJosg2x57H8w0Y5+CCPa4CPdhjtbmIevcDVn
-sFntWA0nxRXfwZr4Tcx5hdKPRnhWk024VLKwOb3v9dOmVTqlV1+Bz9emXGIO1nui
-xemnNOkxu2ydvYstaoQ0
-=2Q9V
+iQIcBAEBCAAGBQJVKsRdAAoJEPZTWjO6HuSNDD8QALer4JfL/ozgdJKi+Anue6Q3
+MLeEd579nyGRh4xejM0WSKezWTZvBDjyhTtG/l2H5ut6AANXvmsir2pkC2K5PiDL
+bLK76xs7eSZmAOd6xpfBMEaPyC0hYC4NulPrEibrY3hfgM+qlxAuipzfI4qUd7Pl
+pBil5Q0fucp2Bc8ohyZuxFAbMQGEGItFvKDc8/99S04+TIJF37yNq6Cx17di7CZp
+H63xkjzTFsVxPAJqAkQNwrlF7P0gOMJyKLrDlcIXRNBhUCBWj3A3ZLqK+pFF7TLp
+1HHhKdZrEBPOX73Xo//SJbd1y/JENrCSemg80K12mksZIflKUF6naXQyUVlC5wnh
+Z7CxJK4wITzNxvJydJen8InrYzWgVbORYHq649yLfo+R7MenfmB9OqZFzYiG2LGT
+YDLOTPTHiAhgc9yOh27/xZZicT93kmQ0wPaSkFlwbY49bd513ehMWs7ImCkWPV1L
+DBm4e7YTgDLC1Yh4Sl/HzKIoQoMCfi2OYCXAL7mtksm0mYO7jlnuukCU1t3KnmQc
+flEbh0NsHEfjKY0X3Dlo2Wp+EJOPzrJP65TGjn9I6dJ8Fn07eVpw99Nn+M9I2ua9
+Qb5kaqdDHMY76l8LiG8YXSa6wJIiKdhhzj3b4bkdrrYLk1h0HJ7llGm89CINzhjN
+F9bhJIFjWUjxFntBz66X
+=eTwb
-----END PGP SIGNATURE-----
diff --git a/sci-physics/root/files/root-6.00.01-dotfont.patch b/sci-physics/root/files/root-6.00.01-dotfont.patch
new file mode 100644
index 000000000000..6c765f75a505
--- /dev/null
+++ b/sci-physics/root/files/root-6.00.01-dotfont.patch
@@ -0,0 +1,58 @@
+--- root/html/src/TClassDocOutput.cxx.orig 2012-06-08 02:13:51.000000000 +0400
++++ root/html/src/TClassDocOutput.cxx 2012-06-08 02:34:45.705436577 +0400
+@@ -625,7 +625,7 @@
+ << "size=\"8,10\";" << std::endl
+ << "ratio=auto;" << std::endl
+ << "margin=0;" << std::endl
+- << "node [shape=plaintext,fontsize=40,width=4,height=0.75];" << std::endl
++ << "node [shape=plaintext,fontsize=40,width=4,height=0.75,fontname=\"DejaVu Serif\"];" << std::endl
+ << "\"" << fCurrentClass->GetName() << "\" [shape=ellipse];" << std::endl;
+
+ std::stringstream ssDep;
+@@ -704,7 +704,7 @@
+ outdot << ";" << std::endl;
+ } else if (writeAndMoreFor) {
+ outdot << " \"...andmore" << writeAndMoreFor->GetName()
+- << "\" [label=\"...and more\",fontname=\"Times-Italic\",fillcolor=lightgrey,style=filled];" << std::endl;
++ << "\" [label=\"...and more\",fontname=\"DejaVu Serif Italic\",fillcolor=lightgrey,style=filled];" << std::endl;
+ }
+ }
+ if (!levelExists) break;
+@@ -733,7 +733,7 @@
+ << "ranksep=0.1;" << std::endl
+ << "nodesep=0;" << std::endl
+ << "margin=0;" << std::endl;
+- outdot << " node [style=filled,width=0.7,height=0.15,fixedsize=true,shape=plaintext,fontsize=10];" << std::endl;
++ outdot << " node [style=filled,width=0.7,height=0.15,fixedsize=true,shape=plaintext,fontsize=10,fontname=\"DejaVu Serif\"];" << std::endl;
+
+ std::stringstream ssDep;
+ const int numColumns = 3;
+@@ -939,7 +939,7 @@
+ << "ranksep=0;" << std::endl
+ << "nodesep=0;" << std::endl
+ << "size=\"8,10\";" << std::endl
+- << "node [fontsize=20,shape=plaintext];" << std::endl;
++ << "node [fontsize=20,shape=plaintext,fontname=\"DejaVu Serif\"];" << std::endl;
+
+ for (std::list<std::string>::iterator iFile = listFilesToParse.begin();
+ iFile != listFilesToParse.end(); ++iFile) {
+@@ -999,7 +999,8 @@
+ << "ranksep=0.7;" << std::endl
+ << "nodesep=0.3;" << std::endl
+ << "size=\"8,8\";" << std::endl
+- << "ratio=compress;" << std::endl;
++ << "ratio=compress;" << std::endl
++ << "node [fontname=\"DejaVu Serif\"];" << std::endl;
+
+ TString libs(fCurrentClass->GetSharedLibs());
+ outdot << "\"All Libraries\" [URL=\"LibraryDependencies.html\",shape=box,rank=max,fillcolor=lightgray,style=filled];" << std::endl;
+@@ -1109,7 +1110,8 @@
+
+ dotout << "digraph G {" << std::endl
+ << "ratio=auto;" << std::endl
+- << "rankdir=RL;" << std::endl;
++ << "rankdir=RL;" << std::endl
++ << "node [fontname=\"DejaVu Serif\"];" << std::endl;
+
+ // loop on all classes
+ TClassDocInfo* cdi = 0;
diff --git a/sci-physics/root/files/root-6.00.01-geocad.patch b/sci-physics/root/files/root-6.00.01-geocad.patch
new file mode 100644
index 000000000000..2742a74bd0eb
--- /dev/null
+++ b/sci-physics/root/files/root-6.00.01-geocad.patch
@@ -0,0 +1,15 @@
+diff --git a/geom/geocad/inc/TGeoToOCC.h b/geom/geocad/inc/TGeoToOCC.h
+index 892f225..86eb9e1 100644
+--- a/geom/geocad/inc/TGeoToOCC.h
++++ b/geom/geocad/inc/TGeoToOCC.h
+@@ -13,8 +13,10 @@
+ #define ROOT_TGeoToOCC
+
+ //Cascade
++#define Printf Printf_opencascade
+ #include <TopoDS_Shape.hxx>
+ #include <TopoDS_Wire.hxx>
++#undef Printf
+
+ //Root
+ #ifndef ROOT_TGeoXtru
diff --git a/sci-physics/root/files/root-6.00.01-llvm.patch b/sci-physics/root/files/root-6.00.01-llvm.patch
new file mode 100644
index 000000000000..c6abb353ee64
--- /dev/null
+++ b/sci-physics/root/files/root-6.00.01-llvm.patch
@@ -0,0 +1,13 @@
+diff --git a/interpreter/llvm/src/Makefile.config.in b/interpreter/llvm/src/Makefile.config.in
+index 7633be2..c8756b1 100644
+--- a/interpreter/llvm/src/Makefile.config.in
++++ b/interpreter/llvm/src/Makefile.config.in
+@@ -170,6 +170,8 @@ CXXFLAGS += @CXXFLAGS@
+
+ # Linker flags.
+ LDFLAGS += @LDFLAGS@
++NOUNDEF := -Wl,--no-undefined
++LDFLAGS := $(filter-out $(NOUNDEF),$(LDFLAGS))
+
+ # Path to the library archiver program.
+ AR_PATH = @AR@
diff --git a/sci-physics/root/files/root-6.00.01-nobyte-compile.patch b/sci-physics/root/files/root-6.00.01-nobyte-compile.patch
new file mode 100644
index 000000000000..aa58f20686dc
--- /dev/null
+++ b/sci-physics/root/files/root-6.00.01-nobyte-compile.patch
@@ -0,0 +1,33 @@
+diff -Naur root.as-needed/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk
+--- root.as-needed/bindings/pyroot/Module.mk 2011-07-10 10:42:48.991561304 +0400
++++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400
+@@ -48,8 +48,6 @@
+ ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS))
+ $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@
+ endif
+-ROOTPYC := $(ROOTPY:.py=.pyc)
+-ROOTPYO := $(ROOTPY:.py=.pyo)
+
+ # used in the main Makefile
+ ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
+@@ -68,10 +66,8 @@
+ include/%.h: $(PYROOTDIRI)/%.h
+ cp $< $@
+
+-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
+-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
+
+-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
++$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
+ $(ROOTLIBSDEP) $(PYTHONLIBDEP)
+ @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
+ "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
+@@ -113,7 +109,7 @@
+
+ distclean-$(MODNAME): clean-$(MODNAME)
+ @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
+- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
++ $(ROOTPY) $(PYROOTMAP) \
+ $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
+
+ distclean:: distclean-$(MODNAME)
diff --git a/sci-physics/root/files/root-6.00.01-prop-flags.patch b/sci-physics/root/files/root-6.00.01-prop-flags.patch
new file mode 100644
index 000000000000..3a1002478902
--- /dev/null
+++ b/sci-physics/root/files/root-6.00.01-prop-flags.patch
@@ -0,0 +1,17 @@
+diff --git a/config/Makefile.in b/config/Makefile.in
+index dd89044..4fc7de3 100644
+--- a/config/Makefile.in
++++ b/config/Makefile.in
+@@ -64,9 +64,9 @@ HOST := @host@
+ USECONFIG := @useconfig@
+ MKLIBOPTIONS := @mkliboption@
+
+-EXTRA_CFLAGS := -Iinclude @cflags@
+-EXTRA_CXXFLAGS := -Iinclude @cflags@
+-EXTRA_LDFLAGS := @ldflags@
++EXTRA_CFLAGS := -Iinclude @cflags@ $(CFLAGS)
++EXTRA_CXXFLAGS := -Iinclude @cflags@ $(CXXFLAGS)
++EXTRA_LDFLAGS := @ldflags@ $(LDFLAGS)
+ WERROR := @werror@
+ WINRTDEBUG := @winrtdebug@
+ CTORSINITARRAY := @ctorsinitarray@
diff --git a/sci-physics/root/files/root-6.02.05-dictpch.patch b/sci-physics/root/files/root-6.02.05-dictpch.patch
new file mode 100644
index 000000000000..80a416e1a339
--- /dev/null
+++ b/sci-physics/root/files/root-6.02.05-dictpch.patch
@@ -0,0 +1,31 @@
+--- etc/dictpch/makepch-gentoo.sh.orig 2015-04-08 14:27:07.781026830 +0300
++++ etc/dictpch/makepch-gentoo.sh 2015-04-12 13:40:48.226060739 +0300
+@@ -13,8 +13,8 @@
+ # Copyright (c) 2014 Rene Brun and Fons Rademakers
+ # Author: Axel Naumann <axel@cern.ch>, 2014-10-16
+
+-rootdir=.
+-cfgdir=etc/dictpch
++rootdir=ROOTDIR_TEMPLATE
++cfgdir=etc/root/dictpch
+ allheaders=$cfgdir/allHeaders.h
+ alllinkdefs=$cfgdir/allLinkDefs.h
+ cppflags=$cfgdir/allCppflags.txt
+@@ -36,7 +36,7 @@
+ rootbuild=-rootbuild
+ fi
+
+-cxxflags="-D__CLING__ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DROOT_PCH -I$rootdir/include -I$rootdir/etc -I$rootdir/$cfgdir -I$rootdir/etc/cling `cat $rootdir/$cppflags`"
++cxxflags="-D__CLING__ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DROOT_PCH -I$rootdir/usr/include/root -I$rootdir/etc/root -I$rootdir/$cfgdir -I$rootdir/etc/root/cling `cat $rootdir/$cppflags`"
+
+ if ! [ "x$1" = "x" ]; then
+ cxxflags="$cxxflags $1"
+@@ -44,7 +44,7 @@
+
+ # generate pch
+ touch allDict.cxx.h
+-$rootdir/bin/rootcling $rootbuild -1 -f allDict.cxx -noDictSelection -c $cxxflags $allheaders $@ $alllinkdefs
++$rootdir/usr/bin/rootcling -1 -f allDict.cxx -noDictSelection -c $cxxflags $allheaders $@ $alllinkdefs
+ res=$?
+ if [ $res -eq 0 ] ; then
+ mv allDict_rdict.pch $pch
diff --git a/sci-physics/root/files/root-6.02.05-xrootd4.patch b/sci-physics/root/files/root-6.02.05-xrootd4.patch
new file mode 100644
index 000000000000..0b4a4bef0f2e
--- /dev/null
+++ b/sci-physics/root/files/root-6.02.05-xrootd4.patch
@@ -0,0 +1,11 @@
+https://sft.its.cern.ch/jira/browse/ROOT-6998
+--- root-6.02.05/net/netxng/src/TNetXNGFile.cxx.orig 2015-02-09 11:59:47.000000000 +0300
++++ root-6.02.05/net/netxng/src/TNetXNGFile.cxx 2015-04-05 11:32:31.893127758 +0300
+@@ -28,6 +28,7 @@
+ #include <XrdCl/XrdClFile.hh>
+ #include <XrdCl/XrdClXRootDResponses.hh>
+ #include <XrdCl/XrdClDefaultEnv.hh>
++#include <XrdVersion.hh>
+ #include <iostream>
+
+ //------------------------------------------------------------------------------
diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml
index bf605b66117c..2d5f75aecc7c 100644
--- a/sci-physics/root/metadata.xml
+++ b/sci-physics/root/metadata.xml
@@ -19,12 +19,17 @@
<flag name="c++14"> Build ROOT using the C++14 standard</flag>
<flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag>
<flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
+ <flag name="gdml">Enable GDML writer and reader</flag>
+ <flag name="geocad">Enable ROOT-CAD interface using <pkg>sci-libs/opencascade</pkg></flag>
<flag name="htmldoc">Generate html documentation</flag>
<flag name="http">Enable http server support including but not limited to fastcgi support</flag>
<flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
+ <flag name="memstat">Build memory statistics library, helps to detect memory leaks</flag>
<flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag>
<flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag>
<flag name="reflex">Build the reflection database for the C++ interpreter</flag>
+ <flag name="shadow">Enable shadow authentication in rootd and proofd</flag>
+ <flag name="table">Build libTable contrib library</flag>
<flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag>
</use>
</pkgmetadata>
diff --git a/sci-physics/root/root-6.02.05-r2.ebuild b/sci-physics/root/root-6.02.05-r2.ebuild
new file mode 100644
index 000000000000..ef93e073b25c
--- /dev/null
+++ b/sci-physics/root/root-6.02.05-r2.ebuild
@@ -0,0 +1,482 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-6.02.05-r2.ebuild,v 1.1 2015/04/12 19:15:40 bircoph Exp $
+
+EAPI=5
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="http://root.cern.ch/git/root.git"
+else
+ SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz"
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 \
+ toolchain-funcs user versionator
+
+DESCRIPTION="C++ data analysis framework and interpreter from CERN"
+HOMEPAGE="http://root.cern.ch/"
+DOC_URI="ftp://root.cern.ch/${PN}/doc"
+
+SLOT="0/$(get_version_component_range 1-3 ${PV})"
+LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
+IUSE="+X afs avahi doc emacs examples fits fftw gdml geocad
+ graphviz http kerberos ldap +math +memstat mpi mysql odbc
+ +opengl openmp oracle postgres prefix pythia6 pythia8
+ python qt4 shadow sqlite ssl table +tiff xinetd xml xrootd"
+
+# TODO: add support for: davix
+# TODO: ROOT-6 supports x32 ABI, but half of its dependencies doesn't
+# TODO: unbundle: cling, vdt
+
+REQUIRED_USE="
+ !X? ( !opengl !qt4 !tiff )
+ mpi? ( math !openmp )
+ openmp? ( math !mpi )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+CDEPEND="
+ app-arch/xz-utils:0=
+ >=dev-lang/cfortran-4.4-r2
+ dev-libs/libpcre:3=
+ media-fonts/dejavu
+ media-libs/freetype:2=
+ media-libs/libpng:0=
+ >=sys-devel/clang-3.4:=
+ sys-libs/zlib:0=
+ virtual/shadow
+ X? (
+ media-libs/ftgl:0=
+ media-libs/glew:0=
+ x11-libs/libX11:0=
+ x11-libs/libXext:0=
+ x11-libs/libXpm:0=
+ || (
+ media-libs/libafterimage:0=[gif,jpeg,png,tiff?]
+ >=x11-wm/afterstep-2.2.11:0=[gif,jpeg,png,tiff?]
+ )
+ opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps:0= )
+ qt4? (
+ dev-qt/qtgui:4=
+ dev-qt/qtopengl:4=
+ dev-qt/qt3support:4=
+ dev-qt/qtsvg:4=
+ dev-qt/qtwebkit:4=
+ dev-qt/qtxmlpatterns:4=
+ )
+ x11-libs/libXft:0=
+ )
+ afs? ( net-fs/openafs )
+ avahi? ( net-dns/avahi:0= )
+ emacs? ( virtual/emacs )
+ fits? ( sci-libs/cfitsio:0= )
+ fftw? ( sci-libs/fftw:3.0= )
+ geocad? ( <sci-libs/opencascade-6.8.0:= )
+ graphviz? ( media-gfx/graphviz:0= )
+ http? ( dev-libs/fcgi:0= )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap:0= )
+ math? (
+ sci-libs/gsl:0=
+ sci-mathematics/unuran:0=
+ mpi? ( virtual/mpi )
+ )
+ mysql? ( virtual/mysql )
+ odbc? ( || ( dev-db/libiodbc:0= dev-db/unixODBC:0= ) )
+ oracle? ( dev-db/oracle-instantclient-basic:0= )
+ postgres? ( dev-db/postgresql:= )
+ pythia6? ( sci-physics/pythia:6= )
+ pythia8? ( >=sci-physics/pythia-8.1.80:8= )
+ python? ( ${PYTHON_DEPS} )
+ sqlite? ( dev-db/sqlite:3= )
+ ssl? ( dev-libs/openssl:0= )
+ xml? ( dev-libs/libxml2:2= )
+ xrootd? ( >=net-libs/xrootd-3.3.5:0= )
+"
+
+# TODO: ruby is not yet ported to ROOT-6, reenable when (if?) ready
+# ruby? (
+# dev-lang/ruby:=
+# dev-ruby/rubygems:=
+# )
+
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+RDEPEND="${CDEPEND}
+ xinetd? ( sys-apps/xinetd )"
+
+PDEPEND="doc? ( ~app-doc/root-docs-${PV}[http=,math=] )"
+
+# install stuff in ${P} and not ${PF} for easier tracking in root-docs
+DOC_DIR="/usr/share/doc/${P}"
+
+OC_UNSUPPORTED="6.8.0"
+
+die_compiler() {
+ eerror "You are using a $(tc-getCXX) without C++$1 capabilities"
+ die "Need one of the following C++$1 capable compilers:\n"\
+ " >=sys-devel/gcc[cxx]-$2\n"\
+ " >=sys-devel/clang-$3\n"\
+ " >=dev-lang/icc-$4"
+}
+
+# check compiler to satisfy minimal versions
+# $1 - std version
+# $2 - g++
+# $3 - clang++
+# $4 - icc/icpc
+check_compiler() {
+ case "$(tc-getCXX)" in
+ *clang++*)
+ version_is_at_least "$3" "$(has_version sys-devel/clang)" || die_compiler "$1" "$2" "$3" "$4"
+ ;;
+ *g++*)
+ version_is_at_least "$2" "$(gcc-version)" || die_compiler "$1" "$2" "$3" "$4"
+ ;;
+ *icc*|*icpc*)
+ version_is_at_least "$4" "$(has_version dev-lang/icc)" || die_compiler "$1" "$2" "$3" "$4"
+ eerror "ROOT-6 is known not to build with ICC."
+ eerror "Please report any isuses upstream."
+ ;;
+ *)
+ ewarn "You are using an unsupported compiler."
+ ewarn "Please report any issues upstream."
+ ;;
+ esac
+}
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ echo
+ elog "There are extra options on packages not yet in Gentoo:"
+ elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite,"
+ elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
+ elog "You can use the env variable EXTRA_ECONF variable for this."
+ elog "For example, for SRP, you would set: "
+ elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\""
+ echo
+
+ enewgroup rootd
+ enewuser rootd -1 -1 /var/spool/rootd rootd
+
+ if use math; then
+ if use openmp; then
+ if [[ "$(tc-getCXX)" == *g++* && "$(tc-getCXX)" != *clang++* ]] && ! tc-has-openmp; then
+ ewarn "You are using a g++ without OpenMP capabilities"
+ die "Need an OpenMP capable compiler"
+ else
+ export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
+ fi
+ elif use mpi; then
+ export USE_MPI=1 USE_PARALLEL_MINUIT2=1
+ fi
+ fi
+
+ # c++11 support is mandatory
+ check_compiler "11" "4.8" "3.4" "13"
+
+ # Active version of opencascade may be >= $OC_UNSUPPORTED,
+ # so we need to eselect proper version (it must exist due to DEPEND requirement)
+ if use geocad; then
+ oc_current=$(eselect opencascade show)
+ # Proceed only if active version is unsupported
+ if version_is_at_least "${OC_UNSUPPORTED}" "${oc_current}"; then
+ local -a vlist
+ vlist=( $(version_sort $(eselect opencascade list | awk '/^ / { print $2 }')) )
+ local i
+ # search for higehr version < $OC_UNSUPPORTED
+ # list is sorted acsending, so loop backwards
+ for (( i=$(( ${#vlist[@]} -1 )); i>=0; i-- )); do
+ version_is_at_least "${OC_UNSUPPORTED}" "${vlist[i]}" || break
+ done
+ [[ $i == "-1" ]] && die "No suitable opencascade eselect slot is available (<${OC_UNSUPPORTED})"
+
+ einfo "Switching opencascade to supported slot: ${oc_current} -> ${vlist[i]}"
+ eselect opencascade set ${vlist[i]} > /dev/null || die "eselect opencascade set ${vlist[i]} failed!"
+ else
+ # forget it, effectively disabling eselect cleanup
+ unset oc_current
+ fi
+ fi
+}
+
+src_prepare() {
+ # Second version of makepch is required in order to generate
+ # PCH file appropriate for Gentoo include headers layout.
+ # This can be done only at install stage, when files are placed
+ # as appropriate. Premature modification of makepch.sh will
+ # broke build process, however.
+ cp "etc/dictpch/makepch.sh" "etc/dictpch/makepch-gentoo.sh" || die
+
+ epatch \
+ "${FILESDIR}"/${PN}-5.28.00b-glibc212.patch \
+ "${FILESDIR}"/${PN}-5.32.00-afs.patch \
+ "${FILESDIR}"/${PN}-5.32.00-cfitsio.patch \
+ "${FILESDIR}"/${PN}-5.32.00-chklib64.patch \
+ "${FILESDIR}"/${PN}-5.34.13-desktop.patch \
+ "${FILESDIR}"/${PN}-5.34.13-unuran.patch \
+ "${FILESDIR}"/${PN}-6.00.01-dotfont.patch \
+ "${FILESDIR}"/${PN}-6.00.01-geocad.patch \
+ "${FILESDIR}"/${PN}-6.00.01-llvm.patch \
+ "${FILESDIR}"/${PN}-6.00.01-nobyte-compile.patch \
+ "${FILESDIR}"/${PN}-6.00.01-prop-flags.patch \
+ "${FILESDIR}"/${PN}-6.02.05-dictpch.patch \
+ "${FILESDIR}"/${PN}-6.02.05-xrootd4.patch
+
+ # make sure we use system libs and headers
+ rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die
+ rm -r graf2d/asimage/src/libAfterImage || die
+ rm -r graf3d/ftgl/{inc,src} || die
+ rm -r graf2d/freetype/src || die
+ rm -r graf3d/glew/{inc,src} || die
+ rm -r core/pcre/src || die
+ rm -r math/unuran/src/unuran-*.tar.gz || die
+ LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | \
+ xargs -0 rm || die
+ rm -r core/lzma/src/*.tar.gz || die
+ rm graf3d/gl/{inc,src}/gl2ps.* || die
+ sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' \
+ graf3d/gl/Module.mk || die
+
+ # In Gentoo, libPythia6 is called libpythia6
+ # iodbc is in /usr/include/iodbc
+ # pg_config.h is checked instead of libpq-fe.h
+ sed -i \
+ -e 's:libPythia6:libpythia6:g' \
+ -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
+ -e 's:libpq-fe.h:pg_config.h:' \
+ configure || die "adjusting configure for Gentoo failed"
+
+ # prefixify the configure script
+ sed -i \
+ -e 's:/usr:${EPREFIX}/usr:g' \
+ configure || die "prefixify configure failed"
+
+ # CSS should use local images
+ sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed"
+
+ # QTDIR only used for qt3 in gentoo, and configure looks for it.
+ unset QTDIR
+}
+
+# NB: ROOT uses bundled LLVM, because it is patched and API-incompatible with
+# system LLVM.
+# NB: As of 6.00.0.1 cmake is not ready as it can't fully replace configure,
+# e.g. for afs and geocad.
+
+src_configure() {
+ local -a myconf
+ # Some compilers need special care
+ case "$(tc-getCXX)" in
+ *clang++*)
+ myconf=(
+ --with-clang
+ --with-f77="$(tc-getFC)"
+ )
+ ;;
+ *icc*|*icpc*)
+ # For icc we need to provide architecture manually
+ # and not to tamper with tc-get*
+ use x86 && myconf=( linuxicc )
+ use amd64 && myconf=( linuxx8664icc )
+ ;;
+ *) # gcc goes here too
+ myconf=(
+ --with-cc="$(tc-getCC)"
+ --with-cxx="$(tc-getCXX)"
+ --with-f77="$(tc-getFC)"
+ --with-ld="$(tc-getCXX)"
+ )
+ ;;
+ esac
+
+ # the configure script is not the standard autotools
+ myconf+=(
+ --prefix="${EPREFIX}/usr"
+ --etcdir="${EPREFIX}/etc/root"
+ --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}"
+ --docdir="${EPREFIX}${DOC_DIR}"
+ --tutdir="${EPREFIX}${DOC_DIR}/examples/tutorials"
+ --testdir="${EPREFIX}${DOC_DIR}/examples/tests"
+ --disable-builtin-afterimage
+ --disable-builtin-ftgl
+ --disable-builtin-freetype
+ --disable-builtin-glew
+ --disable-builtin-pcre
+ --disable-builtin-zlib
+ --disable-builtin-lzma
+ --disable-werror
+ --enable-explicitlink
+ --enable-shared
+ --enable-soversion
+ --fail-on-missing
+ --nohowto
+ --with-afs-shared=yes
+ --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps"
+ $(use_enable X x11)
+ $(use_enable X asimage)
+ $(use_enable X xft)
+ $(use_enable afs)
+ $(use_enable avahi bonjour)
+ $(use_enable fits fitsio)
+ $(use_enable fftw fftw3)
+ $(use_enable gdml)
+ $(use_enable geocad)
+ $(use_enable graphviz gviz)
+ $(use_enable http)
+ $(use_enable kerberos krb5)
+ $(use_enable ldap)
+ $(use_enable math genvector)
+ $(use_enable math gsl-shared)
+ $(use_enable math mathmore)
+ $(use_enable math minuit2)
+ $(use_enable math roofit)
+ $(use_enable math tmva)
+ $(use_enable math vc)
+ $(use_enable math vdt)
+ $(use_enable math unuran)
+ $(use_enable memstat)
+ $(use_enable mysql)
+ $(usex mysql "--with-mysql-incdir=${EPREFIX}/usr/include/mysql" "")
+ $(use_enable odbc)
+ $(use_enable opengl)
+ $(use_enable oracle)
+ $(use_enable postgres pgsql)
+ $(use_enable prefix rpath)
+ $(use_enable pythia6)
+ $(use_enable pythia8)
+ $(use_enable python)
+ $(use_enable qt4 qt)
+ $(use_enable qt4 qtgsi)
+ $(use_enable shadow shadowpw)
+ $(use_enable sqlite)
+ $(use_enable ssl)
+ $(use_enable table)
+ $(use_enable tiff astiff)
+ $(use_enable xml)
+ $(use_enable xrootd)
+ ${EXTRA_ECONF}
+ )
+
+ # usex can't be used here, because pg_config may be not
+ # installed with USE="-postgres"
+ use postgres && myconf+=( --with-pgsql-incdir=$(pg_config --includedir) )
+
+ ./configure ${myconf[@]} || die "configure failed"
+}
+
+src_compile() {
+ emake \
+ OPT="${CXXFLAGS}" \
+ F77OPT="${FFLAGS}" \
+ ROOTSYS="${S}" \
+ LD_LIBRARY_PATH="${S}/lib"
+ use emacs && elisp-compile build/misc/*.el
+}
+
+daemon_install() {
+ local daemons="rootd proofd"
+ dodir /var/spool/rootd
+ fowners rootd:rootd /var/spool/rootd
+ dodir /var/spool/rootd/{pub,tmp}
+ fperms 1777 /var/spool/rootd/{pub,tmp}
+
+ local i
+ for i in ${daemons}; do
+ newinitd "${FILESDIR}"/${i}.initd ${i}
+ newconfd "${FILESDIR}"/${i}.confd ${i}
+ done
+ if use xinetd; then
+ insinto /etc/xinetd
+ doins "${S}"/etc/daemons/{rootd,proofd}.xinetd
+ fi
+}
+
+desktop_install() {
+ cd "${S}"
+ echo "Icon=root-system-bin" >> etc/root.desktop
+ domenu etc/root.desktop
+ doicon build/package/debian/root-system-bin.png
+
+ insinto /usr/share/icons/hicolor/48x48/mimetypes
+ doins build/package/debian/application-x-root.png
+
+ insinto /usr/share/icons/hicolor/48x48/apps
+ doicon build/package/debian/root-system-bin.xpm
+}
+
+cleanup_install() {
+ # Cleanup of files either already distributed or unused on Gentoo
+ pushd "${ED}" > /dev/null
+ rm usr/share/root/fonts/LICENSE || die
+ rm etc/root/proof/*.sample || die
+ rm -r etc/root/daemons || die
+ # these should be in PATH
+ mv etc/root/proof/utils/pq2/pq2* usr/bin/ || die
+ rm ${DOC_DIR#/}/{INSTALL,LICENSE} || die
+ use examples || rm -r ${DOC_DIR#/}/examples || die
+
+ # clean hardcoded sandbox paths
+ rm etc/root/dictpch/allCppflags.txt.tmp || die
+ sed -i "s|${S}/||" etc/root/cling/llvm/Config/llvm-config.h || die
+ # regenerate pch for Gentoo headers layout
+ rm "etc/root/allDict.cxx.pch" || die
+ sed -i 's|etc/dictpch|etc/root/dictpch|' etc/root/dictpch/allLinkDefs.h || die
+ sed -i 's|etc/cling|etc/root/cling|' etc/root/dictpch/allHeaders.h || die
+ sed -i "s|ROOTDIR_TEMPLATE|${ED}|" etc/root/dictpch/makepch-gentoo.sh || die
+ etc/root/dictpch/makepch-gentoo.sh etc/root/allDict.cxx.pch || die "PCH generation failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README.md
+
+ echo "LDPATH=${EPREFIX%/}/usr/$(get_libdir)/root" > 99root
+ use pythia8 && echo "PYTHIA8=${EPREFIX%/}/usr" >> 99root
+
+ if use python; then
+ echo "PYTHONPATH=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root
+ python_optimize "${D}/usr/$(get_libdir)/root"
+ fi
+ use emacs && elisp-install ${PN} build/misc/*.{el,elc}
+ if use examples; then
+ # these should really be taken care of by the root make install
+ insinto ${DOC_DIR}/examples/tutorials/tmva
+ doins -r tmva/test
+ fi
+ doenvd 99root
+
+ # The build system installs Emacs support unconditionally in the wrong
+ # directory. Remove it and call elisp-install in case of USE=emacs.
+ rm -r "${ED}"/usr/share/emacs || die
+
+ daemon_install
+ desktop_install
+ cleanup_install
+
+ # do not copress files used by ROOT's CLI (.credit, .demo, .license)
+ docompress -x "${DOC_DIR}"/{CREDITS,examples/tutorials}
+ # needed for .license command to work
+ dosym "${ED}"usr/portage/licenses/LGPL-2.1 "${DOC_DIR}/LICENSE"
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+
+ # restort opencascade eselect slot
+ if use geocad && [[ -n ${oc_current} ]]; then
+ einfo "Switching to user set slot: $(eselect opencascade show) -> ${oc_current}"
+ eselect opencascade set ${oc_current} > /dev/null || eerror "eselect opencascade set ${vlist[i]} failed!"
+ unset oc_current
+ fi
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}