From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35EEE138334 for ; Mon, 25 Nov 2019 17:55:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58DE3E09DF; Mon, 25 Nov 2019 17:55:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31AEFE09DF for ; Mon, 25 Nov 2019 17:55:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9AB9B34D2F3 for ; Mon, 25 Nov 2019 17:55:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F198B778 for ; Mon, 25 Nov 2019 17:55:09 +0000 (UTC) From: "Horea Christian" 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" Message-ID: <1574704493.135c9b37558224c81bdec906c505df3e62d0b608.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.1_p20191013.ebuild sci-biology/ants/metadata.xml X-VCS-Directories: sci-biology/ants/ X-VCS-Committer: chymera X-VCS-Committer-Name: Horea Christian X-VCS-Revision: 135c9b37558224c81bdec906c505df3e62d0b608 X-VCS-Branch: master Date: Mon, 25 Nov 2019 17:55:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 697b4fdf-8e41-44db-b75e-6b8d5ebbad0b X-Archives-Hash: 76f9f6d7acd60c91c5b9456abfa6e8a4 commit: 135c9b37558224c81bdec906c505df3e62d0b608 Author: Horea Christian chymera eu> AuthorDate: Mon Nov 25 17:54:53 2019 +0000 Commit: Horea Christian gmail com> CommitDate: Mon Nov 25 17:54:53 2019 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=135c9b37 sci-biology/ants: version bump 2.3.1_p20191013 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Horea Christian chymera.eu> sci-biology/ants/ants-2.3.1_p20191013.ebuild | 72 ++++++++++++++++++++++++++++ sci-biology/ants/metadata.xml | 5 +- 2 files changed, 76 insertions(+), 1 deletion(-) diff --git a/sci-biology/ants/ants-2.3.1_p20191013.ebuild b/sci-biology/ants/ants-2.3.1_p20191013.ebuild new file mode 100644 index 000000000..5dd2c8145 --- /dev/null +++ b/sci-biology/ants/ants-2.3.1_p20191013.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="emake" + +inherit cmake-utils git-r3 multilib + +DESCRIPTION="Advanced Normalitazion Tools for neuroimaging" +HOMEPAGE="http://stnava.github.io/ANTs/" +SRC_URI=" + test? ( + http://chymera.eu/distfiles/ants_testdata-${PV}.tar.xz + ) +" +EGIT_REPO_URI="https://github.com/stnava/ANTs.git" +EGIT_COMMIT="f78b2d4a382d3090230641b5ade5da28962dad04" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +IUSE="test vtk" + +DEPEND=" + vtk? ( + ~sci-libs/itk-5.0.1[vtkglue] + sci-libs/vtk + ) + !vtk? ( ~sci-libs/itk-5.0.1 ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-logic.patch" + "${FILESDIR}/${P}-paths.patch" +) + +src_unpack() { + git-r3_src_unpack + 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="/usr/include/ITK-5.0/" + -DBUILD_TESTING="$(usex test ON OFF)" + -DUSE_VTK=$(usex vtk ON OFF) + -DUSE_SYSTEM_VTK=$(usex vtk ON OFF) + ) + use vtk && mycmakeargs+=( + -DVTK_DIR="/usr/include/vtk-8.1/" + ) + use test && mycmakeargs+=( + -DExternalData_OBJECT_STORES="${S}/.ExternalData/MD5" + ) + cmake-utils_src_configure +} + +src_install() { + BUILD_DIR="${WORKDIR}/${P}_build/ANTS-build" + cmake-utils_src_install + cd "${WORKDIR}/${P}/Scripts" || die "scripts dir not found" + dobin *.sh + dodir /usr/$(get_libdir)/ants + install -t "${D}"/usr/$(get_libdir)/ants * || die + doenvd "${FILESDIR}"/99ants +} diff --git a/sci-biology/ants/metadata.xml b/sci-biology/ants/metadata.xml index 6d6b0d88a..87d2feb05 100644 --- a/sci-biology/ants/metadata.xml +++ b/sci-biology/ants/metadata.xml @@ -2,7 +2,7 @@ - horea.christ@gmail.com + chr@chymera.eu Horea Christian @@ -18,4 +18,7 @@ image analysis. ANTs depends on the Insight ToolKit (ITK), a widely used medical image processing library to which ANTs developers contribute. + + Optional support for a number of surface enabled tools (via sci-libs/vtk). +