aboutsummaryrefslogtreecommitdiff
blob: a84b2223ba6521b2b868478683f7b7cc400171c9 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools eutils

DESCRIPTION="Scientific application for data analysis and technical graphics"
SRC_URI="mirror://sourceforge/scigraphica/${P}.tar.gz"
HOMEPAGE="http://scigraphica.sourceforge.net/"

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

DEPEND=">=sci-libs/libscigraphica-2.1.0
	>=dev-python/pygtk-2.8.1-r1
	>=media-libs/imlib-1.9.7"

src_unpack() {
	unpack "${A}"
	cd "${S}"
	epatch "${FILESDIR}"/${P}-configure.in.patch
	sed -i \
		-e "s:/lib:/$(get_libdir):g" \
		configure.in || die "sed for configure.in failed"
	eautoreconf || die "eautoreconf failed"
}

src_install() {
	make DESTDIR=${D} install || die "make install Failed"
	dodoc AUTHORS ChangeLog FAQ.compile \
		INSTALL NEWS README TODO
}

pkg_postinst() {
	ewarn "Please be shure to rm your old scigraphica"
	ewarn "configuration directory."
	ewarn "Otherwise sg won't work."
	sleep 5
}