diff options
Diffstat (limited to 'sci-misc/salome-geom/salome-geom-3.2.6.ebuild')
-rw-r--r-- | sci-misc/salome-geom/salome-geom-3.2.6.ebuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sci-misc/salome-geom/salome-geom-3.2.6.ebuild b/sci-misc/salome-geom/salome-geom-3.2.6.ebuild index 1c78fa6ce..34f9d4745 100644 --- a/sci-misc/salome-geom/salome-geom-3.2.6.ebuild +++ b/sci-misc/salome-geom/salome-geom-3.2.6.ebuild @@ -30,7 +30,6 @@ export OPENPBS="/usr" src_unpack() { python_version distutils_python_version - ewarn "Python 2.4 is highly recommended for Salome..." if ! built_with_use sci-libs/vtk python ; then die "You must rebuild sci-libs/vtk with python USE flag" @@ -39,6 +38,19 @@ src_unpack() { unpack ${A} cd "${MY_S}" epatch "${FILESDIR}"/${P}.patch + + # If vtk-5.O is used, include directory is named vtk-5.0 and not vtk + if has_version ">=sci-libs/vtk-5.0" && has_version "<sci-libs/vtk-5.2" ; then + einfo "vtk version 5 detected" + append-flags -I/usr/include/vtk-5.0 + fi + # If vtk-5.2 is used, include directory is named vtk-5.2 and not vtk + if has_version ">=sci-libs/vtk-5.2" ; then + einfo "vtk version 5 detected" + append-flags -I/usr/include/vtk-5.2 + epatch "${FILESDIR}"/${P}-vtk-5.2.patch + fi + } @@ -48,14 +60,6 @@ src_compile() { rm -r -f autom4te.cache ./build_configure - # If vtk-5.O is used, include directory is named vtk-5.0 and not vtk - if has_version ">=sci-libs/vtk-5.0" ; then - einfo "vtk version 5 detected" - append-flags -I/usr/include/vtk-5.0 - else - einfo "vtk version 4 or prior detected" - fi - # CXXFLAGS are slightly modified to allow the compilation of # salome-geom with OpenCascade and gcc-4.1.x if version_is_at_least "4.1" $(gcc-version) ; then |