diff options
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/geant/ChangeLog | 11 | ||||
-rw-r--r-- | sci-physics/geant/Manifest | 18 | ||||
-rw-r--r-- | sci-physics/geant/files/geant-4.9.3-zlib.patch | 14 | ||||
-rw-r--r-- | sci-physics/geant/geant-4.9.3.ebuild (renamed from sci-physics/geant/geant-4.9.2-r2.ebuild) | 56 |
4 files changed, 71 insertions, 28 deletions
diff --git a/sci-physics/geant/ChangeLog b/sci-physics/geant/ChangeLog index d2f9f9c7fbf1..173d358d3fce 100644 --- a/sci-physics/geant/ChangeLog +++ b/sci-physics/geant/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-physics/geant -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/ChangeLog,v 1.37 2009/12/26 19:44:09 armin76 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/ChangeLog,v 1.38 2010/01/09 18:27:42 bicatali Exp $ + +*geant-4.9.3 (08 Jan 2010) + + 08 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> + -geant-4.9.2-r2.ebuild, +geant-4.9.3.ebuild, + +files/geant-4.9.3-zlib.patch: + Version bump, thanks Ben Bannier 26 Dec 2009; Raúl Porcel <armin76@gentoo.org> geant-4.9.2_p02.ebuild: sparc stable wrt #294442 diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest index 07363456d22c..72ed73330b02 100644 --- a/sci-physics/geant/Manifest +++ b/sci-physics/geant/Manifest @@ -1,15 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX geant-4.9.2-zlib.patch 239 RMD160 790953077b7fc59d1ce7c3ed98cdb3dcc3134705 SHA1 7a0552dab08873665b8668a21a8c52841c8e5ae2 SHA256 f5ceee577afeb719718cd23887f9c1eba322077dce1f3d89bc075bacd63e5573 +AUX geant-4.9.3-zlib.patch 314 RMD160 123761e6bfc0c7d386bfc4d8aab797cbfe7ac038 SHA1 50faae7e53d209c095053c2d702f8622b743e079 SHA256 14cd100d79befa083ea79f706a8feba7780252332525d67fa85f1cce13a67d72 DIST G4ABLA.3.0.tar.gz 54909 RMD160 5a032ee8e90d00f39b67114fe257ec47001f347b SHA1 5f38676f1650a508e49d35f9405ac96984388135 SHA256 ff0b77be6b36204eeeba71099f6b7530edd80b79eb015994535bc4334bc821eb DIST G4EMLOW.6.2.tar.gz 8389172 RMD160 fa51dbb4f0e316b0e682a05c9db4c1dc29db7218 SHA1 627ca63927064f1846aa8d7e2e5c4783fe0b9610 SHA256 1affbc66d8809db0c8e450ca83a0da744e7f5b8e912ec52e93b1f24b47cbd781 DIST G4NDL.3.13.tar.gz 57034762 RMD160 243b206170d996c7b562a86e388ff4d5f8d11764 SHA1 4acc412a2f29a7a8f84ac50aeb7331c8ed2889ae SHA256 e994b873032b3d1c0bcc2679275c43354d3e1cd5091da76c8fcd4826536f17a3 DIST G4RadioactiveDecay.3.2.tar.gz 761070 RMD160 1f797977c0c66722f4b032ac546c26eaa8a9f14a SHA1 45e706e46a33e08b1706f069d15e8c2145f3410e SHA256 31dc70aa59cb86ef0dbaf96c639e0541b7569d4fc98f92064ecdc8bc4b9c839b DIST PhotonEvaporation.2.0.tar.gz 7506068 RMD160 24d46b08b2ffeca5b3be186baffb650b99accc97 SHA1 df3b4994c7248da7a226c186be747c4b823d34fa SHA256 5aac0ce683ca23274a7736c8e8911d8cf32d2bf33aab33a9a23126664762d61d +DIST RealSurface.1.0.tar.gz 1257863 RMD160 030513fe340e0cccbfe0b9ae9acb3ba6b5291ebb SHA1 9b4bd95c647dc702458eeaf89ebf62c5885e2ece SHA256 3e2d2506600d2780ed903f1f2681962e208039329347c58ba1916740679020b1 DIST geant321_3.21.14.dfsg-8.diff.gz 41909 RMD160 4edbe5d3dd93a78198fa2d2d83770c8b85eee4de SHA1 39f48c4263f543b74eee6095c11f5ade9798f253 SHA256 785277dab1e1d3e17d60c85f3826bc67bbd6de7e6a6d40ff7af901371c4d2ce1 DIST geant321_3.21.14.dfsg.orig.tar.gz 10922928 RMD160 253b35bd9cda82c2213ec042274f7e6ff6b9e333 SHA1 ae6f39ccc18eacd576a3493992db5da3b3d3b128 SHA256 186fe98a08ad1de39f68698a09a46e7c2f14c37b22f8f990257b0bd66215c5b4 DIST geant4.9.2.p02.tar.gz 18822956 RMD160 1b8923c4821ca627b56919b3c1eeb3b6a09dd0e5 SHA1 007ee6d4eb4f6479f3fe46e6ecff882e3ace1e7c SHA256 4d19bb76bf956004481bc433bf4735780ccc6354d3dc53321d532fd283243078 -DIST geant4.9.2.tar.gz 18752051 RMD160 d6ae7fb718e78fb9bb8fe2b8cfd21dca7ef3a293 SHA1 7e6fd6b254652bd50d534237678a2e2654300210 SHA256 28c9598ee38949e74d839bed5f822b3dcf353c2936d4403ab6a50c11dafac110 +DIST geant4.9.3.tar.gz 19935530 RMD160 33f54c2dbf33a7eda1470db1a6bb44de279ac577 SHA1 9c657e90675d64993416b46dfce70710804379d4 SHA256 835a6adfd2fe64181b9c86ea55f30fa62fd2d052033142895f70a7d2c061dd7f EBUILD geant-3.21.14-r2.ebuild 1863 RMD160 a24572d55551dabe6aa3bb67244c73583e38e314 SHA1 9d3da57a8babf1ab23f03c477809bf6bf4fa1fce SHA256 b43857a4a7e68cc26260eaea8285f16f216dc47d70d61886cc71258cb91512fa -EBUILD geant-4.9.2-r2.ebuild 7678 RMD160 cccf2d90969b7ef91d1aa919fc743c07783ac1b3 SHA1 59e6901c23707862fa4774070ea18e18a8723a4b SHA256 9059f6d3cf2f8da7d884e1d4fc6ae4ba17f1eb31ece405a92a3ff95da58995dd EBUILD geant-4.9.2_p02.ebuild 8104 RMD160 33e0faa83b5db91c8a75bf8d752a9a1c5dc14830 SHA1 9bb902fc0b76ed5a63b585ad86fb6b2033648687 SHA256 1c64b1337dbc9e94778ade020fd2a81a4192f1c44c5539bc8ac06cd6f14e5a88 -MISC ChangeLog 6711 RMD160 26d1ffdddda55f14438ebe2ac05dc2dfd940b68c SHA1 56206ce47b6191ff192a49a82ebc3bdcc92e2a29 SHA256 71c328d918bd6d14d5788e8b59f52bdca3b034751b4aba2e71d76148535e2d8c +EBUILD geant-4.9.3.ebuild 8252 RMD160 6381e16c93a8e268f2c06dee60effed960ee2286 SHA1 66ca01ec9ceea4be8a1893b74eb05fcb458c9d5f SHA256 67838998437b6910381b885d453e57115f25a9249e3f92cf4d006def1513624e +MISC ChangeLog 6911 RMD160 d18cae9999dfc220a437f4a0e81fd49a1772822a SHA1 1b3d34a8c1cd04eeb581f04326f246f218ac3678 SHA256 73c7c181e2f584346a34242bb8868dc400e2f74e89271763309b66adf7e64319 MISC metadata.xml 1482 RMD160 ebd00b361cafb047cbdc56f837415621995ff330 SHA1 8962d8d1225fb4c5f1aaa5ee8b5cb089898544fe SHA256 14d3bba97c1ffb487c5f60340b1660f016f56efda9ccd185f06d12da44ef55f6 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iEYEARECAAYFAktI00cACgkQ1ycZbhPLE2DKJACeMWIc9oeY5Ozdx7MnqNoWC9dM +1V4An1O/TZwzweLF9y2KqfSWP7S9o+Jo +=SE/Y +-----END PGP SIGNATURE----- diff --git a/sci-physics/geant/files/geant-4.9.3-zlib.patch b/sci-physics/geant/files/geant-4.9.3-zlib.patch new file mode 100644 index 000000000000..516a4840ae73 --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.3-zlib.patch @@ -0,0 +1,14 @@ +diff --git a/config/binmake.gmk b/config/binmake.gmk +index 75bbaf2..c31ed3d 100644 +--- a/config/binmake.gmk ++++ b/config/binmake.gmk +@@ -234,7 +234,7 @@ ifdef GLOBALLIBS + -lG4intercoms \ + -lG4global + +- ifdef G4LIB_USE_ZLIB ++ ifdef G4LIB_BUILD_ZLIB + LDLIBS2 += -lG4zlib + endif + + diff --git a/sci-physics/geant/geant-4.9.2-r2.ebuild b/sci-physics/geant/geant-4.9.3.ebuild index b6aa2a7ec8db..81c95be9d199 100644 --- a/sci-physics/geant/geant-4.9.2-r2.ebuild +++ b/sci-physics/geant/geant-4.9.3.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/geant-4.9.2-r2.ebuild,v 1.7 2009/10/06 17:41:33 ayoy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/geant-4.9.3.ebuild,v 1.1 2010/01/09 18:27:42 bicatali Exp $ -EAPI="2" +EAPI=2 -inherit eutils fortran versionator toolchain-funcs +inherit eutils versionator toolchain-funcs PV1=$(get_version_component_range 1 ${PV}) PV2=$(get_version_component_range 2 ${PV}) @@ -20,14 +20,15 @@ GEANT4_DATA="G4NDL.3.13 G4EMLOW.6.2 G4RadioactiveDecay.3.2 PhotonEvaporation.2.0 - G4ABLA.3.0" + G4ABLA.3.0 + RealSurface.1.0" for d in ${GEANT4_DATA}; do SRC_URI="${SRC_URI} data? ( ${SRC_COM}/${d}.tar.gz )" done LICENSE="geant4" SLOT="4" -KEYWORDS="amd64 ~hppa sparc x86" +KEYWORDS="~amd64 ~hppa ~sparc ~x86" IUSE="athena +data dawn debug examples gdml geant3 global minimal +motif +opengl openinventor qt4 +raytracerx static +vrml zlib" @@ -50,23 +51,29 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" pkg_setup() { - FORTRAN="gfortran g77 ifc" - use geant3 && fortran_pkg_setup eval unset ${!G4*} } src_prepare() { # fix bad zlib dependency - epatch "${FILESDIR}"/${P}-zlib.patch + epatch "${FILESDIR}"/${PN}-${PV}-zlib.patch - # propagate user's flags. + # propagate user's flags and compiler settings sed -i -e 's/-o/$(LDFLAGS) -o/g' source/GNUmakefile || die sed -i \ + -e '/CXX.*:=.*g++/d' \ + -e '/FC.*:=.*gfortran/d' \ + -e 's/\(CXXFLAGS.*:=\).*/\1 -ansi/' \ + -e '/CXXFLAGS.*+=.*pipe/d' \ -e "/CXXFLAGS.*=.*-O2/s:=.*:= ${CXXFLAGS}:" \ - -e "/FCFLAGS.*=.*-O2/s:=.*:= ${FFLAGS:--O2}:" \ + -e "/FCFLAGS.*=.*-O2/s:=.*:= ${FCFLAGS}:" \ -e "/CCFLAGS.*=.*-O2/s:=.*:= ${CFLAGS}:" \ -e "s:-Wl,-soname:${LDFLAGS} -Wl,-soname:g" \ + -e "s/libq\*/lib\[q,Q\]t*/g" \ config/sys/Linux*gmk || die "flag substitution failed" + sed -i \ + -e 's:g++:$(CXX):g' \ + config/*.gmk || die "sed for forced g++ failed" # fix forced lib directory sed -i \ @@ -89,6 +96,11 @@ src_prepare() { sed -i \ -e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \ config/globlib.gmk || die "sed globlib.gmk failed" + + # work around a non defined fortran compiler + use geant3 && export FC=$(tc-getFC) + # don't worry about the g++ name of the file, we remove all specific + export G4SYSTEM=Linux-g++ } src_configure() { @@ -97,10 +109,6 @@ src_configure() { # we set env var G4LIB in src_install() # to avoid confusing make export GEANT4_LIBDIR=/usr/$(get_libdir)/${PN}${PV1} - - # these should always to be set - [[ $(tc-getCXX) = ic*c ]] && export G4SYSTEM=Linux-icc \ - || export G4SYSTEM=Linux-g++ export G4INSTALL="${S}" export G4WORKDIR="${S}" export G4INCLUDE="${D}/usr/include/${PN}" @@ -115,23 +123,22 @@ src_configure() { use athena && export G4UI_BUILD_XAW_SESSION=y if use qt4; then export G4UI_BUILD_QT_SESSION=y - export QTLIBS="-L/usr/$(get_libdir)/qt4 -lQtCore -lQtGui" - if use opengl; then + export QTLIBS="-L/usr/$(get_libdir)/qt4 -lQtCore -lQtGui" + export QTFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt" + use opengl && \ export GLQTLIBS="${QTLIBS} -lQtOpenGL" - export G4VIS_BUILD_OPENGLQT_DRIVER=y - fi + #export QTFLAGS="${QTFLAGS} -I/usr/include/qt4/QtOpenGL" fi use dawn && export G4VIS_BUILD_DAWN_DRIVER=y use raytracerx && export G4VIS_BUILD_RAYTRACERX_DRIVER=y use openinventor && export G4VIS_BUILD_OI_DRIVER=y use opengl && export G4VIS_BUILD_OPENGLX_DRIVER=y use opengl && use motif && export G4VIS_BUILD_OPENGLXM_DRIVER=y - + use gdml && export G4LIB_BUILD_GDML=y use geant3 && export G4LIB_BUILD_G3TOG4=y use zlib && export G4LIB_USE_ZLIB=y use vrml && export G4VIS_BUILD_VRML_DRIVER=y \ && export G4VIS_BUILD_VRMLFILE_DRIVER=y - use data && export G4DATA="${GEANT4_DIR}/data" use debug && export G4DEBUG=y || export G4OPTIMIZE=y @@ -185,8 +192,9 @@ g4_create_env_script() { G4LEDATA="${G4DATA}/$(basename ${WORKDIR}/G4EMLOW*)" G4ABLADATA="${G4DATA}/$(basename ${WORKDIR}/G4ABLA*)" G4NEUTRONHPCROSSSECTIONS="${G4DATA}/$(basename ${WORKDIR}/G4NDL*)" + G4REALSURFACEDATA="${G4DATA}/$(basename ${WORKDIR}/G4REALSURFACEDATA*)" export G4LEVELGAMMADATA G4RADIOACTIVEDATA G4LEDATA \ - G4ABLADATA G4NEUTRONHPCROSSSECTIONS + G4ABLADATA G4NEUTRONHPCROSSSECTIONS G4REALSURFACEDATA fi # read env variables defined upto now @@ -243,11 +251,13 @@ src_install() { dodoc ReleaseNotes/Patch${mypv}-*.txt use examples && doins -r examples - # TODO: * momo with momo or java flag, and check java stuff } pkg_postinst() { elog "Geant4 projects are by default build in \$HOME/geant4." elog "If you want to change, set \$G4WORKDIR to another directory." + + elog "To use Aida you have to explicitly set G4ANALYSIS_USE=y for" + elog "your environment." } |