commit: 575a0749ffcf4bbedf7674e1597b676a4cd1ce9e Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Tue May 6 00:29:14 2025 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Tue May 6 13:52:20 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=575a0749
sci-libs/simpleitk: treeclean Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/sci/pull/1356 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> .../simpleitk/files/simpleitk-1.2.4-int-cast.patch | 64 --------------------- .../simpleitk/files/simpleitk-1.2.4-module.patch | 22 -------- sci-libs/simpleitk/metadata.xml | 19 ------- sci-libs/simpleitk/simpleitk-1.2.4.ebuild | 65 ---------------------- 4 files changed, 170 deletions(-) diff --git a/sci-libs/simpleitk/files/simpleitk-1.2.4-int-cast.patch b/sci-libs/simpleitk/files/simpleitk-1.2.4-int-cast.patch deleted file mode 100644 index 9477194c4..000000000 --- a/sci-libs/simpleitk/files/simpleitk-1.2.4-int-cast.patch +++ /dev/null @@ -1,64 +0,0 @@ -From 73caeaa545859cffd68f9aebe1e8b66de5ab812d Mon Sep 17 00:00:00 2001 -From: Bradley Lowekamp <[email protected]> -Date: Fri, 14 Feb 2020 09:35:29 -0500 -Subject: [PATCH] Explicitly cast int to ITK strongly typed enums - ---- - Code/IO/src/sitkImageReaderBase.cxx | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/Code/IO/src/sitkImageReaderBase.cxx b/Code/IO/src/sitkImageReaderBase.cxx -index b8c93a2ac..a5e6d9cd9 100644 ---- a/Code/IO/src/sitkImageReaderBase.cxx -+++ b/Code/IO/src/sitkImageReaderBase.cxx -@@ -214,7 +214,7 @@ ::GetPixelIDFromImageIO( const ImageIOBase *iobase, - if (numberOfComponents == 1 && - ( pixelType == itk::ImageIOBase::SCALAR || pixelType == itk::ImageIOBase::COMPLEX ) ) - { -- outPixelType = this->ExecuteInternalReadScalar( componentType ); -+ outPixelType = this->ExecuteInternalReadScalar( static_cast<int>(componentType) ); - return; - } - // we try to load anything else into a VectorImage -@@ -226,12 +226,12 @@ ::GetPixelIDFromImageIO( const ImageIOBase *iobase, - pixelType == itk::ImageIOBase::POINT || - pixelType == itk::ImageIOBase::OFFSET ) - { -- outPixelType = this->ExecuteInternalReadVector( componentType ); -+ outPixelType = this->ExecuteInternalReadVector( static_cast<int>(componentType) ); - return; - } - else if ( pixelType == itk::ImageIOBase::COMPLEX ) - { -- outPixelType = this->ExecuteInternalReadComplex( componentType ); -+ outPixelType = this->ExecuteInternalReadComplex( static_cast<int>(componentType) ); - return; - } - else -@@ -268,7 +268,7 @@ ::ExecuteInternalReadScalar( int componentType ) - { - const unsigned int UnusedDimension = 2; - -- switch(componentType) -+ switch(static_cast<ImageIOBase::IOComponentType>(componentType)) - { - case itk::ImageIOBase::CHAR: - return ImageTypeToPixelIDValue< itk::Image<int8_t, UnusedDimension> >::Result; -@@ -326,7 +326,7 @@ ::ExecuteInternalReadComplex( int componentType ) - { - const unsigned int UnusedDimension = 2; - -- switch(componentType) -+ switch(static_cast<ImageIOBase::IOComponentType>(componentType)) - { - case itk::ImageIOBase::FLOAT: - return ImageTypeToPixelIDValue< itk::Image<std::complex<float>, UnusedDimension> >::Result; -@@ -346,7 +346,7 @@ ::ExecuteInternalReadVector( int componentType ) - { - const unsigned int UnusedDimension = 2; - -- switch(componentType) -+ switch(static_cast<ImageIOBase::IOComponentType>(componentType)) - { - case itk::ImageIOBase::CHAR: - return ImageTypeToPixelIDValue< itk::VectorImage<int8_t, UnusedDimension> >::Result; diff --git a/sci-libs/simpleitk/files/simpleitk-1.2.4-module.patch b/sci-libs/simpleitk/files/simpleitk-1.2.4-module.patch deleted file mode 100644 index 9b40d5e02..000000000 --- a/sci-libs/simpleitk/files/simpleitk-1.2.4-module.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 9a9f67416683d69c1c8d2362ba6e50c4848803b2 Mon Sep 17 00:00:00 2001 -From: Bradley Lowekamp <[email protected]> -Date: Wed, 20 Nov 2019 15:30:50 -0500 -Subject: [PATCH] Update SLICImageFilter's module - ---- - Code/BasicFilters/json/SLICImageFilter.json | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Code/BasicFilters/json/SLICImageFilter.json b/Code/BasicFilters/json/SLICImageFilter.json -index 2ffba2f4c..0e9ced7d7 100644 ---- a/Code/BasicFilters/json/SLICImageFilter.json -+++ b/Code/BasicFilters/json/SLICImageFilter.json -@@ -156,7 +156,7 @@ - ] - } - ], -- "itk_module" : "SimpleITKFilters", -+ "itk_module" : "ITKSuperPixel", - "detaileddescription" : "The Simple Linear Iterative Clustering (SLIC) algorithm groups pixels into a set of labeled regions or super-pixels. Super-pixels follow natural image boundaries, are compact, and are nearly uniform regions which can be used as a larger primitive for more efficient computation. The SLIC algorithm can be viewed as a spatially constrained iterative k-means method.\n\nThe original algorithm was designed to cluster on the joint domain of the images index space and it's CIELAB color space. This implementation works with images of arbitrary dimension as well as scalar, single channel, images and most multi-component image types including ITK's arbitrary length VectorImage .\n\nThe distance between a pixel and a cluster is the sum of squares of the difference between their joint range and domains ( index and value ). The computation is done in index space with scales provided by the SpatialProximityWeight parameters.\n\nThe output is a label image with each labe l representing a superpixel cluster. Every pixel in the output is labeled, and the starting label id is zero.\n\nThis code was contributed in the Insight Journal paper: \"Scalable Simple Linear Iterative Clustering (SSLIC) Using a\nGeneric and Parallel Approach\" by Lowekamp B. C., Chen D. T., Yaniv Z.", - "briefdescription" : "Simple Linear Iterative Clustering (SLIC) super-pixel segmentation." - } diff --git a/sci-libs/simpleitk/metadata.xml b/sci-libs/simpleitk/metadata.xml deleted file mode 100644 index 1d31afb55..000000000 --- a/sci-libs/simpleitk/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>[email protected]</email> - <name>Horea Christian</name> - </maintainer> - <longdescription lang="en"> - 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. - </longdescription> - <upstream> - <remote-id type="github">SimpleITK/SimpleITK</remote-id> - </upstream> -</pkgmetadata> diff --git a/sci-libs/simpleitk/simpleitk-1.2.4.ebuild b/sci-libs/simpleitk/simpleitk-1.2.4.ebuild deleted file mode 100644 index 26e0c688d..000000000 --- a/sci-libs/simpleitk/simpleitk-1.2.4.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_10 ) -LUA_COMPAT=( lua5-{1..3} ) - -inherit lua-single 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/releases/download/v${PV}/SimpleITK-${PV}.tar.gz - https://github.com/SimpleITK/SimpleITK/releases/download/v${PV}/SimpleITKData-${PV}.tar.gz -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="python" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -BDEPEND="dev-lang/swig" -RDEPEND=" - ${LUA_DEPS} - dev-cpp/gtest - sci-libs/itk - dev-python/virtualenv - python? ( ${PYTHON_DEPS} ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}/${P}-module.patch" - "${FILESDIR}/${P}-int-cast.patch" -) - -S="${WORKDIR}/${MY_PN}-${PV}" - -src_prepare() { - cmake_src_prepare - cp -rf "../${MY_PN}-${PV}/.ExternalData" "${BUILD_DIR}/" || die -} - -src_configure() { - local mycmakeargs=( - -DUSE_SYSTEM_GTEST=ON - -DUSE_SYSTEM_ITK=ON - -DUSE_SYSTEM_LUA=ON - -DUSE_SYSTEM_SWIG=ON - -DUSE_SYSTEM_VIRTUALENV=ON - -DBUILD_TESTING:BOOL=OFF - -DSimpleITK_FORBID_DOWNLOADS=ON - -DSimpleITK_PYTHON_USE_VIRTUALENV:BOOL=OFF - -DSimpleITK_EXPLICIT_INSTANTIATION=OFF - -DModule_SimpleITKFilters:BOOL=ON - -DExternalData_OBJECT_STORES:STRING="${BUILD_DIR}/.ExternalData" - -DSimpleITK_INSTALL_LIBRARY_DIR=$(get_libdir) - ) - cmake_src_configure -}
