summaryrefslogtreecommitdiff
path: root/dev-gap/io/io-4.8.2.ebuild
blob: 06e9f54c7b67776009d5c50b747bb2f00bbaf10d (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools gap-pkg

DESCRIPTION="Bindings for low level C library I/O routines"
SLOT="0"
SRC_URI="https://github.com/gap-packages/${PN}/releases/download/v${PV}/${P}.tar.bz2"

LICENSE="GPL-3+"
KEYWORDS="~amd64"
IUSE="examples"

DEPEND="sci-mathematics/gap:="
RDEPEND="${DEPEND}"

gap-pkg_enable_tests

src_prepare() {
	default

	# These tests require network access
	rm tst/http.g || die
	sed -e 's/"http.g", //' -i tst/testgap.tst || die

	# Support pathological CFLAGS
	eautoreconf
}

src_install() {
	# There's no install target for the autotools build system
	gap-pkg_src_install

	if use examples; then
		docinto examples
		dodoc example/*
	fi
}