commit: 82695cbee17ea798d1bdea300dbdf19fc2c764ef Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Mon Dec 22 12:54:40 2025 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Mon Dec 22 12:55:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82695cbe
app-shells/ctypes-sh: add 1.2_p20240626 (and bump to EAPI 8) Closes: https://bugs.gentoo.org/841863 Closes: https://bugs.gentoo.org/920522 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> app-shells/ctypes-sh/Manifest | 2 + .../ctypes-sh/ctypes-sh-1.2_p20240626.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/app-shells/ctypes-sh/Manifest b/app-shells/ctypes-sh/Manifest index 9e75c1e193fb..e9940bf04871 100644 --- a/app-shells/ctypes-sh/Manifest +++ b/app-shells/ctypes-sh/Manifest @@ -1 +1,3 @@ +DIST ctypes-sh-1.2-fix-incompatible-pointer-types.patch 1422 BLAKE2B 657688f451e9667e5a9b9b1781917a8be5aa16ddd00a280e6ab553aa0e374e081c63bc94986b2a1ab3194b1a48589cec16bdb5618f1440904a5cb2d63ddd0629 SHA512 6eda4d14370c43333f95c2ede58fa74850bf8190cffa51eaf49d736f5bd9eafca228da7f7c520dd14ca6bb42ea586d17f74a2f54eee975ee6dbe2428289e1163 DIST ctypes-sh-1.2.tar.gz 475531 BLAKE2B 6fe00415244227629b952a0c18f9c95659a3fb22b9f17e109554f11084d27bf4c23eca5bfc49679b63367fa9fe74a20f206ac79955ed6588418033f37b776729 SHA512 23e9c30acc8ed5b4fe93fe1427c406e7c7b18067bbfc3f948126683910efc645cc69e426d771beb715148b54dffce75351b7773d8b54ac13f74d9787db8529f6 +DIST ctypes-sh-1.2_p20240626.tar.gz 123057 BLAKE2B 1b06f6dffdbda1ce37ad1e00e47546515fb103ebf78478aeb5fd4f90daa9e5bf1b8db4a90ab7172448ab41e89c14b928654c6465cd8106eaf470265e4a1863d8 SHA512 df7478b753fffc92c96dce12de4ff0e0bc2e06ac373d668ee7ae5bfe52de9209ec1515a1cffccb63fd138c67b3fed01bc878d90821e8d97d34bce810fd04db55 diff --git a/app-shells/ctypes-sh/ctypes-sh-1.2_p20240626.ebuild b/app-shells/ctypes-sh/ctypes-sh-1.2_p20240626.ebuild new file mode 100644 index 000000000000..98746d3dad1e --- /dev/null +++ b/app-shells/ctypes-sh/ctypes-sh-1.2_p20240626.ebuild @@ -0,0 +1,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)" +}
