diff options
Diffstat (limited to 'sci-misc/salome-kernel')
-rw-r--r-- | sci-misc/salome-kernel/ChangeLog | 92 | ||||
-rw-r--r-- | sci-misc/salome-kernel/Manifest | 2 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel-5.1.3-lib_location.patch | 13 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel-5.1.3-openmpi.patch | 21 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel-5.1.3-python-2.6.patch | 13 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel-5.1.4-lib_location.patch | 13 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel-5.1.4-openmpi.patch | 21 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel-5.1.4-python-2.6.patch | 13 | ||||
-rw-r--r-- | sci-misc/salome-kernel/files/salome-kernel.png | bin | 1934 -> 0 bytes | |||
-rw-r--r-- | sci-misc/salome-kernel/metadata.xml | 8 | ||||
-rw-r--r-- | sci-misc/salome-kernel/salome-kernel-5.1.3.ebuild | 121 | ||||
-rw-r--r-- | sci-misc/salome-kernel/salome-kernel-5.1.4.ebuild | 121 |
12 files changed, 0 insertions, 438 deletions
diff --git a/sci-misc/salome-kernel/ChangeLog b/sci-misc/salome-kernel/ChangeLog deleted file mode 100644 index d03f79a72..000000000 --- a/sci-misc/salome-kernel/ChangeLog +++ /dev/null @@ -1,92 +0,0 @@ -# ChangeLog for sci-misc/salome-kernel -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Id$ - - 10 Feb 2012; Alexey Shvetsov <alexxy@gentoo.org> salome-kernel-5.1.3.ebuild, - salome-kernel-5.1.4.ebuild: - [sci-misc/salome*] Fix python depend - - 07 Mar 2011; Justin Lecher <jlec@gentoo.org> salome-kernel-5.1.3.ebuild, - salome-kernel-5.1.4.ebuild: - Correct Slots for gtk 3 introduction to tree - -*salome-kernel-5.1.4 (27 Oct 2010) - - 27 Oct 2010; Thomas Kahle <tomka@gentoo.org> +salome-kernel-5.1.4.ebuild, - +files/salome-kernel-5.1.4-openmpi.patch, - +files/salome-kernel-5.1.4-python-2.6.patch: - Bump to 5.1.4, ebuild by Michael Riss in bug 330303 - - 29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-kernel-5.1.3.ebuild: - Python ABI fixes - - 04 Apr 2010; Etienne Lorriaux <etienne.lorriaux@gmail.com> - salome-kernel-5.1.3.ebuild: - changed fetch URL + cleaning - -*salome-kernel-5.1.3 (14 Mar 2010) - - 14 Mar 2010; Etienne Lorriaux <etienne.lorriaux@gmail.com> - -salome-kernel-3.2.6.ebuild, - -files/salome-kernel-3.2.6-Batch_Couple.patch, - -files/salome-kernel-3.2.6-gcc-4.3.patch, - -files/salome-kernel-3.2.6-mpich2.patch, - -files/salome-kernel-3.2.6-omniorb_4.1.patch, - -files/salome-kernel-3.2.6-pyobject.patch, - -files/salome-kernel-3.2.6_openpbs.patch, +salome-kernel-5.1.3.ebuild, - +files/salome-kernel-5.1.3-lib_location.patch, - +files/salome-kernel-5.1.3-openmpi.patch, - +files/salome-kernel-5.1.3-python-2.6.patch, - -files/salome-kernel-gcc4.patch, metadata.xml: - Version bump 5.1.3 + removed broken 3.2.6 - - 02 Nov 2009; Justin Lecher (jlec) <jlec@j-schmitz.net> - -files/digest-salome-kernel-3.2.6: - remove old digest - - 05 Feb 2009; Thomas Anderson <gentoofan23@gentoo.org> - sci-misc/salome-kernel/salome-kernel-3.2.6.ebuild: - [QA]: We need EAPI=1 for SLOT dependencies - - 27 Oct 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild, metadata.xml: - Reordered dependencies - - 22 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild: - fixed dependency - - 19 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild: - Fixed typo in dependency - - 05 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild: - Fixed version dependency - - 04 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild: - Fixed version dependency - - 04 Sep 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild, +files/salome-kernel-3.2.6-omniorb_4.1.patch, - files/salome-kernel-3.2.6-pyobject.patch, - -files/salome-kernel-3.2.6_omniorg.patch: - Reworked USE-flags, changed default behaviour, added omniorb_4.1.patch - - 26 Aug 2008; Oliver Borm (boroli) <oli.borm@web.de> - salome-kernel-3.2.6.ebuild, -Changelog, +metadata.xml: - Removed fetch restriction, added python-2.5 support, removed hardcode - - 6 July 2008; Daniel Tourde <daniel.tourde@caelae.se> - Updated to a new gcc-4.3 patch provided by Bert K. - - 29 May 2008; Daniel Tourde <daniel.tourde@caelae.se> - +salome-kernel-3.2.6-gcc-4.3.patch - Added support to gcc-4.3. Patch provided by Bert Karwatzki <spasswolf@web.de> - - 20 May 2008; Daniel Tourde <daniel.tourde@caelae.se> - Initial import. - +salome-kernel-3.2.6.ebuild, +salome-kernel-3.2.6_omniorg.patch, +salome-kernel-gcc4.patch, +salome-kernel-3.2.6-Batch_Couple.patch, +salome-kernel-3.2.6_openpbs.patch, +salome-kernel.png, +salome-kernel-3.2.6-mpich2.patch, +salome-kernel-3.2.6-pyobject.patch - A major thank to Francois Dorin <f.dorin@free.fr>, Jon Hood <squinky86@gmail.com>, Dewald Pietersen <dewald.pieterse@gmail.com>, <etienne.lorriaux@gmail.com> and Richard Westwell <garlicbread@ntlworld.com> for their respective contributions and feedback. Without you guys, the Salome ebuilds would not exist today. Thanks! - See bug #155974 for more info diff --git a/sci-misc/salome-kernel/Manifest b/sci-misc/salome-kernel/Manifest deleted file mode 100644 index 7914a3ca2..000000000 --- a/sci-misc/salome-kernel/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST src5.1.3.tar.gz 106470135 SHA256 78ce2acc9cfa474e030723674f4420c420fd2de926b1939455c3716f1fd48a2b -DIST src5.1.4.tar.gz 120063320 SHA256 dd59384ad4fbbbe49c72e946eed9e0f6144a01c799efab62033113a3db46eeae diff --git a/sci-misc/salome-kernel/files/salome-kernel-5.1.3-lib_location.patch b/sci-misc/salome-kernel/files/salome-kernel-5.1.3-lib_location.patch deleted file mode 100644 index afb5e4553..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel-5.1.3-lib_location.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- src5.1.3.old/KERNEL_SRC_5.1.3/salome_adm/unix/config_files/ac_linker_options.m4 2009-07-10 19:08:57.000000000 +0200 -+++ src5.1.3/KERNEL_SRC_5.1.3/salome_adm/unix/config_files/ac_linker_options.m4 2009-07-26 19:47:05.000000000 +0200 -@@ -26,6 +26,10 @@ - - AC_CHECKING(for LIB_LOCATION_SUFFIX) - LIB_LOCATION_SUFFIX="" -+ case "$build_cpu" in -+ x86_64*) LIB_LOCATION_SUFFIX="64" ;; -+ *) LIB_LOCATION_SUFFIX="" ;; -+ esac - AC_SUBST(LIB_LOCATION_SUFFIX) - AC_MSG_RESULT(LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX) - diff --git a/sci-misc/salome-kernel/files/salome-kernel-5.1.3-openmpi.patch b/sci-misc/salome-kernel/files/salome-kernel-5.1.3-openmpi.patch deleted file mode 100644 index 660d1ae5e..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel-5.1.3-openmpi.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- src5.1.3.orig/KERNEL_SRC_5.1.3/salome_adm/unix/config_files/check_mpi.m4 2008-12-10 10:14:34.000000000 +0100 -+++ src5.1.3/KERNEL_SRC_5.1.3/salome_adm/unix/config_files/check_mpi.m4 2009-09-29 10:14:56.821299268 +0200 -@@ -76,7 +76,7 @@ - - if test "$WITHMPI" = "yes";then - mpi_ok=yes -- MPI_LIBS="$MPI_LIBS -lmpi -lmpio -lmpiCC" -+ MPI_LIBS="$MPI_LIBS -lmpi -lmpi_cxx" - else - mpi_ok=no - fi ---- src5.1.3.orig/KERNEL_SRC_5.1.3/src/Communication/SALOME_Comm_i.hxx 2008-12-10 10:14:33.000000000 +0100 -+++ src5.1.3/KERNEL_SRC_5.1.3/src/Communication/SALOME_Comm_i.hxx 2009-09-29 11:10:13.227293648 +0200 -@@ -25,6 +25,7 @@ - #include <SALOME_Communication.hxx> - - #ifdef HAVE_MPI2 -+#define OMPI_IGNORE_CXX_SEEK 1 - #include "mpi.h" - #endif - #include <string> diff --git a/sci-misc/salome-kernel/files/salome-kernel-5.1.3-python-2.6.patch b/sci-misc/salome-kernel/files/salome-kernel-5.1.3-python-2.6.patch deleted file mode 100644 index bac07b16b..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel-5.1.3-python-2.6.patch +++ /dev/null @@ -1,13 +0,0 @@ -Only in src5.1.3/KERNEL_SRC_5.1.3/src/KERNEL_PY: .import_hook.py.swp -diff -ur src5.1.3.orig/KERNEL_SRC_5.1.3/src/KERNEL_PY/import_hook.py src5.1.3/KERNEL_SRC_5.1.3/src/KERNEL_PY/import_hook.py ---- src5.1.3.orig/KERNEL_SRC_5.1.3/src/KERNEL_PY/import_hook.py 2010-03-07 17:35:38.450323100 +0100 -+++ src5.1.3/KERNEL_SRC_5.1.3/src/KERNEL_PY/import_hook.py 2010-03-07 17:37:18.940255407 +0100 -@@ -150,7 +150,7 @@ - l.append((subname,submod)) - return l - --def import_hook(name, globals=None, locals=None, fromlist=None, *args): -+def import_hook(name, globals=None, locals=None, fromlist=None, level=-1, *args): - """ Import replacement for sharing modules among multiple interpreters - Mostly update sys.modules before doing real import - """ diff --git a/sci-misc/salome-kernel/files/salome-kernel-5.1.4-lib_location.patch b/sci-misc/salome-kernel/files/salome-kernel-5.1.4-lib_location.patch deleted file mode 100644 index afb5e4553..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel-5.1.4-lib_location.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- src5.1.3.old/KERNEL_SRC_5.1.3/salome_adm/unix/config_files/ac_linker_options.m4 2009-07-10 19:08:57.000000000 +0200 -+++ src5.1.3/KERNEL_SRC_5.1.3/salome_adm/unix/config_files/ac_linker_options.m4 2009-07-26 19:47:05.000000000 +0200 -@@ -26,6 +26,10 @@ - - AC_CHECKING(for LIB_LOCATION_SUFFIX) - LIB_LOCATION_SUFFIX="" -+ case "$build_cpu" in -+ x86_64*) LIB_LOCATION_SUFFIX="64" ;; -+ *) LIB_LOCATION_SUFFIX="" ;; -+ esac - AC_SUBST(LIB_LOCATION_SUFFIX) - AC_MSG_RESULT(LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX) - diff --git a/sci-misc/salome-kernel/files/salome-kernel-5.1.4-openmpi.patch b/sci-misc/salome-kernel/files/salome-kernel-5.1.4-openmpi.patch deleted file mode 100644 index daa51bbbf..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel-5.1.4-openmpi.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- src5.1.4.orig/KERNEL_SRC_5.1.4/salome_adm/unix/config_files/check_mpi.m4 2008-12-10 10:14:34.000000000 +0100 -+++ src5.1.4/KERNEL_SRC_5.1.4/salome_adm/unix/config_files/check_mpi.m4 2009-09-29 10:14:56.821299268 +0200 -@@ -76,7 +76,7 @@ - - if test "$WITHMPI" = "yes";then - mpi_ok=yes -- MPI_LIBS="$MPI_LIBS -lmpi -lmpio -lmpiCC" -+ MPI_LIBS="$MPI_LIBS -lmpi -lmpi_cxx" - else - mpi_ok=no - fi ---- src5.1.4.orig/KERNEL_SRC_5.1.4/src/Communication/SALOME_Comm_i.hxx 2008-12-10 10:14:33.000000000 +0100 -+++ src5.1.4/KERNEL_SRC_5.1.4/src/Communication/SALOME_Comm_i.hxx 2009-09-29 11:10:13.227293648 +0200 -@@ -25,6 +25,7 @@ - #include <SALOME_Communication.hxx> - - #ifdef HAVE_MPI2 -+#define OMPI_IGNORE_CXX_SEEK 1 - #include "mpi.h" - #endif - #include <string> diff --git a/sci-misc/salome-kernel/files/salome-kernel-5.1.4-python-2.6.patch b/sci-misc/salome-kernel/files/salome-kernel-5.1.4-python-2.6.patch deleted file mode 100644 index 2395d95bc..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel-5.1.4-python-2.6.patch +++ /dev/null @@ -1,13 +0,0 @@ -Only in src5.1.4/KERNEL_SRC_5.1.4/src/KERNEL_PY: .import_hook.py.swp -diff -ur src5.1.4.orig/KERNEL_SRC_5.1.4/src/KERNEL_PY/import_hook.py src5.1.4/KERNEL_SRC_5.1.4/src/KERNEL_PY/import_hook.py ---- src5.1.4.orig/KERNEL_SRC_5.1.4/src/KERNEL_PY/import_hook.py 2010-03-07 17:35:38.450323100 +0100 -+++ src5.1.4/KERNEL_SRC_5.1.4/src/KERNEL_PY/import_hook.py 2010-03-07 17:37:18.940255407 +0100 -@@ -150,7 +150,7 @@ - l.append((subname,submod)) - return l - --def import_hook(name, globals=None, locals=None, fromlist=None, *args): -+def import_hook(name, globals=None, locals=None, fromlist=None, level=-1, *args): - """ Import replacement for sharing modules among multiple interpreters - Mostly update sys.modules before doing real import - """ diff --git a/sci-misc/salome-kernel/files/salome-kernel.png b/sci-misc/salome-kernel/files/salome-kernel.png Binary files differdeleted file mode 100644 index 485c12713..000000000 --- a/sci-misc/salome-kernel/files/salome-kernel.png +++ /dev/null diff --git a/sci-misc/salome-kernel/metadata.xml b/sci-misc/salome-kernel/metadata.xml deleted file mode 100644 index 217d71c41..000000000 --- a/sci-misc/salome-kernel/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>sci</herd> - <use> - <flag name='numpy'>Enable support for <pkg>dev-python/numpy</pkg></flag> - </use> -</pkgmetadata> diff --git a/sci-misc/salome-kernel/salome-kernel-5.1.3.ebuild b/sci-misc/salome-kernel/salome-kernel-5.1.3.ebuild deleted file mode 100644 index 337fbd20b..000000000 --- a/sci-misc/salome-kernel/salome-kernel-5.1.3.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=2 -PYTHON_DEPEND="2:2.5" - -inherit eutils python - -DESCRIPTION="The Open Source Integration Platform for Numerical Simulation - KERNEL Component" -HOMEPAGE="http://www.salome-platform.org" -SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" -SLOT="0" -IUSE="debug doc mpi numpy" - -RDEPEND=" - >=dev-python/omniorbpy-3.4 - >=net-misc/omniORB-4.1.4 - >=dev-libs/boost-1.40.0 - sci-libs/hdf5 - debug? ( dev-util/cppunit ) - mpi? - ( || ( - sys-cluster/openmpi[cxx] - sys-cluster/mpich2[cxx] - ) ) - numpy? ( dev-python/numpy )" -DEPEND="${RDEPEND} - >=app-doc/doxygen-1.5.6 - media-gfx/graphviz - dev-python/docutils - dev-lang/swig - dev-libs/libxml2:2 - >=dev-python/docutils-0.4" - -MODULE_NAME="KERNEL" -S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}" -INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}" -KERNEL_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}" - -pkg_setup() { - [[ $(python_get_version) > 2.4 ]] && \ - ewarn "Python 2.4 is highly recommended for Salome..." - - #Warn about mpi use flag for hdf5 - has_version "sci-libs/hdf5[mpi]" && - ewarn "mpi use flag enabled for sci-libs/hdf5, this may cause the build to fail for salome-kernel" - python_set_active_version 2 -} - -src_prepare() { - use amd64 && epatch "${FILESDIR}"/${P}-lib_location.patch - [[ $(python_get_version) == 2.6 ]] && \ - epatch "${FILESDIR}"/${P}-python-2.6.patch - - has_version "sys-cluster/openmpi" && \ - epatch "${FILESDIR}"/${P}-openmpi.patch - - ./clean_configure - ./build_configure -} - -src_configure() { - local myconf="" - -# --without-mpi does not disable mpi support, just omit it to disable - if use mpi; then - if has_version ">=sys-cluster/openmpi-1.2.9"; then - myconf="${myconf} --with-mpi --with-openmpi" - elif has_version ">=sys-cluster/mpich2-1.0.8"; then - myconf="${myconf} --with-mpi --with-mpich" - fi - fi - - econf --prefix=${INSTALL_DIR} \ - --docdir=${INSTALL_DIR}/share/doc/salome \ - --infodir=${INSTALL_DIR}/share/info \ - --datadir=${INSTALL_DIR}/share/salome \ - --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \ - --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \ - --enable-corba-gen \ - ${myconf} \ - $(use_enable mpi parallel_extension ) \ - $(use_enable debug ) \ - $(use_enable !debug production ) \ - $(use_with debug cppunit /usr ) \ - || die "econf failed" -} - -src_install() { - MAKEOPTS="-j1" emake DESTDIR="${D}" install || die "emake install failed" - - use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib - - echo "KERNEL_ROOT_DIR=${INSTALL_DIR}" > ./90${P} - echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P} - echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P} - echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P} - doenvd 90${P} - use doc && dodoc AUTHORS ChangeLog INSTALL NEWS README README.FIRST.txt - - # Install icon and .desktop for menu entry - doicon "${FILESDIR}"/${PN}.png - make_desktop_entry runSalome Salome ${PN} "Science;Engineering" -} - -pkg_postinst() { - elog "Run \`env-update && source /etc/profile\`" - elog "now to set up the correct paths." - elog "" - - ewarn "note a small change to /etc/hosts may be required" - ewarn "salome doesn't seem to recognise localhost within the hosts file" - ewarn "a line such as" - ewarn "127.0.0.1 name.domain name" - ewarn "may be required within /etc/hosts" - ewarn "" -} diff --git a/sci-misc/salome-kernel/salome-kernel-5.1.4.ebuild b/sci-misc/salome-kernel/salome-kernel-5.1.4.ebuild deleted file mode 100644 index 337fbd20b..000000000 --- a/sci-misc/salome-kernel/salome-kernel-5.1.4.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=2 -PYTHON_DEPEND="2:2.5" - -inherit eutils python - -DESCRIPTION="The Open Source Integration Platform for Numerical Simulation - KERNEL Component" -HOMEPAGE="http://www.salome-platform.org" -SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" -SLOT="0" -IUSE="debug doc mpi numpy" - -RDEPEND=" - >=dev-python/omniorbpy-3.4 - >=net-misc/omniORB-4.1.4 - >=dev-libs/boost-1.40.0 - sci-libs/hdf5 - debug? ( dev-util/cppunit ) - mpi? - ( || ( - sys-cluster/openmpi[cxx] - sys-cluster/mpich2[cxx] - ) ) - numpy? ( dev-python/numpy )" -DEPEND="${RDEPEND} - >=app-doc/doxygen-1.5.6 - media-gfx/graphviz - dev-python/docutils - dev-lang/swig - dev-libs/libxml2:2 - >=dev-python/docutils-0.4" - -MODULE_NAME="KERNEL" -S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}" -INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}" -KERNEL_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}" - -pkg_setup() { - [[ $(python_get_version) > 2.4 ]] && \ - ewarn "Python 2.4 is highly recommended for Salome..." - - #Warn about mpi use flag for hdf5 - has_version "sci-libs/hdf5[mpi]" && - ewarn "mpi use flag enabled for sci-libs/hdf5, this may cause the build to fail for salome-kernel" - python_set_active_version 2 -} - -src_prepare() { - use amd64 && epatch "${FILESDIR}"/${P}-lib_location.patch - [[ $(python_get_version) == 2.6 ]] && \ - epatch "${FILESDIR}"/${P}-python-2.6.patch - - has_version "sys-cluster/openmpi" && \ - epatch "${FILESDIR}"/${P}-openmpi.patch - - ./clean_configure - ./build_configure -} - -src_configure() { - local myconf="" - -# --without-mpi does not disable mpi support, just omit it to disable - if use mpi; then - if has_version ">=sys-cluster/openmpi-1.2.9"; then - myconf="${myconf} --with-mpi --with-openmpi" - elif has_version ">=sys-cluster/mpich2-1.0.8"; then - myconf="${myconf} --with-mpi --with-mpich" - fi - fi - - econf --prefix=${INSTALL_DIR} \ - --docdir=${INSTALL_DIR}/share/doc/salome \ - --infodir=${INSTALL_DIR}/share/info \ - --datadir=${INSTALL_DIR}/share/salome \ - --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \ - --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \ - --enable-corba-gen \ - ${myconf} \ - $(use_enable mpi parallel_extension ) \ - $(use_enable debug ) \ - $(use_enable !debug production ) \ - $(use_with debug cppunit /usr ) \ - || die "econf failed" -} - -src_install() { - MAKEOPTS="-j1" emake DESTDIR="${D}" install || die "emake install failed" - - use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib - - echo "KERNEL_ROOT_DIR=${INSTALL_DIR}" > ./90${P} - echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P} - echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P} - echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P} - doenvd 90${P} - use doc && dodoc AUTHORS ChangeLog INSTALL NEWS README README.FIRST.txt - - # Install icon and .desktop for menu entry - doicon "${FILESDIR}"/${PN}.png - make_desktop_entry runSalome Salome ${PN} "Science;Engineering" -} - -pkg_postinst() { - elog "Run \`env-update && source /etc/profile\`" - elog "now to set up the correct paths." - elog "" - - ewarn "note a small change to /etc/hosts may be required" - ewarn "salome doesn't seem to recognise localhost within the hosts file" - ewarn "a line such as" - ewarn "127.0.0.1 name.domain name" - ewarn "may be required within /etc/hosts" - ewarn "" -} |