# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Maintainer: Tony Kay # Author: Tony Kay IUSE="postgresql mysql" inherit eutils At=dbvis_unix_5_0.tar.gz DOWNLOAD_URL="http://http://www.minq.se/products/dbvis/download.html" DESCRIPTION="Minq Software's DB Visualizer (Free Version)" HOMEPAGE="http://www.minq.se/products/dbvis/" SRC_URI="${At}" SLOT="0" KEYWORDS="~x86" LICENSE="Apache-1.1" RESTRICT="fetch" RDEPEND="virtual/jre postgresql? ( dev-java/jdbc3-postgresql ) mysql? ( dev-java/jdbc-mysql )" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PV}-dbvis.patch } pkg_nofetch() { einfo "Please download ${At} from:" einfo ${DOWNLOAD_URL} einfo "Be sure to get the 'Generic UNIX' version and move it to ${DISTDIR}" } src_install () { dodir /opt/${P} cp -R ./.* ${D}/opt/${P}/ cp -R * ${D}/opt/${P}/ ln -s ${D}/opt/${P}/dbvis /usr/bin/dbvis } pkg_postinst() { einfo "" einfo "DB Visualizer is now installed. JDBC drivers may have also been" einfo "installed as run-time dependencies based on your USE flags. For " einfo "example, the mysql driver normalling installs as " einfo "/usr/share/jdbc-mysql/lib/jdbc-mysql.jar" einfo "Start the visualizer with the command: dbvis" einfo "" }