blob: 308b4a284e06cb0083bbee0c6b917307cec9ed84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-sql/cl-sql-2.10.14.ebuild,v 1.2 2004/06/24 23:55:14 agriffis Exp $
inherit common-lisp eutils
DESCRIPTION="A multi-platform SQL interface for Common Lisp"
HOMEPAGE="http://clsql.b9.com/
http://packages.debian.org/unstable/devel/cl-sql.html
http://www.cliki.net/CLSQL"
SRC_URI="http://files.b9.com/clsql/clsql-${PV}.tar.gz"
LICENSE="LLGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="postgres mysql sqlite odbc"
DEPEND="dev-lisp/common-lisp-controller
virtual/commonlisp
dev-lisp/cl-md5
dev-lisp/cl-uffi
postgres? ( dev-db/postgresql )
mysql? ( dev-db/mysql )
sqlite? ( dev-db/sqlite )
odbc? ( dev-db/unixODBC )"
S=${WORKDIR}/clsql-${PV}
# CLPACKAGE='clsql-base clsql clsql-uffi'
# use postgresql && CLPACKAGE="${CLPACKAGE} clsql-postgresql clsql-postgresql-socket"
# use msql && CLPACKAGE="${CLPACKAGE} clsql-mysql"
# use sqlite && CLPACKAGE="${CLPACKAGE} clsql-sqlite"
# Have to do this in a static manner, it seems???
CLPACKAGE='clsql-base clsql clsql-uffi clsql-postgresql clsql-postgresql-socket clsql-mysql clsql-sqlite clsql-odbc clsql-classic'
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${PV}-no-shared-object-asdf-gentoo.patch
}
src_compile() {
make -C uffi
use mysql && make -C db-mysql
use postgres && make -C db-postgresql
}
src_install() {
dodir $CLSYSTEMROOT
dodir $CLSOURCEROOT
# cl-sql-base
insinto $CLSOURCEROOT/clsql-base/base; doins base/*.lisp
insinto $CLSOURCEROOT/clsql-base; doins clsql-base.asd
dosym $CLSOURCEROOT/clsql-base/clsql-base.asd $CLSYSTEMROOT/clsql-base.asd
# cl-sql
insinto $CLSOURCEROOT/clsql/sql; doins sql/*.lisp
insinto $CLSOURCEROOT/clsql; doins clsql.asd
dosym $CLSOURCEROOT/clsql/clsql.asd $CLSYSTEMROOT/clsql.asd
# cl-sql-classic
insinto $CLSOURCEROOT/clsql-classic/classic; doins classic/*.lisp
insinto $CLSOURCEROOT/clsql-classic; doins clsql-classic.asd
dosym $CLSOURCEROOT/clsql-classic/clsql-classic.asd $CLSYSTEMROOT/clsql-classic.asd
# cl-sql-uffi
exeinto /usr/lib/clsql
doexe uffi/uffi.so
insinto $CLSOURCEROOT/clsql-uffi/uffi; doins uffi/*.lisp uffi/uffi.c
insinto $CLSOURCEROOT/clsql-uffi; doins clsql-uffi.asd
dosym $CLSOURCEROOT/clsql-uffi/clsql-uffi.asd $CLSYSTEMROOT/clsql-uffi.asd
if use postgres; then
# cl-sql-postgresql-socket
insinto $CLSOURCEROOT/clsql-postgresql-socket/db-postgresql-socket
doins db-postgresql-socket/*.lisp
insinto $CLSOURCEROOT/clsql-postgresql-socket
doins clsql-postgresql-socket.asd
dosym $CLSOURCEROOT/clsql-postgresql-socket/clsql-postgresql-socket.asd \
$CLSYSTEMROOT/clsql-postgresql-socket.asd
# cl-sql-postgresql (UFFI interface)
insinto $CLSOURCEROOT/clsql-postgresql/db-postgresql
doins db-postgresql/*.lisp
insinto $CLSOURCEROOT/clsql-postgresql
doins clsql-postgresql.asd
dosym $CLSOURCEROOT/clsql-postgresql/clsql-postgresql.asd \
$CLSYSTEMROOT/clsql-postgresql.asd
fi
if use mysql; then
# cl-sql-mysql
insinto $CLSOURCEROOT/clsql-mysql/db-mysql
doins db-mysql/*.lisp db-mysql/mysql.c
insinto $CLSOURCEROOT/clsql-mysql
doins clsql-mysql.asd
dosym $CLSOURCEROOT/clsql-mysql/clsql-mysql.asd $CLSYSTEMROOT/clsql-mysql.asd
exeinto /usr/lib/clsql
doexe db-mysql/mysql.so
fi
if use sqlite; then
insinto $CLSOURCEROOT/clsql-sqlite/db-sqlite
doins db-sqlite/*.lisp
insinto $CLSOURCEROOT/clsql-sqlite
doins clsql-sqlite.asd
dosym $CLSOURCEROOT/clsql-sqlite/clsql-sqlite.asd $CLSYSTEMROOT/clsql-sqlite.asd
fi
if use odbc; then
insinto $CLSOURCEROOT/clsql-odbc/db-odbc
doins db-odbc/*.lisp
insinto $CLSOURCEROOT/clsql-odbc
doins clsql-odbc.asd
dosym $CLSOURCEROOT/clsql-odbc/clsql-odbc.asd $CLSYSTEMROOT/clsql-odbc.asd
fi
dodoc CONTRIBUTORS COPYING* ChangeLog INSTALL NEWS README TODO
tar xfz doc/html.tar.gz -C ${D}/usr/share/doc/${PF}/
# do-debian-credits
}
|