summaryrefslogtreecommitdiff
blob: 08c73706089a9b9feb2b51cb2d759181d1ef8a8d (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
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit gap-pkg

DESCRIPTION="Homological Algebra Programming (HAP) in GAP"
SRC_URI="https://github.com/gap-packages/${PN}/releases/download/v${PV}/${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
#IUSE="test"
RESTRICT=test

RDEPEND="dev-gap/aclib
	dev-gap/crystcat
	dev-gap/fga
	dev-gap/nq
	dev-gap/polycyclic"

# Singular: https://docs.gap-system.org/pkg/hap/doc/chap14.html
# EDIM: https://docs.gap-system.org/pkg/hap/doc/chap11.html
# congruence is needed for ResolutionSL2Z()
# tst/testextra/3.6.1.tst calls LieAlgebra() from laguna
# EquivariantEuclideanSpace() in tst/testallV11/1.8.1.tst needs hapcryst
#
# The imagemagick "convert" utility is used in a few places, and it does
# actually need to be imagemagick (and not graphicsmagick) because e.g.
# ReadImageAsPureCubicalComplex parses the comment that only imagemagick
# puts at the top of a text file:
#
#   https://github.com/gap-packages/hap/issues/115
#
# BDEPEND="test? (
# 	dev-gap/congruence
# 	dev-gap/edim
# 	dev-gap/hapcryst
# 	dev-gap/laguna
# 	dev-gap/polymaking
# 	dev-gap/singular
# 	media-gfx/imagemagick[png]
# )"

HTML_DOCS="www/* tutorial"

GAP_PKG_EXTRA_INSTALL=( boolean )
gap-pkg_enable_tests

pkg_postinst() {
	elog "Some optional functions require media-gfx/graphviz"
	elog "to be installed at runtime."
}