diff options
Diffstat (limited to 'sci-physics/geant-python')
14 files changed, 0 insertions, 644 deletions
diff --git a/sci-physics/geant-python/ChangeLog b/sci-physics/geant-python/ChangeLog deleted file mode 100644 index ed1d191..0000000 --- a/sci-physics/geant-python/ChangeLog +++ /dev/null @@ -1,22 +0,0 @@ -# ChangeLog for sci-physics/geant-python -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-python/ChangeLog,v 1.5 2012/05/21 04:54:59 heroxbd Exp $ - - 21 May 2012; Benda Xu <heroxbd@gentoo.org> - +files/geant-python-4.9.5-vis-fix.patch, geant-python-4.9.5.ebuild: - fix VisManager c++ signature mismatch, upstream http://bugzilla- - geant4.kek.jp/show_bug.cgi?id=1318 - - 20 May 2012; Benda Xu <heroxbd@gentoo.org> +geant-python-4.9.5.ebuild - geant-python-4.9.5_p01.ebuild: - add version 4.9.5 for 4.9.5_p01 cannot function correctly, upstream bug - http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1317; add example USE flag. - -*geant-python-4.9.5_p01 (20 May 2012) - - 20 May 2012; Benda Xu <heroxbd@gentoo.org> - +files/geant-python-4.9.5-build.patch, - +files/geant-python-4.9.5-visverbose.patch, +geant-python-4.9.5_p01.ebuild, - +metadata.xml: - initial commit - diff --git a/sci-physics/geant-python/Manifest b/sci-physics/geant-python/Manifest deleted file mode 100644 index 5defda6..0000000 --- a/sci-physics/geant-python/Manifest +++ /dev/null @@ -1,16 +0,0 @@ -AUX geant-python-4.9.3-RunMan.patch 6895 RMD160 0e149dff2a85e1a2049203754baa89385cb248c4 SHA1 eca6838549a7a1630fe54898053e772adcd260f1 SHA256 4b1921ad2d29ba2cfaf277dfdc5cc2ffa685dbe2d8815a6a2a3754857de6c47e -AUX geant-python-4.9.3-VisAtt.patch 428 RMD160 3c5e556ffec340f09f2aa27b628f8b27e1fe5aee SHA1 6b4181dfce81f0ce11eb53e35126fedd298cd170 SHA256 1df0a75eecca6cf53a2ce283466127ee179d36e4622e1a426d3ace0ecfed5fd3 -AUX geant-python-4.9.3-build.patch 1144 RMD160 6b5de444a07769760b712579af222d810f21284d SHA1 fec1df65703157a7ba844ffd759e917a5e1d3f87 SHA256 b38ba49d6b85fa2bf0759710260b14fefb8e82aeb69491d038ae3b17da6cb781 -AUX geant-python-4.9.5-TrkMan.patch 578 RMD160 4e84ce2f7ce681d33b729eae4696cef88fc8f62c SHA1 489ca24d9de220215089e677602959f56255ff33 SHA256 8cd3213412da8388fb875fc0c3527a180c6977e1c2cdeaa9ca8a187a4da31ff4 -AUX geant-python-4.9.5-build.patch 1026 RMD160 2bf191ddf06e7ca29ae2f2bc4d40d533ad400979 SHA1 8c365c334a9958c52ad08a2daa9e6923bec1afa9 SHA256 ef3f725aa4165374c7b3d090af3e017e14850f409def6f8e466dcb198d7a7c7e -AUX geant-python-4.9.5-vis-fix.patch 1458 RMD160 4801f01c440b937ad51535cc9134ee143bf3b7a9 SHA1 e92ede558d390925b1ce2c8a2b02e264af8203db SHA256 4201223199e03199fd6d139e76224d365dded6013534d5655f1ada3c67159038 -AUX geant-python-4.9.5-visverbose.patch 557 RMD160 752266b165007dc61dfe3e6e21804dca63c59754 SHA1 e2691a1bd095741de558e61771b9b8992c77a2fb SHA256 0955cd39ce1f8e842e2804370359a4e367b14f4791a40fd653918c32884bed8a -DIST geant4.9.3.p02.tar.gz 20009687 RMD160 3fc3ce68965666670a2cf6e7dbe93c00b305fc30 SHA1 1728ea641ecb7ff50d2f44366add3a7569967839 SHA256 9fed501a6b0fed9050655633998acb942f7be430711e08f234dd748c23037a90 -DIST geant4.9.5.p01.tar.gz 28466803 SHA256 451f8c4a29bb0dc4b923d59d77535a657f0f8a30dc6c8ef639c8b1ebdb26a10e -DIST geant4.9.5.tar.gz 28458437 SHA256 b6b31752319805052fb765f89ca38a23fb299a0a5bf900daeacd1950d6c9a597 -EBUILD geant-python-4.9.3.ebuild 1823 RMD160 66d18e7c8a00d1896b7864b4a60405fb57015dcb SHA1 cec46b0705248b805c4c8ca77f56b21ff9381fee SHA256 6d437a0f44463353963b9347336bb20d832e11387152b9b6103a7f2a4c7ca890 -EBUILD geant-python-4.9.3_p02.ebuild 1820 RMD160 0ffc1c4d8bb259e010b5ac0c7c7b2e3791facc24 SHA1 5c044390d30abf7ea3534311578e71315934eff1 SHA256 b2f260c9727319e9183928e1d86548fedd8f0e4a47ef0723289727e16d06b621 -EBUILD geant-python-4.9.5.ebuild 1727 RMD160 a669074010e915033b144bbd77f34cd36fb3b6e9 SHA1 c06ead6a91266a2c4c9bf6bb453011cff85ffec7 SHA256 783e96853439e8c288458e61190b3c2d42e58e2b189f4b9635ec39b31723602e -EBUILD geant-python-4.9.5_p01.ebuild 2551 RMD160 9b2bc43172a66a8771e5a408ed5f7caa0d3e4a00 SHA1 dd4a008749652cc94eaa0802dc10880aceb31742 SHA256 ed802828d7ded1628c7f269d694089a36846ed7db4e924164428e96f5457df73 -MISC ChangeLog 936 RMD160 328cfe5496e2baa14e8b923095f2cd75b08ee9eb SHA1 f7b7e41cbee543fd8c0018f509d988510bcbf697 SHA256 706b342ebe984b01d30690ab87d6a111369b1bbddc928a1ab0eb455bd4766a28 -MISC metadata.xml 240 RMD160 efd4ab46b75a4f49cf759c1af44f74b7d952dfc2 SHA1 7180d1a98e53900396070713396ca66eebb913c4 SHA256 f3269ca94d60315f7e3ebf8aa24ed69d2d2c53473707c76586834f76e8ce27e3 diff --git a/sci-physics/geant-python/files/geant-python-4.9.3-RunMan.patch b/sci-physics/geant-python/files/geant-python-4.9.3-RunMan.patch deleted file mode 100644 index 6bfb875..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.3-RunMan.patch +++ /dev/null @@ -1,157 +0,0 @@ -backported from geant-4.9.5 for DumpRegion function footprint chnage ---- source/run/pyG4RunManager.cc 2006-06-30 00:35:12.000000000 +0900 -+++ source/run/pyG4RunManager.cc.new 2012-07-14 22:00:38.000000000 +0900 -@@ -23,14 +23,15 @@ - // * acceptance of all terms of the Geant4 Software license. * - // ******************************************************************** - // --// $Id: pyG4RunManager.cc,v 1.4 2006/06/29 15:35:12 gunter Exp $ --// $Name: geant4-09-03-patch-02 $ -+// $Id: pyG4RunManager.cc,v 1.6 2010-12-02 08:23:05 kmura Exp $ -+// $Name: not supported by cvs2svn $ - // ==================================================================== - // pyG4RunManager.cc - // - // 2005 Q - // ==================================================================== - #include <boost/python.hpp> -+#include "G4Version.hh" - #include "G4RunManager.hh" - #include "G4VUserDetectorConstruction.hh" - #include "G4VUserPhysicsList.hh" -@@ -72,13 +73,17 @@ void (G4RunManager::*f6_SetUserAction)(G - = &G4RunManager::SetUserAction; - - // DumpRegion -+#if G4VERSION_NUMBER >= 932 -+void (G4RunManager::*f1_DumpRegion)(const G4String&) const -+ = &G4RunManager::DumpRegion; -+#else - void (G4RunManager::*f1_DumpRegion)(G4String) const -- = &G4RunManager::DumpRegion; -+ = &G4RunManager::DumpRegion; -+#endif - void (G4RunManager::*f2_DumpRegion)(G4Region*) const - = &G4RunManager::DumpRegion; - --BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DumpRegion, -- DumpRegion, 0, 1); -+BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DumpRegion, DumpRegion, 0, 1); - - // BeamOn() - BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_BeamOn, BeamOn, 1, 3); -@@ -87,8 +92,8 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f - BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_AbortRun, AbortRun, 0, 1); - - // DefineWorldVolume() --BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DefineWorldVolume, -- DefineWorldVolume, 1, 2); -+BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DefineWorldVolume, -+ DefineWorldVolume, 1, 2); - - }; - -@@ -102,18 +107,18 @@ void export_G4RunManager() - class_<G4RunManager>("G4RunManager", "run manager class") - // --- - .def("GetRunManager", &G4RunManager::GetRunManager, -- "Get an instance of G4RunManager", -- return_value_policy<reference_existing_object>()) -+ "Get an instance of G4RunManager", -+ return_value_policy<reference_existing_object>()) - .staticmethod("GetRunManager") - // --- - .def("SetVerboseLevel", &G4RunManager::SetVerboseLevel) - .def("GetVerboseLevel", &G4RunManager::GetVerboseLevel) - // --- - .def("Initialize", &G4RunManager::Initialize) -- .def("BeamOn", &G4RunManager::BeamOn, -- f_BeamOn((arg("n_event"), arg("macroFile")=0, -- arg("n_select")=-1), -- "Starts event loop.")) -+ .def("BeamOn", &G4RunManager::BeamOn, -+ f_BeamOn((arg("n_event"), arg("macroFile")=0, -+ arg("n_select")=-1), -+ "Starts event loop.")) - // --- - .def("SetUserInitialization", f1_SetUserInitialization) - .def("SetUserInitialization", f2_SetUserInitialization) -@@ -125,50 +130,58 @@ void export_G4RunManager() - .def("SetUserAction", f6_SetUserAction) - // --- - .def("GetUserDetectorConstruction", -- &G4RunManager::GetUserDetectorConstruction, -- return_internal_reference<>()) -+ &G4RunManager::GetUserDetectorConstruction, -+ return_internal_reference<>()) - .def("GetUserPhysicsList", -- &G4RunManager::GetUserPhysicsList, -- return_internal_reference<>()) -+ &G4RunManager::GetUserPhysicsList, -+ return_internal_reference<>()) - .def("GetUserPrimaryGeneratorAction", -- &G4RunManager::GetUserPrimaryGeneratorAction, -- return_internal_reference<>()) -+ &G4RunManager::GetUserPrimaryGeneratorAction, -+ return_internal_reference<>()) - .def("GetUserRunAction", &G4RunManager::GetUserRunAction, -- return_internal_reference<>()) -+ return_internal_reference<>()) - .def("GetUserEventAction", &G4RunManager::GetUserEventAction, -- return_internal_reference<>()) -+ return_internal_reference<>()) - .def("GetUserStackingAction", &G4RunManager::GetUserStackingAction, -- return_internal_reference<>()) -+ return_internal_reference<>()) - .def("GetUserTrackingAction", &G4RunManager::GetUserTrackingAction, -- return_internal_reference<>()) -+ return_internal_reference<>()) - .def("GetUserSteppingAction", &G4RunManager::GetUserSteppingAction, -- return_internal_reference<>()) -+ return_internal_reference<>()) - // --- - .def("AbortRun", &G4RunManager::AbortRun, -- f_AbortRun((arg("soft_abort")=false), -- "Abort run (event loop).")) -- .def("AbortEvent", &G4RunManager::AbortEvent) -- .def("GetVersionString", &G4RunManager::GetVersionString) -+ f_AbortRun((arg("soft_abort")=false), -+ "Abort run (event loop).")) -+ .def("AbortEvent", &G4RunManager::AbortEvent) - .def("DefineWorldVolume", &G4RunManager::DefineWorldVolume, -- f_DefineWorldVolume()) -+ f_DefineWorldVolume()) - .def("DumpRegion", f1_DumpRegion) - .def("DumpRegion", f2_DumpRegion, f_DumpRegion()) - .def("rndmSaveThisRun", &G4RunManager::rndmSaveThisRun) - .def("rndmSaveThisEvent", &G4RunManager::rndmSaveThisEvent) - .def("RestoreRandomNumberStatus", -- &G4RunManager::RestoreRandomNumberStatus) -+ &G4RunManager::RestoreRandomNumberStatus) - .def("SetRandomNumberStore", &G4RunManager::SetRandomNumberStore) - .def("GetRandomNumberStore", &G4RunManager::GetRandomNumberStore) - .def("SetRandomNumberStoreDir", &G4RunManager::SetRandomNumberStoreDir) -- .def("GetRandomNumberStoreDir", &G4RunManager::GetRandomNumberStoreDir) - .def("GeometryHasBeenModified", &G4RunManager::GeometryHasBeenModified) - .def("PhysicsHasBeenModified", &G4RunManager::PhysicsHasBeenModified) - .def("GetGeometryToBeOptimized",&G4RunManager::GetGeometryToBeOptimized) - .def("GetCurrentRun", &G4RunManager::GetCurrentRun, -- return_value_policy<reference_existing_object>()) -+ return_value_policy<reference_existing_object>()) - .def("GetCurrentEvent", &G4RunManager::GetCurrentEvent, -- return_value_policy<reference_existing_object>()) -+ return_value_policy<reference_existing_object>()) - .def("SetRunIDCounter", &G4RunManager::SetRunIDCounter) -+ -+#if G4VERSION_NUMBER >= 932 -+ .def("GetVersionString", &G4RunManager::GetVersionString, -+ return_value_policy<reference_existing_object>()) -+ .def("GetRandomNumberStoreDir", &G4RunManager::GetRandomNumberStoreDir, -+ return_internal_reference<>()) -+#else -+ .def("GetVersionString", &G4RunManager::GetVersionString) -+ .def("GetRandomNumberStoreDir", &G4RunManager::GetRandomNumberStoreDir) -+#endif - ; - - // reduced functionality... diff --git a/sci-physics/geant-python/files/geant-python-4.9.3-VisAtt.patch b/sci-physics/geant-python/files/geant-python-4.9.3-VisAtt.patch deleted file mode 100644 index 364e965..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.3-VisAtt.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- source/graphics_reps/pyG4VisAttributes.cc 2009-12-19 02:23:08.000000000 +0900 -+++ source/graphics_reps/pyG4VisAttributes.cc.new 2012-07-12 12:04:50.000000000 +0900 -@@ -31,6 +31,7 @@ - // 2005 Q - // ==================================================================== - #include <boost/python.hpp> -+#include "G4AttDef.hh" - #include "G4VisAttributes.hh" - - using namespace boost::python; diff --git a/sci-physics/geant-python/files/geant-python-4.9.3-build.patch b/sci-physics/geant-python/files/geant-python-4.9.3-build.patch deleted file mode 100644 index aa927ec..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.3-build.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- configure.old 2009-11-20 12:36:51.000000000 +0900 -+++ configure 2012-07-14 10:18:19.000000000 +0900 -@@ -3,12 +3,6 @@ - # ====================================================================== - # A configure script for Geant4Py - # ====================================================================== --export LANG=C -- --IFS=' -- ' --PATH=/bin:/usr/bin --export PATH - - # ====================================================================== - # testing the echo features -@@ -323,15 +317,18 @@ echo "lib${clhep_lib}.${shlib}" - - # --- - echo $ac_n "Checking for Python include dir (pyconfig.h) ... $ac_c" --# check version --set python python2.6 python2.5 python2.4 python2.3 python2.2 --for aincdir in $* --do -- if [ -d /usr/include/"$aincdir" ]; then -- python_incdir=/usr/include/$aincdir -- break -- fi --done -+ -+if [ ! -d "$python_incdir" ]; then -+ # check version -+ set python python2.6 python2.5 python2.4 python2.3 python2.2 -+ for aincdir in $* -+ do -+ if [ -d /usr/include/"$aincdir" ]; then -+ python_incdir=/usr/include/$aincdir -+ break -+ fi -+ done -+fi - - if [ ! -f "$python_incdir"/pyconfig.h ]; then - echo "no" diff --git a/sci-physics/geant-python/files/geant-python-4.9.5-TrkMan.patch b/sci-physics/geant-python/files/geant-python-4.9.5-TrkMan.patch deleted file mode 100644 index df03d21..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.5-TrkMan.patch +++ /dev/null @@ -1,12 +0,0 @@ -expose secondaries for debugging of scintillation. Not yet reported upstream. ---- source/tracking/pyG4TrackingManager.cc.old 2011-12-03 00:12:32.000000000 +0900 -+++ source/tracking/pyG4TrackingManager.cc 2012-07-12 14:19:30.000000000 +0900 -@@ -51,6 +51,8 @@ void export_G4TrackingManager() - .def("GetVerboseLevel", &G4TrackingManager::GetVerboseLevel) - .def("SetUserTrackInformation", - &G4TrackingManager::SetUserTrackInformation) -+ .def("GimmeSecondaries", &G4TrackingManager::GimmeSecondaries, -+ return_value_policy<return_by_value>()) - ; - } - diff --git a/sci-physics/geant-python/files/geant-python-4.9.5-build.patch b/sci-physics/geant-python/files/geant-python-4.9.5-build.patch deleted file mode 100644 index 94f5dd2..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.5-build.patch +++ /dev/null @@ -1,39 +0,0 @@ -make configure respect --with-python-incdir -reported upstream at http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1316 -diff --git a/configure b/configure -index 2d755b1..3db111f 100755 ---- a/configure -+++ b/configure -@@ -330,18 +330,21 @@ echo "lib${clhep_lib}.${shlib}" - # --- - echo $ac_n "Checking for Python include dir (pyconfig.h) ... $ac_c" - # check version --if [ $with_python3 = 0 ]; then -- set python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 --else -- set python3.1 python3.0 -+if [ ! -d "$python_incdir" ] -+then -+ if [ $with_python3 = 0 ]; then -+ set python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 -+ else -+ set python3.1 python3.0 -+ fi -+ for aincdir in $* -+ do -+ if [ -d /usr/include/"$aincdir" ]; then -+ python_incdir=/usr/include/$aincdir -+ break -+ fi -+ done - fi --for aincdir in $* --do -- if [ -d /usr/include/"$aincdir" ]; then -- python_incdir=/usr/include/$aincdir -- break -- fi --done - - if [ ! -f "$python_incdir"/pyconfig.h ]; then - echo "no" diff --git a/sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch b/sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch deleted file mode 100644 index 1826764..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.5-vis-fix.patch +++ /dev/null @@ -1,31 +0,0 @@ -fix the C++ signature, upstream http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1318 -diff --git a/source/visualization/pyG4VisManager.cc b/source/visualization/pyG4VisManager.cc -index 33bb0d4..bbd9e0a 100644 ---- a/source/visualization/pyG4VisManager.cc -+++ b/source/visualization/pyG4VisManager.cc -@@ -39,7 +39,7 @@ using namespace boost::python; - // ==================================================================== - // wrappers - // ==================================================================== --class PyG4VisManager : public G4VisManager { -+struct PyG4VisManager : G4VisManager, wrapper<G4VisManager> { - public: - PyG4VisManager() { SetVerboseLevel(quiet); } - ~PyG4VisManager() { } -@@ -62,7 +62,7 @@ void (PyG4VisManager::*f1_SetVerboseLevel)(G4int) - = &PyG4VisManager::SetVerboseLevel; - void (PyG4VisManager::*f2_SetVerboseLevel)(const G4String&) - = &PyG4VisManager::SetVerboseLevel; -- void (PyG4VisManager::*f3_SetVerboseLevel)(G4VisManager::Verbosity) -+void (PyG4VisManager::*f3_SetVerboseLevel)(G4VisManager::Verbosity) - = &PyG4VisManager::SetVerboseLevel; - - } -@@ -87,6 +87,7 @@ void export_G4VisManager() - .def("SetVerboseLevel", f2_SetVerboseLevel) - .def("SetVerboseLevel", f3_SetVerboseLevel) - .def("GetVerbosity", &PyG4VisManager::GetVerbosity) -+ .staticmethod("GetVerbosity") - .def("Initialize", &PyG4VisManager::Initialize) - .def("RegisterGraphicsSystem", &PyG4VisManager::RegisterGraphicsSystem) - ; diff --git a/sci-physics/geant-python/files/geant-python-4.9.5-visverbose.patch b/sci-physics/geant-python/files/geant-python-4.9.5-visverbose.patch deleted file mode 100644 index 0508f28..0000000 --- a/sci-physics/geant-python/files/geant-python-4.9.5-visverbose.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/source/visualization/pyG4VisManager.cc b/source/visualization/pyG4VisManager.cc -index 33bb0d4..00f86a5 100644 ---- a/source/visualization/pyG4VisManager.cc -+++ b/source/visualization/pyG4VisManager.cc -@@ -41,7 +41,7 @@ using namespace boost::python; - // ==================================================================== - class PyG4VisManager : public G4VisManager { - public: -- PyG4VisManager() { SetVerboseLevel(quiet); } -+ PyG4VisManager() { SetVerboseLevel(all); } - ~PyG4VisManager() { } - - virtual void RegisterGraphicsSystems() { } diff --git a/sci-physics/geant-python/geant-python-4.9.3.ebuild b/sci-physics/geant-python/geant-python-4.9.3.ebuild deleted file mode 100644 index ab68958..0000000 --- a/sci-physics/geant-python/geant-python-4.9.3.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-python/geant-python-4.9.5.ebuild,v 1.2 2012/05/21 04:49:12 heroxbd Exp $ - -EAPI=4 - -inherit python versionator - -MYP="geant$(replace_version_separator 3 .)" - -DESCRIPTION="this ebuild is only for geant4.9.3 on teena" -HOMEPAGE="http://geant4.cern.ch/" -# SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" - -LICENSE="geant4" -SLOT="0" -IUSE="examples" - -RDEPEND="=sci-physics/geant-${PV}* \ - dev-libs/boost[python]" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${MYP}/environments/g4py" - -src_unpack() { - mkdir -p "${S}" - cp -a ${G4INSTALL}/environments/g4py/* "${S}"/ -} - -src_prepare() { - # DISTDIR and python path patch - epatch "${FILESDIR}"/${P}-build.patch - - # fix the visManager wrapper - epatch "${FILESDIR}"/${PN}-4.9.5-vis-fix.patch - epatch "${FILESDIR}"/${P}-VisAtt.patch -} - -src_configure() { - case ${CHOST} in - x86_64-pc-linux-gnu) - ARG=linux64 - ;; - i?86-pc-linux-gnu) - ARG=linux - ;; - *) - die "platform unknown" - ;; - esac - - ./configure ${ARG} \ - --prefix="${EPREFIX}/usr" \ - --libdir="${ED}/$(python_get_sitedir)" \ - --with-g4-incdir="${G4INSTALL}/include/Geant4" \ - --with-g4-libdir="${G4INSTALL}/lib/Linux-g++" \ - --with-clhep-incdir="${EPREFIX}/usr/include" \ - --with-clhep-libdir="${EPREFIX}/usr/lib" \ - --with-python-incdir="${EPREFIX}$(python_get_includedir)" \ - --with-python-libdir="${EPREFIX}$(python_get_libdir)" \ - --with-boost-incdir="${EPREFIX}/usr/include" \ - --with-boost-libdir="${EPREFIX}/usr/lib" \ - || die "configure failed" -} - -src_install() { - emake DESTDIR="${ED}" install - insinto /usr/share/doc/${PF} - dodoc 00README History AUTHORS - use examples && doins -r examples -} diff --git a/sci-physics/geant-python/geant-python-4.9.3_p02.ebuild b/sci-physics/geant-python/geant-python-4.9.3_p02.ebuild deleted file mode 100644 index e3db0eb..0000000 --- a/sci-physics/geant-python/geant-python-4.9.3_p02.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-python/geant-python-4.9.5.ebuild,v 1.2 2012/05/21 04:49:12 heroxbd Exp $ - -EAPI=4 - -inherit python versionator - -MYP="geant$(replace_version_separator 3 .)" - -DESCRIPTION="Python binding for geant" -HOMEPAGE="http://geant4.cern.ch/" -SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" - -LICENSE="geant4" -SLOT="0" -IUSE="examples" - -RDEPEND="=sci-physics/geant-${PV}* \ - dev-libs/boost[python]" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${MYP}/environments/g4py" - -src_prepare() { - # DISTDIR and python path patch - epatch "${FILESDIR}"/${PN}-4.9.3-build.patch - - # fix the visManager wrapper - epatch "${FILESDIR}"/${PN}-4.9.5-vis-fix.patch - - epatch "${FILESDIR}"/${PN}-4.9.5-TrkMan.patch - epatch "${FILESDIR}"/${PN}-4.9.3-VisAtt.patch - epatch "${FILESDIR}"/${PN}-4.9.3-RunMan.patch -} - -src_configure() { - case ${CHOST} in - x86_64-pc-linux-gnu) - ARG=linux64 - ;; - i?86-pc-linux-gnu) - ARG=linux - ;; - *) - die "platform unknown" - ;; - esac - - ./configure ${ARG} \ - --prefix="${EPREFIX}/usr" \ - --libdir="${ED}/$(python_get_sitedir)" \ - --with-g4-incdir="${EPREFIX}/usr/include/geant" \ - --with-g4-libdir="${EPREFIX}/usr/lib" \ - --with-clhep-incdir="${EPREFIX}/usr/include" \ - --with-clhep-libdir="${EPREFIX}/usr/lib" \ - --with-python-incdir="${EPREFIX}$(python_get_includedir)" \ - --with-python-libdir="${EPREFIX}$(python_get_libdir)" \ - --with-boost-incdir="${EPREFIX}/usr/include" \ - --with-boost-libdir="${EPREFIX}/usr/lib" \ - || die "configure failed" -} - -src_install() { - emake DESTDIR="${ED}" install - insinto /usr/share/doc/${PF} - dodoc 00README History AUTHORS - use examples && doins -r examples -} diff --git a/sci-physics/geant-python/geant-python-4.9.5.ebuild b/sci-physics/geant-python/geant-python-4.9.5.ebuild deleted file mode 100644 index 7580ffc..0000000 --- a/sci-physics/geant-python/geant-python-4.9.5.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-python/geant-python-4.9.5.ebuild,v 1.2 2012/05/21 04:49:12 heroxbd Exp $ - -EAPI=4 - -inherit python versionator - -MYP="geant$(replace_version_separator 3 .)" - -DESCRIPTION="Python binding for geant" -HOMEPAGE="http://geant4.cern.ch/" -SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" - -LICENSE="geant4" -SLOT="0" -IUSE="examples" - -RDEPEND="=sci-physics/geant-${PV}* \ - dev-libs/boost[python]" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${MYP}/environments/g4py" - -src_prepare() { - # DISTDIR and python path patch - epatch "${FILESDIR}"/${PN}-4.9.5-build.patch - - # fix the visManager wrapper - epatch "${FILESDIR}"/${PN}-4.9.5-vis-fix.patch - - epatch "${FILESDIR}"/${PN}-4.9.5-TrkMan.patch -} - -src_configure() { - case ${CHOST} in - x86_64-pc-linux-gnu) - ARG=linux64 - ;; - i?86-pc-linux-gnu) - ARG=linux - ;; - *) - die "platform unknown" - ;; - esac - - ./configure ${ARG} \ - --prefix="${EPREFIX}/usr" \ - --libdir="${ED}/$(python_get_sitedir)" \ - --with-g4-incdir="${EPREFIX}/usr/include/Geant4" \ - --with-g4-libdir="${EPREFIX}/usr/lib" \ - --with-clhep-incdir="${EPREFIX}/usr/include" \ - --with-clhep-libdir="${EPREFIX}/usr/lib" \ - --with-python-incdir="${EPREFIX}$(python_get_includedir)" \ - --with-python-libdir="${EPREFIX}$(python_get_libdir)" \ - --with-boost-incdir="${EPREFIX}/usr/include" \ - --with-boost-libdir="${EPREFIX}/usr/lib" \ - || die "configure failed" -} - -src_install() { - emake DESTDIR="${ED}" install - insinto /usr/share/doc/${PF} - dodoc 00README History AUTHORS - use examples && doins -r examples -} diff --git a/sci-physics/geant-python/geant-python-4.9.5_p01.ebuild b/sci-physics/geant-python/geant-python-4.9.5_p01.ebuild deleted file mode 100644 index 61b8f1c..0000000 --- a/sci-physics/geant-python/geant-python-4.9.5_p01.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-python/geant-python-4.9.5_p01.ebuild,v 1.2 2012/05/20 16:48:17 heroxbd Exp $ - -EAPI=4 - -inherit python versionator - -MYP="geant$(replace_version_separator 3 .)" - -DESCRIPTION="Python binding for geant" -HOMEPAGE="http://geant4.cern.ch/" -SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" - -LICENSE="geant4" -SLOT="0" -IUSE="examples" - -RDEPEND="=sci-physics/geant-${PV}* \ - dev-libs/boost[python]" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${MYP}/environments/g4py" - -src_prepare() { - # DISTDIR and python path patch - epatch "${FILESDIR}"/${PN}-4.9.5-build.patch - - # set to the highest verbose for visManager - epatch "${FILESDIR}"/${PN}-4.9.5-visverbose.patch - - # let Geant4 module installed into python sitedir instead of default - sed -i "/G4PY_LIBDIR :=/cG4PY_LIBDIR := $\(DESTDIR\)$(python_get_sitedir)/Geant4" \ - config/install.gmk || die "sed failed on config/install.gmk" - for mfile in source/python{3,}/GNUmakefile - do - sed -i "/install_dir :=/cinstall_dir := $\(DESTDIR\)$(python_get_sitedir)/Geant4" \ - "${mfile}" || die "sed failed on ${mfile}" - done - - # let g4py module installed into python sitedir instead of default - sed -i "/install_dir :=/cinstall_dir := $\(DESTDIR\)$(python_get_sitedir)/g4py" \ - config/site-install.gmk || die "sed failed on config/site-install.gmk" - for mfile in {processes/emcalculator,utils/MCScore}/{python3/,}GNUmakefile python/GNUmakefile - do - sed -i "/install_dir :=/cinstall_dir := $\(DESTDIR\)$(python_get_sitedir)/g4py" \ - "site-modules/${mfile}" || die "sed failed on site-modules/${mfile}" - done -} - -src_configure() { - case ${CHOST} in - x86_64-pc-linux-gnu) - ARG=linux64 - ;; - i?86-pc-linux-gnu) - ARG=linux - ;; - *) - die "platform unknown" - ;; - esac - - ./configure ${ARG} \ - --prefix="${EPREFIX}/usr" \ - --with-g4-incdir="${EPREFIX}/usr/include/Geant4" \ - --with-g4-libdir="${EPREFIX}/usr/lib" \ - --with-clhep-incdir="${EPREFIX}/usr/include" \ - --with-clhep-libdir="${EPREFIX}/usr/lib" \ - --with-python-incdir="${EPREFIX}$(python_get_includedir)" \ - --with-python-libdir="${EPREFIX}$(python_get_libdir)" \ - --with-boost-incdir="${EPREFIX}/usr/include" \ - --with-boost-libdir="${EPREFIX}/usr/lib" \ - || die "configure failed" -} - -src_install() { - emake DESTDIR="${ED}" install - insinto /usr/share/doc/${PF} - dodoc 00README History AUTHORS - use examples && doins -r examples -} diff --git a/sci-physics/geant-python/metadata.xml b/sci-physics/geant-python/metadata.xml deleted file mode 100644 index c7e8266..0000000 --- a/sci-physics/geant-python/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>sci-physics</herd> - <longdescription lang="en"> -Python binding to Geant 4. -</longdescription> -</pkgmetadata> |