You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-visualization/ggobi/ggobi-2.1.8.ebuild

58 lines
1.4 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/ggobi/ggobi-2.1.8.ebuild,v 1.8 2012/05/04 08:06:59 jdhore Exp $
EAPI=2
inherit eutils autotools
DESCRIPTION="Visualization program for exploring high-dimensional data"
HOMEPAGE="http://www.ggobi.org"
SRC_URI="http://www.ggobi.org/downloads/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="minimal nls"
RDEPEND="
>=media-gfx/graphviz-2.6
x11-libs/gtk+:2
dev-libs/libxml2:2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
# build with external system libltdl
rm -rf libltdl
has_version ">=media-gfx/graphviz-2.22" && \
epatch "${FILESDIR}"/${P}-graphviz.patch
epatch "${FILESDIR}"/${P}-syslibltdl.patch
epatch "${FILESDIR}"/${P}-plugindir.patch
for f in $(find "${S}" -name "configure.ac"); do
sed -i -e '/AM_INIT/ a\AM_MAINTAINER_MODE' $f || die #342747
done
eautoreconf
}
src_configure() {
econf \
--disable-maintainer-mode \
--disable-rpath \
$(use_enable nls) \
$(use_with !minimal all-plugins)
}
src_compile() {
emake || die "emake failed"
# generate default configuration
emake ggobirc || die "ggobi configuration generation failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README AUTHORS NEWS ChangeLog
insinto /etc/xdg/ggobi
doins ggobirc || die
}