blob: 98746d3dad1e8cdab1f16386f4766f410386ef4c (
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-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools toolchain-funcs
DESCRIPTION="Foreign function interface for bash"
HOMEPAGE="https://github.com/taviso/ctypes.sh"
MY_COMMIT_ID="62ec33a6688a29eefdc141f21784193677ba76dc"
SRC_URI="
https://github.com/taviso/${PN/-/.}/archive/${MY_COMMIT_ID}.tar.gz
-> ${P}.tar.gz
https://github.com/taviso/ctypes.sh/commit/35ae591664ca3deb624fae9bbbd398b5927aba1a.patch
-> ${PN}-1.2-fix-incompatible-pointer-types.patch
"
S="${WORKDIR}/${PN/-/.}-${MY_COMMIT_ID}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
app-shells/bash:=[plugins(-)]
dev-libs/libffi:=
virtual/libelf:=
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
# https://github.com/taviso/ctypes.sh/pull/64/
"${DISTDIR}"/${PN}-1.2-fix-incompatible-pointer-types.patch
)
src_prepare() {
default
eautoreconf
}
src_install() {
default
find "${ED}" -type f -name '*.la' -delete || die
}
src_test() {
cd test || die
# Tests require non-striped libs
local -x BASH_LOADABLES_PATH="${S}/src/.libs"
emake CC="$(tc-getCC)"
}
|