summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2003-10-17 19:01:02 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2003-10-17 19:01:02 +0000
commit7cfc8430c9a37dbf1ab632b62c3f823ad6e75790 (patch)
treef384c055f4972271960dfceb82893c19304fae32 /dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild
parent*** empty log message *** (diff)
downloadgentoo-2-7cfc8430c9a37dbf1ab632b62c3f823ad6e75790.tar.gz
gentoo-2-7cfc8430c9a37dbf1ab632b62c3f823ad6e75790.tar.bz2
gentoo-2-7cfc8430c9a37dbf1ab632b62c3f823ad6e75790.zip
*** empty log message ***
Diffstat (limited to 'dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild')
-rw-r--r--dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild23
1 files changed, 22 insertions, 1 deletions
diff --git a/dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild b/dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild
index 4ebeff10edb0..94ad9e22b0cf 100644
--- a/dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild
+++ b/dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild,v 1.1 2003/10/17 17:17:02 mkennedy Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cl-uncommonsql/cl-uncommonsql-1.2.1.ebuild,v 1.2 2003/10/17 19:00:55 mkennedy Exp $
inherit common-lisp
@@ -43,6 +43,27 @@ src_install() {
>${D}/usr/share/common-lisp/systems/uncommonsql-postgresql.system
fi
+ if use mysql; then
+ insinto /usr/share/common-lisp/source/uncommonsql/dbms/mysql
+ doins dbms/mysql/*.lisp
+ dosym /usr/share/common-lisp/source/uncommonsql \
+ /usr/share/common-lisp/source/uncommonsql-mysql
+ dodir /usr/share/common-lisp/systems
+ grep -v mk:oos dbms/mysql/system.lisp \
+ >${D}/usr/share/common-lisp/systems/uncommonsql-mysql.system
+ fi
+}
+
+pkg_postinst() {
+ /usr/sbin/register-common-lisp-source uncommonsql
+ use postgres && /usr/sbin/register-common-lisp-source uncommonsql-postgresql
+ use mysql && /usr/sbin/register-common-lisp-source uncommonsql-mysql
+}
+
+pkg_prerm() {
+ /usr/sbin/unregister-common-lisp-source uncommonsql
+ use postgres && /usr/sbin/unregister-common-lisp-source uncommonsql-postgresql
+ use mysql && /usr/sbin/unregister-common-lisp-source uncommonsql-mysql
}
pkg_preinst() {