diff --git a/sci-libs/simpleitk/ChangeLog b/sci-libs/simpleitk/ChangeLog new file mode 100644 index 0000000..ec53304 --- /dev/null +++ b/sci-libs/simpleitk/ChangeLog @@ -0,0 +1,4 @@ +*simpleitk-2.0.0 (25 Sep 2020) + + 25 Sep 2020; +metadata.xml, +simpleitk-2.0.0.ebuild: + sci-libs/simpleitk: new package ahead of Gentoo Science diff --git a/sci-libs/simpleitk/Manifest b/sci-libs/simpleitk/Manifest new file mode 100644 index 0000000..88b36e8 --- /dev/null +++ b/sci-libs/simpleitk/Manifest @@ -0,0 +1 @@ +DIST simpleitk-2.0.0.tar.gz 1917829 SHA256 de7aeb1e27adc717979645f8daab12097c7b3de241e182c1f6bffa4d4ee4b086 SHA512 5387a7452bedaf3b757da58dffab9290014078e605ab95f3794d3bc8fd636ac4199d0a853bcc8c017837d59c601c1b507568a5450c8269f0f8708708ef10d0b6 WHIRLPOOL a310b532104eacc97c7a0de3296bc0183dfa5f2b3f839df7c45059f0e381103df3c63d358e6025f86551dd3e3e3d54c1f10a92a8e6348422a7cad7d01aed4d61 diff --git a/sci-libs/simpleitk/metadata.xml b/sci-libs/simpleitk/metadata.xml new file mode 100644 index 0000000..1d31afb --- /dev/null +++ b/sci-libs/simpleitk/metadata.xml @@ -0,0 +1,19 @@ + + + + + chr@chymera.eu + Horea Christian + + + SimpleITK is an image analysis toolkit with a large number of components + supporting general filtering operations, image segmentation and registration. + It is built on top of the Insight Segmentation and Registration Toolkit ITK + with the intent of providing a simplified interface to ITK. SimpleITK itself + is written in C++ but is available for a large number of programming + languages. + + + SimpleITK/SimpleITK + + diff --git a/sci-libs/simpleitk/simpleitk-2.0.0.ebuild b/sci-libs/simpleitk/simpleitk-2.0.0.ebuild new file mode 100644 index 0000000..e7c4f31 --- /dev/null +++ b/sci-libs/simpleitk/simpleitk-2.0.0.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit toolchain-funcs cmake python-single-r1 + +MY_PN="SimpleITK" + +DESCRIPTION="Layer on top of ITK for rapid prototyping, education and interpreted languages." +HOMEPAGE="https://simpleitk.org/" +SRC_URI="https://github.com/SimpleITK/SimpleITK/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RESTRICT="primaryuri" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="python" + +# According to upstream it should be dev-lang/lua:5.3 , but that is hard masked. +# Let's hope for the best! +RDEPEND=" + dev-lang/lua:0 + dev-lang/swig + dev-cpp/gtest + sci-libs/itk + dev-python/virtualenv +" +DEPEND="${RDEPEND}" + +#REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_configure() { + local mycmakeargs=( + -DUSE_SYSTEM_LUA=ON + -DUSE_SYSTEM_SWIG=ON + -DUSE_SYSTEM_GTEST=ON + -DUSE_SYSTEM_ITK=ON + -DUSE_SYSTEM_VIRTUALENV=ON + ) + #-DITK_INSTALL_LIBRARY_DIR=$(get_libdir) + #-DBUILD_SHARED_LIBS=ON + #-DGDCM_USE_SYSTEM_OPENJPEG=ON + #-DITK_FORBID_DOWNLOADS:BOOL=OFF + #-DITK_USE_SYSTEM_DCMTK=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-${PV}/.ExternalData" + #-DModule_GenericLabelInterpolator:BOOL=ON + #-DModule_ITKReview:BOOL=ON + #-DBUILD_EXAMPLES="$(usex examples ON OFF)" + #-DITK_USE_REVIEW="$(usex review ON OFF)" + #-DBUILD_TESTING="$(usex test ON OFF)" + #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 +#}