X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=media-gfx%2Fipe-tools%2Fipe-tools-7.2.13.1.ebuild;fp=media-gfx%2Fipe-tools%2Fipe-tools-7.2.13.1.ebuild;h=3991a1a8b1ed241e6fdbd9fcf120dd812d17c0f9;hp=0000000000000000000000000000000000000000;hb=72cc229fbe38f5216d222af039346db42bdbf835;hpb=fb3be613a67e75dc1f30db57662802700713d7af diff --git a/media-gfx/ipe-tools/ipe-tools-7.2.13.1.ebuild b/media-gfx/ipe-tools/ipe-tools-7.2.13.1.ebuild new file mode 100644 index 0000000..3991a1a --- /dev/null +++ b/media-gfx/ipe-tools/ipe-tools-7.2.13.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +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 +}