From 2569e722aa557d170cb6fd874ccb041e5a8343da Mon Sep 17 00:00:00 2001 From: Ziv Yaniv Date: Mon, 5 Jan 2026 12:38:12 -0500 Subject: [PATCH] Update DESCRIPTION file and usage of version. The config script requires the SimpleITK version and repository. The DESCRIPTION file also requires the SimpleITK version (mandatory field). Due to information duplication and independent updates of both files they diverged. This commit synchronizes the versioning information. As the remotes module starts by reading the DESCRIPTION file, that is where we maintain and update the versioning information. The configure script extracts the relevant information from the DESCRIPTION file. --- DESCRIPTION | 19 +++++++++++-------- configure | 4 ++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index aa84e5d..903be9d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,20 +1,23 @@ Package: SimpleITK -Version: 2.0.0 -Date: 2020-09-17 -Title: Bindings to SimpleITK Image segmentation and registration toolkit +Version: 2.5.3 +Date: 2025-11-20 +Title: SimpleITK: A Simplified Interface to the Insight Toolkit Authors@R: c(person("Richard", "Beare", role = c("aut", "cre"), email = "Richard.Beare@ieee.org"), person("Bradley", "Lowekamp", role = "aut", email = "blowekamp@mail.nih.gov"), person("Ziv", "Yaniv", role="aut", - email = "zivrafael.yaniv@nih.gov")) -Author: Richard Beare, Bradley Lowekamp, plus loads of others + email = "zivyaniv@nih.gov")) +Author: Richard Beare, Bradley Lowekamp, Ziv Yaniv plus loads of others Depends: R (>= 3.4) -Imports: methods +Imports: methods, + desc Description: This package is an interface to SimpleITK, which is a simplified interface to the Insight Toolkit (ITK) for medical image segmentation and registration. License: Apache License 2.0 -URL: http://www.simpleitk.org, http://www.itk.org -BugReports: http://issues.itk.org +Note: The first url in the URL field below is the SimpleITK repository, and is used + by the config script under the assumption that it is the first in the list. +URL: https://github.com/SimpleITK/SimpleITK, https://www.simpleitk.org, https://www.itk.org +BugReports: https://github.com/SimpleITK/SimpleITK/issues Maintainer: Richard Beare diff --git a/configure b/configure index fbf8604..8786f71 100755 --- a/configure +++ b/configure @@ -6,8 +6,8 @@ # # Requires git and cmake # -export SimpleITKGit=https://github.com/SimpleITK/SimpleITK -export SITKTAG=v2.5.3 +export SimpleITKGit=$(Rscript -e "d <- desc::desc(file='DESCRIPTION'); urls <- strsplit(d\$get_field('URL'), ',')[[1]]; cat(trimws(urls[1]))") +export SITKTAG=v$(Rscript -e "cat(desc::desc_get_field('Version', file='DESCRIPTION'))") export PKGBASED=$(pwd) echo ${PKGBASED}