From: Stefan Huber Date: Fri, 15 Nov 2013 19:49:46 +0000 (+0100) Subject: sci-libs/itk-4.4.2-r1: Add doc use flag X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=5fc1a2e6318ced5f614f7ecda9c5fa62fe65ef55;p=shuber-gentoo-overlay.git sci-libs/itk-4.4.2-r1: Add doc use flag Install doxygen documentation tarball if doc use flag is given. --- diff --git a/sci-libs/itk/Manifest b/sci-libs/itk/Manifest index e36a399..00cca02 100644 --- a/sci-libs/itk/Manifest +++ b/sci-libs/itk/Manifest @@ -1,3 +1,4 @@ +DIST DoxygenInsightToolkit-4.4.0.tar.gz 779393284 SHA256 a2e9a74dad840f6af7e3f3a518f43d75cad511d6b6b4b09d61f5b1b1b72d25c3 SHA512 9bdd6cedcdf5c30afb7f73130074983a56c397db776b927aae78b15a80d1158cca4563f92795d804ade34f4860b350cbbd157ed6924d53cb2ddfccf478e403c6 WHIRLPOOL 114f6ebb4052a8845559a9fa7f2883aa7bba90ff07dd7cd64d4e305e5ffdb35969b8b18b31b631e99d293fe06d95389359b23697544797a7703d9a973bd23246 DIST InsightToolkit-4.4.2.tar.gz 231905134 SHA256 071a7929c295b80bc8a6ab80d50c06cdfb0e6aafd936103c6d0a4a086cf8bec3 SHA512 c65beca4dd60aa769871bb3089cbb421729a2dcbd8bd3ec42c378ed60828e4327f1faf062f77bcca34306315a1daee6bc29d858dab9aea1c08f4843405fd21e3 WHIRLPOOL 4036bce61d0900ef2f1484ca06e9b513f6154c2233122e41fe694c648dd6eef53510749bf75368f9851a4dbd45777ca7033ad43f28c86259d5efae9e0d4200bd EBUILD itk-4.4.2.ebuild 2923 SHA256 7f796a40419610c103d7df2cb2bddb34d1e0876cb5c255fbdcb2408823a27a69 SHA512 f915962b924ff2b3ff0e7d260469f7bd2f25ee958fde1e9df02487cb0ffafef872fd6c6212758ff3c337e674e6621bff18a3f9dfa2558c103405d69ef1dd0c07 WHIRLPOOL 5a66c514a493585fa8c0a9a3923f5eebd02607e3f6ee60c77dc5dea69674bc82a31b8bcb348045875a8bc2a2478b9eac50f302e8a93393f6d38bf67acc884543 MISC ChangeLog 359 SHA256 650d7b2d68d163f8128358fe43533d3aae3dc22a3aaa952a2197d15edce904ea SHA512 810101a86286b8dbd9c25dbf8fa33e8451ddebf9063b1ea6cdce6b13cadf8d434cba5072968f55d3f2f4976aaf1d9014aa82a9d52d691f113a8d7f2dad9b2c32 WHIRLPOOL 3c906a3211cd8147a82835d0b8f3aae2320a6dba053e6b212aa8b108d5190fa57fda41409312f1b76e66a74022fad017a6e9bdf85595869907d7ab70f9bd525e 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} }