public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-shells/ctypes-sh/, app-shells/ctypes-sh/files/
@ 2016-10-18  6:34 Patrick McLean
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McLean @ 2016-10-18  6:34 UTC (permalink / raw
  To: gentoo-commits

commit:     d80818506c96d17b85ab5ea8b2edd4f58f0374ed
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 18 06:33:24 2016 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Oct 18 06:33:24 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8081850

app-shells/ctypes-sh: New package, foreign function interface for bash

Package-Manager: portage-2.3.2

 app-shells/ctypes-sh/Manifest                      |  1 +
 app-shells/ctypes-sh/ctypes-sh-1.1.ebuild          | 38 ++++++++++++++++++++++
 .../files/ctypes-sh-1.1-makefile-fix.patch         | 18 ++++++++++
 app-shells/ctypes-sh/metadata.xml                  | 13 ++++++++
 4 files changed, 70 insertions(+)

diff --git a/app-shells/ctypes-sh/Manifest b/app-shells/ctypes-sh/Manifest
new file mode 100644
index 00000000..e33cec0
--- /dev/null
+++ b/app-shells/ctypes-sh/Manifest
@@ -0,0 +1 @@
+DIST ctypes-sh-1.1.tar.gz 437637 SHA256 f7c8276b556101c51838296560d152fdcd96b860254a38d216b92986f31f8297 SHA512 0e136f5b9fc342875d02b1087daed60eed46f411765538f185d1da61430205113db72994ecdb125aded3eae114b3f487e7af398c1326334efdd197ee7de18a61 WHIRLPOOL 7625df5a8d7e5284ee6012e59dc0ff1a2e11ccbec37edb5203d31529715916aefa609d0cd3c7964dfc225d0f476e37213f5936c17c74c2b76fb5ad0a9e02874c

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 00000000..29a2fdc
--- /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
+}

diff --git a/app-shells/ctypes-sh/files/ctypes-sh-1.1-makefile-fix.patch b/app-shells/ctypes-sh/files/ctypes-sh-1.1-makefile-fix.patch
new file mode 100644
index 00000000..9a2965a
--- /dev/null
+++ b/app-shells/ctypes-sh/files/ctypes-sh-1.1-makefile-fix.patch
@@ -0,0 +1,18 @@
+commit 5e305160cc219fa63658148e3d258cb62dd043a3
+Author: rtlanceroad <rtlanceroad@gmail.com>
+Date:   Wed Jul 27 14:49:21 2016 +0800
+
+    fix Makefile.am in src dir
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 8a9b682..71347bb 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -11,6 +11,6 @@ ctypes_la_LIBADD     += libstruct.la
+ noinst_LTLIBRARIES   += libstruct.la
+ noinst_HEADERS       += struct/dutil.h struct/dwarves.h struct/elf_symtab.h struct/gobuffer.h struct/hash.h struct/list.h struct/rbtree.h struct/strings.h
+ libstruct_la_SOURCES  = struct/dutil.c struct/dwarves.c struct/gobuffer.c struct/struct.c struct/strings.c struct/dwarf_loader.c struct/dwarves_fprintf.c struct/elf_symtab.c struct/rbtree.c
+-libstruct_la_CFLAGS   = -std=gnu99 -D_GNU_SOURCE
++libstruct_la_CFLAGS   = -std=gnu99 -D_GNU_SOURCE $(FFI_CFLAGS)
+ libstruct_la_CPPFLAGS = -I../include -I../lib
+ endif

diff --git a/app-shells/ctypes-sh/metadata.xml b/app-shells/ctypes-sh/metadata.xml
new file mode 100644
index 00000000..6083ddc
--- /dev/null
+++ b/app-shells/ctypes-sh/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>chutzpah@gentoo.org</email>
+		<name>Patrick McLean</name>
+	</maintainer>
+	<longdescription lang="en">
+ctypes.sh is a bash plugin that provides a foreign function interface directly
+in your shell. In other words, it allows you to call routines in shared
+libraries from within bash.
+	</longdescription>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-shells/ctypes-sh/, app-shells/ctypes-sh/files/
@ 2020-07-09  7:17 Patrick McLean
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McLean @ 2020-07-09  7:17 UTC (permalink / raw
  To: gentoo-commits

commit:     a715cb755028ae898d05820715ca502acaf7241f
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  9 07:16:57 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Jul  9 07:16:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a715cb75

app-shells/ctypes-sh-1.2: Version bump

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 app-shells/ctypes-sh/Manifest                      |  2 +-
 .../{ctypes-sh-1.1.ebuild => ctypes-sh-1.2.ebuild} | 27 +++++++++++-----------
 .../files/ctypes-sh-1.1-makefile-fix.patch         | 18 ---------------
 3 files changed, 14 insertions(+), 33 deletions(-)

diff --git a/app-shells/ctypes-sh/Manifest b/app-shells/ctypes-sh/Manifest
index 4245ae130ff..9e75c1e193f 100644
--- a/app-shells/ctypes-sh/Manifest
+++ b/app-shells/ctypes-sh/Manifest
@@ -1 +1 @@
-DIST ctypes-sh-1.1.tar.gz 437637 BLAKE2B d4279812d613a771ed405499dc623fce5faa00c22e75067857cea0a31e4a36a1531f7b27a1edff89075961bf5e8183bf0787a703cb36c1a8cbd7c03d8a18710f SHA512 0e136f5b9fc342875d02b1087daed60eed46f411765538f185d1da61430205113db72994ecdb125aded3eae114b3f487e7af398c1326334efdd197ee7de18a61
+DIST ctypes-sh-1.2.tar.gz 475531 BLAKE2B 6fe00415244227629b952a0c18f9c95659a3fb22b9f17e109554f11084d27bf4c23eca5bfc49679b63367fa9fe74a20f206ac79955ed6588418033f37b776729 SHA512 23e9c30acc8ed5b4fe93fe1427c406e7c7b18067bbfc3f948126683910efc645cc69e426d771beb715148b54dffce75351b7773d8b54ac13f74d9787db8529f6

diff --git a/app-shells/ctypes-sh/ctypes-sh-1.1.ebuild b/app-shells/ctypes-sh/ctypes-sh-1.2.ebuild
similarity index 72%
rename from app-shells/ctypes-sh/ctypes-sh-1.1.ebuild
rename to app-shells/ctypes-sh/ctypes-sh-1.2.ebuild
index e737d10f3e8..a64a6db8811 100644
--- a/app-shells/ctypes-sh/ctypes-sh-1.1.ebuild
+++ b/app-shells/ctypes-sh/ctypes-sh-1.2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 inherit autotools toolchain-funcs
 
@@ -13,17 +13,16 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-RDEPEND="virtual/libffi
-	virtual/libelf
-	app-arch/xz-utils
+RDEPEND="
 	app-arch/bzip2
-	app-shells/bash[plugins]"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig"
-
-PATCHES=(
-	"${FILESDIR}/${P}-makefile-fix.patch"
-)
+	app-arch/xz-utils
+	app-shells/bash[plugins(-)]
+	dev-libs/libffi
+	virtual/libelf
+"
+BDEPEND="${RDEPEND}
+	virtual/pkgconfig
+"
 
 src_prepare() {
 	default
@@ -31,9 +30,9 @@ src_prepare() {
 }
 
 src_test() {
-	pushd test
+	pushd test >/dev/null || die
 	PATH="${S}:${PATH}" \
 		LD_LIBRARY_PATH="${S}/src/.libs" \
 		make CC="$(tc-getCC)" || die "make check failed"
-	popd
+	popd > /dev/null || die
 }

diff --git a/app-shells/ctypes-sh/files/ctypes-sh-1.1-makefile-fix.patch b/app-shells/ctypes-sh/files/ctypes-sh-1.1-makefile-fix.patch
deleted file mode 100644
index 9a2965a62bc..00000000000
--- a/app-shells/ctypes-sh/files/ctypes-sh-1.1-makefile-fix.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-commit 5e305160cc219fa63658148e3d258cb62dd043a3
-Author: rtlanceroad <rtlanceroad@gmail.com>
-Date:   Wed Jul 27 14:49:21 2016 +0800
-
-    fix Makefile.am in src dir
-
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 8a9b682..71347bb 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -11,6 +11,6 @@ ctypes_la_LIBADD     += libstruct.la
- noinst_LTLIBRARIES   += libstruct.la
- noinst_HEADERS       += struct/dutil.h struct/dwarves.h struct/elf_symtab.h struct/gobuffer.h struct/hash.h struct/list.h struct/rbtree.h struct/strings.h
- libstruct_la_SOURCES  = struct/dutil.c struct/dwarves.c struct/gobuffer.c struct/struct.c struct/strings.c struct/dwarf_loader.c struct/dwarves_fprintf.c struct/elf_symtab.c struct/rbtree.c
--libstruct_la_CFLAGS   = -std=gnu99 -D_GNU_SOURCE
-+libstruct_la_CFLAGS   = -std=gnu99 -D_GNU_SOURCE $(FFI_CFLAGS)
- libstruct_la_CPPFLAGS = -I../include -I../lib
- endif


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-09  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-09  7:17 [gentoo-commits] repo/gentoo:master commit in: app-shells/ctypes-sh/, app-shells/ctypes-sh/files/ Patrick McLean
  -- strict thread matches above, loose matches on Subject: below --
2016-10-18  6:34 Patrick McLean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox