gnu: sbcl-clsql: Activate postgresql support.

* gnu/packages/lisp-xyz.scm (sbcl-clsql)[arguments]: Remove 'clsql-cffi.asd'
  from 'asd-files'. Add 'clsql-postgresql' to 'asd-systems'. Add 'fix-build'
  phase.
This commit is contained in:
Guillaume Le Vaillant 2020-09-13 11:17:51 +02:00
parent 3b39207477
commit 135bc7e31b
No known key found for this signature in database
GPG Key ID: 6BE8208ADF21FE3F

View File

@ -8743,8 +8743,7 @@ interface for MySQL, PostgreSQL and SQLite.")
("uffi" ,sbcl-uffi)
("zlib" ,zlib)))
(arguments
`(#:asd-files '("clsql-cffi.asd"
"clsql.asd"
`(#:asd-files '("clsql.asd"
"clsql-uffi.asd"
"clsql-sqlite3.asd"
"clsql-postgresql.asd"
@ -8752,8 +8751,7 @@ interface for MySQL, PostgreSQL and SQLite.")
"clsql-mysql.asd")
#:asd-systems '("clsql"
"clsql-sqlite3"
;; TODO: Find why postgresql-sql.lisp fails to compile.
;;"clsql-postgresql"
"clsql-postgresql"
"clsql-postgresql-socket3"
"clsql-mysql")
#:phases
@ -8762,6 +8760,15 @@ interface for MySQL, PostgreSQL and SQLite.")
(lambda _
(make-file-writable "doc/html.tar.gz")
#t))
(add-after 'unpack 'fix-build
(lambda _
(substitute* "clsql-uffi.asd"
(("\\(:version uffi \"2.0\"\\)")
"uffi"))
(substitute* "db-postgresql/postgresql-api.lisp"
(("\\(data :cstring\\)")
"(data :string)"))
#t))
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "db-sqlite3/sqlite3-loader.lisp"