From d80818506c96d17b85ab5ea8b2edd4f58f0374ed Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Mon, 17 Oct 2016 23:33:24 -0700 Subject: app-shells/ctypes-sh: New package, foreign function interface for bash Package-Manager: portage-2.3.2 --- app-shells/ctypes-sh/ctypes-sh-1.1.ebuild | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 app-shells/ctypes-sh/ctypes-sh-1.1.ebuild (limited to 'app-shells/ctypes-sh/ctypes-sh-1.1.ebuild') diff --git a/app-shells/ctypes-sh/ctypes-sh-1.1.ebuild b/app-shells/ctypes-sh/ctypes-sh-1.1.ebuild new file mode 100644 index 000000000000..29a2fdc02c5f --- /dev/null +++ b/app-shells/ctypes-sh/ctypes-sh-1.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools toolchain-funcs + +DESCRIPTION="Foreign function interface for bash" +HOMEPAGE="http://ctypes.sh/" +SRC_URI="https://github.com/taviso/${PN/-/.}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/libffi + app-shells/bash[plugins]" +DEPEND="${RDEPEND} + virtual/libelf + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-makefile-fix.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_test() { + pushd test + PATH="${S}:${PATH}" \ + LD_LIBRARY_PATH="${S}/src/.libs" \ + make CC="$(tc-getCC)" || die "make check failed" + popd +} -- cgit v1.2.3-65-gdbad