1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
7 inherit python-single-r1
9 DESCRIPTION="Tools to use with the Ipe drawing editor."
10 HOMEPAGE="https://github.com/otfried/ipe-tools"
11 SRC_URI="https://github.com/otfried/ipe-tools/archive/v${PV}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+svgtoipe +figtoipe +ipe5toxml +pdftoipe"
18 DEPEND="svgtoipe? ( !media-gfx/svgtoipe ${PYTHON_DEPS} dev-lang/python[xml] )
19 figtoipe? ( !media-gfx/figtoipe sys-libs/zlib )
20 ipe5toxml? ( !media-gfx/ipe5toxml )
21 pdftoipe? ( !media-gfx/pdftoipe app-text/poppler )"
27 for tool in figtoipe ipe5toxml; do
37 mv svgtoipe/svgtoipe.py svgtoipe/svgtoipe
44 for tool in svgtoipe figtoipe ipe5toxml; do
47 doman ${tool}/${tool}.1
53 python_fix_shebang ${ED}/usr/bin