Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 330303
Collapse All | Expand All

(-)portage.orig/sci-misc/salome-component/ChangeLog (+6 lines)
Lines 1-5 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
  
4
*salome-component-5.1.4 (17 Aug 2010)
5
 
6
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-component-5.1.4.ebuild:
8
  Version bump to 5.1.4. Disabled as-needed flag.
3
9
4
  29 Jun 2010; Justin Lecher <jlec@gentoo.org>
10
  29 Jun 2010; Justin Lecher <jlec@gentoo.org>
5
  salome-component-5.1.3.ebuild:
11
  salome-component-5.1.3.ebuild:
(-)portage.orig/sci-misc/salome-component/salome-component-5.1.4.ebuild (+106 lines)
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
7
PYTHON_DEPEND="2:2.4"
8
9
inherit eutils flag-o-matic python
10
11
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. COMPONENT Component"
12
HOMEPAGE="http://www.salome-platform.org"
13
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
14
15
LICENSE="GPL-2"
16
KEYWORDS="~amd64 ~x86"
17
SLOT="0"
18
IUSE="debug doc mpi"
19
20
RDEPEND="mpi? ( || ( sys-cluster/openmpi[cxx]
21
		 				 sys-cluster/mpich2[cxx] ) )
22
		 debug?   ( dev-util/cppunit )
23
		 >=sci-misc/salome-kernel-${PV}
24
		 >=sci-misc/salome-gui-${PV}
25
		 >=sci-misc/salome-med-${PV}
26
		 >=x11-libs/qt-core-4.4.3
27
		 >=x11-libs/qt-gui-4.4.3
28
		 >=x11-libs/qt-opengl-4.4.3
29
		 >=x11-libs/qwt-5.2
30
		 >=dev-python/PyQt4-4.4.3
31
		 >=sci-libs/opencascade-6.3"
32
DEPEND="${RDEPEND}
33
		>=app-doc/doxygen-1.5.6
34
		media-gfx/graphviz
35
		>=dev-python/docutils-0.4
36
		>=dev-python/sip-4.7.7
37
		dev-lang/swig
38
		dev-libs/libxml2"
39
40
MODULE_NAME="COMPONENT"
41
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
42
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
43
COMPONENT_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
44
45
pkg_setup() {
46
	[[ $(python_get_version) > 2.4 ]] && \
47
		ewarn "Python 2.4 is highly recommended for Salome..."
48
	python_set_active_version 2
49
	append-ldflags $(no-as-needed)
50
}
51
52
src_prepare() {
53
	rm -r -f autom4te.cache
54
	./build_configure
55
}
56
57
src_configure() {
58
	local myconf=""
59
60
#   --without-mpi does not disable mpi support, just omit it to disable
61
	if use mpi; then
62
		append-ldflags -lmpi -lmpi_cxx
63
		if has_version ">=sys-cluster/openmpi-1.2.9"; then
64
			myconf="${myconf} --with-mpi --with-openmpi"
65
		elif has_version ">=sys-cluster/mpich2-1.0.8"; then
66
			myconf="${myconf} --with-mpi --with-mpich"
67
			append-flags -DMPICH_IGNORE_CXX_SEEK
68
		fi
69
	fi
70
71
	econf --prefix=${INSTALL_DIR} \
72
	      --datadir=${INSTALL_DIR}/share/salome \
73
	      --docdir=${INSTALL_DIR}/doc/salome \
74
	      --infodir=${INSTALL_DIR}/share/info \
75
		  --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
76
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
77
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
78
	      ${myconf} \
79
	      $(use_enable debug ) \
80
	      $(use_enable !debug production ) \
81
	|| die "econf failed"
82
}
83
84
src_install() {
85
	emake DESTDIR="${D}" install \
86
	|| die "emake install failed"
87
88
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
89
90
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
91
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
92
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
93
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
94
	doenvd 90${P}
95
	rm adm_local/Makefile
96
	insinto "${INSTALL_DIR}"
97
	doins -r adm_local
98
99
	use doc && dodoc INSTALL
100
}
101
102
pkg_postinst() {
103
	elog "Run \`env-update && source /etc/profile\`"
104
	elog "now to set up the correct paths."
105
	elog ""
106
}
(-)portage.orig/sci-misc/salome-geom/ChangeLog (+7 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
3
4
*salome-geom-5.1.4 (17 Aug 2010)
5
6
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-geom-5.1.4.ebuild,
8
  -salome-geom-5.1.3-qt4-path.patch:
9
  Version bump to 5.1.4. Added support for vtk 5.6. Disabled as-needed flag.
10
4
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-geom-5.1.3.ebuild:
11
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-geom-5.1.3.ebuild:
5
  Python ABI fixes
12
  Python ABI fixes
6
13
(-)portage.orig/sci-misc/salome-geom/salome-geom-5.1.4.ebuild (+112 lines)
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
7
PYTHON_DEPEND="2:2.4"
8
9
inherit eutils flag-o-matic python
10
11
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. GEOM component"
12
HOMEPAGE="http://www.salome-platform.org"
13
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
14
15
LICENSE="GPL-2"
16
KEYWORDS="~amd64 ~x86"
17
SLOT="0"
18
IUSE="debug doc mpi opengl"
19
20
RDEPEND="opengl?  ( virtual/opengl )
21
		 mpi?     ( || ( sys-cluster/openmpi[cxx]
22
		 				 sys-cluster/mpich2[cxx] ) )
23
	 	 debug?   ( dev-util/cppunit )
24
		 >=sci-misc/salome-kernel-${PV}
25
		 >=sci-misc/salome-gui-${PV}
26
		 >=dev-python/omniorbpy-3.4
27
		 >=net-misc/omniORB-4.1.4
28
		 >=x11-libs/qt-core-4.5.2
29
		 >=x11-libs/qt-gui-4.5.2
30
		 >=x11-libs/qt-opengl-4.5.2
31
		 >=sci-libs/opencascade-6.3
32
		 >=dev-libs/boost-1.40.0
33
		 >=sci-libs/vtk-5.0[python]
34
		 >=sci-libs/hdf5-1.6.4"
35
36
DEPEND="${RDEPEND}
37
		>=app-doc/doxygen-1.5.6
38
		media-gfx/graphviz
39
		>=dev-python/docutils-0.4
40
		dev-lang/swig"
41
42
MODULE_NAME="GEOM"
43
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
44
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
45
GEOM_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
46
47
pkg_setup() {
48
	[[ $(python_get_version) > 2.4 ]] && \
49
		ewarn "Python 2.4 is highly recommended for Salome..."
50
	python_set_active_version 2
51
	append-ldflags $(no-as-needed)
52
}
53
54
src_prepare() {
55
	#epatch "${FILESDIR}"/${P}-qt4-path.patch
56
57
	rm -r -f autom4te.cache
58
	./clean_configure
59
	./build_configure
60
}
61
62
src_configure() {
63
	local vtk_suffix=""
64
65
	has_version ">=sci-libs/vtk-5.0" && vtk_suffix="-5.0"
66
	has_version ">=sci-libs/vtk-5.2" && vtk_suffix="-5.2"
67
	has_version ">=sci-libs/vtk-5.4" && vtk_suffix="-5.4"
68
	has_version ">=sci-libs/vtk-5.6" && vtk_suffix="-5.6"
69
70
	econf --prefix=${INSTALL_DIR} \
71
	      --datadir=${INSTALL_DIR}/share/salome \
72
	      --docdir=${INSTALL_DIR}/doc/salome \
73
	      --infodir=${INSTALL_DIR}/share/info \
74
	      --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
75
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
76
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
77
		  --with-vtk=${VTKHOME} \
78
		  --with-vtk-version=${vtk_suffix} \
79
		  --with-qt='/usr' \
80
	      $(use_enable debug ) \
81
	      $(use_enable debug debug ) \
82
	      $(use_enable !debug production ) \
83
	      $(use_with opengl opengl /usr) \
84
	|| die "econf failed"
85
}
86
87
src_compile() {
88
	MAKEOPTS="-j1" emake || die "emake failed"
89
}
90
91
src_install() {
92
	emake DESTDIR="${D}" install || die "emake install failed"
93
94
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
95
96
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
97
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
98
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
99
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
100
	doenvd 90${P}
101
	rm adm_local/Makefile adm_local/unix/Makefile adm_local/cmake_files/Makefile
102
	insinto "${INSTALL_DIR}"
103
	doins -r adm_local
104
105
	use doc && dodoc INSTALL
106
}
107
108
pkg_postinst() {
109
	elog "Run \`env-update && source /etc/profile\`"
110
	elog "now to set up the correct paths."
111
	elog ""
112
}
(-)portage.orig/sci-misc/salome-gui/ChangeLog (+7 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
3
4
*salome-gui-5.1.4 (17 Aug 2010)
5
6
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-gui-5.1.4.ebuild,
8
  +salome-gui-5.1.4-qt4-path.patch:
9
  Version bump to 5.1.4. Added support for vtk 5.6. Disabled as-needed flag.
10
4
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-gui-5.1.3.ebuild:
11
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-gui-5.1.3.ebuild:
5
  Python ABI fixes
12
  Python ABI fixes
6
13
(-)portage.orig/sci-misc/salome-gui/salome-gui-5.1.4.ebuild (+118 lines)
Line 0 Link Here
1
--- src5.1.4.orig/GUI_SRC_5.1.4/adm_local/unix/config_files/check_qt.m4	2010-03-06 21:00:58.281572535 +0100
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
7
PYTHON_DEPEND="2:2.4"
8
9
inherit eutils flag-o-matic python
10
11
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. GUI component"
12
HOMEPAGE="http://www.salome-platform.org"
13
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
14
15
LICENSE="GPL-2"
16
KEYWORDS="~amd64 ~x86"
17
SLOT="0"
18
IUSE="debug doc opengl"
19
20
RDEPEND="opengl?  ( virtual/opengl )
21
		 debug?   ( dev-util/cppunit )
22
		 >=sci-misc/salome-kernel-${PV}
23
		 >=net-misc/omniORB-4.1.4
24
		 >=dev-python/omniorbpy-3.4
25
		 >=sci-libs/hdf5-1.6.4
26
		 >=dev-libs/boost-1.40.0
27
		 >=x11-libs/qt-core-4.5.2
28
		 >=x11-libs/qt-gui-4.5.2
29
		 >=x11-libs/qt-opengl-4.5.2
30
		 >=x11-libs/qwt-5.2
31
		 >=dev-python/PyQt4-4.5.4
32
		 >=sci-libs/vtk-5.0[python,mpi]
33
		 >=sci-libs/opencascade-6.3
34
		 app-text/dgs"
35
36
DEPEND="${RDEPEND}
37
		>=app-doc/doxygen-1.5.6
38
		media-gfx/graphviz
39
		>=dev-python/sip-4.8.2
40
		dev-lang/swig
41
		dev-libs/libxml2"
42
43
MODULE_NAME="GUI"
44
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
45
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
46
GUI_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
47
48
pkg_setup() {
49
	[[ $(python_get_version) > 2.4 ]] && \
50
		ewarn "Python 2.4 is highly recommended for Salome..."
51
	python_set_active_version 2
52
	append-ldflags $(no-as-needed)
53
}
54
55
src_prepare() {
56
	epatch "${FILESDIR}"/${P}-qt4-path.patch
57
58
	rm -r -f autom4te.cache
59
	./clean_configure
60
	./build_configure
61
}
62
63
src_configure() {
64
	local vtk_suffix=""
65
66
	has_version ">=sci-libs/vtk-5.0" && vtk_suffix="-5.0"
67
	has_version ">=sci-libs/vtk-5.2" && vtk_suffix="-5.2"
68
	has_version ">=sci-libs/vtk-5.4" && vtk_suffix="-5.4"
69
	has_version ">=sci-libs/vtk-5.6" && vtk_suffix="-5.6"
70
71
	econf --prefix=${INSTALL_DIR} \
72
	      --datadir=${INSTALL_DIR}/share/salome \
73
	      --docdir=${INSTALL_DIR}/doc/salome \
74
	      --infodir=${INSTALL_DIR}/share/info \
75
	      --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
76
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
77
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
78
		  --with-qt=/usr \
79
		  --with-qwt=/usr \
80
		  --with-qwt_inc=/usr/include/qwt5 \
81
		  --with-vtk=${VTKHOME} \
82
		  --with-vtk-version=${vtk_suffix} \
83
		  ${myconf} \
84
	      $(use_enable debug ) \
85
	      $(use_enable !debug production ) \
86
	      $(use_with debug cppunit /usr ) \
87
	      $(use_with opengl opengl /usr) \
88
		|| die "econf failed"
89
}
90
91
src_compile() {
92
	MAKEOPTS="-j1" emake || die "emake failed"
93
}
94
95
src_install() {
96
	emake DESTDIR="${D}" install || die "emake install failed"
97
98
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
99
100
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
101
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
102
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
103
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
104
	doenvd 90${P}
105
	rm adm_local/Makefile adm_local/unix/Makefile adm_local/cmake_files/Makefile \
106
		adm_local/unix/config_files/Makefile
107
		
108
	insinto "${INSTALL_DIR}"
109
	doins -r adm_local
110
	use doc && dodoc AUTHORS INSTALL NEWS README
111
}
112
113
pkg_postinst() {
114
	elog "Run \`env-update && source /etc/profile\`"
115
	elog "now to set up the correct paths."
116
	elog ""
117
}
(-)portage.orig/sci-misc/salome-kernel/ChangeLog (+8 lines)
Lines 2-7 Link Here
2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
3
# $Header: $
3
# $Header: $
4
4
5
*salome-kernel-5.1.4 (17 Aug 2010)
6
7
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
8
  +salome-kernel-5.1.4.ebuild,
9
  +salome-kernel-5.1.4-openmpi.patch,
10
  +salome-kernel-5.1.4-python-2.6.patch:
11
  Version bump to 5.1.4
12
5
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-kernel-5.1.3.ebuild:
13
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-kernel-5.1.3.ebuild:
6
  Python ABI fixes
14
  Python ABI fixes
7
15
(-)portage.orig/sci-misc/salome-kernel/files/salome-kernel-5.1.3-python-2.6.patch (-2 lines)
Lines 1-13 Link Here
1
Only in src5.1.3/KERNEL_SRC_5.1.3/src/KERNEL_PY: .import_hook.py.swp
2
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
(-)portage.orig/sci-misc/salome-kernel/salome-kernel-5.1.4.ebuild (+122 lines)
Line 0 Link Here
1
--- 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
Line 0 Link Here
1
Only in src5.1.4/KERNEL_SRC_5.1.4/src/KERNEL_PY: .import_hook.py.swp
2
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
3
--- src5.1.4.orig/KERNEL_SRC_5.1.4/src/KERNEL_PY/import_hook.py	2010-03-07 17:35:38.450323100 +0100
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
PYTHON_DEPEND="2:2.4"
7
8
inherit eutils python
9
10
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. KERNEL Component"
11
HOMEPAGE="http://www.salome-platform.org"
12
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
13
14
LICENSE="GPL-2"
15
KEYWORDS="~amd64 ~x86"
16
SLOT="0"
17
IUSE="debug doc mpi numpy"
18
19
RDEPEND="mpi?     ( || ( sys-cluster/openmpi[cxx]
20
		 				 sys-cluster/mpich2[cxx] ) )
21
		 debug?   ( dev-util/cppunit )
22
		 numpy?   ( dev-python/numpy )
23
		 >=dev-python/omniorbpy-3.4
24
		 >=net-misc/omniORB-4.1.4
25
		 >=dev-libs/boost-1.40.0
26
		 sci-libs/hdf5"
27
28
DEPEND="${RDEPEND}
29
		>=app-doc/doxygen-1.5.6
30
		media-gfx/graphviz
31
		dev-python/docutils
32
		dev-lang/swig
33
		dev-libs/libxml2
34
		>=dev-python/docutils-0.4"
35
36
MODULE_NAME="KERNEL"
37
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
38
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
39
KERNEL_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
40
41
pkg_setup() {
42
	[[ $(python_get_version) > 2.4 ]] && \
43
		ewarn "Python 2.4 is highly recommended for Salome..."
44
45
	#Warn about mpi use flag for hdf5
46
	has_version "sci-libs/hdf5[mpi]" &&
47
		ewarn "mpi use flag enabled for sci-libs/hdf5, this may cause the build to fail for salome-kernel"
48
	python_set_active_version 2
49
}
50
51
src_prepare() {
52
	use amd64 && epatch "${FILESDIR}"/${P}-lib_location.patch
53
	[[ $(python_get_version) == 2.6 ]] && \
54
		epatch "${FILESDIR}"/${P}-python-2.6.patch
55
56
	has_version "sys-cluster/openmpi" && \
57
		epatch "${FILESDIR}"/${P}-openmpi.patch
58
59
	./clean_configure
60
	./build_configure
61
}
62
63
src_configure() {
64
	local myconf=""
65
66
#   --without-mpi does not disable mpi support, just omit it to disable
67
	if use mpi; then
68
		if has_version ">=sys-cluster/openmpi-1.2.9"; then
69
			myconf="${myconf} --with-mpi --with-openmpi"
70
		elif has_version ">=sys-cluster/mpich2-1.0.8"; then
71
			myconf="${myconf} --with-mpi --with-mpich"
72
		fi
73
	fi
74
75
	econf --prefix=${INSTALL_DIR} \
76
	      --docdir=${INSTALL_DIR}/share/doc/salome \
77
	      --infodir=${INSTALL_DIR}/share/info \
78
	      --datadir=${INSTALL_DIR}/share/salome \
79
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
80
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
81
	      --enable-corba-gen \
82
	      ${myconf} \
83
	      $(use_enable mpi parallel_extension ) \
84
	      $(use_enable debug ) \
85
	      $(use_enable !debug production ) \
86
	      $(use_with debug cppunit /usr ) \
87
	|| die "econf failed"
88
}
89
90
src_install() {
91
	MAKEOPTS="-j1" emake DESTDIR="${D}" install || die "emake install failed"
92
93
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
94
95
	echo "KERNEL_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
96
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
97
	echo "PATH=${INSTALL_DIR}/bin/salome"   >> ./90${P}
98
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
99
	doenvd 90${P}
100
	use doc && dodoc AUTHORS ChangeLog INSTALL NEWS README README.FIRST.txt
101
102
	# Install icon and .desktop for menu entry
103
	doicon "${FILESDIR}"/${PN}.png
104
	make_desktop_entry runSalome Salome ${PN} "Science;Engineering"
105
}
106
107
pkg_postinst() {
108
	elog "Run \`env-update && source /etc/profile\`"
109
	elog "now to set up the correct paths."
110
	elog ""
111
112
	ewarn "note a small change to /etc/hosts may be required"
113
	ewarn "salome doesn't seem to recognise localhost within the hosts file"
114
	ewarn "a line such as"
115
	ewarn "127.0.0.1	name.domain	name"
116
	ewarn "may be required within /etc/hosts"
117
	ewarn ""
118
}
(-)portage.orig/sci-misc/salome-med/ChangeLog (+10 lines)
Lines 2-7 Link Here
2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
3
# $Header: $
3
# $Header: $
4
4
5
*salome-med-5.1.4 (17 Aug 2010)
6
7
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
8
  +salome-med-5.1.4.ebuild,
9
  +salome-med-5.1.4-check_metis.patch,
10
  +salome-med-5.1.4-check_scotch.patch,
11
  +salome-med-5.1.4-gcc.patch,
12
  +salome-med-5.1.4-scotch.patch:
13
  Version bump to 5.1.4. Added support for vtk 5.6. Disabled as-needed flag.
14
5
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-med-5.1.3.ebuild:
15
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-med-5.1.3.ebuild:
6
  Python ABI fixes
16
  Python ABI fixes
7
17
(-)portage.orig/sci-misc/salome-med/salome-med-5.1.4.ebuild (+131 lines)
Line 0 Link Here
1
--- src5.1.4/MED_SRC_5.1.4/adm_local/unix/config_files/check_metis.m4.orig	2009-09-27 22:35:51.014701709 +0200
Line 0 Link Here
1
--- src5.1.4/MED_SRC_5.1.4/adm_local/unix/config_files/check_scotch.m4.orig	2009-09-27 23:07:31.245061430 +0200
Line 0 Link Here
1
--- ./src5.1.4.orig/MED_SRC_5.1.4/src/INTERPOLATION/create_mesh_interpolation.c	2010-03-13 13:14:50.721209673 +0100
Line 0 Link Here
1
--- src5.1.4.orig/MED_SRC_5.1.4/src/MEDSPLITTER/MEDSPLITTER_SCOTCHGraph.cxx	2008-12-10 10:14:43.000000000 +0100
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
PYTHON_DEPEND="2:2.4"
7
8
inherit eutils flag-o-matic python
9
10
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. MED Component"
11
HOMEPAGE="http://www.salome-platform.org"
12
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
13
14
LICENSE="GPL-2"
15
KEYWORDS="~amd64 ~x86"
16
SLOT="0"
17
IUSE="debug doc mpi metis opengl scotch"
18
19
RDEPEND="opengl? ( virtual/opengl )
20
		 mpi?    ( || ( sys-cluster/openmpi[cxx]
21
		 				sys-cluster/mpich2[cxx] ) )
22
		 debug?  ( dev-util/cppunit )
23
		 metis?	 ( >=sci-libs/metis-4.0 )
24
		 scotch? ( >=sci-libs/scotch-4.0 )
25
		 >=sci-misc/salome-kernel-${PV}
26
		 >=sci-misc/salome-gui-${PV}
27
		 >=x11-libs/qt-core-4.5.2
28
		 >=x11-libs/qt-gui-4.5.2
29
		 >=x11-libs/qt-opengl-4.5.2
30
		 >=dev-libs/boost-1.40.0
31
		 >=sci-libs/opencascade-6.3
32
		 >=sci-libs/med-2.3.5
33
		 >=sci-libs/vtk-5.0[python]"
34
35
DEPEND="${RDEPEND}
36
		dev-lang/swig
37
		dev-libs/libxml2"
38
39
MODULE_NAME="MED"
40
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
41
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
42
MED_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
43
44
pkg_setup() {
45
	[[ $(python_get_version) > 2.4 ]] && \
46
		ewarn "Python 2.4 is highly recommended for Salome..."
47
	python_set_active_version 2
48
	append-ldflags $(no-as-needed)
49
}
50
51
src_prepare() {
52
	epatch "${FILESDIR}"/${P}-gcc.patch
53
	use mpi && epatch "${FILESDIR}"/${P}-mpi.patch
54
	use metis && epatch "${FILESDIR}"/${P}-check_metis.patch
55
	if use scotch; then
56
		epatch "${FILESDIR}"/${P}-check_scotch.patch
57
		epatch "${FILESDIR}"/${P}-scotch.patch
58
	fi
59
	use amd64 && epatch "${FILESDIR}"/${P}-med_int.patch
60
61
	rm -r -f autom4te.cache
62
	./clean_configure
63
	./build_configure
64
}
65
66
src_configure() {
67
	local myconf=""
68
	local vtk_suffix=""
69
70
	has_version ">=sci-libs/vtk-5.0" && vtk_suffix="-5.0"
71
	has_version ">=sci-libs/vtk-5.2" && vtk_suffix="-5.2"
72
	has_version ">=sci-libs/vtk-5.4" && vtk_suffix="-5.4"
73
	has_version ">=sci-libs/vtk-5.6" && vtk_suffix="-5.6"
74
75
#   --without-mpi does not disable mpi support, just omit it to disable
76
	if use mpi; then
77
		if has_version ">=sys-cluster/openmpi-1.2.9"; then
78
			myconf="${myconf} --with-mpi --with-openmpi"
79
		elif has_version ">=sys-cluster/mpich2-1.0.8"; then
80
			myconf="${myconf} --with-mpi --with-mpich"
81
		fi
82
	fi
83
84
	use amd64 && append-flags -DHAVE_F77INT64
85
86
	econf --prefix=${INSTALL_DIR} \
87
	      --datadir=${INSTALL_DIR}/share/salome \
88
	      --docdir=${INSTALL_DIR}/doc/salome \
89
	      --infodir=${INSTALL_DIR}/share/info \
90
	      --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
91
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
92
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
93
		  --with-qt=/usr \
94
		  --with-vtk=${VTKHOME} \
95
		  --with-vtk-version=${vtk_suffix} \
96
	      ${myconf} \
97
	      $(use_enable debug ) \
98
	      $(use_enable !debug production ) \
99
	      $(use_with debug cppunit_inc /usr/include/cppunit) \
100
	      $(use_with opengl opengl /usr) \
101
	      $(use_with metis metis /usr) \
102
	      $(use_with scotch scotch /usr) \
103
	|| die "econf failed"
104
}
105
106
src_install() {
107
	emake DESTDIR="${D}" install || die "emake install failed"
108
109
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
110
111
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
112
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
113
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
114
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
115
	doenvd 90${P}
116
	rm adm_local/Makefile
117
	insinto "${INSTALL_DIR}"
118
	doins -r adm_local
119
120
	use doc && dodoc INSTALL README
121
}
122
123
pkg_postinst() {
124
	elog "Run \`env-update && source /etc/profile\`"
125
	elog "now to set up the correct paths."
126
	elog ""
127
}
(-)portage.orig/sci-misc/salome-meta/ChangeLog (+7 lines)
Lines 1-5 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
4
*salome-meta-5.1.4 (17 Aug 2010)
5
6
17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-meta-5.1.4.ebuild:
8
  Version bump to 5.1.4
9
3
21 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
10
21 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
4
  Initial import.
11
  Initial import.
5
  +salome-meta-3.2.6.ebuild
12
  +salome-meta-3.2.6.ebuild
(-)portage.orig/sci-misc/salome-meta/salome-meta-5.1.4.ebuild (+31 lines)
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
7
inherit eutils
8
9
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation"
10
HOMEPAGE="http://www.salome-platform.org"
11
12
LICENSE="GPL-2"
13
SLOT="0"
14
IUSE="debug mpi"
15
KEYWORDS="~amd64 ~x86"
16
17
RDEPEND="=sci-misc/salome-kernel-5.1.4*[debug?,mpi?]
18
		 =sci-misc/salome-gui-5.1.4*[debug?]
19
		 =sci-misc/salome-med-5.1.4*[debug?,mpi?]
20
		 =sci-misc/salome-geom-5.1.4*[debug?]
21
		 =sci-misc/salome-smesh-5.1.4*[debug?]
22
		 =sci-misc/salome-visu-5.1.4*[debug?]
23
		 =sci-misc/salome-component-5.1.4*[debug?,mpi?]
24
		 =sci-misc/salome-yacs-5.1.4*[debug?]
25
		 =sci-misc/salome-pycalculator-5.1.4*[debug?]"
26
27
DEPEND="${RDEPEND}"
28
29
pkg_postinst() {
30
	einfo "Salome ebuild needs further development. Please inform any problems or improvements in http://bugs.gentoo.org/show_bug.cgi?id=155974"
31
}
(-)portage.orig/sci-misc/salome-pycalculator/ChangeLog (+7 lines)
Lines 1-5 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
4
*salome-pycalculator-5.1.4 (17 Aug 2010)
5
6
17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-pycalculator-5.1.4.ebuild:
8
  Version bump to 5.1.4
9
3
21 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
10
21 May 2008; Daniel Tourde <daniel.tourde@caelae.se>
4
  Initial import.
11
  Initial import.
5
  +salome-pycalculator-3.2.6.ebuild, +salome-pycalculator-3.2.6.patch
12
  +salome-pycalculator-3.2.6.ebuild, +salome-pycalculator-3.2.6.patch
(-)portage.orig/sci-misc/salome-pycalculator/salome-pycalculator-5.1.4.ebuild (+83 lines)
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
PYTHON_DEPEND="2:2.4"
7
8
inherit eutils python
9
10
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. PYCALCULATOR Component"
11
HOMEPAGE="http://www.salome-platform.org"
12
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
13
14
LICENSE="GPL-2"
15
KEYWORDS="~amd64 ~x86"
16
SLOT="0"
17
IUSE="debug doc"
18
19
RDEPEND="debug?   ( dev-util/cppunit )
20
		 >=sci-misc/salome-kernel-${PV}
21
		 >=sci-misc/salome-med-${PV}
22
		 >=sci-misc/salome-component-${PV}
23
		 >=dev-python/omniorbpy-3.4
24
		 >=net-misc/omniORB-4.1.4
25
		 >=sci-libs/med-2.3.5"
26
27
DEPEND="${RDEPEND}
28
		>=app-doc/doxygen-1.5.6
29
		media-gfx/graphviz
30
		>=dev-python/docutils-0.4"
31
32
MODULE_NAME="PYCALCULATOR"
33
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
34
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
35
PYCALCULATOR_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
36
37
pkg_setup() {
38
	[[ $(python_get_version) > 2.4 ]] && \
39
		ewarn "Python 2.4 is highly recommended for Salome..."
40
	python_set_active_version 2
41
}
42
43
src_prepare() {
44
	rm -r -f autom4te.cache
45
	./build_configure
46
}
47
48
src_configure() {
49
	econf --prefix=${INSTALL_DIR} \
50
	      --datadir=${INSTALL_DIR}/share/salome \
51
	      --docdir=${INSTALL_DIR}/doc/salome \
52
	      --infodir=${INSTALL_DIR}/share/info \
53
	      --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
54
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
55
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
56
	      $(use_enable debug ) \
57
	      $(use_enable !debug production ) \
58
	|| die "econf failed"
59
}
60
61
src_install() {
62
	emake DESTDIR="${D}" install || die "emake install failed"
63
64
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
65
66
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
67
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}a
68
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
69
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
70
	doenvd 90${P}
71
	rm adm_local/Makefile adm_local/unix/config_files/Makefile \
72
		adm_local/unix/Makefile
73
	insinto "${INSTALL_DIR}"
74
	doins -r adm_local
75
76
	use doc && dodoc INSTALL
77
}
78
79
pkg_postinst() {
80
	elog "Run \`env-update && source /etc/profile\`"
81
	elog "now to set up the correct paths."
82
	elog ""
83
}
(-)portage.orig/sci-misc/salome-smesh/ChangeLog (+6 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
3
4
*salome-smesh-5.1.4 (17 Aug 2010)
5
6
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-smesh-5.1.4.ebuild:
8
  Version bump to 5.1.4. Added support for vtk 5.6. Disabled as-needed flag.
9
4
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-smesh-5.1.3.ebuild:
10
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-smesh-5.1.3.ebuild:
5
  Python ABI fixes
11
  Python ABI fixes
6
12
(-)portage.orig/sci-misc/salome-smesh/salome-smesh-5.1.4.ebuild (+110 lines)
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
PYTHON_DEPEND="2:2.4"
7
8
inherit eutils flag-o-matic python
9
10
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. SMESH Component"
11
HOMEPAGE="http://www.salome-platform.org"
12
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
13
14
LICENSE="GPL-2"
15
KEYWORDS="~amd64 ~x86"
16
SLOT="0"
17
IUSE="debug doc mpi opengl"
18
19
RDEPEND="opengl?  ( virtual/opengl )
20
		 mpi?     ( || ( sys-cluster/openmpi[cxx]
21
		 				 sys-cluster/mpich2[cxx] ) )
22
		 debug?   ( dev-util/cppunit )
23
		 >=sci-misc/salome-kernel-${PV}
24
		 >=sci-misc/salome-med-${PV}
25
		 >=sci-misc/salome-geom-${PV}
26
		 >=dev-python/omniorbpy-3.4
27
		 >=net-misc/omniORB-4.1.4
28
		 >=x11-libs/qt-core-4.5.2
29
		 >=x11-libs/qt-gui-4.5.2
30
		 >=x11-libs/qt-opengl-4.5.2
31
		 >=x11-libs/qwt-5.2
32
		 >=dev-libs/boost-1.40.0
33
		 >=sci-libs/opencascade-6.3
34
		 >=sci-libs/hdf5-1.6.4
35
		 >=sci-libs/med-2.3.5
36
		 >=sci-libs/vtk-5.0[python]"
37
38
DEPEND="${RDEPEND}
39
		dev-lang/swig
40
		>=app-doc/doxygen-1.5.6
41
		media-gfx/graphviz
42
		>=dev-python/docutils-0.4"
43
44
MODULE_NAME="SMESH"
45
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
46
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
47
SMESH_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
48
49
pkg_setup() {
50
	[[ $(python_get_version) > 2.4 ]] && \
51
		ewarn "Python 2.4 is highly recommended for Salome..."
52
	python_set_active_version 2
53
	append-ldflags $(no-as-needed)
54
}
55
56
src_prepare() {
57
	rm -r -f autom4te.cache
58
	./build_configure
59
}
60
61
src_configure() {
62
	local vtk_suffix=""
63
64
	has_version ">=sci-libs/vtk-5.0" && vtk_suffix="-5.0"
65
	has_version ">=sci-libs/vtk-5.2" && vtk_suffix="-5.2"
66
	has_version ">=sci-libs/vtk-5.4" && vtk_suffix="-5.4"
67
	has_version ">=sci-libs/vtk-5.6" && vtk_suffix="-5.6"
68
69
	use amd64 && append-flags -DHAVE_F77INT64
70
71
	# Configuration
72
	econf --prefix=${INSTALL_DIR} \
73
	      --datadir=${INSTALL_DIR}/share/salome \
74
	      --docdir=${INSTALL_DIR}/doc/salome \
75
	      --infodir=${INSTALL_DIR}/share/info \
76
		  --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
77
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
78
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
79
		  --with-vtk=${VTKHOME} \
80
		  --with-vtk-version=${vtk_suffix} \
81
		  --with-qt='/usr' \
82
		  --with-qwt_inc='/usr/include/qwt5' \
83
	      $(use_enable debug ) \
84
	      $(use_enable !debug production ) \
85
	      $(use_with opengl opengl /usr) \
86
	|| die "econf failed"
87
}
88
89
src_install() {
90
	emake DESTDIR="${D}" install || die "emake install failed"
91
92
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
93
94
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
95
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
96
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
97
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
98
	doenvd 90${P}
99
	rm adm_local/Makefile
100
	insinto "${INSTALL_DIR}"
101
	doins -r adm_local
102
103
	use doc && dodoc INSTALL
104
}
105
106
pkg_postinst() {
107
	elog "Run \`env-update && source /etc/profile\`"
108
	elog "now to set up the correct paths."
109
	elog ""
110
}
(-)portage.orig/sci-misc/salome-visu/ChangeLog (+6 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
1
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# $Header: $
2
# $Header: $
3
3
4
*salome-visu-5.1.4 (17 Aug 2010)
5
6
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
7
  +salome-visu-5.1.4.ebuild:
8
  Version bump to 5.1.4. Added support for vtk 5.6. Disabled as-needed flag.
9
4
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-visu-5.1.3.ebuild:
10
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-visu-5.1.3.ebuild:
5
  Python ABI fixes
11
  Python ABI fixes
6
12
(-)portage.orig/sci-misc/salome-visu/salome-visu-5.1.4.ebuild (+105 lines)
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
PYTHON_DEPEND="2:2.4"
7
8
inherit eutils flag-o-matic python
9
10
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical Simulation. VISU Component"
11
HOMEPAGE="http://www.salome-platform.org"
12
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
13
14
LICENSE="GPL-2"
15
KEYWORDS="~amd64 ~x86"
16
SLOT="0"
17
IUSE="debug doc opengl"
18
19
RDEPEND="opengl?  ( virtual/opengl )
20
		 >=dev-python/omniorbpy-3.4
21
		 >=net-misc/omniORB-4.1.4
22
		 >=sci-misc/salome-kernel-${PV}
23
		 >=sci-misc/salome-gui-${PV}
24
		 >=sci-misc/salome-component-${PV}
25
		 >=x11-libs/qt-core-4.5.2
26
		 >=x11-libs/qt-gui-4.5.2
27
		 >=x11-libs/qt-opengl-4.5.2
28
		 >=dev-libs/boost-1.40.0
29
		 >=sci-libs/opencascade-6.3
30
		 >=sci-libs/hdf5-1.6.4
31
		 >=sci-libs/med-2.3.5
32
		 >=sci-libs/vtk-5.0[python]"
33
34
DEPEND="${RDEPEND}
35
		dev-lang/swig
36
		>=app-doc/doxygen-1.5.6
37
		media-gfx/graphviz
38
		>=dev-python/docutils-0.4"
39
40
MODULE_NAME="VISU"
41
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
42
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
43
VISU_ROOT_DIR="/opt/salome-${PV}/${MODULE_NAME}"
44
45
pkg_setup() {
46
	[[ $(python_get_version) > 2.4 ]] && \
47
		ewarn "Python 2.4 is highly recommended for Salome..."
48
	python_set_active_version 2
49
	append-ldflags $(no-as-needed)
50
}
51
52
src_prepare() {
53
	rm -r -f autom4te.cache
54
	./build_configure
55
}
56
57
src_configure() {
58
	local vtk_suffix=""
59
60
	has_version ">=sci-libs/vtk-5.0" && vtk_suffix="-5.0"
61
	has_version ">=sci-libs/vtk-5.2" && vtk_suffix="-5.2"
62
	has_version ">=sci-libs/vtk-5.4" && vtk_suffix="-5.4"
63
	has_version ">=sci-libs/vtk-5.6" && vtk_suffix="-5.6"
64
65
	use amd64 && append-flags -DHAVE_F77INT64
66
67
	econf --prefix=${INSTALL_DIR} \
68
	      --datadir=${INSTALL_DIR}/share/salome \
69
	      --docdir=${INSTALL_DIR}/doc/salome \
70
	      --infodir=${INSTALL_DIR}/share/info \
71
	      --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
72
	      --with-python-site=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
73
	      --with-python-site-exec=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome \
74
		  --with-vtk=${VTKHOME} \
75
		  --with-vtk-version=${vtk_suffix} \
76
		  --with-qt="/usr" \
77
		  --with-qwt_inc="/usr/include/qwt5" \
78
	      $(use_enable debug ) \
79
	      $(use_enable !debug production ) \
80
	      $(use_with opengl opengl /usr) \
81
	|| die "econf failed"
82
}
83
84
src_install() {
85
	emake DESTDIR="${D}" install || die "emake install failed"
86
87
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
88
89
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
90
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
91
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
92
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
93
	doenvd 90${P}
94
	rm adm_local/Makefile
95
	insinto "${INSTALL_DIR}"
96
	doins -r adm_local
97
98
	use doc && dodoc INSTALL
99
}
100
101
pkg_postinst() {
102
	elog "Run \`env-update && source /etc/profile\`"
103
	elog "now to set up the correct paths."
104
	elog ""
105
}
(-)portage.orig/sci-misc/salome-yacs/ChangeLog (+6 lines)
Lines 2-7 Link Here
2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
3
# $Header: $
3
# $Header: $
4
4
5
*salome-yacs-5.1.4 (17 Aug 2010)
6
7
  17 Aug 2010; Michael Riss <Michael.Riss@gmx.de>
8
  +salome-yacs-5.1.4.ebuild:
9
  Version bump to 5.1.4
10
5
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-yacs-5.1.3.ebuild:
11
  29 Jun 2010; Justin Lecher <jlec@gentoo.org> salome-yacs-5.1.3.ebuild:
6
  Python ABI fixes
12
  Python ABI fixes
7
13
(-)portage.orig/sci-misc/salome-yacs/salome-yacs-5.1.4.ebuild (+105 lines)
Line 0 Link Here
1
diff -ur src5.1.4.orig/YACS_SRC_5.1.4/adm/unix/config_files/ac_python_devel.m4 src5.1.3/YACS_SRC_5.1.3/adm/unix/config_files/ac_python_devel.m4
2
--- src5.1.4.orig/YACS_SRC_5.1.4/adm/unix/config_files/ac_python_devel.m4	2010-03-08 20:51:25.810829226 +0100
Line 0 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header:  $
4
5
EAPI=2
6
PYTHON_DEPEND="2:2.4"
7
8
inherit eutils python
9
10
DESCRIPTION="SALOME : The Open Source Integration Platform for Numerical
11
Simulation. YACS component"
12
HOMEPAGE="http://www.salome-platform.org"
13
SRC_URI="http://files.opencascade.com/Salome/Salome${PV}/src${PV}.tar.gz"
14
15
LICENSE="GPL-2"
16
KEYWORDS="~amd64 ~x86"
17
SLOT="0"
18
IUSE="debug doc opengl"
19
20
RDEPEND="opengl?  ( virtual/opengl )
21
		 debug?   ( dev-util/cppunit )
22
		 >=sci-misc/salome-kernel-${PV}
23
		 >=sci-misc/salome-gui-${PV}
24
		 >=dev-python/omniorbpy-3.4
25
		 >=sci-libs/hdf5-1.6.4
26
		 >=dev-libs/boost-1.40.0
27
		 >=x11-libs/qt-core-4.5.2
28
		 >=x11-libs/qt-gui-4.5.2
29
		 >=x11-libs/qt-opengl-4.5.2
30
		 >=dev-python/PyQt4-4.5.4
31
		 >=x11-libs/qscintilla-2.4
32
		 >=net-misc/omniORB-4.1.3
33
		 dev-libs/expat"
34
35
DEPEND="${RDEPEND}
36
		doc? ( dev-python/sphinx )
37
		>=app-doc/doxygen-1.5.6
38
		media-gfx/graphviz
39
		>=dev-python/docutils-0.4
40
		dev-lang/swig
41
		dev-libs/libxml2
42
		>=dev-python/celementtree-1.0.5
43
		>=dev-python/elementtree-1.2.6"
44
45
MODULE_NAME="YACS"
46
S="${WORKDIR}/src${PV}/${MODULE_NAME}_SRC_${PV}"
47
INSTALL_DIR="/opt/salome-${PV}/${MODULE_NAME}"
48
49
pkg_setup() {
50
	[[ $(python_get_version) > 2.4 ]] && \
51
		ewarn "Python 2.4 is highly recommended for Salome..."
52
	python_set_active_version 2
53
}
54
55
src_prepare() {
56
	epatch "${FILESDIR}"/"${P}"-ac_python_devel.patch
57
	if use amd64; then
58
		epatch "${FILESDIR}"/"${P}"-lib_location.patch
59
		epatch "${FILESDIR}"/"${P}"-libdir.patch
60
	fi
61
62
	rm -r -f autom4te.cache
63
	./clean_configure
64
	./build_configure
65
}
66
67
src_configure() {
68
	econf --prefix=${INSTALL_DIR} \
69
	      --datadir=${INSTALL_DIR}/share/salome \
70
	      --docdir=${INSTALL_DIR}/doc/salome \
71
		  --libdir=${INSTALL_DIR}/$(get_libdir)/salome \
72
	      --infodir=${INSTALL_DIR}/share/info \
73
		  --with-qt4=/usr \
74
		  --with-qt4-libraries=/usr/$(get_libdir)/qt4 \
75
		  --with-qsci4-includes=/usr/include/Qsci \
76
	      $(use_enable debug ) \
77
	      $(use_enable !debug production ) \
78
	      $(use_with debug cppunit /usr ) \
79
		|| die "econf failed"
80
}
81
82
src_install() {
83
	emake DESTDIR="${D}" install || die "emake install failed"
84
85
	use amd64 && dosym ${INSTALL_DIR}/lib64 ${INSTALL_DIR}/lib
86
87
	echo "${MODULE_NAME}_ROOT_DIR=${INSTALL_DIR}" > ./90${P}
88
	echo "LDPATH=${INSTALL_DIR}/$(get_libdir)/salome" >> ./90${P}
89
	echo "PATH=${INSTALL_DIR}/bin/salome" >> ./90${P}
90
	echo "PYTHONPATH=${INSTALL_DIR}/$(get_libdir)/python$(python_get_version)/site-packages/salome" >> ./90${P}
91
	doenvd 90${P}
92
	rm adm/Makefile
93
	insinto "${INSTALL_DIR}"
94
	doins -r adm
95
96
	use doc && dodoc AUTHORS INSTALL NEWS README
97
}
98
99
pkg_postinst() {
100
	elog "Run \`env-update && source /etc/profile\`"
101
	elog "now to set up the correct paths."
102
	elog ""
103
}

Return to bug 330303