# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

S=${WORKDIR}/${P}
DESCRIPTION="This is a MySQL GUI Client"
HOMEPAGE="http://www.mysql.com/"
SRC_URI="ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MyCC/${PN}-0.8.6a-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="X qt"
DEPEND="virtual/glibc
		>=x11-libs/qt/qt-3.0.5
        >=dev-db/mysql/mysql-3.23.53"
S=${WORKDIR}/${PN}-0.8.6a-src
RDEPEND=""

src_unpack() {
		unpack ${PN}-0.8.6a-src.tar.gz ; cd ${S}	
}

src_compile() {
		./configure \
				--prefix=/usr \
				--infodir=/usr/share/info \
				--mandir=/usr/share/man || die "./configure failed"
		QTDIR=$QTDIR 
		emake || die
}

src_install() {
        #make \
		#	prefix=${D}/usr \
		#	mandir=${D}/usr/share/man \
		#	infodir=${D}/usr/share/info

			# Only this file for now
			dobin mysqlcc
}