summaryrefslogtreecommitdiff
blob: c52d073a86d2f4c5796d7647db5a27b0b2de7363 (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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-epstk/octave-epstk-2.4.ebuild,v 1.1 2012/06/06 21:36:59 bicatali Exp $

EAPI=4
inherit eutils

DEB_PR=1
DESCRIPTION="Graphical output functions for Matlab and Octave"
HOMEPAGE="http://www.epstk.de/"
SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.bz2
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEB_PR}.debian.tar.gz"

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

RDEPEND="sci-mathematics/octave
	app-text/ghostscript-gpl"
DEPEND=""

S="${WORKDIR}"

src_prepare() {
	local p
	cd eps*
	for p in $(cat "${WORKDIR}"/debian/patches/series); do
		epatch "${WORKDIR}"/debian/patches/${p}
	done
}

src_install () {
	insinto /usr/share/octave/site/m/${PN}
	doins eps*/m/*
	use doc && dohtml -r eps*/doc/*
	insinto /etc
	doins debian/epstk.conf
	dodoc debian/README.Debian debian/changelog
}