# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Mondrian is a general purpose statistical data-visualization system. It features outstanding visualization techniques for data of almost any kind, and has its particular strength compared to other tools when working with Categorical Data, Geographical Data and LARGE Data." HOMEPAGE="http://rosuda.org/Mondrian/" SRC_URI="http://rosuda.org/Mondrian/Mondrian.jar" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/jre" RDEPEND="" INSTALLDIR=/opt/"${P}" src_unpack() { unpack "${A}" cp "${DISTDIR}/Mondrian.jar" "${WORKDIR}/" } src_install() { echo "#!/bin/bash" > mondrian echo "java -jar ${INSTALLDIR}/Mondrian.jar" >> mondrian dodir "${INSTALLDIR}" dodir "/usr/share/pixmaps/" cp Mondrian.jar "${D}/${INSTALLDIR}" cp Logo.gif "${D}/usr/share/pixmaps/mondrian.gif" dobin mondrian make_desktop_entry mondrian ${PN} ${PN}.gif Science }