public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "José María Alonso" <nimiux@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/clsql/
Date: Mon,  1 Apr 2013 11:42:59 +0000 (UTC)	[thread overview]
Message-ID: <1364816627.0a0e8bbe10212ebcce3c7ca0f8399a269c58b5df.nimiux@gentoo> (raw)

commit:     0a0e8bbe10212ebcce3c7ca0f8399a269c58b5df
Author:     Chema Alonso <nimiux <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  1 11:43:47 2013 +0000
Commit:     José María Alonso <nimiux <AT> gentoo <DOT> org>
CommitDate: Mon Apr  1 11:43:47 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/lisp.git;a=commit;h=0a0e8bbe

dev-lisp/clsql: bump to version 6.4.0

---
 dev-lisp/clsql/clsql-6.4.0.ebuild |  103 +++++++++++++++++++++++++++++++++++++
 1 files changed, 103 insertions(+), 0 deletions(-)

diff --git a/dev-lisp/clsql/clsql-6.4.0.ebuild b/dev-lisp/clsql/clsql-6.4.0.ebuild
new file mode 100644
index 0000000..397768d
--- /dev/null
+++ b/dev-lisp/clsql/clsql-6.4.0.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit common-lisp-3 flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="A multi-platform SQL interface for Common Lisp"
+HOMEPAGE="http://clsql.b9.com/
+		http://www.cliki.net/CLSQL"
+SRC_URI="http://files.b9.com/clsql/${P}.tar.gz"
+
+LICENSE="LLGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="doc examples mysql odbc oracle postgres sqlite sqlite3"
+
+RDEPEND="!dev-lisp/cl-sql
+	dev-lisp/md5
+	>=dev-lisp/uffi-2.0.0
+	mysql? ( virtual/mysql )
+	odbc? ( dev-db/unixODBC )
+	oracle? ( dev-db/oracle-instantclient-basic )
+	postgres? ( dev-db/postgresql-base )
+	sqlite? ( dev-db/sqlite:0 )
+	sqlite3? ( dev-db/sqlite:3 )"
+
+src_prepare() {
+	sed -i "s,/usr/lib,/usr/$(get_libdir),g" "${S}"/${PN}-{mysql,uffi}.asd
+	sed -i 's,"usr" "lib","usr" "'$(get_libdir)'",g' "${S}"/${PN}-{mysql,uffi}.asd
+}
+
+@cc() {
+	local cc=$(tc-getCC)
+	echo "${cc}" "${@}"
+	"${cc}" "${@}"
+}
+
+src_compile() {
+	strip-flags
+	@cc uffi/clsql_uffi.c \
+		${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -rdynamic \
+		-fPIC -DPIC -shared -Wl,-soname=clsql_uffi -o uffi/clsql_uffi.so \
+		|| die "Cannot build UFFI helper library"
+	if use mysql; then
+		@cc db-mysql/clsql_mysql.c \
+			${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $(mysql_config --cflags) -rdynamic \
+			-fPIC -DPIC -shared -Wl,-soname=clsql_mysql -o db-mysql/clsql_mysql.so \
+			|| die "Cannot build foreign glue to libmysqlclient"
+	fi
+}
+
+install_clsql_pkg() {
+	local pkgname="${1}"
+	local libname="${pkgname}/${PN}_${pkgname}.so"
+
+	cd "${S}" || die
+	common-lisp-install-sources db-${pkgname}
+	common-lisp-install-asdf ${PN}-${pkgname}
+	if [ -f db-${1}/${PN}_${1}.so ]; then
+		exeinto /usr/$(get_libdir)/${PN} ; doexe db-${pkgname}/${PN}_${pkgname}.so
+	fi
+}
+
+install_clsql_postgresql() {
+	install_clsql_pkg postgresql-socket
+	install_clsql_pkg postgresql-socket3
+	install_clsql_pkg postgresql
+}
+
+src_install() {
+	common-lisp-install-sources sql/*.lisp tests
+	common-lisp-install-asdf ${PN} ${PN}-tests
+
+	common-lisp-install-sources uffi/*.lisp
+	common-lisp-install-asdf ${PN}-{uffi,cffi}
+	exeinto /usr/$(get_libdir)/${PN} ; doexe uffi/${PN}_uffi.so
+
+	use postgres && install_clsql_postgresql
+	for dbtype in mysql odbc oracle sqlite sqlite3; do
+		use ${dbtype} && install_clsql_pkg ${dbtype}
+	done
+
+	# TODO: figure out the dependencies
+	install_clsql_pkg aodbc
+	install_clsql_pkg db2
+
+	dodoc BUGS CONTRIBUTORS ChangeLog INSTALL LATEST-TEST-RESULTS NEWS README TODO
+	if use doc ; then
+		dodoc doc/clsql.pdf
+		tar xfz doc/html.tar.gz -C "${T}" || die
+		dohtml "${T}"/html/*
+		docinto notes && dodoc notes/*
+	fi
+	use examples && docinto examples && dodoc -r examples/*
+
+	dodir /etc
+	cat > "${D}"/etc/clsql-init.lisp <<-EOF
+	(clsql:push-library-path #p"/usr/$(get_libdir)/")
+	(clsql:push-library-path #p"/usr/$(get_libdir)/clsql/")
+	EOF
+}


             reply	other threads:[~2013-04-01 11:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01 11:42 José María Alonso [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-01 14:56 [gentoo-commits] proj/lisp:master commit in: dev-lisp/clsql/ Ulrich Müller
2018-03-18 17:14 José María Alonso
2017-07-07 10:39 José María Alonso
2016-12-03 22:25 José María Alonso
2013-12-07 13:43 José María Alonso
2011-07-28 12:29 Stelian Ionescu
2011-06-22 21:39 Stelian Ionescu
2011-04-25 22:58 Stelian Ionescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1364816627.0a0e8bbe10212ebcce3c7ca0f8399a269c58b5df.nimiux@gentoo \
    --to=nimiux@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox