public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-physics/geant-python: geant-python-4.9.5_p02.ebuild ChangeLog geant-python-4.9.5_p01.ebuild
@ 2013-05-12  3:32 Patrick Lauer (patrick)
  0 siblings, 0 replies; only message in thread
From: Patrick Lauer (patrick) @ 2013-05-12  3:32 UTC (permalink / raw
  To: gentoo-commits

patrick     13/05/12 03:32:16

  Modified:             ChangeLog
  Added:                geant-python-4.9.5_p02.ebuild
  Removed:              geant-python-4.9.5_p01.ebuild
  Log:
  [QA] Bump to match sci-physics/geant versions
  
  (Portage version: 2.2.0_alpha174/cvs/Linux x86_64, unsigned Manifest commit)

Revision  Changes    Path
1.7                  sci-physics/geant-python/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/ChangeLog?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/ChangeLog?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/ChangeLog?r1=1.6&r2=1.7

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-physics/geant-python/ChangeLog,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ChangeLog	12 Jul 2012 02:13:34 -0000	1.6
+++ ChangeLog	12 May 2013 03:32:16 -0000	1.7
@@ -1,6 +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.6 2012/07/12 02:13:34 heroxbd Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-python/ChangeLog,v 1.7 2013/05/12 03:32:16 patrick Exp $
+
+*geant-python-4.9.5_p02 (12 May 2013)
+
+  12 May 2013; Patrick Lauer <patrick@gentoo.org>
+  +geant-python-4.9.5_p02.ebuild, -geant-python-4.9.5_p01.ebuild:
+  [QA] Bump to match sci-physics/geant versions
 
   12 Jul 2012; Benda Xu <heroxbd@gentoo.org> geant-python-4.9.5.ebuild:
   replace sed hacks with configure provided libdir
@@ -22,4 +28,3 @@
   +files/geant-python-4.9.5-visverbose.patch, +geant-python-4.9.5_p01.ebuild,
   +metadata.xml:
   initial commit
-



1.1                  sci-physics/geant-python/geant-python-4.9.5_p02.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/geant-python-4.9.5_p02.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/geant-python/geant-python-4.9.5_p02.ebuild?rev=1.1&content-type=text/plain

Index: geant-python-4.9.5_p02.ebuild
===================================================================
# Copyright 1999-2013 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_p02.ebuild,v 1.1 2013/05/12 03:32:16 patrick 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
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-12  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-12  3:32 [gentoo-commits] gentoo-x86 commit in sci-physics/geant-python: geant-python-4.9.5_p02.ebuild ChangeLog geant-python-4.9.5_p01.ebuild Patrick Lauer (patrick)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox