From 81d1f5549ed50d2220a5e611de5778050250bce9 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 14 Nov 2013 16:54:59 +0100 Subject: [PATCH] Add sci-libs/itk-4.4.2 from science overlay --- sci-libs/itk/ChangeLog | 9 +++ sci-libs/itk/Manifest | 4 ++ sci-libs/itk/itk-4.4.2.ebuild | 116 ++++++++++++++++++++++++++++++++++ sci-libs/itk/metadata.xml | 18 ++++++ 4 files changed, 147 insertions(+) create mode 100644 sci-libs/itk/ChangeLog create mode 100644 sci-libs/itk/Manifest create mode 100644 sci-libs/itk/itk-4.4.2.ebuild create mode 100644 sci-libs/itk/metadata.xml diff --git a/sci-libs/itk/ChangeLog b/sci-libs/itk/ChangeLog new file mode 100644 index 0000000..6186188 --- /dev/null +++ b/sci-libs/itk/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sci-libs/itk +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*itk-4.4.2 (12 Sep 2013) + + 12 Sep 2013; Sébastien Fabbro +itk-4.4.2.ebuild, + -files/itk-4.4-v3compat_I2VI_const-fix.patch, -itk-4.4.0.ebuild, metadata.xml: + sci-libs/itk: Version bump. Cleaned-up ebuild and metadata.xml diff --git a/sci-libs/itk/Manifest b/sci-libs/itk/Manifest new file mode 100644 index 0000000..e36a399 --- /dev/null +++ b/sci-libs/itk/Manifest @@ -0,0 +1,4 @@ +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 +MISC metadata.xml 593 SHA256 ae09fff2fcf2da1fd6c0fd922bb9bf0364add81523f39f053105f3c63146a0be SHA512 0fd5d9bcb11762b00e8781edc23111feb9ca30a2ba5873ba52696a338dd878cbc90ce94a010ce825a213583c7b360393c7b843d6e8d80b808098994554c42f71 WHIRLPOOL 0757a917fffec891b5bba3828ba6b0fde5442ea7e49d2bd0eb6cc64330f4aa882ca7656029aeee7552c2269052574f005ba50f6ca65f612e156b4134671359b9 diff --git a/sci-libs/itk/itk-4.4.2.ebuild b/sci-libs/itk/itk-4.4.2.ebuild new file mode 100644 index 0000000..542216b --- /dev/null +++ b/sci-libs/itk/itk-4.4.2.ebuild @@ -0,0 +1,116 @@ +# Copyright 2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} ) + +inherit eutils toolchain-funcs cmake-utils python-single-r1 + +MYP=InsightToolkit-${PV} + +DESCRIPTION="NLM Insight Segmentation and Registration Toolkit" +HOMEPAGE="http://www.itk.org" +SRC_URI="mirror://sourceforge/${PN}/${MYP}.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" + +RDEPEND=" + sci-libs/hdf5[cxx] + virtual/jpeg + media-libs/libpng + media-libs/tiff:0 + sys-libs/zlib + fftw? ( sci-libs/fftw:3.0 ) +" +DEPEND="${RDEPEND} + python? ( ${PYTHON_DEPS} + >=dev-lang/swig-2.0 + >=dev-cpp/gccxml-0.9.0_pre20120309 ) +" + +S="${WORKDIR}/${MYP}" + +pkg_pretend() { + if [[ -z ${ITK_COMPUTER_MEMORY_SIZE} ]]; then + elog "To tune ITK to make the best use ouf working memory you can set" + elog " ITK_COMPUTER_MEMORY_SIZE=XX" + elog "in make.conf, default is 1 (unit is GB)" + fi + if use python && [[ -z ${ITK_WRAP_DIMS} ]]; then + elog "For Python language bindings, you can define the dimensions" + elog "you want to create bindings for by setting" + elog " ITK_WRAP_DIMS=X;Y;Z..." + elog "in make.conf, default is 2;3 for 2D and 3D data" + fi +} + +src_configure() { + local mycmakeargs=( + -DWRAP_ITK_JAVA=OFF + -DWRAP_ITK_TCL=OFF + -DITK_USE_SYSTEM_HDF5=ON + -DITK_USE_SYSTEM_JPEG=ON + -DITK_USE_SYSTEM_PNG=ON + -DITK_USE_SYSTEM_TIFF=ON + -DITK_USE_SYSTEM_ZLIB=ON + -DITK_USE_SYSTEM_GCCXML=ON + -DITK_USE_SYSTEM_SWIG=ON + -DITK_BUILD_ALL_MODULES=ON + -DBUILD_SHARED_LIBS=ON + -DBUILD_EXAMPLES=OFF + -DITK_COMPUTER_MEMORY_SIZE="${ITK_COMPUTER_MEMORY_SIZE:-1}" + $(cmake-utils_use_build test TESTING) + $(cmake-utils_use review ITK_USE_REVIEW) + $(cmake-utils_use itkv3compat ITKV3_COMPATIBILITY) + $(cmake-utils_use sse2 VNL_CONFIG_ENABLE_SSE2) + ) + if use fftw; then + mycmakeargs+=( + -DUSE_FFTWD=ON + -DUSE_FFTWF=ON + -DUSE_SYSTEM_FFTW=ON + -DITK_WRAP_double=ON + -DITK_WRAP_vector_double=ON + -DITK_WRAP_covariant_vector_double=ON + -DITK_WRAP_complex_double=ON + ) + fi + if use python; then + mycmakeargs+=( + -DITK_WRAP_PYTHON=ON + -DITK_WRAP_DIMS="${ITK_WRAP_DIMS:-2;3}" + ) + else + mycmakeargs+=( + -DITK_WRAP_PYTHON=OFF + ) + fi + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use examples; then + insinto /usr/share/doc/${PF}/examples + docompress -x /usr/share/doc/${PF}/examples + doins -r "${S}"/Examples/* + fi + + echo "ITK_DATA_ROOT=${EROOT}/usr/share/${PN}/data" > ${T}/40${PN} + local ldpath="${EROOT}/usr/$(get_libdir)/InsightToolkit" + if use python; then + echo "PYTHONPATH=${EROOT}/usr/$(get_libdir)/InsightToolkit/WrapITK/Python" >> ${T}/40${PN} + ldpath="${ldpath}:${EROOT}/usr/$(get_libdir)/InsightToolkit/WrapITK/lib" + fi + echo "LDPATH=${ldpath}" >> ${T}/40${PN} + + doenvd "${T}"/40${PN} +} diff --git a/sci-libs/itk/metadata.xml b/sci-libs/itk/metadata.xml new file mode 100644 index 0000000..e941d48 --- /dev/null +++ b/sci-libs/itk/metadata.xml @@ -0,0 +1,18 @@ + + + +sci-biology + + maintainer-wanted@gentoo.org + + + Insight Segmentation and Registration Toolkit (ITK) is a library + that provides developers with an extensive suite of tools for image + analysis. + + + Enable compatibility with ITK version 3 + Enable compilation of methods under review + + + -- 2.39.5