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

EAPI=7

DESCRIPTION="Handle the Frame data format for the gravitational-wave detectors Virgo and LIGO"
HOMEPAGE="http://wwwlapp.in2p3.fr/virgo/FrameL/"
SRC_URI="http://wwwlapp.in2p3.fr/virgo/FrameL/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+fast-install static-libs"

src_configure() {
	econf \
		$(use_enable fast-install) \
		$(use_enable static-libs static) \
		# $(use_disable libtool-lock) \     avoid locking (might break parallel builds)
}

src_install() {
	emake DESTDIR="${D}${DESTDIR}" install
	mv "$D/usr/share/doc/${PN}" "$D/usr/share/doc/${P}"  # Doc subdir should contain package version
}