From: Stefan Huber Date: Thu, 15 Jan 2026 15:05:59 +0000 (+0100) Subject: Add ipe-tools-9999 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=5dee7c852ef1313389be3426bd6ed4deab7d21b4;p=shuber-gentoo-overlay.git Add ipe-tools-9999 --- diff --git a/media-gfx/ipe-tools/Manifest b/media-gfx/ipe-tools/Manifest index 153e342..c362f90 100644 --- a/media-gfx/ipe-tools/Manifest +++ b/media-gfx/ipe-tools/Manifest @@ -2,4 +2,5 @@ DIST v7.2.24.1.tar.gz 239300 BLAKE2B f853a0362fa7736cec0cca2a06ca409459552c70a8b DIST v7.2.29.1.tar.gz 240082 BLAKE2B 77cdaf04b32866457a3a5f46dd5107c4b820451bc7a4137b1b562ddd5f65a7b7bc668f16133ecffbbe986429d52b47de7329b98faf9d1ac92844704af531dd9f SHA512 5f4ff02d014dce87b4032df7204706e0ad33a96b2f9cc8919a40fc44b28cc5c1ec9a0aaa83d102b103a94ffdce369a9031e3acaa3a6e60f4ead915cbfcefb33b EBUILD ipe-tools-7.2.24.1.ebuild 1411 BLAKE2B 6f9cd0963d1d1bb1375d3aea74fa4359341d0c49f6977730fb557e4963cc5b6a4dc726249215e5e9e3797931fbcfa115c8112fa299ff3de43b9f7e4a7643c228 SHA512 a32a25bbc904fea20c1604bdbdae07361d8d136704cf24ca3e13dcdf36dc306a438c1b38e4606a07004ffd11fa554ac4704aef9026ad130d4e4f9374c1f05031 EBUILD ipe-tools-7.2.29.1.ebuild 1411 BLAKE2B 6f9cd0963d1d1bb1375d3aea74fa4359341d0c49f6977730fb557e4963cc5b6a4dc726249215e5e9e3797931fbcfa115c8112fa299ff3de43b9f7e4a7643c228 SHA512 a32a25bbc904fea20c1604bdbdae07361d8d136704cf24ca3e13dcdf36dc306a438c1b38e4606a07004ffd11fa554ac4704aef9026ad130d4e4f9374c1f05031 +EBUILD ipe-tools-9999.ebuild 1594 BLAKE2B b8557943fad77a934b16a833d8673a89bd45d360cbcd95bb68f1d30b769b11ce6994ecd4661efa65f98437d994d472c73e8c953984722ed5b283eb124f2094e6 SHA512 b64875a4ab61cd981c5760aa687d91d4de86899adaee6f95fe2cdfdc1192fc9417b327a5de93c2e47b05acf02e1cac0f65661d98f89725b1f6115bb2008a3067 MISC metadata.xml 243 BLAKE2B 889d08efb220a9fb8457500f5f3c33c8c737616995e19fa8b621ced4bc9d380d016413d098d4d09925c679cd23f7fbd75e495424fe6ed809a9e873014caae682 SHA512 f9051a65d7e11d7abd1b9568dbbf8be84a6ae68eb994b0c22d57dff5620047d5ad5a324057a5cf4cec10837d16024e5f21a8cf5f1a6247807f62931839eb73bc diff --git a/media-gfx/ipe-tools/ipe-tools-9999.ebuild b/media-gfx/ipe-tools/ipe-tools-9999.ebuild new file mode 100644 index 0000000..5c9281b --- /dev/null +++ b/media-gfx/ipe-tools/ipe-tools-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..13} ) +inherit python-single-r1 + +DESCRIPTION="Tools to use with the Ipe drawing editor." +HOMEPAGE="https://github.com/otfried/ipe-tools" +GITHUBUSER="otfried" + +if [[ ${PV} == *9999 ]]; then + KEYWORDS="~amd64 ~x86" + EGIT_REPO_URI="https://github.com/${GITHUBUSER}/${PN}.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/${GITHUBUSER}/${PN}/archive/v${PV}.tar.gz" +fi + + +LICENSE="GPL-3" +SLOT="0" +IUSE="+annotate +svgtoipe +figtoipe +ipe5toxml +pdftoipe" + +DEPEND="annotate? ( ${PYTHON_DEPS} dev-python/pypdf ) + svgtoipe? ( !media-gfx/svgtoipe ${PYTHON_DEPS} ) + 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 pdftoipe; 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 pdftoipe; 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 +}