diff options
author | 2012-05-20 03:11:24 +0000 | |
---|---|---|
committer | 2012-05-20 03:11:24 +0000 | |
commit | a198b6dde7f81c24444243b2f4066b512aa89408 (patch) | |
tree | 8e262a0b895f26ac1eb3492891e458c6654053d0 /sci-physics/geant-python | |
parent | Version bump. (diff) | |
download | historical-a198b6dde7f81c24444243b2f4066b512aa89408.tar.gz historical-a198b6dde7f81c24444243b2f4066b512aa89408.tar.bz2 historical-a198b6dde7f81c24444243b2f4066b512aa89408.zip |
initial commit
Package-Manager: portage-2.1.10.57/cvs/Linux x86_64
Diffstat (limited to 'sci-physics/geant-python')
-rw-r--r-- | sci-physics/geant-python/ChangeLog | 12 | ||||
-rw-r--r-- | sci-physics/geant-python/Manifest | 6 | ||||
-rw-r--r-- | sci-physics/geant-python/files/geant-python-4.9.5-build.patch | 39 | ||||
-rw-r--r-- | sci-physics/geant-python/files/geant-python-4.9.5-visverbose.patch | 13 | ||||
-rw-r--r-- | sci-physics/geant-python/geant-python-4.9.5_p01.ebuild | 80 | ||||
-rw-r--r-- | sci-physics/geant-python/metadata.xml | 8 |
6 files changed, 158 insertions, 0 deletions
diff --git a/sci-physics/geant-python/ChangeLog b/sci-physics/geant-python/ChangeLog new file mode 100644 index 000000000000..ab10835e74cd --- /dev/null +++ b/sci-physics/geant-python/ChangeLog @@ -0,0 +1,12 @@ +# 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.1 2012/05/20 03:11:24 heroxbd Exp $ + +*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 new file mode 100644 index 000000000000..6c8f29649231 --- /dev/null +++ b/sci-physics/geant-python/Manifest @@ -0,0 +1,6 @@ +AUX geant-python-4.9.5-build.patch 1026 RMD160 2bf191ddf06e7ca29ae2f2bc4d40d533ad400979 SHA1 8c365c334a9958c52ad08a2daa9e6923bec1afa9 SHA256 ef3f725aa4165374c7b3d090af3e017e14850f409def6f8e466dcb198d7a7c7e +AUX geant-python-4.9.5-visverbose.patch 557 RMD160 752266b165007dc61dfe3e6e21804dca63c59754 SHA1 e2691a1bd095741de558e61771b9b8992c77a2fb SHA256 0955cd39ce1f8e842e2804370359a4e367b14f4791a40fd653918c32884bed8a +DIST geant4.9.5.p01.tar.gz 28466803 RMD160 42249229a97c2eaf5ed2471a93608a1d0daa38e1 SHA1 b1b938f735a8b966621704cc77448c786777dd01 SHA256 451f8c4a29bb0dc4b923d59d77535a657f0f8a30dc6c8ef639c8b1ebdb26a10e +EBUILD geant-python-4.9.5_p01.ebuild 2440 RMD160 631bf9815b2a7e94273be0779073b629710ffaab SHA1 b56a57f32edde7bed3fc28053968d004926523ee SHA256 74544462828f85729f743e25f50abfaca55799a031097a53dea1597136f4b41d +MISC ChangeLog 460 RMD160 3de792d275ff4b3c1d6e294756eb505263ba1716 SHA1 161ee847773526cd2f02da77f0b4a608fda94ca5 SHA256 34be78d8ad361a7195adec88fa31cac3d39fe3f315d838fdcf6d9b972f424e0b +MISC metadata.xml 240 RMD160 efd4ab46b75a4f49cf759c1af44f74b7d952dfc2 SHA1 7180d1a98e53900396070713396ca66eebb913c4 SHA256 f3269ca94d60315f7e3ebf8aa24ed69d2d2c53473707c76586834f76e8ce27e3 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 new file mode 100644 index 000000000000..94f5dd260804 --- /dev/null +++ b/sci-physics/geant-python/files/geant-python-4.9.5-build.patch @@ -0,0 +1,39 @@ +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-visverbose.patch b/sci-physics/geant-python/files/geant-python-4.9.5-visverbose.patch new file mode 100644 index 000000000000..0508f28b6fa6 --- /dev/null +++ b/sci-physics/geant-python/files/geant-python-4.9.5-visverbose.patch @@ -0,0 +1,13 @@ +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.5_p01.ebuild b/sci-physics/geant-python/geant-python-4.9.5_p01.ebuild new file mode 100644 index 000000000000..f8be72385d24 --- /dev/null +++ b/sci-physics/geant-python/geant-python-4.9.5_p01.ebuild @@ -0,0 +1,80 @@ +# 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.1 2012/05/20 03:11:24 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="" + +RDEPEND="sci-physics/geant:4 \ + 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 +} diff --git a/sci-physics/geant-python/metadata.xml b/sci-physics/geant-python/metadata.xml new file mode 100644 index 000000000000..c7e8266dc599 --- /dev/null +++ b/sci-physics/geant-python/metadata.xml @@ -0,0 +1,8 @@ +<?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> |