/[gentoo-x86]/sci-libs/vtk/vtk-5.0.1.ebuild
Gentoo

Diff of /sci-libs/vtk/vtk-5.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/Attic/vtk-5.0.1.ebuild,v 1.1 2006/07/10 12:41:27 markusle Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-libs/vtk/Attic/vtk-5.0.1.ebuild,v 1.2 2006/07/21 02:09:59 markusle Exp $
4 4
5# TODO: need to fix Examples/CMakeLists.txt to build other examples 5# TODO: need to fix Examples/CMakeLists.txt to build other examples
6 6
7inherit distutils eutils flag-o-matic toolchain-funcs versionator java-pkg python qt3 7inherit distutils eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2 python qt3
8 8
9# Short package version 9# Short package version
10SPV="$(get_version_component_range 1-2)" 10SPV="$(get_version_component_range 1-2)"
11 11
12DESCRIPTION="The Visualization Toolkit" 12DESCRIPTION="The Visualization Toolkit"
15 examples? ( http://www.${PN}.org/files/release/${SPV}/${PN}data-${PV}.tar.gz )" 15 examples? ( http://www.${PN}.org/files/release/${SPV}/${PN}data-${PV}.tar.gz )"
16 16
17LICENSE="BSD" 17LICENSE="BSD"
18KEYWORDS="~x86" 18KEYWORDS="~x86"
19SLOT="0" 19SLOT="0"
20IUSE="doc examples java mpi patented python tcl tk threads qt3 qt4" 20IUSE="doc examples mpi patented python tcl tk threads qt3 qt4"
21RDEPEND="java? ( =virtual/jdk-1.4* ) 21RDEPEND="java? ( =virtual/jdk-1.4* )
22 mpi? ( sys-cluster/mpich ) 22 mpi? ( sys-cluster/mpich )
23 python? ( >=dev-lang/python-2.0 ) 23 python? ( >=dev-lang/python-2.0 )
24 tcl? ( >=dev-lang/tcl-8.2.3 ) 24 tcl? ( >=dev-lang/tcl-8.2.3 )
25 tk? ( >=dev-lang/tk-8.2.3 ) 25 tk? ( >=dev-lang/tk-8.2.3 )
37 37
38S="${WORKDIR}"/VTK 38S="${WORKDIR}"/VTK
39 39
40 40
41pkg_setup() { 41pkg_setup() {
42 java-pkg-opt-2_pkg_setup
42 if use qt3 && use qt4; then 43 if use qt3 && use qt4; then
43 echo 44 echo
44 ewarn "qt3 and qt4 support for vtk are mutually exclusive and" 45 ewarn "qt3 and qt4 support for vtk are mutually exclusive and"
45 ewarn "qt4 support has therefore been enabled by default." 46 ewarn "qt4 support has therefore been enabled by default."
46 echo 47 echo
159 sed -e "s/javac/javac -J-Xmx256m/" \ 160 sed -e "s/javac/javac -J-Xmx256m/" \
160 -i "${S}"/Wrapping/Java/CMakeFiles/VTKBuildAll.dir/build.make \ 161 -i "${S}"/Wrapping/Java/CMakeFiles/VTKBuildAll.dir/build.make \
161 || die "Failed to patch javac" 162 || die "Failed to patch javac"
162 fi 163 fi
163 164
164 emake -j1 || die "emake failed" 165 emake || die "emake failed"
165} 166}
166 167
167src_install() { 168src_install() {
168 # remove portage paths from dynamically created Type 169 # remove portage paths from dynamically created Type
169 # headers 170 # headers

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20