summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/textext/textext-0.4.2.ebuild')
-rw-r--r--media-gfx/textext/textext-0.4.2.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/media-gfx/textext/textext-0.4.2.ebuild b/media-gfx/textext/textext-0.4.2.ebuild
new file mode 100644
index 000000000..965921cdd
--- /dev/null
+++ b/media-gfx/textext/textext-0.4.2.ebuild
@@ -0,0 +1,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-0.46
+ || ( 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"
+}