# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Resample and coadd astronomical FITS images"
HOMEPAGE="http://www.astromatic.net/software/swarp"
SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"

LICENSE="GPL-3"
SLOT="0"

IUSE="doc threads"

RDEPEND=""
DEPEND="${RDEPEND}"

src_configure() {
	econf $(use_enable threads)
}

src_install() {
	default
	use doc && dodoc doc/*
}