From: Stefan Huber Date: Fri, 4 Dec 2020 10:55:43 +0000 (+0100) Subject: media-gfx/ipe-tools Add ipe-tools-7.2.20.1 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=2e1e793428302fb31e47cdb42f99cd7e994e5100;p=shuber-gentoo-overlay.git media-gfx/ipe-tools Add ipe-tools-7.2.20.1 --- diff --git a/media-gfx/ipe-tools/Manifest b/media-gfx/ipe-tools/Manifest index 94410ee..2c25bca 100644 --- a/media-gfx/ipe-tools/Manifest +++ b/media-gfx/ipe-tools/Manifest @@ -1,3 +1,5 @@ DIST v7.2.13.1.tar.gz 238265 BLAKE2B 155892772eccad7992d9754a7893fbaaaf5a10437ff3f00b19895409461de4362caa202c630a5435392a083c43af7e01b65d416c49a1a0cf04789f2eb528a9ba SHA512 edcd8af4194cb9ab8f73837cc2c73e9c67de07f513bdf5be67474a9d77b2afbca83c0f7746b0126688cb3ba853527b99668dcd5baeabed2bff7a8ddea8288678 +DIST v7.2.20.1.tar.gz 238820 BLAKE2B 3e85ed58252a0c242c4fcab05123fea7e62fb4bd577a1bcad5c48b83d9a4a6667fee5a1a46d0d45f2b89b9d2ce094ace6578924b63b1bccf5f519d7565828d09 SHA512 88533a0c13740201716939d567b5c6ca1fa3ddf16c58d3c1fd7db5d54faf8d1f8d3d788548284ee982bd510b565ed8c6e699f3eb47c27ba17522b4360154d3ce EBUILD ipe-tools-7.2.13.1.ebuild 1185 BLAKE2B b90c7f0d146be0560895059bbb1f181acd763ef66feb6b6775743620e4c5c392a9ee2e307b638737938a4752961ad97e38ea779d5dddd38901bf50052233e4e9 SHA512 feed9d235b272699339c8c8ea89da665f7237590a9bad9d4bb96a63b5863ab8e5aa66b1794ddb863b5d10700d8109928c7171ab2ab55e8a6df27b1c6867a5fa2 +EBUILD ipe-tools-7.2.20.1.ebuild 1433 BLAKE2B 145d014c31822dd79eb1109e28a9bda2d995e0b5e235c827c2cdeca4cdcd3425c25cc7a5d5ffb3c2613eb8ad213a2004c024885288595b0eac536ec19a409ffc SHA512 d734fbe84f0ac4336487f66e8393a5f30fabe1dfd6e14f65ac500efe27a2d22bc1fb769c30d8ccd3df1d5a0b14a20fa674dd0187e673274df304965fbdee233f MISC metadata.xml 243 BLAKE2B 889d08efb220a9fb8457500f5f3c33c8c737616995e19fa8b621ced4bc9d380d016413d098d4d09925c679cd23f7fbd75e495424fe6ed809a9e873014caae682 SHA512 f9051a65d7e11d7abd1b9568dbbf8be84a6ae68eb994b0c22d57dff5620047d5ad5a324057a5cf4cec10837d16024e5f21a8cf5f1a6247807f62931839eb73bc diff --git a/media-gfx/ipe-tools/ipe-tools-7.2.20.1.ebuild b/media-gfx/ipe-tools/ipe-tools-7.2.20.1.ebuild new file mode 100644 index 0000000..73f53b6 --- /dev/null +++ b/media-gfx/ipe-tools/ipe-tools-7.2.20.1.ebuild @@ -0,0 +1,56 @@ +# 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="+annotate +svgtoipe +figtoipe +ipe5toxml +pdftoipe" + +DEPEND="annotate? ( ${PYTHON_DEPS} dev-python/PyPDF2 ) + 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 tool naming + use svgtoipe && mv svgtoipe/svgtoipe.py svgtoipe/svgtoipe + # File collision with annotate from media-libs/gd, hence suffix -ipe + use annotate && mv annotate/annotate.py annotate/annotate-ipe +} + +src_install() { + exeinto /usr/bin/ + + for tool in svgtoipe figtoipe ipe5toxml; do + use ${tool} && doexe ${tool}/${tool} + use ${tool} && doman ${tool}/${tool}.1 + done + + use annotate && doexe annotate/annotate-ipe + + # Fixing python tools + if use annotate || use svgtoipe; then + python_fix_shebang ${ED}/usr/bin + fi +}