public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile-dbi/files/, dev-scheme/guile-dbi/
@ 2022-10-30 23:45 Maciej Barć
  0 siblings, 0 replies; only message in thread
From: Maciej Barć @ 2022-10-30 23:45 UTC (permalink / raw
  To: gentoo-commits

commit:     3daa4924bd856d900cdfce8a7881b585ff3874b6
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 30 23:16:49 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Oct 30 23:45:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3daa4924

dev-scheme/guile-dbi: new package; add 2.1.8

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-scheme/guile-dbi/Manifest                      |  1 +
 .../files/guile-dbi-2.1.8-configure.patch          | 11 ++++++
 dev-scheme/guile-dbi/guile-dbi-2.1.8.ebuild        | 40 ++++++++++++++++++++++
 dev-scheme/guile-dbi/metadata.xml                  | 19 ++++++++++
 4 files changed, 71 insertions(+)

diff --git a/dev-scheme/guile-dbi/Manifest b/dev-scheme/guile-dbi/Manifest
new file mode 100644
index 000000000000..c65f56f71ecb
--- /dev/null
+++ b/dev-scheme/guile-dbi/Manifest
@@ -0,0 +1 @@
+DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a

diff --git a/dev-scheme/guile-dbi/files/guile-dbi-2.1.8-configure.patch b/dev-scheme/guile-dbi/files/guile-dbi-2.1.8-configure.patch
new file mode 100644
index 000000000000..1ab6d4f3c9d4
--- /dev/null
+++ b/dev-scheme/guile-dbi/files/guile-dbi-2.1.8-configure.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -62,7 +62,7 @@ LTDL_INIT
+ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [AC_SUBST([AM_DEFAULT_VERBOSITY],1)])
+ 
+ 
+-CFLAGS="$LTDLINCL `$GUILECONFIG compile`"
++CFLAGS="$CFLAGS $LTDLINCL `$GUILECONFIG compile`"
+ LIBS="$LIBLTDL `$GUILECONFIG link`"
+ GUILE_SITE=`$GUILECONFIG info sitedir`
+ 

diff --git a/dev-scheme/guile-dbi/guile-dbi-2.1.8.ebuild b/dev-scheme/guile-dbi/guile-dbi-2.1.8.ebuild
new file mode 100644
index 000000000000..cabd6907c316
--- /dev/null
+++ b/dev-scheme/guile-dbi/guile-dbi-2.1.8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="An SQL database interface for Guile"
+HOMEPAGE="https://github.com/opencog/guile-dbi/"
+SRC_URI="https://github.com/opencog/${PN}/archive/${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${P}/${PN}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip"
+
+RDEPEND=">=dev-scheme/guile-2.0.0:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-configure.patch )
+
+# guile generates ELF files without use of C or machine code
+# It's a portage's false positive. bug #677600
+QA_PREBUILT='*[.]go'
+
+src_prepare() {
+	default
+
+	# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112
+	find "${S}" -name "*.scm" -exec touch {} + || die
+
+	eautoreconf
+}
+
+src_install() {
+	default
+
+	find "${ED}" -type f -name "*.la" -delete || die
+}

diff --git a/dev-scheme/guile-dbi/metadata.xml b/dev-scheme/guile-dbi/metadata.xml
new file mode 100644
index 000000000000..687430a3781d
--- /dev/null
+++ b/dev-scheme/guile-dbi/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>scheme@gentoo.org</email>
+    <name>Gentoo Scheme Project</name>
+  </maintainer>
+  <longdescription>
+    guile-dbi is a library for Guile that provides a convenient interface to
+    SQL databases. Database programming with guile-dbi is generic in that the
+    same programming interface is presented regardless of which database system
+    is used.
+  </longdescription>
+  <upstream>
+    <bugs-to>https://github.com/opencog/guile-dbi/issues/</bugs-to>
+    <remote-id type="github">opencog/guile-dbi</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-30 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-30 23:45 [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile-dbi/files/, dev-scheme/guile-dbi/ Maciej Barć

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