blob: 7bc0ec2e741808dac0b4c199023ed6322033fd3f (
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
55
56
57
58
59
60
61
62
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gap-pkg
DESCRIPTION="GAP Interface to the Atlas of Group Representations"
# How to make the test data:
#
# gap> SetUserPreference("AtlasRep", "AtlasRepDataDirectory", "some-dir");
# gap> SetUserPreference("AtlasRep", "AtlasRepAccessRemoteFiles", true);
# gap> TestPackage("atlasrep"); TestPackage("orb"); ...
#
# Then tar up some-dir. This runs the test suite with downloading enabled,
# so you wind up downloading all of the data you need into some-dir (which
# has to be writable).
SRC_URI="https://www.math.rwth-aachen.de/~Thomas.Breuer/atlasrep/${P}.tar.gz
https://www.math.rwth-aachen.de/homes/Thomas.Breuer/atlasrep/atlasrepdata.tar.gz
https://dev.gentoo.org/~mjo/distfiles/${PN}-2.1.7-testdata.tar.xz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-gap/io
dev-gap/utils"
BDEPEND="test? (
dev-gap/tomlib
)"
gap-pkg_enable_tests
PATCHES=(
"${FILESDIR}/${PN}-2.1.7-no-remote-access.patch"
"${FILESDIR}/${PN}-2.1.7-non-writable-data-dir.patch"
)
GAP_PKG_EXTRA_INSTALL=(
atlasprm.json
atlasprm_SHA.json
bibl
dataext
datagens
datapkg
dataword
)
src_prepare() {
# Move the pre-downloaded data into the empty directories where the
# package expects them to be. The archive atlasrepdata.tar.gz
# expands to a directory called "atlasrep".
for s in ext gens word; do
mv "${WORKDIR}/atlasrep/data${s}/"* "data${s}"/ || die
done
rm data{gens,word}/dummy || die
default
}
|