summaryrefslogtreecommitdiff
path: root/dev-scheme/guile-dbd-postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'dev-scheme/guile-dbd-postgresql')
-rw-r--r--dev-scheme/guile-dbd-postgresql/Manifest4
-rw-r--r--dev-scheme/guile-dbd-postgresql/files/guile-dbd-postgresql-2.1.8-configure.patch11
-rw-r--r--dev-scheme/guile-dbd-postgresql/guile-dbd-postgresql-2.1.8.ebuild44
-rw-r--r--dev-scheme/guile-dbd-postgresql/metadata.xml13
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-scheme/guile-dbd-postgresql/Manifest b/dev-scheme/guile-dbd-postgresql/Manifest
new file mode 100644
index 000000000000..14450ccbc5f4
--- /dev/null
+++ b/dev-scheme/guile-dbd-postgresql/Manifest
@@ -0,0 +1,4 @@
+AUX guile-dbd-postgresql-2.1.8-configure.patch 279 BLAKE2B bf98d244eb1832b876c99ceb337984245f7988d52c0b781087f7b5fed3f47beda0e23d5ae5cb9373ee1d642d36439d65d0c61c837a45ddac7599bcb7d4ac7e90 SHA512 592b0ee3a0ae0fda40241e1069ca35f06babf7de9c587319031fcc670bc625387d4555c9e21e76686995173507d16b1abac6ca861ae95872a02c3e1755012623
+DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a
+EBUILD guile-dbd-postgresql-2.1.8.ebuild 928 BLAKE2B d573e82588dcb3bc1c19422794da4dc4488ec54b2190cd26781b0b527740f18e7b06ddc55a433577033305cba04aed7c55c9f05df9349b012839591a2877b218 SHA512 7594f06752b5ae3b565e5544fe19c060fda6f9320f924b96cd2b2552c2b9da59fc48ef2411ac66028f4220207e780448a315a8282048d0ea03f50bc3ec67b320
+MISC metadata.xml 417 BLAKE2B 64db303c5693c6a03a3cf7734b6a237b63b86a0728ef71216f3b7c7adce1a0d251175063b8fccaa3e453dca8f20830d36ef4891fe4d1e07fcd579324b2a6537c SHA512 8217330ea3609ded0d8a44cb998809701dda64caff0df7d2ba6b9ae82fe9bc823f9a82cd290289e96d3656fd66ce0fb93d57d47898b67ff281c2a1ed9c2cdc9b
diff --git a/dev-scheme/guile-dbd-postgresql/files/guile-dbd-postgresql-2.1.8-configure.patch b/dev-scheme/guile-dbd-postgresql/files/guile-dbd-postgresql-2.1.8-configure.patch
new file mode 100644
index 000000000000..5aef8c60b68d
--- /dev/null
+++ b/dev-scheme/guile-dbd-postgresql/files/guile-dbd-postgresql-2.1.8-configure.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -58,7 +58,7 @@ AC_HEADER_STDC
+ AC_CHECK_LIB(pq,PQconnectStart,,
+ AC_MSG_ERROR([*** Can't find libpq]))
+
+-CFLAGS=`guile-config compile`
++CFLAGS="${CFLAGS} `guile-config compile`"
+ LIBS=`guile-config link`
+
+ . $srcdir/DBD-VERSION
diff --git a/dev-scheme/guile-dbd-postgresql/guile-dbd-postgresql-2.1.8.ebuild b/dev-scheme/guile-dbd-postgresql/guile-dbd-postgresql-2.1.8.ebuild
new file mode 100644
index 000000000000..d9898ceeaccf
--- /dev/null
+++ b/dev-scheme/guile-dbd-postgresql/guile-dbd-postgresql-2.1.8.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Guile DBI driver for PostgreSQL"
+HOMEPAGE="https://github.com/opencog/guile-dbi/"
+SRC_URI="https://github.com/opencog/guile-dbi/archive/guile-dbi-${PV}.tar.gz"
+S="${WORKDIR}"/guile-dbi-guile-dbi-${PV}/${PN}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip"
+
+RDEPEND="
+ dev-db/postgresql:*
+ >=dev-scheme/guile-2.0.0:=
+ dev-scheme/guile-dbi
+"
+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-dbd-postgresql/metadata.xml b/dev-scheme/guile-dbd-postgresql/metadata.xml
new file mode 100644
index 000000000000..8e3419f7b601
--- /dev/null
+++ b/dev-scheme/guile-dbd-postgresql/metadata.xml
@@ -0,0 +1,13 @@
+<?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>
+ <upstream>
+ <bugs-to>https://github.com/opencog/guile-dbi/issues/</bugs-to>
+ <remote-id type="github">opencog/guile-dbi</remote-id>
+ </upstream>
+</pkgmetadata>