Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51458 Details for
Bug 51197
vtk/QT not in portage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
VTK 4.4 ebuild
vtk-4.4.ebuild (text/plain), 3.87 KB, created by
Simon-Nicolas Roth
on 2005-02-17 11:34:54 UTC
(
hide
)
Description:
VTK 4.4 ebuild
Filename:
MIME Type:
Creator:
Simon-Nicolas Roth
Created:
2005-02-17 11:34:54 UTC
Size:
3.87 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit distutils > >DESCRIPTION="The Visualization Toolkit" >HOMEPAGE="http://www.vtk.org/" > >LICENSE="BSD" >SLOT="0" >KEYWORDS="~x86" > >IUSE="doc data java patended python tcltk" > >RDEPEND="python? ( >=dev-lang/python-2.0 ) > tcltk? ( >=dev-lang/tcl-8.2.3 ) > media-libs/jpeg > media-libs/tiff > media-libs/libpng > sys-libs/zlib > dev-libs/expat" > >DEPEND=">=dev-util/cmake-1.8 > ${RDEPEND}" > >SHORT_PV=`echo ${PV} | cut -d. -f1,2` >SRC_URI="http://www.vtk.org/files/release/4.4/VTK-4.4-LatestRelease.tar.gz > doc? (http://download.sourceforge.net/vtk/VTKDocHtml-4.2.tar.gz) > data? (http://download.sourceforge.net/vtk/VTKData-4.2.tar.gz)" > >S=${WORKDIR}/VTK >ARCH="$(uname -m)" > >src_compile() { > > local myconf > > if [ "${ARCH}" = "i686" ]; then > myconf="-DCMAKE_BUILD_TYPE:STRING=Release" > myconf="${myconf} -DBUILD_EXAMPLES:BOOL=ON" > myconf="${myconf} -DCMAKE_INSTALL_PREFIX:PATH=/usr/share/vtk" > myconf="${myconf} -DBUILD_SHARED_LIBS:BOOL=ON" > myconf="${myconf} -DVTK_USE_GL2PS:BOOL=ON" > myconf="${myconf} -DVTK_USE_HYBRID:BOOL=ON" > myconf="${myconf} -DVTK_USE_PARALLEL:BOOL=OFF" > myconf="${myconf} -DVTK_USE_SYSTEM_JPEG:BOOL=ON" > myconf="${myconf} -DVTK_USE_SYSTEM_PNG:BOOL=ON" > myconf="${myconf} -DVTK_USE_SYSTEM_TIFF:BOOL=ON" > myconf="${myconf} -DVTK_USE_SYSTEM_ZLIB:BOOL=ON" > myconf="${myconf} -DVTK_USE_SYSTEM_EXPAT:BOOL=ON" > myconf="${myconf} -DBUILD_TESTING:BOOL=OFF" > fi > > use python && myconf="${myconf} -DVTK_WRAP_PYTHON:BOOL=ON" > use tcltk && myconf="${myconf} -DVTK_WRAP_TCL:BOOL=ON" > use patended && myconf="${myconf} -DVTK_USE_PATENTED:BOOL=ON" > use data && myconf="${myconf} -DVTK_DATA_ROOT:STRING=${WORKDIR}/VTKData-release-4-2/Data/" > use java && myconf="${myconf} -DVTK_WRAP_JAVA:BOOL=ON" > > cmake ${myconf} . || die "cmake configuration failed" > > emake || die "emake failed" >} > >src_install() { > make DESTDIR=${D} install || die "make install failed" > > #for some strange reason, vtkAMRBox.h not installed by make install > cp ${S}/Common/vtkAMRBox.h ${D}/usr/share/vtk/include/vtk/ > > # Fix the configuration file > cd ${D}/usr/share/vtk/lib/ > cat VTKConfig.cmake | sed -e "s:${D}::g" > VTKConfig.cmake.fixed > mv -f VTKConfig.cmake.fixed VTKConfig.cmake > > # The Python wrapping is not installed by 'make install' > if use python; then > cd ${S}/Wrapping/Python > docinto vtk_python > distutils_src_install > > # Fix up the symbolic links > distutils_python_version > einfo "Installing vtk_python in ${D}/usr/lib/python${PYVER}/site-packages/vtk_python/..." > rm -f ${D}/usr/lib/python${PYVER}/site-packages/vtk_python/libvtk*Python*.so > find ${D}/usr/share/lib/vtk -type f -name "libvtk*Python*.so" > -exec \ > dosym {} > /usr/lib/python${PYVER}/site-packages/vtk_python \; > fi > > #install examples and html docs > if use doc; then > dodir /usr/share/doc/${PF} > mv ${WORKDIR}/html/* ${D}/usr/share/doc/${PF}/html > cp -r ${S}/Examples/* ${D}/usr/share/doc/${PF}/examples > einfo "Documents are installed in ${D}/usr/share/doc/${PF}/" > fi > > #install vtk data used in many of the examples > if use data; then > dodir /usr/share/vtk/vtkdata/ > mv ${WORKDIR}/VTKData-release-4-2/* ${D}/usr/share/vtk/vtkdata/ > einfo "VTK Data is installed in ${D}/usr/share/vtk/vtkdata/" > fi > > # env.d stuff > dodir /etc/env.d > echo "PATH=/usr/share/vtk/bin/"> ${D}/etc/env.d/40vtk > echo "VTK_WRAPPING=/usr/share/vtk/bin/">> ${D}/etc/env.d/40vtk > echo "PYTHONPATH=/usr/share/vtk/lib/vtk:/usr/lib/python${PYVER}/site-packages/vtk_python">> ${D}/etc/env.d/40vtk > echo "LD_LIBRARY_PATH=/usr/share/vtk/lib/vtk:/usr/lib/python${PYVER}/site-packages/vtk_python" >> ${D}/etc/env.d/40vtk > >} > >pkg_postinst() { > if use patended; then > ewarn "Using patented classes in commercial application requires a licence." > ewarn "For more information read" > ewarn "http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq07.005.htp" > fi >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 51197
: 51458 |
61698