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

inherit eutils

DESCRIPTION="textext is an inkscape extension, which embed re-editable LaTeX objects in SVG drawings"
HOMEPAGE="http://www.elisanet.fi/ptvirtan/software/${PN}/"
SRC_URI="http://www.elisanet.fi/ptvirtan/software/${PN}/${P}.tar.gz"

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

RDEPEND="|| ( media-gfx/pdf2svg media-gfx/pstoedit )"
DEPEND="${RDEPEND}"

pkg_setup() {
	if ! has_version media-gfx/pdf2svg && ! built_with_use media-gfx/pstoedit plotutils ; then
		eerror "you need to emerge eihter media-gfx/pstoedit with plotutils support or media-gfx/pdf2svg."
		die "Either remerge media-gfx/pstoedit with USE=\"plotutils\" or emerge media-gfx/pdf2svg"
	fi
}

src_install() {
	insinto /usr/share/inkscape/extensions
	insopts -m0755
	doins *.py

	insopts -m0644
	doins *.inx
}