aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorea Christian <horea.christ@yandex.com>2019-04-02 03:20:09 +0200
committerHorea Christian <horea.christ@yandex.com>2019-04-02 03:20:09 +0200
commitb78267d25570586f0a6dfd7d8d948c974c4e2846 (patch)
tree026b2043744c21c631ecf099ba6550fb16a29ce8
parentdev-cpp/castxml: no keywords for live packagew (diff)
downloadsci-b78267d25570586f0a6dfd7d8d948c974c4e2846.tar.gz
sci-b78267d25570586f0a6dfd7d8d948c974c4e2846.tar.bz2
sci-b78267d25570586f0a6dfd7d8d948c974c4e2846.zip
sci-libs/itk: version bump 5.0_rc1
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Horea Christian <horea.christ@yandex.com>
-rw-r--r--sci-libs/itk/Manifest6
-rw-r--r--sci-libs/itk/itk-5.0_rc1.ebuild150
2 files changed, 154 insertions, 2 deletions
diff --git a/sci-libs/itk/Manifest b/sci-libs/itk/Manifest
index cae86acd2..9d1507943 100644
--- a/sci-libs/itk/Manifest
+++ b/sci-libs/itk/Manifest
@@ -1,5 +1,7 @@
-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 DoxygenInsightToolkit-4.4.0.tar.gz 779393284 BLAKE2B 559b61bf23a844903e5b309fc7d676e3bb03e5e7ff354b596c78a42e5e5295248531600a9a40d7dc69bbfff75634b75fc394734a2ffdae9ccddd5ad0efca553c SHA512 9bdd6cedcdf5c30afb7f73130074983a56c397db776b927aae78b15a80d1158cca4563f92795d804ade34f4860b350cbbd157ed6924d53cb2ddfccf478e403c6
+DIST DoxygenInsightToolkit-4.5.0.tar.gz 871324021 BLAKE2B 418dac933b52b90b149e7fd13e56e7fdfb0c5439d0458ee7848190573fffb07cdc840fe130a1f8795bdcb41d8702de9ab5b698a17338936aa56083f01681f22d SHA512 0bdf870c1600d847a635eefb8109dc12030387124de70c5c2b03f6a61bab796ce39c56792fcaa5779f741fce9c4d9bc621dcd70b389a805301e14c01422202a1
+DIST InsightData-5.0rc01.tar.gz 290621965 BLAKE2B 1815e17d0362182a80a4978e36b417dcb61c160df8babd99daf89d2d5cb8de72303152a38db08b51403fc95f7f4aa051356607486c2c3206dd00cd18c0c4cd4e SHA512 0be5568b75017a4c4cbfc4a4e7b0339537cd2dc23d5d5637a95002e040b96f923851bc354f3a1447d3802444a951b62d2ef66ad2a0db0961bf2bd9f47399fd9a
DIST InsightToolkit-4.12.0.tar.xz 12246508 BLAKE2B c14cf0b4b1fab8a6f27f1e863ff79228473dd1d9c7fe76bca3791d8c3fad39a4f448ee81cee9ca52a974df166db7b22cd6896353482bf8c587c272266501ea5a SHA512 b0ed1a9e02d238783edf68706ae9bdd23d2cf3e90274caa0f09faafab2d55729663a45f4ef4f5884f07a2160c5dcfb179ec445718b83e235007a0002a7e19e96
DIST InsightToolkit-4.4.2.tar.gz 231905134 BLAKE2B 910c08916b3c22f0245aed39378c8f73191d57294032c9fafae1dbe168644312921512e9520c96ba7ed409c20631f9d6a9d71241162cbb868cba4638614b7a04 SHA512 c65beca4dd60aa769871bb3089cbb421729a2dcbd8bd3ec42c378ed60828e4327f1faf062f77bcca34306315a1daee6bc29d858dab9aea1c08f4843405fd21e3
DIST InsightToolkit-4.5.1.tar.xz 212785824 BLAKE2B 1586da2a7d4ff2c65d70459b7f6ddd9dcd04facb2c50fee6b11b6ab78eb2b4bf26b1f4bcbf7c622d7dce098348b9e510bf6f3974a047a7ad9ba3ee58abf44e11 SHA512 a613d37236e3fad68bf83c023141cef72ebfd901ebe371157f474446e0b98fc291f8c5b82b7cb60f01868b78621b919d3602b3768272173e2fe3be96f0813dbb
+DIST v5.0rc01.tar.gz 20944543 BLAKE2B 7a2c8e757b1084faa756ed5f663e37d1baa4153bd3a82f7d52fd1e460aac77a0c6a41ce9776fc9b2ae8dd129db439607c338a6c5d1b3db65247a93687674bf63 SHA512 30e327708c7717bb2131911c86802c4104730d146b4263c68ae89384d3f01a6675b3abf5962af14cc7f40984cb1e8eedd911fe0f084a8deb4c79b4239b309728
diff --git a/sci-libs/itk/itk-5.0_rc1.ebuild b/sci-libs/itk/itk-5.0_rc1.ebuild
new file mode 100644
index 000000000..f6433e551
--- /dev/null
+++ b/sci-libs/itk/itk-5.0_rc1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+
+inherit eutils toolchain-funcs cmake-utils python-single-r1
+
+MY_PV="5.0rc01"
+
+DESCRIPTION="NLM Insight Segmentation and Registration Toolkit"
+HOMEPAGE="http://www.itk.org"
+SRC_URI="
+ https://github.com/InsightSoftwareConsortium/ITK/archive/v${MY_PV}.tar.gz
+ test? ( https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.0rc01/InsightData-${MY_PV}.tar.gz )
+ "
+RESTRICT="primaryuri"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc examples fftw python review test vtkglue"
+
+RDEPEND="
+ dev-libs/double-conversion:0=
+ media-libs/openjpeg:2
+ 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}/ITK-${MY_PV}"
+
+pkg_pretend() {
+ if [[ -z ${ITK_COMPUTER_MEMORY_SIZE} ]]; then
+ elog "To tune ITK to make the best use of 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_prepare() {
+ sed -i -e "s/find_package(OpenJPEG 2.0.0/find_package(OpenJPEG/g"\
+ Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DITK_USE_SYSTEM_DCMTK=ON
+ -DGDCM_USE_SYSTEM_OPENJPEG=ON
+ -DITK_USE_SYSTEM_DOUBLECONVERSION=ON
+ -DITK_USE_SYSTEM_CASTXML=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_USE_KWSTYLE=OFF
+ -DITK_BUILD_DEFAULT_MODULES=ON
+ -DITK_COMPUTER_MEMORY_SIZE="${ITK_COMPUTER_MEMORY_SIZE:-1}"
+ -DWRAP_ITK_JAVA=OFF
+ -DWRAP_ITK_TCL=OFF
+ -Ddouble-conversion_INCLUDE_DIRS="${EPREFIX}/usr/include/double-conversion"
+ -DExternalData_OBJECT_STORES="${WORKDIR}/InsightToolkit-${MY_PV}/.ExternalData"
+ -DBUILD_TESTING="$(usex test ON OFF)"
+ -DBUILD_EXAMPLES="$(usex examples ON OFF)"
+ -DITK_USE_REVIEW="$(usex review ON OFF)"
+ -DITK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ )
+ 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 vtkglue; then
+ mycmakeargs+=(
+ -DModule_ITKVtkGlue=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}
+
+ 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
+}