# 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=dbvis411.jar S=${WORKDIR}/dbvis DOWNLOAD_URL="http://http://www.minq.se/products/dbvis/" DESCRIPTION="Minq Software's DB Visualizer (Free Version)" HOMEPAGE="http://http://www.minq.se/products/dbvis/download.html" 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}" pkg_nofetch() { einfo "Please download ${At} from:" einfo ${DOWNLOAD_URL} einfo "Be sure to get the 'Other' version and move it to ${DISTDIR}" } src_unpack() { mkdir dbvis cd dbvis jar xf ${DISTDIR}/${At} || die "Could not extract dbvis" } src_install () { dodir /opt/${P} cd ${S}/home/rogge/work/pureit/apps/dbvis/release/latest_release || die "Could not access directory" local dirs="doc lib resources wrapper" for i in $dirs ; do dodir /opt/${P} cp -a $i ${D}/opt/${P}/ done chown -R root:root ${D}/opt/${P} dobin ${FILESDIR}/dbvis } pkg_postinst() { 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 postgresql driver normalling installs as " einfo "/usr/share/jdbc3-postgresql-1/lib/pg73jdbc3.jar" einfo "Start the visualizer with the command: dbvis" }