# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ S="${WORKDIR}/dx-${PV}" DESCRIPTION="Open source IBM Data Explorer: a professional 3D scientific visualization tool" HOMEPAGE="http://www.opendx.org/" SRC_URI="http://opendx.npaci.edu/source/dx-${PV}.tar.gz" LICENSE="IBM PUBLIC LICENSE" SLOT="0" KEYWORDS="~x86" IUSE="" # these dependencies need specific versions? # hdf package failed in some tests (why?!) DEPEND="x11-libs/openmotif virtual/opengl app-sci/cdf app-sci/netcdf dev-libs/hdf media-gfx/imagemagick virtual/jdk" # this einstall do not define mandir, because # it will cause problems since mandir is redefined # across Makefiles my_einstall() { if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then if [ ! -z "${PORTAGE_DEBUG}" ]; then make -n prefix=${D}/usr \ datadir=${D}/usr/share \ infodir=${D}/usr/share/info \ localstatedir=${D}/var/lib \ sysconfdir=${D}/etc \ "$@" install fi make prefix=${D}/usr \ datadir=${D}/usr/share \ infodir=${D}/usr/share/info \ localstatedir=${D}/var/lib \ sysconfdir=${D}/etc \ "$@" install || die "einstall failed" else die "no Makefile found" fi } src_compile() { econf || die emake || die } src_install() { my_einstall || die ln -s bin_x86 ${D}/usr/dx/bin_linux dodoc AUTHORS ChangeLog COPYING LICENSE NEWS README }