commit: 7270f7d4cc28cda30144e8434dce425696390915 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Wed Aug 31 10:56:01 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Wed Aug 31 10:56:01 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7270f7d4
sci-biology/ants: add 2.4.1, drop 2.3.4 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> .../ants/{ants-2.3.4.ebuild => ants-2.4.1.ebuild} | 39 +++++----------------- 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/sci-biology/ants/ants-2.3.4.ebuild b/sci-biology/ants/ants-2.4.1.ebuild similarity index 56% rename from sci-biology/ants/ants-2.3.4.ebuild rename to sci-biology/ants/ants-2.4.1.ebuild index 95eb6355b..feba81d2c 100644 --- a/sci-biology/ants/ants-2.3.4.ebuild +++ b/sci-biology/ants/ants-2.4.1.ebuild @@ -1,67 +1,46 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 CMAKE_MAKEFILE_GENERATOR="emake" - inherit cmake MY_PN="ANTs" DESCRIPTION="Advanced Normalitazion Tools for neuroimaging" -HOMEPAGE="http://stnava.github.io/ANTs/" +HOMEPAGE="https://stnava.github.io/ANTs/" SRC_URI=" https://github.com/ANTsX/ANTs/archive/v${PV}.tar.gz -> ${P}.tar.gz - test? ( - http://resources.chymera.eu/distfiles/ants_testdata-${PV}.tar.xz - ) " +S="${WORKDIR}/${MY_PN}-${PV}" SLOT="0" LICENSE="BSD" KEYWORDS="~amd64 ~x86" IUSE="test vtk" -RESTRICT="!test? ( test )" +RESTRICT="test" DEPEND=" + =sci-libs/itk-5.2* vtk? ( - ~sci-libs/itk-5.1.0[vtkglue] - sci-libs/vtk + =sci-libs/itk-5.2*[vtkglue] + =sci-libs/vtk-9.1* ) - !vtk? ( ~sci-libs/itk-5.1.0 ) " RDEPEND="${DEPEND}" -PATCHES=( - "${FILESDIR}/${P}-version.patch" - "${FILESDIR}/${P}-libdir.patch" -) - -S="${WORKDIR}/${MY_PN}-${PV}" - -src_unpack() { - default - if use test; then - mkdir -p "${S}/.ExternalData/MD5" || die "Could not create test data directory." - tar xvf "${DISTDIR}/ants_testdata-${PV}.tar.xz" -C "${S}/.ExternalData/MD5/" > /dev/null || die "Could not unpack test data." - fi -} - src_configure() { local mycmakeargs=( -DUSE_SYSTEM_ITK=ON - -DITK_DIR="${EPREFIX}/usr/include/ITK-5.1/" + -DITK_DIR="${EPREFIX}/usr/include/ITK-5.2/" -DBUILD_TESTING="$(usex test ON OFF)" -DUSE_VTK=$(usex vtk ON OFF) -DUSE_SYSTEM_VTK=$(usex vtk ON OFF) -DANTS_SNAPSHOT_VERSION:STRING=${PV} ) use vtk && mycmakeargs+=( - -DVTK_DIR="${EPREFIX}/usr/include/vtk-8.1/" - ) - use test && mycmakeargs+=( - -DExternalData_OBJECT_STORES="${S}/.ExternalData/MD5" + -DVTK_DIR="${EPREFIX}/usr/include/vtk-9.1/" ) cmake_src_configure }