summaryrefslogtreecommitdiff
blob: 2ce568c639078066ed10c3d5c376484d937700b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/xyscan/xyscan-3.02.ebuild,v 1.2 2008/07/04 01:23:09 markusle Exp $

EAPI="1"

inherit qt4

DESCRIPTION="tool for extracting data points from graphs"
HOMEPAGE="http://star.physics.yale.edu/~ullrich/xyscanDistributionPage/"
SRC_URI="http://star.physics.yale.edu/~ullrich/${PN}DistributionPage/${PV}/${P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="|| ( x11-libs/qt-gui:4
			>=x11-libs/qt-4.3:4 )"

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-docs.patch
	sed -e "s:GENTOO_P:${P}:" -i xyscanWindow.cpp \
		|| die "Failed to fix docs path"
}

src_compile() {
	eqmake4 xyscan.pro
	emake || die "emake failed"
}

src_install() {
	exeinto "/usr/bin"
	doexe xyscan || die "Failed to install xyscan"
	insinto "/usr/share/doc/${P}"
	doins -r docs || die "Failed to install docs"
}