Skip to content

Commit

Permalink
dev-scheme/guile-dbd-postgresql: new package; add 2.1.8
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Barć <[email protected]>
  • Loading branch information
xgqt committed Oct 30, 2022
1 parent c902354 commit ad9c59f
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-scheme/guile-dbd-postgresql/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST guile-dbi-2.1.8.tar.gz 85842 BLAKE2B 6be2f559bd0b194153d3b6659a6f794227c7b0d5c4f9f9f927398fa5af59913a4a56ef12b6e69756c66275b5dbad6861eea7a92adf4e247ca14ad017aa1daa30 SHA512 f3bb94feebe472fc23e891634c5281bc7e7597574ab7acb4b9cdfa59ee6510723550b2cfb1df3f0d9adc919ce0000478e78a6c2f227ca5dc8b50f2804ec0e37a
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions dev-scheme/guile-dbd-postgresql/guile-dbd-postgresql-2.1.8.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
13 changes: 13 additions & 0 deletions dev-scheme/guile-dbd-postgresql/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</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>

0 comments on commit ad9c59f

Please sign in to comment.