1
0
mirror of synced 2024-11-15 09:28:56 +01:00
TheChymera-overlay/sci-biology/ants/ants-2.3.1_p20190704.ebuild
Horea Christian cb25e53393
sci-biology/ants: improved testing support
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Horea Christian <chr@chymera.eu>
2019-09-23 19:54:36 +02:00

50 lines
1.2 KiB
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils git-r3 multilib
MY_HASH="84cf0e06646142e0aa4c3d3324a62701"
DESCRIPTION="Advanced Normalitazion Tools for neuroimaging"
HOMEPAGE="http://stnava.github.io/ANTs/"
SRC_URI="http://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=${MY_HASH} -> ${MY_HASH}"
EGIT_REPO_URI="https://github.com/stnava/ANTs.git"
EGIT_COMMIT="1d2e5bf497cd71667d6f7d79ff858387c08bb93e"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND=">=dev-util/cmake-3.10.3"
RDEPEND="
sci-libs/vtk
>=sci-libs/itk-5.0_rc1
"
#src_prepare() {
#}
src_configure() {
local mycmakeargs=(
-DITK_DIR="/usr/include/ITK-5.0/"
-DUSE_SYSTEM_ITK=ON
-DUSE_SYSTEM_VTK=ON
-DBUILD_TESTING="$(usex test ON OFF)"
)
cmake-utils_src_configure
cp "../../distdir/84cf0e06646142e0aa4c3d3324a62701" "../${P}_build/ANTS-build"
}
src_install() {
cd "${WORKDIR}/${P}_build/ANTS-build" || die "build dir not found"
default
cd "${WORKDIR}/${P}/Scripts" || die "scripts dir not found"
dobin *.sh
dodir /usr/$(get_libdir)/ants
install -t "${D}"usr/$(get_libdir)/ants *
doenvd "${FILESDIR}"/99ants
}