aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-06-07 09:00:13 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-06-07 09:00:13 +0000
commitbcd4d6c542b41f1990d808f1e66411e0211555d9 (patch)
tree0a9e5d8e6a5e8def8ff92a31b12cc07d0001e7da /sci-physics
parentremoved dawn, now in main tree (diff)
downloadsci-bcd4d6c542b41f1990d808f1e66411e0211555d9.tar.gz
sci-bcd4d6c542b41f1990d808f1e66411e0211555d9.tar.bz2
sci-bcd4d6c542b41f1990d808f1e66411e0211555d9.zip
removed geant, now in main tree
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1132 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/geant/ChangeLog49
-rw-r--r--sci-physics/geant/Manifest12
-rw-r--r--sci-physics/geant/geant-3.21.14-r2.ebuild74
-rw-r--r--sci-physics/geant/geant-4.9.1_p02.ebuild225
-rw-r--r--sci-physics/geant/metadata.xml12
5 files changed, 0 insertions, 372 deletions
diff --git a/sci-physics/geant/ChangeLog b/sci-physics/geant/ChangeLog
deleted file mode 100644
index 7ed7fdc02..000000000
--- a/sci-physics/geant/ChangeLog
+++ /dev/null
@@ -1,49 +0,0 @@
-# ChangeLog for sci-physics/geant4
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 02 Jun 2008; Sébastien Fabbro <bicatali@gentoo.org>
- -geant-4.9.1_p01.ebuild, +geant-4.9.1_p02.ebuild:
- Upstream post-version patch bump + some fixes from Benjamin Bennier.
-
- 16 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
- geant-4.9.1_p01.ebuild:
- Fixed a wrong sed command in env generation
-
- 16 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
- -files/geant-4.9.1_p01-configure.patch,
- -files/geant-4.9.1_p01-no-source.patch, metadata.xml,
- geant-4.9.1_p01.ebuild:
- geant4: new ebuild with exports
-
- 11 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
- +geant-3.21.14-r2.ebuild, geant-4.9.1_p01.ebuild:
- Added slotted geant-3
-
- 11 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
- geant-4.9.1_p01.ebuild:
- now installs data in /usr/share/geant-4/data
-
- 09 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
- geant-4.9.1_p01.ebuild:
- fixed data install
-
-*geant-4.9.1_p01 (08 Apr 2008)
-
- 08 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
- +geant-4.9.1_p01.ebuild:
- Initial import of geant-4. Probably still not working. See bug #212221.
-
-*geant-3.21.14-r1 (11 Mar 2008)
-
- 11 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org>
- +geant-3.21.14-r1.ebuild:
- New series of patches from Debian, more compatible with gfortran and better
- tests. Much ebuild cleaning.
-
-*geant-3.21.14 (24 Aug 2007)
-
- 24 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
- +geant-3.21.14.ebuild:
- Initial import.
-
diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest
deleted file mode 100644
index aea7533ba..000000000
--- a/sci-physics/geant/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-DIST G4ABLA.3.0.tar.gz 54909 RMD160 5a032ee8e90d00f39b67114fe257ec47001f347b SHA1 5f38676f1650a508e49d35f9405ac96984388135 SHA256 ff0b77be6b36204eeeba71099f6b7530edd80b79eb015994535bc4334bc821eb
-DIST G4EMLOW.5.1.tar.gz 8287134 RMD160 163f76c359bf9d4f8a2eb3d734de50c2b6dc4d72 SHA1 092e27f2befe10f3e4b2f7450d1ba3f9fe0435bb SHA256 b1bebb1a502257ba9d379e6719be7a453b0aa31c9b01d5026866e9bd811c17d9
-DIST G4NDL.3.12.tar.gz 54904967 RMD160 5ea321deb3c1ddc8094c3d28457d627cacd6f2f0 SHA1 d42d0835e8921c15902d7aa410f1207edfbd54df SHA256 05a4d74ff1faa8fa3382fbda780ea258b2e4af7e5ae29856d1deaf72b4235290
-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 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.1.p02.tar.gz 17538957 RMD160 284c8bc5f7786fda50c8c5954bdf8dea2aace2e5 SHA1 216b705635c838e0d86878953b82525ba9b9ed51 SHA256 0c8c0a5c2e091edd658637d38dea1fa3879493df7ad008cd9d88138758c9402d
-EBUILD geant-3.21.14-r2.ebuild 1777 RMD160 41c10364420d4c16f97db9afe2ab2c5ee7aa9172 SHA1 d5262f3d33f3bc0ebac0a7829acf1d9f60207749 SHA256 65f1efc85ff9cb07e405413e011fb8b3e5b154de36706015cb6d1c1a01f03229
-EBUILD geant-4.9.1_p02.ebuild 6690 RMD160 30592e1de4a2d9f6ee85ac4401212725371bcfd1 SHA1 8f87fc4285fa4742ff3da63bed19328c1353205c SHA256 b56c0da7c47e37c55aa5112a4e40391e42c2eb97b5c3a25a5d05dda6249defe7
-MISC ChangeLog 1564 RMD160 52b62f42ccaf709e01c30c950e7e7bb2433c0e91 SHA1 d2cc7cb7b90fc419d8dd5935b76e9b329cad0bd8 SHA256 3806fba3307adbfd0e890ac34c6ac28be42f9e4627a1fc4ef85442640ae174df
-MISC metadata.xml 552 RMD160 d7d3afe7f12639592a2f7356d75563ee6b84b262 SHA1 831756c23df5293d3f114679bd3d59e6f6e15ec4 SHA256 9375e293406efe2a3810fdc3e0d75fed9be986db1d79b845f3e4fc4e81edb37f
diff --git a/sci-physics/geant/geant-3.21.14-r2.ebuild b/sci-physics/geant/geant-3.21.14-r2.ebuild
deleted file mode 100644
index 037bada46..000000000
--- a/sci-physics/geant/geant-3.21.14-r2.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-DEB_PN=geant321
-DEB_PV=${PV}.dfsg
-DEB_PR=8
-DEB_P=${DEB_PN}_${DEB_PV}
-
-inherit eutils multilib fortran
-
-DESCRIPTION="CERN's detector description and simulation Tool"
-HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/geant/index.html"
-
-LICENSE="GPL-2 LGPL-2 BSD"
-SRC_URI="mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
- mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz"
-
-KEYWORDS="~amd64 ~x86"
-SLOT="3"
-IUSE=""
-
-RDEPEND="virtual/motif
- virtual/lapack
- dev-lang/cfortran
- sci-physics/cernlib
- sci-physics/paw"
-
-DEPEND="${RDEPEND}
- virtual/latex-base
- x11-misc/imake
- x11-misc/makedepend"
-
-S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
-
-KEYWORDS="~amd64 ~x86"
-
-FORTRAN="gfortran g77 ifc"
-
-src_unpack() {
- unpack ${A}
- epatch "${DEB_P}-${DEB_PR}".diff
- rm -f ${DEB_P}-${DEB_PR}.diff
- cd "${S}"
- cp debian/add-ons/Makefile .
- export DEB_BUILD_OPTIONS="${FORTRANC} nostrip nocheck"
- sed -i \
- -e 's:/usr/local:/usr:g' \
- Makefile || "sed'ing the Makefile failed"
-
- einfo "Applying Debian patches"
- emake -j1 patch || die "debian patch failed"
-
- # since we depend on cfortran, do not use the one from cernlib
- rm -f src/include/cfortran/cfortran.h
-}
-
-src_compile() {
- # create local LaTeX cache directory
- mkdir -p .texmf-var
- emake -j1 cernlib-indep cernlib-arch || die "emake failed"
-}
-
-src_test_() {
- LD_LIBRARY_PATH="${S}"/shlib \
- emake -j1 cernlib-test || die "emake test failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
- cd "${S}"/debian
- dodoc changelog README.* deadpool.txt NEWS copyright || die "dodoc failed"
- newdoc add-ons/README README.add-ons || die "newdoc failed"
-}
diff --git a/sci-physics/geant/geant-4.9.1_p02.ebuild b/sci-physics/geant/geant-4.9.1_p02.ebuild
deleted file mode 100644
index 5e49d3987..000000000
--- a/sci-physics/geant/geant-4.9.1_p02.ebuild
+++ /dev/null
@@ -1,225 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="1"
-
-inherit eutils fortran multilib versionator toolchain-funcs
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-MY_P=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="CERN's detector description and simulation Tool"
-HOMEPAGE="http://www.geant4.org/"
-
-SRC_COM="http://geant4.web.cern.ch/geant4/support/source"
-SRC_URI="${SRC_COM}/${MY_P}.tar.gz"
-GEANT4_DATA="G4NDL.3.12
- G4EMLOW.5.1
- G4RadioactiveDecay.3.2
- PhotonEvaporation.2.0
- G4ABLA.3.0"
-for d in ${GEANT4_DATA}; do
- SRC_URI="${SRC_URI} data? ( ${SRC_COM}/${d}.tar.gz )"
-done
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86"
-IUSE="athena +data dawn debug examples gdml geant3 global minimal +motif
- +opengl openinventor +raytracerx static +vrml zlib"
-
-DEPEND="sci-physics/clhep
- motif? ( virtual/motif )
- athena? ( x11-libs/libXaw )
- openinventor? ( media-libs/openinventor )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- opengl? ( virtual/opengl
- athena? ( x11-libs/Xaw3d ) )
- gdml? ( dev-libs/xerces-c )
- geant3? ( sci-physics/geant:3 )
- dawn? ( media-gfx/dawn )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- FORTRAN="gfortran g77 ifc"
- use geant3 && fortran_pkg_setup
- eval unset ${!G4*}
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # propagate user's flags.
- sed -i \
- -e "/CXXFLAGS[[:space:]]*.=[[:space:]]-O2/s:=.*:= ${CXXFLAGS}:" \
- -e "/FCFLAGS[[:space:]]*.=[[:space:]]-O2/s:=.*:= ${FFLAGS:--O2}:" \
- -e "/CCFLAGS[[:space:]]*.=[[:space:]]-O2/s:=.*:= ${CFLAGS}:" \
- config/sys/Linux*gmk || die "flag substitution failed"
-
- # fix forced lib directory
- sed -i \
- -e 's:$(G4LIB)/$(G4SYSTEM):$(G4LIB):g' \
- config/binmake.gmk || die "sed binmake.gmk failed"
- sed -i \
- -e '/$(G4LIB)\/$(G4SYSTEM)/d' \
- config/architecture.gmk || die "sed architecture.gmk failed"
- sed -i \
- -e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \
- config/common.gmk || die "sed common.gmk failed"
- sed -i \
- -e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \
- -e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \
- -e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \
- source/GNUmakefile || die "sed GNUmakefile failed"
-}
-
-src_compile() {
- export GEANT4_DIR="/usr/share/${PN}${PV1}"
- # where to put compiled libraries;
- # 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 G4INCLUDE="${D}/usr/include/${PN}"
- export CLHEP_BASE_DIR=/usr
-
- # parse USE; just set flags of drivers to build, G4*_USE_* vars are set
- # later automatically for G4*_BUILD_*_DRIVER
- use minimal && export G4UI_NONE=y \
- && export G4VIS_NONE=y
-
- use motif && export G4UI_BUILD_XM_SESSION=y
- use athena && export G4UI_BUILD_XAW_SESSION=y
-
- 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 geant3 && export G4LIB_BUILD_G3TOG4=y
- use zlib && export G4LIB_BUILD_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
-
- # switch to see compiling flags
- export CPPVERBOSE=y
-
- # if shared libs are built, the script will also build static libs
- # with pic flags
- # avoid that by building it twice and removing temporary objects
- cd "${S}/source/"
- export G4LIB_BUILD_SHARED=y
- emake || die "Building shared geant failed"
-
- if use static; then
- rm -rf tmp
- export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED
- emake || die "Building static geant failed"
- fi
-
- if use global; then
- export G4LIB_USE_GRANULAR=y
- emake global || die "Building global libraries failed"
- fi
-}
-
-g4_create_env_script() {
- # we need to change some variables to the final values since we hide these
- # from make during the compile
- export G4INSTALL=${GEANT4_DIR}
- export G4LIB=${GEANT4_LIBDIR}
- export G4INCLUDE=${G4INCLUDE/${D}/}
- export G4WORKDIR=\${HOME}/${PN}${PV1}
-
- local g4env=99${PN}${PV1}
- cat <<-EOF > ${g4env}
- LDPATH=${G4LIB}
- CLHEP_BASE_DIR=${CLHEP_BASE_DIR}
- EOF
-
- # detailed data file locations
- if $(use data); then
- export G4LEVELGAMMADATA="${G4DATA}/PhotonEvaporation2.0"
- export G4RADIOACTIVEDATA="${G4DATA}/RadioactiveDecay3.2"
- export G4LEDATA="${G4DATA}/G4EMLOW5.1"
- export G4NEUTRONHPCROSSSECTIONS="${G4DATA}/G4NDL3.12"
- fi
-
- # read env variables defined upto now
- printenv | grep ^G4 | uniq >> ${g4env}
- # define env vars for capabilities we can build into user projects
- printenv | uniq | \
- sed -n -e '/^G4/s:BUILD\(.*\)_DRIVER:USE\1:gp' >> ${g4env}
- doenvd ${g4env} || die "Installing environment scripts failed "
-}
-
-src_install() {
- # install headers via make since we want them in a single directory
- cd "${S}/source/"
- einfo "Installing Geant4 headers"
- emake includes || die 'Installing headers failed'
- cd "${S}"
-
- # but install libraries and Geant library tool manually
- einfo "Installing Geant4 libraries"
- insinto ${GEANT4_LIBDIR}
- doins tmp/*.so || die
- doins tmp/libname.map || die
- if use static; then
- doins tmp/*.a || die
- fi
- exeinto ${GEANT4_LIBDIR}
- doexe tmp/liblist || die
-
- g4_create_env_script
-
- # configs
- insinto ${GEANT4_DIR}
- doins -r config || die
-
- # install data
- if use data; then
- einfo "Installing Geant4 data"
- insinto ${G4DATA}
- pushd "${WORKDIR}" > /dev/null
- for d in ${GEANT4_DATA}; do
- local p=${d/.}
- doins -r *${p/G4} || die "installing data ${d} failed"
- done
- popd > /dev/null
- fi
-
- # doc and examples
- insinto /usr/share/doc/${PF}
- local mypv="${PV1}.${PV2}.${PV3}"
- doins ReleaseNotes/ReleaseNotes${mypv}.html
- [[ -e ReleaseNotes/Patch${mypv}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${mypv}-*.txt
-
- use examples && doins -r examples
-
- # TODO: g4py will probably need a split ebuild since it seems to
- # rely on on geant4 existence.
- # 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
- elog "Help us to improve the ebuild and dependencies in"
- elog "http://bugs.gentoo.org/show_bug.cgi?id=212221"
-}
diff --git a/sci-physics/geant/metadata.xml b/sci-physics/geant/metadata.xml
deleted file mode 100644
index 256a42f0f..000000000
--- a/sci-physics/geant/metadata.xml
+++ /dev/null
@@ -1,12 +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">
- Geant simulates the passage of subatomic particles through matter, for
- instance, particle detectors. For maximum flexibility, Geant
- simulations are performed by linking code supplied by the user
- with the Geant libraries, then running the resulting executable.
- Geant-3.* was written in Fortran, while Geant-4.* is a rewrite in C++.
-</longdescription>
-</pkgmetadata>