GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

fastjet-3.0.6-r1.ebuild 1.27 KB
Newer Older
1
# Copyright 1999-2021 Gentoo Authors
Palica's avatar
Palica committed
2 3
# Distributed under the terms of the GNU General Public License v2

4
EAPI=7
Palica's avatar
Palica committed
5 6 7

FORTRAN_NEEDED=plugins

8
inherit autotools flag-o-matic fortran-2
Palica's avatar
Palica committed
9 10

DESCRIPTION="Fast implementation of several recombination jet algorithms"
11
HOMEPAGE="http://www.fastjet.fr/"
Palica's avatar
Palica committed
12 13 14 15 16
SRC_URI="http://www.fastjet.fr/repo/${P}.tar.gz"

LICENSE="GPL-2 QPL"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17
IUSE="cgal doc examples +plugins"
Palica's avatar
Palica committed
18

19 20 21 22 23
RDEPEND="
	cgal? ( sci-mathematics/cgal:= )
	plugins? ( sci-physics/siscone:= )"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
Palica's avatar
Palica committed
24 25 26

PATCHES=( "${FILESDIR}"/${P}-system-siscone.patch )

27 28 29 30 31
src_prepare() {
	default
	eautoreconf
}

Palica's avatar
Palica committed
32 33
src_configure() {
	use cgal && \
34 35 36 37 38 39
		has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp

	econf \
		--disable-static \
		$(use_enable cgal) \
		$(use_enable plugins allplugins) \
Palica's avatar
Palica committed
40 41 42 43
		$(use_enable plugins allcxxplugins)
}

src_compile() {
44 45
	default

Palica's avatar
Palica committed
46 47
	if use doc; then
		doxygen Doxyfile || die
48
		HTML_DOCS=( html/. )
Palica's avatar
Palica committed
49 50 51 52
	fi
}

src_install() {
53 54
	default

Palica's avatar
Palica committed
55
	if use examples; then
56 57 58 59 60 61
		emake -C example maintainer-clean
		find example -iname 'makefile*' -delete || die

		docinto examples
		dodoc -r example/.
		docompress -x /usr/share/doc/${PF}/examples
Palica's avatar
Palica committed
62
	fi
63 64 65

	# no static archives
	find "${ED}" -name '*.la' -delete || die
Palica's avatar
Palica committed
66
}