From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1436226-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD28E158094 for <garchives@archives.gentoo.org>; Thu, 15 Sep 2022 07:03:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9D02E0958; Thu, 15 Sep 2022 07:03:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D397CE0958 for <gentoo-commits@lists.gentoo.org>; Thu, 15 Sep 2022 07:03:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02D44340FA1 for <gentoo-commits@lists.gentoo.org>; Thu, 15 Sep 2022 07:03:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 665865D5 for <gentoo-commits@lists.gentoo.org>; Thu, 15 Sep 2022 07:03:54 +0000 (UTC) From: "Horea Christian" <horea.christ@gmail.com> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horea Christian" <horea.christ@gmail.com> Message-ID: <1663225420.4d36e47773d01a0d4d91d2eee5d2701dcdebe9d0.chymera@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/ants/ X-VCS-Repository: proj/sci X-VCS-Files: sci-biology/ants/ants-2.3.4.ebuild X-VCS-Directories: sci-biology/ants/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 4d36e47773d01a0d4d91d2eee5d2701dcdebe9d0 X-VCS-Branch: master Date: Thu, 15 Sep 2022 07:03:54 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 153de956-5d74-4d2e-82d5-59f484bccf58 X-Archives-Hash: 9f135a93029cb13e5d1472c0280d3478 commit: 4d36e47773d01a0d4d91d2eee5d2701dcdebe9d0 Author: Horea Christian <chr <AT> chymera <DOT> eu> AuthorDate: Thu Sep 15 07:03:40 2022 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Thu Sep 15 07:03:40 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4d36e477 sci-biology/ants: add 2.3.4 Signed-off-by: Horea Christian <chr <AT> chymera.eu> sci-biology/ants/ants-2.3.4.ebuild | 78 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/sci-biology/ants/ants-2.3.4.ebuild b/sci-biology/ants/ants-2.3.4.ebuild new file mode 100644 index 000000000..95eb6355b --- /dev/null +++ b/sci-biology/ants/ants-2.3.4.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="emake" + +inherit cmake + +MY_PN="ANTs" + +DESCRIPTION="Advanced Normalitazion Tools for neuroimaging" +HOMEPAGE="http://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 + ) +" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +IUSE="test vtk" +RESTRICT="!test? ( test )" + +DEPEND=" + vtk? ( + ~sci-libs/itk-5.1.0[vtkglue] + sci-libs/vtk + ) + !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/" + -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" + ) + cmake_src_configure +} + +src_install() { + BUILD_DIR="${WORKDIR}/${P}_build/ANTS-build" + cmake_src_install + cd "${S}/Scripts" || die "scripts dir not found" + dobin *.sh + dodir /usr/$(get_libdir)/ants + insinto "/usr/$(get_libdir)/ants" + doins * + doenvd "${FILESDIR}"/99ants +}