Skip to content

Commit 71f5cc7

Browse files
committed
guile-dbi: new version 2.1.9
1 parent b00b862 commit 71f5cc7

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

Formula/guile-dbi.rb

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
class GuileDbi < Formula
22
desc "Guile scheme interface to SQL databases"
33
homepage "https://github.com/opencog/guile-dbi"
4-
url "https://github.com/opencog/guile-dbi/archive/refs/tags/guile-dbi-2.1.8.tar.gz"
5-
sha256 "c6a84a63b57ae23c259c203063f4226ac566161e0261f4e1d2f2f963ad06e4e7"
4+
url "https://github.com/opencog/guile-dbi.git", revision: "56e12dcab139c373dafccdd72fa2a140d82f3910"
5+
version "2.1.9"
6+
license "GPL-2.0-only"
67

78
bottle do
89
root_url "https://github.com/aconchillo/homebrew-guile/releases/download/guile-dbi-2.1.8"
@@ -11,9 +12,12 @@ class GuileDbi < Formula
1112

1213
depends_on "autoconf" => :build
1314
depends_on "automake" => :build
15+
depends_on "gettext" => :build
1416
depends_on "texinfo" => :build
1517
depends_on "guile"
1618

19+
patch :DATA
20+
1721
def install
1822
ENV["GUILE_AUTO_COMPILE"] = "0"
1923

@@ -48,3 +52,33 @@ def caveats
4852
system "guile", dbi
4953
end
5054
end
55+
56+
__END__
57+
diff --git a/guile-dbi/configure.ac b/guile-dbi/configure.ac
58+
index 0b7d97f..71994e4 100644
59+
--- a/guile-dbi/configure.ac
60+
+++ b/guile-dbi/configure.ac
61+
@@ -56,10 +56,6 @@ PKG_CHECK_MODULES([GUILE], [guile-3.0])
62+
GUILE_PKG([3.0])
63+
GUILE_FLAGS
64+
GUILE_SITE_DIR
65+
-#--
66+
-CFLAGS="${CFLAGS} ${LTDLINCL} `$GUILE_CONFIG compile`"
67+
-LIBS="$LIBLTDL `$GUILE_CONFIG link`"
68+
-GUILE_SITE=`$GUILE_CONFIG info sitedir`
69+
70+
# Check for makeinfo; avoid ugliness if not installed.
71+
AC_CHECK_PROG(have_makeinfo,makeinfo,yes,no)
72+
diff --git a/guile-dbi/src/dbi/Makefile.am b/guile-dbi/src/dbi/Makefile.am
73+
index fe05315..342f567 100644
74+
--- a/guile-dbi/src/dbi/Makefile.am
75+
+++ b/guile-dbi/src/dbi/Makefile.am
76+
@@ -24,7 +24,7 @@
77+
78+
AUTOMAKE_OPTIONS = gnu
79+
80+
-guiledbidatadir = $(GUILE_SITE)/dbi
81+
+guiledbidatadir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/dbi
82+
guiledbidata_DATA = dbi.scm
83+
84+
EXTRA_DIST = $(guiledbidata_DATA)

0 commit comments

Comments
 (0)