blob: 981db5687e266f2414ac46985619ca1bcc2f404b (
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/textext/"
SRC_URI="http://www.elisanet.fi/ptvirtan/software/textext/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="media-gfx/inkscape
|| ( 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 either 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() {
exeinto /usr/share/inkscape/extensions
doexe *.py || die "doexe failed. Can't copy script to extensions folder"
insinto /usr/share/inkscape/extensions
doins *.inx || die "doins faild. Can't copy script to extensions folder"
}
|