blob: 40309f12606c1c784858939584f124d2ad9d3c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gap-pkg
DESCRIPTION="Graphs, digraphs, and multidigraphs in GAP"
SRC_URI="https://github.com/digraphs/Digraphs/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
DEPEND="sci-mathematics/gap:=
>=sci-mathematics/planarity-4
sci-libs/bliss:="
RDEPEND="${DEPEND}
dev-gap/io
dev-gap/orb
dev-gap/datastructures"
# There are a few tests that will fail without a PDF viewer installed.
# Having xdg-open is good enough, and light weight, so it goes first.
BDEPEND="test? ( || (
x11-misc/xdg-utils
app-text/gv
app-text/xpdf
app-text/evince
kde-apps/okular
) )"
PATCHES=( "${FILESDIR}/digraphs-planarity-4.x.patch" )
DOCS=( CHANGELOG.md README.md )
GAP_PKG_EXTRA_INSTALL=( data notebooks )
gap-pkg_enable_tests
src_configure() {
gap-pkg_econf \
--with-external-planarity \
--with-external-bliss
}
|