summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2013-10-29 17:00:46 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2013-10-29 17:00:46 +0000
commit8fe80d20e2c0fa1cc1eb9dbac88cd34112c05c9f (patch)
tree4cc44e92e7f94d9279eb08ac46d753c119abf7be /sci-physics
parentAdd ruby20 target. (diff)
downloadhistorical-8fe80d20e2c0fa1cc1eb9dbac88cd34112c05c9f.tar.gz
historical-8fe80d20e2c0fa1cc1eb9dbac88cd34112c05c9f.tar.bz2
historical-8fe80d20e2c0fa1cc1eb9dbac88cd34112c05c9f.zip
Version bump from sci overlay
Package-Manager: portage-2.2.7-prefix/cvs/Linux x86_64 Manifest-Sign-Key: 0x13CB1360
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/root/ChangeLog26
-rw-r--r--sci-physics/root/Manifest26
-rw-r--r--sci-physics/root/root-5.34.10-r2.ebuild408
3 files changed, 442 insertions, 18 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
index ae1bc4be3176..236294d65b27 100644
--- a/sci-physics/root/ChangeLog
+++ b/sci-physics/root/ChangeLog
@@ -1,7 +1,31 @@
# ChangeLog for sci-physics/root
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.123 2013/09/05 19:44:52 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.124 2013/10/29 17:00:37 bicatali Exp $
+ 15 Oct 2013; Andrew Savchenko <bircoph@gmail.com> -root-5.34.10.ebuild,
+ -root-5.34.10-r1.ebuild, root-5.34.10-r2.ebuild, root-9999.ebuild,
+ -files/root-5.32.00-nobyte-compile.patch, -files/root-9999-cling.patch:
+ Remove old versions and unused patches. WIP on live ebuild.
+
+*root-5.34.10-r2 (07 Oct 2013)
+
+ 07 Oct 2013; Andrew Savchenko <bircoph@gmail.com> +root-5.34.10-r2.ebuild,
+ metadata.xml:
+ Add minimal USE flag for minimal and gminimal configurations. Use
+ nohouwto to remove useless messages.
+
+*root-5.34.10-r1 (06 Oct 2013)
+
+ 06 Oct 2013; Andrew Savchenko <bircoph@gmail.com> +root-5.34.10-r1.ebuild:
+ Properly use c++0x and oracle deps.
+
+*root-5.34.10 (04 Oct 2013)
+
+ 04 Oct 2013; Andrew Savchenko <bircoph@gmail.com> -root-5.34.09.ebuild,
+ +root-5.34.10.ebuild:
+ Version bump per bug 486620 (changes by Oliver Freyermuth).
+ Remove old.
+
05 Sep 2013; Michał Górny <mgorny@gentoo.org> root-5.34.09.ebuild:
Clean up PYTHON_COMPAT from old implementations.
diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest
index 7d3a20b40620..502e4e5e3e3c 100644
--- a/sci-physics/root/Manifest
+++ b/sci-physics/root/Manifest
@@ -20,7 +20,9 @@ AUX rootd.confd 199 SHA256 7b69f646ce0b2546ce797ec4a05949b02302dc5f4e41d2e8896ed
AUX rootd.initd 732 SHA256 42b9fe01aa41965359c16d4b23f874cea65806d8c7ec11215dbba95ab80e90f3 SHA512 65152830554ed509db7e5545bffb4976a608ee576d62ac648fc5520ff96ea5062c9b20c195dad2cf8dc2b34079e6beb252d427030825e14dc867ae4599bc64b8 WHIRLPOOL ec03db863e079b3f910ec0f86b036a828b2a5804f6bd6e0398e5207000f1ca10b6b1e71504d6c6b3a2d216b20d7db27d2425070f9d6bb0696ef384dfe8526fc0
DIST ROOTUsersGuide.pdf 9124822 SHA256 70a96c4a2573dc0d320142f86993ecfda24caa755e910340a3014120f2997c8b SHA512 c3b4c18ef2e13968afdf67c6003249d4cfe6ea661fa32ce25127361bae7e3376a25cd3b11591292f3975bcd8105291aca52f2f6214c9fe45f4bd6e7e44d54b25 WHIRLPOOL 11256ba7837d17e5795cf71ac32db43d7d8f797bfbddf5f71612fe2f8fb2e01354372c0ea8f0bc22868881eb0bfdc8a3e3f1b05293d2750d293aa4d59217b2e6
DIST ROOTUsersGuideA4-5.34.09.pdf 11180089 SHA256 2284c74256bb2e4c2b549525849806ad73a910ad6c52d1424cba922109f7acbf SHA512 eb4371ea992cccbd176be8616dac2a0c9c02c9fa102736fe025bcdb6e5bcf485483bf4e290d2586d48be1a38b02d76c6ac1c422c272c7a1aab5a3e07d8d0a2cf WHIRLPOOL 7915378699d445dc3965d47a2f911bd2e0b3fd3c89934127dcfba8b64ae80cdb5d44776e14f64b28b58adc22557abbd860bf303f39af27a9f02bc5963b5bc672
+DIST ROOTUsersGuideA4-5.34.10.pdf 11182577 SHA256 f1fecb8620480e4d3a2657597e0c27ff492b438da5e7fbd51c66a3c7ac502cc8 SHA512 559bd0cc17fc3d72335aa4d6c7dde32cef9617065504477a6ea2a13fc2e41a771149568ac7ba2eac212548b735f9eba3a6175455b92c599ae80975992e1d74c3 WHIRLPOOL ce22b084860096cf4db6bdb4e14f10442fa21d7c6ad1f5526f7caef3d7e4775417c1a731b090214681b51ba4377387777547ca9dee893f096a2635a477f7eb09
DIST ROOTUsersGuideLetter-5.34.09.pdf 11197119 SHA256 f9d7d650c5c22e10ce834a43a45c9cf6ccd43a2463308c8a6eccfb7a76254d15 SHA512 88eb97fd0fcaaf91f302d1dbf0fd309f2191c51a32d93253d96296e2968bf7516d1ebd4a02ed8efd4990a0f1e4e65d0797f75b3c77db71610a5f0113f747d245 WHIRLPOOL db11020a26fdd44c21c2fbc0a01870ed49f9afe28754bed1f76dd2a422faea013753e7ac3f408e5a5e36111277d849e1fe5e30eff04aa4238d99c2c1a83cae70
+DIST ROOTUsersGuideLetter-5.34.10.pdf 11200245 SHA256 8eb972b3701e5fe1757a15974a73c26ff4555a848c7eed242d32a0df3a24b091 SHA512 89e9ff73907c26c5a0008acdeb2a07297d42b74ce8d4fb1d0ebdb22be89ebcffc631f501ff7a438a3d5c992221c05e9941996db63e23301dcb16c91d02a94522 WHIRLPOOL e0f13f05fa9d42e22a491d821380547cbf7cdcc5b2f7223192a82abe3f8b7509c1ab80c47f7da9c70afb7084991d33015cab649fcaa46891933e56630f87f397
DIST RooFit_Users_Manual_2.91-33.pdf 1330062 SHA256 101c4e4c41962238fcabf1caa86cafc51241a1800594491b2e62ef8b565a5646 SHA512 732d7dea3541b51e5f0b9b5b70dae57e1bdbb2504c4222d5e5095ec0f9b67307011c1f31c2c95be419b53dd8426f52f62f6c9370084208176a2ed3d7f25d783b WHIRLPOOL 033897bef4bdb13246a81ea6749f7895e6c4d639752e932130234ad9153bb399a4e5d416237850da27f139d3cccc53d9adb7a077abf20d257ce057157d6c3696
DIST TMVAUsersGuide-v4.03.pdf 3913533 SHA256 0cdbb4a2d19eb7a86e2911cfa73a905932e862d6c94be10b7662a9355b0241af SHA512 d8bb2ce35ef32c4877059898f56513db0b1057924e21935a3d3a6f114748e167984c43fd2ec7e54197fccff875540543968fea9a8e75bf63f5f13521724a7ddb WHIRLPOOL 0a3e2e61e8e32f3a22757178adf033f9fbb89014aecd4df7f8bd49677d772bb3ad2c0f5526259611879f6bb20df647c01e23f53ade483d7a3e2242f8aee6c6aa
DIST info.png 2060 SHA256 51de6661250f3fb71c6c8250cbc4bdc4dc4283cc90240b4dc1ee6168e8d40279 SHA512 81a730eefbe7a7e15d5840491402c7644bf7ed5d5f8f3830ed9457b343cc7882480e993ea84aef93500742cd0fe8469859cd2c925e5582b91ef56406804ae276 WHIRLPOOL 02ea6daf9e3d21947ebf5dd01c455a13f2fcbf9981be34a150056a3510122ca49e3d137d4f242c7218d4d06ace09566d513a04f09071723ac244f5a38e982bac
@@ -28,28 +30,18 @@ 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.32.04.source.tar.gz 55526502 SHA256 0c0130ba3d74b86caee3071deeceb46545cfde34def8ad2107601e133506acf2 SHA512 796d7f6fe92700232da3fcaac042438e13c13e504179a7375105b2ff06e1fac571ef4d59f270d73844b2a481b0762a873985d22eee2b1a0b156071b777d4417a WHIRLPOOL c5ce0f81331e08b3f79e97c894bff60185bba562388e789d3d1716d3523045a55c24e1cebded4ad19a09023c4b5275fd7d44acb726a1f248a9616ed95addd609
DIST root_v5.34.09.source.tar.gz 66507220 SHA256 a99cd7f34bf25a52e63228f3f7c245afa9e55420bfb4ce7e78d20c6475a4ea86 SHA512 6a87bc07c157d81649cc02feb3c2a5ab9ddfd0bef7c11893d5d65890b3855d14e6a6db6d2a76d91fcce3fe893091e76b4f477ac05d788aa759dbd34362895a7c WHIRLPOOL 671c7578455aaa5114292496d2cadd0d3ff33bc1dcfb7f590c1febd78db5c67175d35e3c4dc26f64ba1a5b1ca057b4b2b874bbb203e44093ed54ef0bfbd43060
+DIST root_v5.34.10.source.tar.gz 66685508 SHA256 a70c46f382e6557765c4741a367bded9b4041f669e9c313c4201ef66f1ae5d9d SHA512 c51cab511ab771d174f8d6c5ea6d3a047179e9412c508ec31f5a501f71309799dbe863e2d6e72c234a2c973201e3e5131f538c153c5fe68e8a998fe5a59fde11 WHIRLPOOL 677bfeb4bfed1f39be9a7292ab80a2fd1e58e89a4090d4c3b7799397fcb140c5c5f7c421d591e78999218c250f40f232775f7b3a3e680b251d54d5efe5704dc8
DIST rootdrawing-logo.png 15051 SHA256 1dfd913cad53a3ebd6bf560d14df918cab5a295cc7d155944a8e27284af83a6b SHA512 14aa13ebfed3c9412d7d7d04c250740b25fe3af6bcb07e618045a5cec2dc23698a251fd7df2db1a6c37331084db99b029b387ea81c25ac825fc7ae10ad164a68 WHIRLPOOL 877a959a5aead73ba69dbb805c9869cbd6a047ea476bd4e7fef80781563a61d20dad49dd4d8b0005bfc58e8f7c7d38efbb3e085a95974feb81dfc9e339c18741
EBUILD root-5.32.03-r2.ebuild 11352 SHA256 8284393d3b88aac2ee950aca43de30d0f62c1306ebf3a0df220915b19e905064 SHA512 80e21ac9b8865f4e3e862bf7d8126a25e8f15c071b54a075d108aca0eb9266e2a32e32a01d61b1f57be3899a26c56ad797f8186e827e50f24bc9527677737ffb WHIRLPOOL ba5152f57bc718ace5a82deab8daeed43c69aef6f131218099e875f6724e96b1045486adf74fcb79ee1d6b5b3646f4e5495434ce114482d405821ef4dbf36601
EBUILD root-5.32.04.ebuild 11351 SHA256 b31258ba2d6f2787f1e2b8e0b0c956ed3ac3169a6b63fc14ac89ad490fce6a35 SHA512 1aac1598858ab3f23599dd403a278438f32390c756b6a8c97752e1a942b7986a91d767a17998abe5673bef77dada10274dc7f489347d5a5a38c51a54b45f328f WHIRLPOOL db527445495b93a4be6c350cab03c014047ada143a5b2892fd8230fc2b826099378a6b8398619b753be0c948e8350766e8fe86b00e2b9b9e7d3e2dab03ff19f6
EBUILD root-5.34.09.ebuild 11673 SHA256 628ca1a69fd97448a40d32a0acfa0afbd85694d758dc9433560420349ced495c SHA512 d1782da829579be169a78438ea940bddd7ead34670e8e43f9e3c423caf28f9a9ecb6d4cb1693eb7caa283ea688ede815505a66687d02d41a6439bb4f0297892f WHIRLPOOL 32c9d4708535197c60c1c42ec6f612ad71979a87fb631e99373883c79b6aedc1cd0bb9df28c20dd5be280e22f3e39a024606ba3bfbcef8922161a160232151c1
-MISC ChangeLog 36329 SHA256 b9d4354f3e05e2b44dd651cab5e52c911a3112f1e6c988f064c0c00db66c1907 SHA512 38138ba97d07282b87915362d0b9b8bd8cf675e7d3b23f36a6cfacd5e0f174c9f0c868fb63249daad80d6dd04ff6897ea9c4381ffec52fdd6cf0e00c47aec5d2 WHIRLPOOL d24508198adb695c76840c2559c097737821e256a659e941a024063c57acd5d0a9618975f9fcdcd4583c47ef5325f88025c4551419c229ebdbcf7b585cfc9fbf
+EBUILD root-5.34.10-r2.ebuild 12256 SHA256 17fbf2333b20fe7285491bd4be237e5af434f61f7c4d9ca17afdcce52a9f6768 SHA512 45a1153e37895261ad6d3cb25b92baab25881703da975362fa58acdfa1f652dfb9d0e22b12194b07fd8af3b561851291cc6d993b921373afa39d3ceecb4a6449 WHIRLPOOL 290d052d9c0bc17e993bcfb096cd15352fc18a0a72ba67f4291210d40744d60821d8ee4e35070bc446cf56fbc3e906e408a106ebeb52f01d7122eb53dc6135e7
+MISC ChangeLog 37197 SHA256 a45aeefc3655a5d941047e57fd3c43ddc9528b9205789594a1bd44d0537a9523 SHA512 25051244b4d1792cce8373957cdb4ff1177fcb8c51ea7246df4afbb62765c80cdbdf881ac29c8f90d9e1c9ee6a1e55987df3715b36cd1b7d45d027733375c66c WHIRLPOOL b33cb75e72acfdaad10646f49de9c52dcff9eccba1e0f313da2da5271d4eba734af2e8e39c6b167f2e105bb0cb7a5b9c61385dddd7756c68420127b6c74cdad9
MISC metadata.xml 1719 SHA256 7b5eda9813292066484d4d7a5741c6122f7259cf7a6ca37aa7d22219badc9c8f SHA512 f195395b8ba421c945678d54823d021779610e06e4f2af0e45a4c4a54a4f5c71e6d73feecafdc2b729a6149b5618a47ff9b334386c31c3547be7ede1638cb4e2 WHIRLPOOL 9728d7b6fe2a6da41168fb812d35c13278a5c8daaa611e94f971617f07bcb5edefa9cea852e2d6c885b896c494541c7152c04efafe5d172456049f945c128da4
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.21 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iQJ8BAEBCABmBQJSKN+CXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
-MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOQ5sQAIwN+nShqZXYUPqVYNO5xR4U
-GeXgZZLen3q+dYz4MRWFK9lCf2uVe37G1mRuYem7Y0g0rTLk7Eda6MU4r0uare+q
-Xg7P5E2q+L2DJMBWI9c15lZLCExcXrMkox/cs2h/dsnNfBSVgi6itnAoVr5OkShP
-luXQYzzoZn6DD3Ou5vmu0YuDKLp57g256oLZhdq5+l5s8nP5nxLvNGoGRp/EhQA8
-f9W5OvI6o3gnwScgbnZopWByH3R7QSZ0Wh6CuP8XTEY+n66sc5bP0ciOv9M+1xgc
-pmkmKG21bIut6H0Iw2k4KEpO7UZ37vd9+XXCuL9bxjHv3D19fKVzmYpyVuEJWoE1
-5/L4Bg+331rmz1GcVyhck6DARwXqVx0RxMzy+gm0tsDgzEgmJlbzPljJ1sSkKRnU
-6HFrX02i9b495mF+oS6ShYtQA4pddC/TiPYcZ81DeLyKmhZ9/C7T3gVKqw3zWFdz
-vjIEEns7QKmVIpD9t8licpJoOMQHOY3pVt9mPiD42PRdDrMXa9ZAMx+F0E2iBdJ3
-HGaRvA34OJVwPbBBzD1QgTzYvkeTyNOfeZ6aUD5ydiRtP1hKrNtkhqjq+X+1nSCA
-ec/F/Skr7lL1xxAz3Pg+iEqwqsGASzhVASEMewH13tns9AFn1TvFV439PjcQshym
-M0CcXfRcZh/ga5eEY0kN
-=rO4H
+iEYEAREIAAYFAlJv6bkACgkQ1ycZbhPLE2DBIwCfffby0Q1Yu0Du6O6QPqVmK6rj
+pZkAnR9LTXKCb17hKNussB14P2jocff1
+=ZAyS
-----END PGP SIGNATURE-----
diff --git a/sci-physics/root/root-5.34.10-r2.ebuild b/sci-physics/root/root-5.34.10-r2.ebuild
new file mode 100644
index 000000000000..8d7621fe5792
--- /dev/null
+++ b/sci-physics/root/root-5.34.10-r2.ebuild
@@ -0,0 +1,408 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.10-r2.ebuild,v 1.1 2013/10/29 17:00:37 bicatali Exp $
+
+EAPI=5
+
+if [[ ${PV} == "9999" ]] ; then
+ _GIT=git-2
+ EGIT_REPO_URI="http://root.cern.ch/git/root.git"
+ SRC_URI=""
+ KEYWORDS=""
+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_{6,7} )
+inherit elisp-common eutils fdo-mime fortran-2 ${_GIT} multilib python-single-r1 toolchain-funcs user versionator
+
+ROOFIT_DOC_PV=2.91-33
+TMVA_DOC_PV=4.03
+PATCH_PV=5.28.00b
+PATCH_PV2=5.32.00
+PATCH_PV3=5.34.05
+
+DESCRIPTION="C++ data analysis framework and interpreter from CERN"
+HOMEPAGE="http://root.cern.ch/"
+SRC_URI="${SRC_URI}
+ !minimal? ( doc? (
+ math? (
+ ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
+ http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )
+ metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideA4.pdf -> ROOTUsersGuideA4-${PV}.pdf )
+ !metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideLetter.pdf -> ROOTUsersGuideLetter-${PV}.pdf )
+ htmldoc? (
+ http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png
+ http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/root-banner.png
+ http://root.cern.ch/drupal/sites/all/themes/newsflash/images/info.png )
+ ) )"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+IUSE="+X afs avahi c++0x doc emacs examples fits fftw graphviz htmldoc
+ kerberos ldap +math +metric minimal mpi mysql odbc +opengl openmp oracle postgres
+ prefix pythia6 pythia8 python qt4 +reflex ruby sqlite ssl xinetd xml xrootd"
+
+REQUIRED_USE="
+ !X? ( !opengl !qt4 )
+ htmldoc? ( doc )
+ mpi? ( math !openmp )
+ openmp? ( math !mpi )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+CDEPEND="
+ app-arch/xz-utils
+ >=dev-lang/cfortran-4.4-r2
+ dev-libs/libpcre
+ media-fonts/dejavu
+ media-libs/freetype
+ media-libs/giflib
+ media-libs/libpng:0
+ media-libs/tiff:0
+ sys-libs/zlib
+ virtual/jpeg
+ virtual/shadow
+ X? (
+ media-libs/ftgl
+ media-libs/glew
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm
+ !minimal? (
+ || (
+ >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff]
+ >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff]
+ )
+ opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
+ 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
+ )
+ )
+ !minimal? (
+ afs? ( net-fs/openafs )
+ avahi? ( net-dns/avahi )
+ emacs? ( virtual/emacs )
+ fits? ( sci-libs/cfitsio )
+ fftw? ( sci-libs/fftw:3.0 )
+ graphviz? ( media-gfx/graphviz )
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
+ mysql? ( virtual/mysql )
+ odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
+ oracle? ( dev-db/oracle-instantclient-basic )
+ postgres? ( dev-db/postgresql-base )
+ pythia6? ( sci-physics/pythia:6 )
+ pythia8? ( sci-physics/pythia:8 )
+ python? ( ${PYTHON_DEPS} )
+ ruby? (
+ dev-lang/ruby
+ dev-ruby/rubygems )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl )
+ xml? ( dev-libs/libxml2 )
+ xrootd? ( >=net-libs/xrootd-3.2.0 )
+ )"
+
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+RDEPEND="${CDEPEND}
+ reflex? ( dev-cpp/gccxml )
+ xinetd? ( sys-apps/xinetd )"
+
+PDEPEND="htmldoc? ( ~app-doc/root-docs-${PV} )"
+
+S="${WORKDIR}/${PN}"
+
+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
+ use minimal && return
+
+ if use math; then
+ if use openmp; then
+ if [[ $(tc-getCXX)$ == *g++* ]] && ! 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
+ if use c++0x && [[ $(tc-getCXX) == *g++* ]] && \
+ ! version_is_at_least "4.7" "$(gcc-version)"; then
+ eerror "You are using a g++ without C++0x capabilities"
+ die "Need an C++0x capable compiler"
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-${PATCH_PV2}-prop-flags.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV3}-nobyte-compile.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV2}-chklib64.patch \
+ "${FILESDIR}"/${PN}-${PATCH_PV2}-dotfont.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 -f || 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
+ # libungif is called libgif,
+ # 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:ungif:gif: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"
+
+ # QTDIR only used for qt3 in gentoo, and configure looks for it.
+ unset QTDIR
+
+ # Make html docs self-consistent for offline work (based on Fedora spec)
+ if use htmldoc && ! use minimal; then
+ epatch "${FILESDIR}"/${PN}-${PATCH_PV2}-htmldoc.patch
+ # make images local
+ sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/!!' \
+ -i etc/html/ROOT.css || die "htmldoc sed failed"
+ sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/!!' \
+ -i etc/html/ROOT.css || die "htmldoc sed failed"
+ sed 's!http://root.cern.ch/drupal/sites/default/files/!!' \
+ -i etc/html/header.html || die "htmldoc sed failed"
+
+ cp "${DISTDIR}"/{rootdrawing-logo.png,root-banner.png,info.png} etc/html ||
+ die "htmldoc preparation failed"
+ fi
+}
+
+src_configure() {
+ # the configure script is not the standard autotools
+ local mycommonconf="
+ --prefix="${EPREFIX}"/usr \
+ --etcdir="${EPREFIX}"/etc/root \
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \
+ --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \
+ --with-cc=$(tc-getCC) \
+ --with-cxx=$(tc-getCXX) \
+ --with-f77=$(tc-getFC) \
+ --with-ld=$(tc-getCXX) \
+ --nohowto
+ "
+ if use minimal; then
+ ./configure \
+ ${mycommonconf} \
+ $(usex X --gminimal --minimal) \
+ || die "configure failed"
+ return
+ fi
+ # cling is disabled because in requires live llvm and clang
+ ./configure \
+ ${mycommonconf} \
+ --with-afs-shared=yes \
+ --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
+ --disable-builtin-afterimage \
+ --disable-builtin-ftgl \
+ --disable-builtin-freetype \
+ --disable-builtin-glew \
+ --disable-builtin-pcre \
+ --disable-builtin-zlib \
+ --disable-builtin-lzma \
+ --disable-cling \
+ --enable-astiff \
+ --enable-explicitlink \
+ --enable-gdml \
+ --enable-memstat \
+ --enable-shadowpw \
+ --enable-shared \
+ --enable-soversion \
+ --enable-table \
+ --fail-on-missing \
+ $(use_enable X x11) \
+ $(use_enable X asimage) \
+ $(use_enable X xft) \
+ $(use_enable afs) \
+ $(use_enable avahi bonjour) \
+ $(use_enable c++0x c++11) \
+ $(use_enable fits fitsio) \
+ $(use_enable fftw fftw3) \
+ $(use_enable graphviz gviz) \
+ $(use_enable kerberos krb5) \
+ $(use_enable ldap) \
+ $(use_enable math gsl-shared) \
+ $(use_enable math genvector) \
+ $(use_enable math mathmore) \
+ $(use_enable math minuit2) \
+ $(use_enable math roofit) \
+ $(use_enable math tmva) \
+ $(use_enable math unuran) \
+ $(use_enable mysql) \
+ $(use_enable odbc) \
+ $(use_enable opengl) \
+ $(use_enable oracle) \
+ $(use_enable postgres pgsql) \
+ $(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "") \
+ $(use_enable prefix rpath) \
+ $(use_enable pythia6) \
+ $(use_enable pythia8) \
+ $(use_enable python) \
+ $(use_enable qt4 qt) \
+ $(use_enable qt4 qtgsi) \
+ $(use_enable reflex cintex) \
+ $(use_enable reflex) \
+ $(use_enable ruby) \
+ $(use_enable sqlite) \
+ $(use_enable ssl) \
+ $(use_enable xml) \
+ $(use_enable xrootd) \
+ ${EXTRA_ECONF} \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" ROOTSYS="${S}" LD_LIBRARY_PATH="${S}/lib"
+ if use emacs && ! use minimal; then
+ elisp-compile build/misc/*.el || die "elisp-compile failed"
+ fi
+}
+
+doc_install() {
+ cd "${S}"
+ if use doc && ! use minimal; then
+ einfo "Installing user's guides"
+ use metric && dodoc "${DISTDIR}"/ROOTUsersGuideA4-${PV}.pdf || \
+ dodoc "${DISTDIR}"/ROOTUsersGuideLetter-${PV}.pdf
+ use math && dodoc \
+ "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
+ "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
+ fi
+
+ if use examples && ! use minimal; then
+ # these should really be taken care of by the root make install
+ insinto /usr/share/doc/${PF}/examples/tutorials/tmva
+ doins -r tmva/test
+ else
+ rm -r "${ED}"/usr/share/doc/${PF}/examples || die
+ fi
+}
+
+daemon_install() {
+ cd "${S}"
+ 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}
+
+ for i in ${daemons}; do
+ newinitd "${FILESDIR}"/${i}.initd ${i}
+ newconfd "${FILESDIR}"/${i}.confd ${i}
+ done
+ if use xinetd; then
+ insinto /etc/xinetd
+ doins 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
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
+ if ! use minimal; then
+ use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
+ if use python; then
+ echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
+ python_optimize /usr/$(get_libdir)/root
+ fi
+ use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
+ fi
+ doenvd 99root
+
+ # The build system installs Emacs support unconditionally and in the wrong
+ # directory. Remove it and call elisp-install in case of USE=emacs.
+ rm -r "${ED}"/usr/share/emacs
+ if use emacs && ! use minimal; then
+ elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
+ fi
+
+ doc_install
+ daemon_install
+ desktop_install
+
+ # Cleanup of files either already distributed or unused on Gentoo
+ rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die
+ rm "${ED}"usr/share/root/fonts/LICENSE || die
+ pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
+ rm posix/mktypes dll_stl/setup \
+ G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die
+ rm "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die
+ rm "${ED}"/etc/root/proof/*.sample || die
+ rm -r "${ED}"/etc/root/daemons || die
+ popd > /dev/null
+ # these should be in PATH
+ mv "${ED}"etc/root/proof/utils/pq2/pq2* \
+ "${ED}"usr/bin/ || die
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}