+++ /dev/null
-# Copyright 2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7,8} )
-inherit python-single-r1
-
-DESCRIPTION="Tools to use with the Ipe drawing editor."
-HOMEPAGE="https://github.com/otfried/ipe-tools"
-SRC_URI="https://github.com/otfried/ipe-tools/archive/v${PV}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+svgtoipe +figtoipe +ipe5toxml +pdftoipe"
-
-DEPEND="svgtoipe? ( !media-gfx/svgtoipe ${PYTHON_DEPS} dev-lang/python[xml] )
- figtoipe? ( !media-gfx/figtoipe sys-libs/zlib )
- ipe5toxml? ( !media-gfx/ipe5toxml )
- pdftoipe? ( !media-gfx/pdftoipe app-text/poppler )"
-RDEPEND="${DEPEND}"
-BDEPEND=""
-
-src_compile() {
- # tools with makefile
- for tool in figtoipe ipe5toxml; do
- if use ${tool}; then
- cd ${tool}
- emake
- cd ..
- fi
- done
-
- # Fixing python tools
- if use svgtoipe; then
- mv svgtoipe/svgtoipe.py svgtoipe/svgtoipe
- fi
-}
-
-src_install() {
- exeinto /usr/bin/
-
- for tool in svgtoipe figtoipe ipe5toxml; do
- if use ${tool}; then
- doexe ${tool}/${tool}
- doman ${tool}/${tool}.1
- fi
- done
-
- # Fixing python tools
- if use svgtoipe; then
- python_fix_shebang ${ED}/usr/bin
- fi
-}