# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs subversion DESCRIPTION="Free open source software for analysis and visualization of multidimensional biomedical images " HOMEPAGE="http://www.bioimagexd.net/index.php" SRC_URI="" ESVN_REPO_URI="https://bioimagexd.svn.sourceforge.net/svnroot/bioimagexd/bioimagexd/trunk" #ESVN_PROJECT="bioimagexd-snapshot" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="doc examples patented" RDEPEND="dev-lang/python dev-python/wxpython dev-python/imaging sci-libs/vtk sci-libs/itk" DEPEND="${RDEPEND} >=dev-util/cmake-2.0 dev-util/darcs" MY_PN=trunk S="${WORKDIR}/${MY_PN}" src_unpack() { subversion_src_unpack } src_compile() { local CMAKE_VARIABLES="" CMAKE_VARIABLES="${CMAKE_VARIABLES} -DCMAKE_INSTALL_PREFIX:PATH=/usr" CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTKBXD_WRAP_PYTHON:BOOL=ON" CMAKE_VARIABLES="${CMAKE_VARIABLES} -DVTKBXD_WRAP_TCL:BOOL=OFF" cd "${S}/vtkBXD" echo -n "cmake_vars:" echo ${CMAKE_VARIABLES} # Run CMake twice to configure properly with CMake 2.2.x cmake ${CMAKE_VARIABLES} . && cmake ${CMAKE_VARIABLES} . \ || die "cmake configuration failed" } src_install() { cd "${S}/vtkBXD" make DESTDIR=${D} install || die "make install failed" mkdir -p ${D}/usr/share mkdir -p ${D}/usr/bin cp -a ${S} ${D}/usr/share mv ${D}/usr/share/trunk ${D}/usr/share/bioimagexd echo "#!/bin/bash python /usr/share/bioimagexd/BioImageXD.py " > ${D}/usr/bin/bioimagexd chmod a+x ${D}/usr/bin/bioimagexd } pkg_postinst() { if use patented; then ewarn "Using patented code in ITK may require a license." ewarn "For more information, please read:" ewarn "http://www.itk.org/HTML/Copyright.htm" ewarn "http://www.itk.org/Wiki/ITK_Patent_Bazaar" fi }