aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortharvik <tharvik@users.noreply.github.com>2017-06-19 00:31:57 +0200
committerJustin Lecher <jlec@gentoo.org>2017-06-23 10:11:41 +0100
commit039697bf6b87b07578ac626d015e71bc38901722 (patch)
tree87ad53582a0872f3d6c71fcdfbb83e8ec4b975ae
parentsci-libs/dealii: ebuild maintenance (diff)
downloadsci-master.zip
sci-master.tar.gz
sci-master.tar.bz2
sci-libs/itk: bump to 4.12.0HEADmaster
Package-Manager: Portage-2.3.5, Repoman-2.3.1 Closes: https://github.com/gentoo/sci/pull/792
-rw-r--r--sci-libs/itk/Manifest1
-rw-r--r--sci-libs/itk/itk-4.12.0.ebuild136
2 files changed, 137 insertions, 0 deletions
diff --git a/sci-libs/itk/Manifest b/sci-libs/itk/Manifest
index 7275013..e551400 100644
--- a/sci-libs/itk/Manifest
+++ b/sci-libs/itk/Manifest
@@ -1,4 +1,5 @@
DIST DoxygenInsightToolkit-4.4.0.tar.gz 779393284 SHA256 a2e9a74dad840f6af7e3f3a518f43d75cad511d6b6b4b09d61f5b1b1b72d25c3 SHA512 9bdd6cedcdf5c30afb7f73130074983a56c397db776b927aae78b15a80d1158cca4563f92795d804ade34f4860b350cbbd157ed6924d53cb2ddfccf478e403c6 WHIRLPOOL 114f6ebb4052a8845559a9fa7f2883aa7bba90ff07dd7cd64d4e305e5ffdb35969b8b18b31b631e99d293fe06d95389359b23697544797a7703d9a973bd23246
DIST DoxygenInsightToolkit-4.5.0.tar.gz 871324021 SHA256 bcc66662aa836cbb287a184870ba0aaf1b94e47d16d8e5d8bd2d30d77172781e SHA512 0bdf870c1600d847a635eefb8109dc12030387124de70c5c2b03f6a61bab796ce39c56792fcaa5779f741fce9c4d9bc621dcd70b389a805301e14c01422202a1 WHIRLPOOL 6315d22958bbfd7435d9948f1da6f3c1695abf441fc80b6c3545ad48cff42c4c0e871c091251c40cc7a2db422123304d4feaf08527c67236b34ced11c569487d
+DIST InsightToolkit-4.12.0.tar.xz 12246508 SHA256 3756898677cebc8cd1d3fa090b3dfce7313e928e38545cc18d6f851d5b63343f SHA512 b0ed1a9e02d238783edf68706ae9bdd23d2cf3e90274caa0f09faafab2d55729663a45f4ef4f5884f07a2160c5dcfb179ec445718b83e235007a0002a7e19e96 WHIRLPOOL a72a2798804225d434134a96bba18b65ca636aa9fdb7605e1e5515f9d3b5c51f06eb16d1d2a93a4b557e56544f674b901a3616550e30b9353fbcbe962bf7f58f
DIST InsightToolkit-4.4.2.tar.gz 231905134 SHA256 071a7929c295b80bc8a6ab80d50c06cdfb0e6aafd936103c6d0a4a086cf8bec3 SHA512 c65beca4dd60aa769871bb3089cbb421729a2dcbd8bd3ec42c378ed60828e4327f1faf062f77bcca34306315a1daee6bc29d858dab9aea1c08f4843405fd21e3 WHIRLPOOL 4036bce61d0900ef2f1484ca06e9b513f6154c2233122e41fe694c648dd6eef53510749bf75368f9851a4dbd45777ca7033ad43f28c86259d5efae9e0d4200bd
DIST InsightToolkit-4.5.1.tar.xz 212785824 SHA256 ba63342db9e0eafc43bb0a7fa76f99af255017d76da5eaef787f5c185bc8ee8d SHA512 a613d37236e3fad68bf83c023141cef72ebfd901ebe371157f474446e0b98fc291f8c5b82b7cb60f01868b78621b919d3602b3768272173e2fe3be96f0813dbb WHIRLPOOL dfbfb41a20df20bf691df88b138d4e7ed87153f73863cf1cd14e26c0ecc4ee7b9e43863edf62e03eef0c312f906881bf1f7c3482a393a3c69cb8badd3caa4f62
diff --git a/sci-libs/itk/itk-4.12.0.ebuild b/sci-libs/itk/itk-4.12.0.ebuild
new file mode 100644
index 0000000..a963374
--- /dev/null
+++ b/sci-libs/itk/itk-4.12.0.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils toolchain-funcs cmake-utils python-single-r1
+
+MYPN=InsightToolkit
+MYP=${MYPN}-${PV}
+DOC_PV=4.5.0
+
+DESCRIPTION="NLM Insight Segmentation and Registration Toolkit"
+HOMEPAGE="http://www.itk.org"
+SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.xz
+ doc? ( mirror://sourceforge/${PN}/Doxygen${MYPN}-${DOC_PV}.tar.gz )"
+RESTRICT="primaryuri"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc examples +fftw itkv3compat python review cpu_flags_x86_sse2 test vtkglue"
+
+RDEPEND="
+ dev-libs/double-conversion:0=
+ media-libs/libpng:0=
+ media-libs/tiff:0=
+ sci-libs/dcmtk:0=
+ sci-libs/hdf5:0=[cxx]
+ sys-libs/zlib:0=
+ virtual/jpeg:0=
+ fftw? ( sci-libs/fftw:3.0= )
+ vtkglue? ( sci-libs/vtk:0=[python?] )
+"
+DEPEND="${RDEPEND}
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-lang/swig-2.0:0
+ >=dev-cpp/gccxml-0.9.0_pre20120309
+ )
+ doc? ( app-doc/doxygen )
+"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+S="${WORKDIR}/${MYP}"
+
+PATCHES=(
+ "${FILESDIR}/nrrdio-linking.patch"
+)
+
+get_memory() {
+ free --giga | grep Mem | cut -d ' ' -f 15 || die 'unable to get memory size'
+}
+
+src_configure() {
+ sed -i \
+ -e '/find_package/d' \
+ Modules/ThirdParty/DoubleConversion/CMakeLists.txt || die
+
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DITK_USE_SYSTEM_DCMTK=ON
+ -DITK_USE_SYSTEM_DOUBLECONVERSION=ON
+ -DITK_USE_SYSTEM_HDF5=ON
+ -DITK_USE_SYSTEM_JPEG=ON
+ -DITK_USE_SYSTEM_PNG=ON
+ -DITK_USE_SYSTEM_SWIG=ON
+ -DITK_USE_SYSTEM_TIFF=ON
+ -DITK_USE_SYSTEM_ZLIB=ON
+ -DITK_BUILD_DEFAULT_MODULES=ON
+ -DITK_COMPUTER_MEMORY_SIZE="$(get_memory)"
+ -DITK_WRAP_JAVA=OFF
+ -DITK_WRAP_TCL=OFF
+ -DBUILD_TESTING=$(usex test)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DITK_USE_REVIEW=$(usex review)
+ -DITKV3_COMPATIBILITY=$(usex itkv3compat)
+ -DVNL_CONFIG_ENABLE_SSE2=$(usex cpu_flags_x86_sse2)
+ )
+ if use fftw; then
+ mycmakeargs+=(
+ -DUSE_FFTWD=ON
+ -DUSE_FFTWF=ON
+ -DUSE_SYSTEM_FFTW=ON
+ -DITK_USE_SYSTEM_FFTW=ON
+ -DITK_WRAPPING=ON
+ -DITK_WRAP_double=ON
+ -DITK_WRAP_vector_double=ON
+ -DITK_WRAP_covariant_vector_double=ON
+ -DITK_WRAP_complex_double=ON
+ )
+ fi
+ if use vtkglue; then
+ mycmakeargs+=(
+ -DModule_ITKVtkGlue=ON
+ )
+ fi
+ mycmakeargs+=(
+ -DITK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ 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}
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/api-docs
+ cd "${WORKDIR}"/html
+ rm *.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 *
+ fi
+
+ mv "${D}/usr/lib" "${D}/usr/$(get_libdir)" || \
+ die 'unable to fix libdir'
+}