2012-05-04 18:38:41 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-05-04 18:38:41 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/g3data/g3data-1.5.3.ebuild,v 1.6 2012/05/04 08:07:00 jdhore Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
EAPI=2
|
|
|
|
inherit eutils
|
|
|
|
|
|
|
|
DESCRIPTION="Tool for extracting data from graphs"
|
|
|
|
HOMEPAGE="http://www.frantz.fi/software/g3data.php"
|
|
|
|
SRC_URI="http://www.frantz.fi/software/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
IUSE="doc examples"
|
|
|
|
|
|
|
|
RDEPEND="x11-libs/gtk+:2"
|
|
|
|
DEPEND="${RDEPEND}
|
2012-05-04 18:38:41 +04:00
|
|
|
virtual/pkgconfig
|
2012-02-06 16:39:49 +04:00
|
|
|
doc? ( ~app-text/docbook-sgml-utils-0.6.14 )"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${P}-makefile.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake || die "emake failed"
|
|
|
|
# although doc is only 1 man file, it pulls lots of deps
|
|
|
|
if use doc; then
|
|
|
|
emake g3data.1 || die "emake doc failed"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin g3data || die "dobin failed - no binary!"
|
|
|
|
dodoc README.SOURCE
|
|
|
|
# xpm image is really a png file
|
|
|
|
newicon g3data-icon.xpm g3data.png
|
|
|
|
make_desktop_entry g3data "g3data data extractor"
|
|
|
|
if use examples; then
|
|
|
|
docinto examples
|
|
|
|
dodoc README.TEST
|
|
|
|
insinto /usr/share/doc/${PF}/examples
|
|
|
|
doins test1.png test1.values test2.png test2.values
|
|
|
|
fi
|
|
|
|
if use doc; then
|
|
|
|
doman g3data.1 || die "doman failed"
|
|
|
|
fi
|
|
|
|
}
|