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=5671bb01758060eacc03e086d7a6838e03cc7ee2;hb=5fc1a2e6318ced5f614f7ecda9c5fa62fe65ef55;hpb=c122b57e0b3a81082034ca36d74b62f4404252c3;ds=sidebyside diff --git a/sci-libs/itk/itk-4.4.2-r1.ebuild b/sci-libs/itk/itk-4.4.2-r1.ebuild index 5671bb0..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 vtkglue" +IUSE="debug doc examples fftw itkv3compat python review sse2 test vtkglue" RDEPEND=" sci-libs/hdf5[cxx] @@ -34,6 +36,7 @@ DEPEND="${RDEPEND} python? ( ${PYTHON_DEPS} >=dev-lang/swig-2.0 >=dev-cpp/gccxml-0.9.0_pre20120309 ) + doc? ( app-doc/doxygen ) " S="${WORKDIR}/${MYP}" @@ -118,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} }