summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2024-08-26 21:43:01 +0300
committerArsen Arsenović <arsen@gentoo.org>2024-09-18 15:06:33 +0200
commitde45bcb51e5a7f4263e6ddb45ffc2616b6a52220 (patch)
treee89c109ceca64abb4108d2d03d1e2ba2260d6170 /dev-scheme
parentdev-scheme/guile-config: switch to new guile mechanism (diff)
downloadgentoo-de45bcb51e5a7f4263e6ddb45ffc2616b6a52220.tar.gz
gentoo-de45bcb51e5a7f4263e6ddb45ffc2616b6a52220.tar.bz2
gentoo-de45bcb51e5a7f4263e6ddb45ffc2616b6a52220.zip
dev-scheme/guile-dbi: add 2.1.9 + switch to new guile mechanism
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/guile-dbi/Manifest1
-rw-r--r--dev-scheme/guile-dbi/files/guile-dbi-2.1.9-find-correct-site-dir.patch32
-rw-r--r--dev-scheme/guile-dbi/guile-dbi-2.1.9.ebuild40
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-scheme/guile-dbi/Manifest b/dev-scheme/guile-dbi/Manifest
index c65f56f71ecb..3a9066697cb9 100644
--- a/dev-scheme/guile-dbi/Manifest
+++ b/dev-scheme/guile-dbi/Manifest
@@ -1 +1,2 @@
DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a
+DIST guile-dbi-2.1.9.tar.gz 90514 BLAKE2B f4adeb33636972c33f5bdb40c906713b35bec4b1d3afc9fbcd55d74d1d5a957b524bbefeb04e9e5ff1cd17e6a40e218d84220f8eaeeaee09bf67604fa1e87e18 SHA512 2f6ec4c792b487b2552eda06b3ee3e470ae0e603e30abafacfb597281a44c53838d7b16d447cf1ee35f9b994c5b0ed1bbf3497eb1e64e783017898e30d82d427
diff --git a/dev-scheme/guile-dbi/files/guile-dbi-2.1.9-find-correct-site-dir.patch b/dev-scheme/guile-dbi/files/guile-dbi-2.1.9-find-correct-site-dir.patch
new file mode 100644
index 000000000000..c188465575b3
--- /dev/null
+++ b/dev-scheme/guile-dbi/files/guile-dbi-2.1.9-find-correct-site-dir.patch
@@ -0,0 +1,32 @@
+https://github.com/opencog/guile-dbi/commit/56e12dcab139c373dafccdd72fa2a140d82f3910
+https://github.com/opencog/guile-dbi/issues/6
+https://github.com/opencog/guile-dbi/issues/7
+
+From 56e12dcab139c373dafccdd72fa2a140d82f3910 Mon Sep 17 00:00:00 2001
+From: Linas Vepstas <linas@linas.org>
+Date: Mon, 17 Jul 2023 19:42:45 +0300
+Subject: [PATCH] Bug-fix for issues #6 and #7
+
+Seems to work for me...
+--- a/configure.ac
++++ b/configure.ac
+@@ -53,13 +53,13 @@ LTDL_INIT
+
+ # Checks for libraries.
+ PKG_CHECK_MODULES([GUILE], [guile-3.0])
+-#GUILE_PKG([3.0])
+-#GUILE_FLAGS
+-#GUILE_SITE_DIR
++GUILE_PKG([3.0])
++GUILE_FLAGS
++GUILE_SITE_DIR
+ #--
+-#CFLAGS="${CFLAGS} ${LTDLINCL} `$GUILECONFIG compile`"
+-#LIBS="$LIBLTDL `$GUILECONFIG link`"
+-#GUILE_SITE=`$GUILECONFIG info sitedir`
++CFLAGS="${CFLAGS} ${LTDLINCL} `$GUILE_CONFIG compile`"
++LIBS="$LIBLTDL `$GUILE_CONFIG link`"
++GUILE_SITE=`$GUILE_CONFIG info sitedir`
+
+ # Check for makeinfo; avoid ugliness if not installed.
+ AC_CHECK_PROG(have_makeinfo,makeinfo,yes,no)
diff --git a/dev-scheme/guile-dbi/guile-dbi-2.1.9.ebuild b/dev-scheme/guile-dbi/guile-dbi-2.1.9.ebuild
new file mode 100644
index 000000000000..0356148ea666
--- /dev/null
+++ b/dev-scheme/guile-dbi/guile-dbi-2.1.9.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+GUILE_COMPAT=( 3-0 )
+inherit autotools guile
+
+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"
+
+REQUIRED_USE="${GUILE_REQUIRED_USE}"
+
+RDEPEND="
+ ${GUILE_DEPS}
+ dev-libs/libltdl
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/guile-dbi-2.1.9-find-correct-site-dir.patch
+)
+
+src_prepare() {
+ guile_src_prepare
+
+ eautoreconf
+}
+
+src_install() {
+ guile_src_install
+
+ find "${ED}" -type f -name "*.la" -delete || die
+}