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

inherit eutils

MY_P=epstk21m
MY_DIR=/usr/share/octave/site/m/${PN}

DESCRIPTION="Graphical output functions for Matlab and Octave"
HOMEPAGE="http://www.epstk.de"
SRC_URI="http://epstk.sourceforge.net/down/${MY_P}.zip"

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

DEPEND="sci-mathematics/octave
	app-text/gv
	app-text/ghostscript-esp"

src_unpack () {
	unpack ${A}
	epatch ${FILESDIR}/octave-epstk-2.1_PATCH1.patch
}

src_install () {
	dodir ${MY_DIR} 
	cd ${WORKDIR}/epstk21/m
	insinto ${MY_DIR} 
	doins *	
	cd ${WORKDIR}/epstk21/
	dodoc License.txt
}

pkg_postinst () {
	einfo "Package installed as octave-epstk."
	einfo "To test epstk, run octave and execute the demo m files."
	einfo "For example:"
	einfo "octave:1> edemo1"
}