X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=sci-libs%2Fitk%2Fitk-4.4.2-r1.ebuild;h=871888015807b50457c233d9a4a01dea819613cb;hp=542216b7e8a7434d8c6e2aaddd831eb9754a00cf;hb=dc316a15368bc04f42dfe34bdafbaa6c8ef618e2;hpb=f64e72c9e8053a4655c81a7bd549a8ac72c44768 diff --git a/sci-libs/itk/itk-4.4.2-r1.ebuild b/sci-libs/itk/itk-4.4.2-r1.ebuild index 542216b..8718880 100644 --- a/sci-libs/itk/itk-4.4.2-r1.ebuild +++ b/sci-libs/itk/itk-4.4.2-r1.ebuild @@ -8,18 +8,20 @@ PYTHON_COMPAT=( python{2_5,2_6,2_7} ) inherit eutils toolchain-funcs cmake-utils python-single-r1 -MYP=InsightToolkit-${PV} +MYPN=InsightToolkit +MYP=${MYPN}-${PV} DESCRIPTION="NLM Insight Segmentation and Registration Toolkit" HOMEPAGE="http://www.itk.org" -SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz" - +SRC_URI=" + mirror://sourceforge/${PN}/${MYP}.tar.gz + doc? ( mirror://sourceforge/${PN}/Doxygen${MYPN}-4.4.0.tar.gz )" RESTRICT="primaryuri" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="debug examples fftw itkv3compat python review sse2 test" +IUSE="debug doc examples fftw itkv3compat python review sse2 test vtkglue" RDEPEND=" sci-libs/hdf5[cxx] @@ -28,11 +30,13 @@ RDEPEND=" media-libs/tiff:0 sys-libs/zlib fftw? ( sci-libs/fftw:3.0 ) + vtkglue? ( sci-libs/vtk ) " DEPEND="${RDEPEND} python? ( ${PYTHON_DEPS} >=dev-lang/swig-2.0 >=dev-cpp/gccxml-0.9.0_pre20120309 ) + doc? ( app-doc/doxygen ) " S="${WORKDIR}/${MYP}" @@ -82,6 +86,11 @@ src_configure() { -DITK_WRAP_complex_double=ON ) fi + if use vtkglue; then + mycmakeargs+=( + -DModule_ITKVtkGlue=ON + ) + fi if use python; then mycmakeargs+=( -DITK_WRAP_PYTHON=ON @@ -112,5 +121,14 @@ src_install() { fi echo "LDPATH=${ldpath}" >> ${T}/40${PN} + if use doc; then + insinto "/usr/share/doc/${PF}/api-docs" + cd "${WORKDIR}"/html + rm -f *.md5 || die "Failed to remove superfluous hashes" + einfo "Installing API docs. This may take some time." + insinto "/usr/share/doc/${PF}/api-docs" + doins -r ./* || die "Failed to install docs" + fi + doenvd "${T}"/40${PN} }