/[gentoo-x86]/sci-physics/geant/geant-4.10.00_p01.ebuild
Gentoo

Contents of /sci-physics/geant/geant-4.10.00_p01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed May 27 15:28:09 2015 UTC (3 years, 10 months ago) by bircoph
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
fix bug 516596

Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
(Portage version: 2.2.20/cvs/Linux i686, signed Manifest commit with key 565953B95372756C)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/geant-4.10.00_p01.ebuild,v 1.2 2015/03/05 01:05:38 heroxbd Exp $
4
5 EAPI=5
6
7 inherit cmake-utils eutils fortran-2 versionator multilib
8
9 PV1=$(get_version_component_range 1 ${PV})
10 PV2=$(get_version_component_range 2 ${PV})
11 PV3=$(get_version_component_range 3 ${PV})
12 SPV3=$(printf %1d ${PV3})
13 MYP=${PN}$(replace_version_separator 3 .)
14
15 DESCRIPTION="Toolkit for simulation of passage of particles through matter"
16 HOMEPAGE="http://geant4.cern.ch/"
17 SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
18
19 LICENSE="geant4"
20 SLOT="4"
21 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22 IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
23 raytracerx qt4 static-libs vrml zlib threads"
24
25 RDEPEND="
26 dev-libs/expat
27 >=sci-physics/clhep-2.1.3:2=
28 dawn? ( media-gfx/dawn )
29 gdml? ( dev-libs/xerces-c )
30 motif? ( x11-libs/motif:0 )
31 opengl? ( virtual/opengl )
32 inventor? ( media-libs/SoXt )
33 qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
34 raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
35 zlib? ( sys-libs/zlib )"
36 DEPEND="${RDEPEND}"
37 PDEPEND="
38 data? ( >=sci-physics/geant-data-4.10 )
39 doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${SPV3} )"
40
41 S="${WORKDIR}/${MYP}"
42
43 src_configure() {
44 local mycmakeargs=(
45 -DGEANT4_USE_SYSTEM_CLHEP=ON
46 -DCMAKE_INSTALL_LIBDIR="${EROOT}usr/$(get_libdir)"
47 -DGEANT4_INSTALL_DATA=OFF
48 $(cmake-utils_use threads GEANT4_BUILD_MULTITHREADED)
49 $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
50 $(cmake-utils_use gdml GEANT4_USE_GDML)
51 $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
52 $(cmake-utils_use motif GEANT4_USE_XM)
53 $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
54 $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
55 $(cmake-utils_use qt4 GEANT4_USE_QT)
56 $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
57 $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
58 $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
59 $(cmake-utils_use_build static-libs STATIC_LIBS)
60 )
61 if use inventor; then
62 mycmakeargs+=(
63 -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
64 -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
65 )
66 fi
67 cmake-utils_src_configure
68 }
69
70 src_install() {
71 # adjust clhep linking flags for system clhep
72 # binmake.gmk is only useful for legacy build systems
73 sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
74 cmake-utils_src_install
75 insinto /usr/share/doc/${PF}
76 local mypv="${PV1}.${PV2}.${SPV3}"
77 doins ReleaseNotes/ReleaseNotes${mypv}.html
78 [[ -e ReleaseNotes/Patch${mypv}-1.txt ]] && \
79 dodoc ReleaseNotes/Patch${mypv}-*.txt
80 use examples && doins -r examples
81 }
82
83 pkg_postinst() {
84 elog "The following scripts are provided for backward compatibility:"
85 elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${SPV3}.*/geant4make/*sh)"
86 }

  ViewVC Help
Powered by ViewVC 1.1.20