summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-06-29 10:45:10 +0000
committerMichael Weber <xmw@gentoo.org>2013-06-29 10:45:10 +0000
commit31a64738ae3bf9cfe4cb9d0c1cc22b85b9279133 (patch)
treeb22680e16e9f193efdc315a2a3a324f7cacb687a /sci-physics
parentVersion bump by Andrew Savchenko, imported from science overlay. (diff)
downloadhistorical-31a64738ae3bf9cfe4cb9d0c1cc22b85b9279133.tar.gz
historical-31a64738ae3bf9cfe4cb9d0c1cc22b85b9279133.tar.bz2
historical-31a64738ae3bf9cfe4cb9d0c1cc22b85b9279133.zip
Version bump by Andrew Savchenko, imported from science overlay.
Package-Manager: portage-2.2.0_alpha185/cvs/Linux x86_64 Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/root/ChangeLog7
-rw-r--r--sci-physics/root/Manifest12
-rw-r--r--sci-physics/root/root-5.34.09.ebuild385
3 files changed, 399 insertions, 5 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
index 35ada3553fa3..556481e04280 100644
--- a/sci-physics/root/ChangeLog
+++ b/sci-physics/root/ChangeLog
@@ -1,6 +1,11 @@
# 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.120 2013/06/11 16:29:51 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.121 2013/06/29 10:45:08 xmw Exp $
+
+*root-5.34.09 (29 Jun 2013)
+
+ 29 Jun 2013; Michael Weber <xmw@gentoo.org> +root-5.34.09.ebuild:
+ Version bump by Andrew Savchenko, imported from science overlay.
11 Jun 2013; SĂ©bastien Fabbro <bicatali@gentoo.org> root-5.34.08.ebuild:
Fixed installation of doc with the new metric flag (bug #472974)
diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest
index 86ca2f28908c..89533404355b 100644
--- a/sci-physics/root/Manifest
+++ b/sci-physics/root/Manifest
@@ -21,7 +21,9 @@ AUX rootd.initd 732 SHA256 42b9fe01aa41965359c16d4b23f874cea65806d8c7ec11215dbba
DIST ROOTUsersGuide-5.34.07.pdf 10875308 SHA256 a552a2dc053be7ceba8e8c853a707942d3b28e324cbe8d0e25ad779bd3776f80 SHA512 3fa3b806dfd51dd0efce3b5f11b19769690c5ecfd489b7c4ef945f56f09c2c8a4aee70901790855609519c132d6079de75a08e3ef0ae633686e254eacbeb00b7 WHIRLPOOL 92fbf7a596193cdaac898b09c627860477423209d4c46c97a112181f04492c002f6cf0738cfd920cd39715395e8b6cb4bbf7f04208d2522b513b1c5018a8d11f
DIST ROOTUsersGuide.pdf 9124822 SHA256 70a96c4a2573dc0d320142f86993ecfda24caa755e910340a3014120f2997c8b SHA512 c3b4c18ef2e13968afdf67c6003249d4cfe6ea661fa32ce25127361bae7e3376a25cd3b11591292f3975bcd8105291aca52f2f6214c9fe45f4bd6e7e44d54b25 WHIRLPOOL 11256ba7837d17e5795cf71ac32db43d7d8f797bfbddf5f71612fe2f8fb2e01354372c0ea8f0bc22868881eb0bfdc8a3e3f1b05293d2750d293aa4d59217b2e6
DIST ROOTUsersGuideA4-5.34.08.pdf 11179787 SHA256 1e153329297a6ec44c13f4dd38b64ae687df6ba4594023adb9c5e644437b608b SHA512 dce9621d162fb34262e6156de5440e6fa4853ff75d6c4139ce688126b5dd417f6db4cde25da6949a5aff40c9d727411ac4edea61f4b6c49b893cf9f231912bc9 WHIRLPOOL 4fde24b2a52389e9706f81a75adfa62e15ef37031453ee42689f277b392ebc66c88c6e3afa628acc73cfad9ef09e234598ce0c268302dc4313de4ab1487de272
+DIST ROOTUsersGuideA4-5.34.09.pdf 11180089 SHA256 2284c74256bb2e4c2b549525849806ad73a910ad6c52d1424cba922109f7acbf SHA512 eb4371ea992cccbd176be8616dac2a0c9c02c9fa102736fe025bcdb6e5bcf485483bf4e290d2586d48be1a38b02d76c6ac1c422c272c7a1aab5a3e07d8d0a2cf WHIRLPOOL 7915378699d445dc3965d47a2f911bd2e0b3fd3c89934127dcfba8b64ae80cdb5d44776e14f64b28b58adc22557abbd860bf303f39af27a9f02bc5963b5bc672
DIST ROOTUsersGuideLetter-5.34.08.pdf 11196495 SHA256 0f3d48493fb1a436244cb4146a840fdf0ebe25e8e2bd4451010610cee99a37ff SHA512 72904070d54106b7faa6749637c9dcbf6e286fabbef7330c1b03905de81ca59ef5c7c94a02b93010811d50ba9166838e7530300f3926047057dc827a188c41df WHIRLPOOL 62bbe138472046e422ebe16954cc541b4f3c137698923d6090d7ea3a2515f134accff33c99ddfc6d7a638c2f29e66f4ca93e10cb3b26ab2253e53a67cf98972a
+DIST ROOTUsersGuideLetter-5.34.09.pdf 11197119 SHA256 f9d7d650c5c22e10ce834a43a45c9cf6ccd43a2463308c8a6eccfb7a76254d15 SHA512 88eb97fd0fcaaf91f302d1dbf0fd309f2191c51a32d93253d96296e2968bf7516d1ebd4a02ed8efd4990a0f1e4e65d0797f75b3c77db71610a5f0113f747d245 WHIRLPOOL db11020a26fdd44c21c2fbc0a01870ed49f9afe28754bed1f76dd2a422faea013753e7ac3f408e5a5e36111277d849e1fe5e30eff04aa4238d99c2c1a83cae70
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
@@ -30,17 +32,19 @@ DIST root_v5.32.03.source.tar.gz 55529362 SHA256 575057c429625df69f0fa5c303287ac
DIST root_v5.32.04.source.tar.gz 55526502 SHA256 0c0130ba3d74b86caee3071deeceb46545cfde34def8ad2107601e133506acf2 SHA512 796d7f6fe92700232da3fcaac042438e13c13e504179a7375105b2ff06e1fac571ef4d59f270d73844b2a481b0762a873985d22eee2b1a0b156071b777d4417a WHIRLPOOL c5ce0f81331e08b3f79e97c894bff60185bba562388e789d3d1716d3523045a55c24e1cebded4ad19a09023c4b5275fd7d44acb726a1f248a9616ed95addd609
DIST root_v5.34.07.source.tar.gz 66629870 SHA256 88aa3fdd6c9b1cce33062b53c405a3ac0fb776d37d2a544aef5c71917f2adb4d SHA512 e062fdf3bbd1d81d777faccaf1ed6f603e2f9d4ee4926bdf671caf38f42b52b1a23d8ea87772d809978462f12474a1c5ad52005603b22162b9d566951fe7123e WHIRLPOOL 4519e26fb444d674e888d7aa08eae0ad98300d65fbf9a40f19d9da37be7cf19d15db98807941c426fb8407e30f99ecde98f09bd2f0cbf355b717f12f0369e35e
DIST root_v5.34.08.source.tar.gz 66508773 SHA256 79228cbe5fdfce0ab861b3cba48263d841f0ed04aaf721fb82e246aa567e4011 SHA512 2731b282f45d7a6462ec011ff773224df60fb55140c60f7685afbcd86eec2debbc76fac631fa5e87b3b7893417d8e51a3794c3e017b76dac8206188fb1e0b33f WHIRLPOOL 889ecc8cf5f27e9887c28367645fde8e621a2045a646b4308d132b6a63ca9e138e0718207f265696a146c9e47122384afbcf690bd02e59ba5880b69267502c21
+DIST root_v5.34.09.source.tar.gz 66507220 SHA256 a99cd7f34bf25a52e63228f3f7c245afa9e55420bfb4ce7e78d20c6475a4ea86 SHA512 6a87bc07c157d81649cc02feb3c2a5ab9ddfd0bef7c11893d5d65890b3855d14e6a6db6d2a76d91fcce3fe893091e76b4f477ac05d788aa759dbd34362895a7c WHIRLPOOL 671c7578455aaa5114292496d2cadd0d3ff33bc1dcfb7f590c1febd78db5c67175d35e3c4dc26f64ba1a5b1ca057b4b2b874bbb203e44093ed54ef0bfbd43060
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.07.ebuild 11472 SHA256 303363b64bf63ac1fca1adacc2027bf113f976be0b496d72ccc0b6d3e9d5bbdf SHA512 fcb1d65f5892e1256663018a4261950efc55d488a567943635d63be8bcccfff70b6a22bd10971f7bff8ad7c3488a142bb8221a1db5ed97299a0fd87f09cff4ff WHIRLPOOL e52be65ca01846a3941b43b7f47cac870fb22a136955ea962deb5baeedd1df3a58e2e2d6e44a7e8cd516b36f5f1aa746ad804ce654978bdc67c35b47e096c69f
EBUILD root-5.34.08.ebuild 11694 SHA256 d82421978086bf1b786b0b6a61a1728b47dc2f749bccfe2adb1c3bec285b64b3 SHA512 3f0ec898f1e62795aa8d1019f62b927e81d40b78ebee8b62b8d8df1019df96fe70235370defb6b85252184804100ee8473b4a69bbe4657d6c0e019a33ca78e23 WHIRLPOOL bd5f1bd07548f810076fe46c2e16b4c0f375e7c7c64ec02a76d474ea72a4b1f9f68a94e35bfb8ec59824abfc98bc79a2f4266a969e71a1448660962c8187cd84
-MISC ChangeLog 35879 SHA256 befbd932b24f4bd97b1fb510c22b7aaa363edb4bcf40cee0c661e4d5bcff51ba SHA512 3fa2dad114719bdf17e61e1c5c706fe0c7e0f47663079baa5b3888328975a6e79285b06a86ffe1800834f32c746e75d105543d3e8799ec4886ebeda31e6f0e83 WHIRLPOOL 3660a884ad6bb75aa198a445f1f1a1dee5406b29109208522015176d7d1897bdb6c01bc1c470641da7c6894a892f4f4594f97aa263938edf7403662a97168981
+EBUILD root-5.34.09.ebuild 11672 SHA256 893981cff48b3a97b4f1ff8129694919773112a0fce6db61516da2a0ca154c23 SHA512 e33880c083c8458821aec1fbc403199b9cfd582112004166da714da32c671e9d3d8e3e721fcb81d4cfa969d5cc7cb1041fc8ca7e3bf203cdfbad7a57d41b839f WHIRLPOOL 454a15958e3412b8644cfb49b2f4061f24073ca3806445e315aa679f108217a5fe1ba6028a871ed1e96d8cd0d19bf42fd66d6bd784d10a9c0151f2c37a951a75
+MISC ChangeLog 36039 SHA256 f61203cbfe5ceac64550f33885d38e06de85627fee65a13e8862adeef624cae9 SHA512 6531d3699a0d6a0cf5eb4b2b49252b9248b368383f8a0aabedf8e3d8f6dbcc977ba487c5a4535e7280a173a91cc1d5da6e67010b8f3d52973cc1cc87e78820f7 WHIRLPOOL ebbd2b25ddcb3ad32cd15deea76fff89a6e3823a7b952d49c06133f4d7274ee781dbe047668b0a68e9c958c656108dd021acc1f860d2263f2bdcab30dd45b92e
MISC metadata.xml 1719 SHA256 7b5eda9813292066484d4d7a5741c6122f7259cf7a6ca37aa7d22219badc9c8f SHA512 f195395b8ba421c945678d54823d021779610e06e4f2af0e45a4c4a54a4f5c71e6d73feecafdc2b729a6149b5618a47ff9b334386c31c3547be7ede1638cb4e2 WHIRLPOOL 9728d7b6fe2a6da41168fb812d35c13278a5c8daaa611e94f971617f07bcb5edefa9cea852e2d6c885b896c494541c7152c04efafe5d172456049f945c128da4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlG3UIUACgkQ1ycZbhPLE2BU2ACfUggkndX9wAuZ21uxxbvilnYt
-D3QAn3vDEYwv8tlURSndtBiEzvzURAV8
-=yXb8
+iF4EAREIAAYFAlHOuqwACgkQknrdDGLu8JAvPwD+Kfx36+r+q8gDmZ3IvtlAswL4
+pFw59cya51aF7E4Vso0A/0J/Rmt9IHfRNncpDfoMhp98jZrLxdZpLxHDTZWqzEyx
+=lWT9
-----END PGP SIGNATURE-----
diff --git a/sci-physics/root/root-5.34.09.ebuild b/sci-physics/root/root-5.34.09.ebuild
new file mode 100644
index 000000000000..a0fd253aeb97
--- /dev/null
+++ b/sci-physics/root/root-5.34.09.ebuild
@@ -0,0 +1,385 @@
+# 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.09.ebuild,v 1.1 2013/06/29 10:45:08 xmw 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_{5,6,7} )
+inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 toolchain-funcs user ${_GIT} 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}
+ 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 mpi mysql odbc +opengl openmp oracle postgres
+ prefix pythia6 pythia8 python qt4 +reflex ruby 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
+ || (
+ >=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
+ )
+ 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 )
+ 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 "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
+ 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=/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-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; 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() {
+ local myconfflags=""
+ use postgres && myconfflags+=" --with-pgsql-incdir=$(pg_config --includedir)"
+ # the configure script is not the standard autotools
+ ./configure \
+ --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) \
+ --with-afs-shared=yes \
+ --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
+ --disable-builtin-afterimage \
+ --disable-builtin-freetype \
+ --disable-builtin-ftgl \
+ --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 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 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 reflex cintex) \
+ $(use_enable reflex) \
+ $(use_enable ruby) \
+ $(use_enable ssl) \
+ $(use_enable xml) \
+ $(use_enable xrootd) \
+ ${myconfflags} \
+ ${EXTRA_ECONF} \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" ROOTSYS="${S}" LD_LIBRARY_PATH="${S}/lib"
+ if use emacs; then
+ elisp-compile build/misc/*.el || die "elisp-compile failed"
+ fi
+}
+
+doc_install() {
+ cd "${S}"
+ if use doc; 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; 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
+ 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
+ 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; 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
+}