public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-physics/geant-python: metadata.xml geant-python-4.9.5_p01.ebuild Manifest ChangeLog
@ 2012-05-20  3:11 Benda XU (heroxbd)
  0 siblings, 0 replies; only message in thread
From: Benda XU (heroxbd) @ 2012-05-20  3:11 UTC (permalink / raw
  To: gentoo-commits

heroxbd     12/05/20 03:11:24

  Added:                metadata.xml geant-python-4.9.5_p01.ebuild Manifest
                        ChangeLog
  Log:
  initial commit
  
  (Portage version: 2.1.10.57/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sci-physics/geant-python/metadata.xml

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

Index: metadata.xml
===================================================================
<?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>



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

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

Index: geant-python-4.9.5_p01.ebuild
===================================================================
# 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
}



1.1                  sci-physics/geant-python/Manifest

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

Index: Manifest
===================================================================
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 2323 RMD160 98c8df64c536d5303463ed77976bb4cd900c2b69 SHA1 8b9e4d27f1b347968fd11fced6d4d9dcf2f1185b SHA256 04d923cdbf31274a58b6ad20b45ac3c8c7f3f37f866733a750f10c392a84f83f
MISC metadata.xml 240 RMD160 efd4ab46b75a4f49cf759c1af44f74b7d952dfc2 SHA1 7180d1a98e53900396070713396ca66eebb913c4 SHA256 f3269ca94d60315f7e3ebf8aa24ed69d2d2c53473707c76586834f76e8ce27e3



1.1                  sci-physics/geant-python/ChangeLog

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

Index: ChangeLog
===================================================================
# 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







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

only message in thread, other threads:[~2012-05-20  3:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-20  3:11 [gentoo-commits] gentoo-x86 commit in sci-physics/geant-python: metadata.xml geant-python-4.9.5_p01.ebuild Manifest ChangeLog Benda XU (heroxbd)

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