Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 200121

Summary: sci-visualization/ggobi (new ebuild)
Product: Gentoo Linux Reporter: Mirko Briemle <mail>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.ggobi.org/downloads/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ggobi-2.1.6 Ebuild

Description Mirko Briemle 2007-11-23 21:21:28 UTC
The following ebuild should be bumped to version 2.1.6 and version 2.1.7 and it would be great if it could be added to the tree in sci-visualization.

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Visualization program for exploring high-dimensional data"
HOMEPAGE="http://www.ggobi.org"
SRC_URI="http://www.ggobi.org/downloads/${P}.tar.bz2"

LICENSE="CPL"
SLOT="0"
KEYWORDS="~x86"
IUSE="all-plugins dataviewer describedisplay graphlayout ggvis graphaction varcloud"

RDEPEND=">=media-gfx/graphviz-2.6
	>=x11-libs/gtk+-2.6.10-r1"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}
}

src_compile() {
	local ggobiconf

	# configure with all plugins or select them individually
	# the configuration of ggobi does not support --without, therefore
	# the packages have to be set individually, if they are in the use list
	if use all-plugins; then
		econf $(use_with all-plugins ) || die "econf failed"
	else
		if use dataviewer; then
			ggobiconf="${ggobiconf} --with-dataviewer"
		fi
		if use describedisplay; then
			ggobiconf="${ggobiconf} --with-describedisplay"
		fi
		if use graphlayout; then
			ggobiconf="${ggobiconf} --with-graphlayout"
		fi
		if use ggvis; then
			ggobiconf="${ggobiconf} --with-ggvis"
		fi
		if use graphaction; then
			ggobiconf="${ggobiconf} --with-graphaction"
		fi
		if use varcloud; then
			ggobiconf="${ggobiconf} --with-varcloud"
		fi

		econf \
			${ggobiconf} \
			|| die "econf failed"
	fi

	emake || die "emake failed"

	# generate default configuration
	emake ggobirc || die "ggobi configuration generation failed"
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"

	# set up the ggobi configuration tree
	dodir /etc/xdg/ggobi
	insinto /etc/xdg/ggobi
	newins ggobirc ggobirc
}

Reproducible: Always
Comment 1 Mirko Briemle 2007-11-23 21:28:56 UTC
Created attachment 136809 [details]
ggobi-2.1.6 Ebuild

needs a ~ppc flag
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-23 22:55:00 UTC

*** This bug has been marked as a duplicate of bug 31416 ***