summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-09-22 12:02:59 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-09-22 12:02:59 +0000
commit9b2e8fce97b400c86885d4c801a7508c274573aa (patch)
treeff8ee0d405f349e6c52e7809d1abb5cc1c9ce6bf /dev-db
parentfix0red (diff)
downloadgentoo-2-9b2e8fce97b400c86885d4c801a7508c274573aa.tar.gz
gentoo-2-9b2e8fce97b400c86885d4c801a7508c274573aa.tar.bz2
gentoo-2-9b2e8fce97b400c86885d4c801a7508c274573aa.zip
fix0red
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/sqsh/ChangeLog10
-rw-r--r--dev-db/sqsh/Manifest4
-rw-r--r--dev-db/sqsh/files/config.patch4
-rw-r--r--dev-db/sqsh/files/digest-sqsh-2.1-r11
-rw-r--r--dev-db/sqsh/sqsh-2.1-r1.ebuild58
5 files changed, 73 insertions, 4 deletions
diff --git a/dev-db/sqsh/ChangeLog b/dev-db/sqsh/ChangeLog
index fa9fe7304e94..b66b10dc9d23 100644
--- a/dev-db/sqsh/ChangeLog
+++ b/dev-db/sqsh/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-db/sqsh
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/sqsh/ChangeLog,v 1.4 2003/04/16 17:39:39 cretin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/sqsh/ChangeLog,v 1.5 2003/09/22 12:02:57 seemant Exp $
+
+*sqsh-2.1-r1 (22 Sep 2003)
+
+ 22 Sep 2003; Seemant Kulleen <seemant@gentoo.org> sqsh-2.1-r1.ebuild,
+ files/config.patch:
+ patched config.patch to define strcasecmp, which allows this to be used to
+ connect to a sybase database. Thanks much to: chris strom
+ <cstrom@speakeasy.net> in bug #28526
*sqsh-2.1 (11 Dec 2002)
diff --git a/dev-db/sqsh/Manifest b/dev-db/sqsh/Manifest
index a4fc1260c373..ca222b4f660c 100644
--- a/dev-db/sqsh/Manifest
+++ b/dev-db/sqsh/Manifest
@@ -1,6 +1,6 @@
-MD5 09a8250be160c082d3aeb19d2624c124 sqsh-2.1-r1.ebuild 1347
+MD5 6eac44613d98188ea5010bcccd263438 sqsh-2.1-r1.ebuild 1353
MD5 09a8250be160c082d3aeb19d2624c124 sqsh-2.1.ebuild 1347
-MD5 cb6516b5833037cf95d9f07b0d6b4264 ChangeLog 637
+MD5 6d7e98e433f354ef05ff75da4e8d8960 ChangeLog 937
MD5 19272f9055a78c6035e2f605dad0268c files/digest-sqsh-2.1-r1 64
MD5 b22849774e1f051fc6a523993f7f6325 files/config.patch 543
MD5 19272f9055a78c6035e2f605dad0268c files/digest-sqsh-2.1 64
diff --git a/dev-db/sqsh/files/config.patch b/dev-db/sqsh/files/config.patch
index 5127afda8686..d7936bd302d5 100644
--- a/dev-db/sqsh/files/config.patch
+++ b/dev-db/sqsh/files/config.patch
@@ -1,6 +1,8 @@
-60c60
+59,60c59,60
+< /* #undef HAVE_STRCASECMP */
< /* #undef HAVE_STRERROR */
---
+> #define HAVE_STRCASECMP 1
> #define HAVE_STRERROR 1
62,67c62,67
< /* #undef HAVE_STRFTIME */
diff --git a/dev-db/sqsh/files/digest-sqsh-2.1-r1 b/dev-db/sqsh/files/digest-sqsh-2.1-r1
new file mode 100644
index 000000000000..a1f69b1943e2
--- /dev/null
+++ b/dev-db/sqsh/files/digest-sqsh-2.1-r1
@@ -0,0 +1 @@
+MD5 a9d75ae51eafd94f89640f99ee3a9918 sqsh-2.1-src.tar.gz 358874
diff --git a/dev-db/sqsh/sqsh-2.1-r1.ebuild b/dev-db/sqsh/sqsh-2.1-r1.ebuild
new file mode 100644
index 000000000000..dc5178df2442
--- /dev/null
+++ b/dev-db/sqsh/sqsh-2.1-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/sqsh/sqsh-2.1-r1.ebuild,v 1.1 2003/09/22 12:02:57 seemant Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Replacement for the venerable 'isql' program supplied by Sybase."
+HOMEPAGE="http://www.sqsh.org/"
+LICENSE="GPL-2"
+DEPEND="dev-db/freetds
+ readline? ( sys-libs/readline )
+ X? ( x11-base/xfree )
+ motif? ( virtual/motif )
+ virtual/glibc"
+SLOT="0"
+SRC_URI="http://www.sqsh.org/${P}-src.tar.gz"
+KEYWORDS="x86"
+IUSE="readline X motif"
+
+src_compile() {
+ export SYBASE=/usr
+
+ local myconf
+
+ use readline \
+ && myconf="${myconf} --with-readline"
+
+ use X \
+ && myconf="${myconf} --with-x"
+
+ use motif \
+ && myconf="${myconf} --with-motif"
+
+ ./configure \
+ ${myconf} \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man || die "./configure failed"
+
+ patch src/config.h ${FILESDIR}/config.patch
+
+ emake SQSHRC_GLOBAL=/etc/sqshrc || die
+}
+
+src_install () {
+ make \
+ DESTDIR=${D} \
+ RPM_BUILD_ROOT=${D} \
+ prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ install install.man || die
+ # fix the silly placement of sqshrc
+ mkdir -p ${D}/etc
+ mv ${D}/usr/etc/sqshrc ${D}/etc/
+ rmdir ${D}/usr/etc
+ dodoc COPYING INSTALL README doc/*
+}