diff options
author | Caleb Tennis <caleb@gentoo.org> | 2003-05-05 14:20:57 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2003-05-05 14:20:57 +0000 |
commit | a9e53f5339d0caf72eb69b873f57102ce0c95b96 (patch) | |
tree | c7d4afb6d92b92133c7b7397617195a6413de0b4 /dev-db/mysqlcc/mysqlcc-0.9.2.ebuild | |
parent | Version bump, keeping in ~86. (diff) | |
download | gentoo-2-a9e53f5339d0caf72eb69b873f57102ce0c95b96.tar.gz gentoo-2-a9e53f5339d0caf72eb69b873f57102ce0c95b96.tar.bz2 gentoo-2-a9e53f5339d0caf72eb69b873f57102ce0c95b96.zip |
Version bump, keeping in ~86.
Diffstat (limited to 'dev-db/mysqlcc/mysqlcc-0.9.2.ebuild')
-rw-r--r-- | dev-db/mysqlcc/mysqlcc-0.9.2.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-db/mysqlcc/mysqlcc-0.9.2.ebuild b/dev-db/mysqlcc/mysqlcc-0.9.2.ebuild new file mode 100644 index 000000000000..145236b8d35d --- /dev/null +++ b/dev-db/mysqlcc/mysqlcc-0.9.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysqlcc/mysqlcc-0.9.2.ebuild,v 1.1 2003/05/05 14:20:41 caleb Exp $ + +inherit eutils + +S=${WORKDIR}/${P}-src +DESCRIPTION="a MySQL GUI Client" +HOMEPAGE="http://www.mysql.com/" +SRC_URI="ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MyCC/${P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="X qt" + +DEPEND="virtual/glibc + >=x11-libs/qt-3.0.5 + >=dev-db/mysql-4.0.0" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd ${S}; epatch ${FILESDIR}/${P}-qmakespec.patch + cd ${S}; epatch ${FILESDIR}/${P}-libmysqlclientac.patch +} + +src_compile() { + # The config.sub in this distribution appears to be very stale + # so we replace it with one from a known better source. I am + # not attached to using 1.4, but it seemed like it had the best + # chance of compatibility. + # Robert Coie <rac@gentoo.org> 2003.03.03 + if [ -e /usr/share/automake-1.4/config.sub ]; then + cp /usr/share/automake-1.4/config.sub ${S} + fi + cd ${S}; autoreconf -f; + + if [ "`use ssl`" ]; then + SUBLIBS="${SUBLIBS} -lssl" + echo "libs now ${SUBLIBS}" + fi + + QMAKESPEC="linux-g++" LIBS=${LIBS} econf --with-qt=${QTDIR} || die + + cp Makefile Makefile.orig + sed -e "s:CFLAGS = -pipe -Wall -W -g:CFLAGS = ${CFLAGS}:" \ + -e "s:CXXFLAGS = -pipe -Wall -W -g:CXXFLAGS = ${CXXFLAGS}:" \ + Makefile.orig > Makefile + + QTDIR=$QTDIR + emake || die +} + +src_install() { + dobin mysqlcc + dodir /usr/share/mysqlcc + insinto /usr/share/mysqlcc + doins warning.wav information.wav error.wav syntax.txt + dodir /usr/share/mysqlcc/translations + insinto /usr/share/mysqlcc/translations + doins translations/*.qm translations/*.ts +} |