]> git.sthu.org Git - shuber-gentoo-overlay.git/commitdiff
media-gfx/ipe-tools: add 7.3.1.2 master
authorStefan Huber <shuber@sthu.org>
Tue, 20 Oct 2026 07:28:50 +0000 (09:28 +0200)
committerStefan Huber <shuber@sthu.org>
Tue, 20 Oct 2026 07:28:50 +0000 (09:28 +0200)
Rename the distfile to ${P}.tar.gz, enable python3_15, and drop
KEYWORDS from the live ebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
media-gfx/ipe-tools/Manifest
media-gfx/ipe-tools/ipe-tools-7.3.1.2.ebuild [new file with mode: 0644]
media-gfx/ipe-tools/ipe-tools-9999.ebuild

index 9758443b2d9f3b6402d43b5d216304f6984690b5..c686d43104c610faa13ca0a8732061e495dc0639 100644 (file)
@@ -1,4 +1,6 @@
+DIST ipe-tools-7.3.1.2.tar.gz 255981 BLAKE2B e748e696e929fac60a8b9bae27cb106a4bb471851a9047f6e10142c7781ffdf07f98a4176f4541fe60dd6e021410a5e261449111d2e06bd897970881955ea18d SHA512 0d63e488b7264e7936a8503053843c465e66075297371ec9da384a79c047dcc3dcfa4d2c789ed7495c224dd79fddc67e2867ea89f245083af0f374ceddf4f4ab
 DIST v7.2.29.2.tar.gz 248986 BLAKE2B 799f26fd6934a30feeaf494842b602cc0bbc3003d17cceedd7a8e0abe2eb650cc3fe8a19144108177c42caad51d7694c34e4a4d2ff51cda05b988fd53cf675bf SHA512 621192edbdf18c0be1f5b0cb18a6e5a7b53187a3a80f69d42911adf1790c0344ee5bdea7c18ccfc68a2477a8aa30152ae185dfc1f976820ad40243be3cec103d
 EBUILD ipe-tools-7.2.29.2.ebuild 1411 BLAKE2B 55b0ee4ab983934fcacb1c6d981820f9c4ade09fbae7b3a7a28761e0c4a086c0f1cdd4431b6ef0e265b11967834c9318314611b764f9f694837ae7a57cde887c SHA512 7680bb8fdd53f747bc014eca279f2a713d106802fbf64c33f42e29fe1f5e18f2c139c85ce412ef81bf238646c7594f453778a91ac5075d9cb89185875ccddcd5
-EBUILD ipe-tools-9999.ebuild 1551 BLAKE2B 3ef52b82e2d02171d468baaccbbd897e406d8b5e9fa1805d25dcf55e4abf56938fae001a8ba911f515a89b833b043518ff08bab8394ca2b31d95bc8b3244f474 SHA512 f2700d5e5d804240f5cf79ec848d15e1029c26a55e44fa916e04dfaf12ab98a05d9d15f3c3f1f5e0a032f8b270bd3a8b3a18bc9e9b589c60cc06d7693422c223
+EBUILD ipe-tools-7.3.1.2.ebuild 1566 BLAKE2B 2f3f53513130b3024d8f87c4c3ab0719ee33e15bf3e7002bd8c7cad8605e7c9f787f18611541815d992b8a0f5c1f358c5205bd50bef69142019aa51456987d50 SHA512 868c28002e6fcc2eb4c9b66671cb590b60753fe9cdcb7a49e584f5e38476f5fe11616e357dbc3f8ee8ad2519e5d56d02689b3a052d9d7c8a76c2e27087f7e87e
+EBUILD ipe-tools-9999.ebuild 1543 BLAKE2B a5e4e9af2304b04fd3d8804a4701d52b58da7fa5aeda35de89df809131a4f9cd686ccd82ff8afcd12a619e9d3e8b7426cfa1c19f2e2906e4255eaeeaad6f9586 SHA512 b023a13e0a87694166f3031d237fe27cdaa155e6c942cf62621b7ea9218692f5c38b83f7832e63e3e805458dc725767dfcadcc328aa80d36ea6cea48e65be219
 MISC metadata.xml 756 BLAKE2B 7c11e6f70fed3ad14f1024ab1ea0c2b1374f02038007d07d07babe696be5bfc9f4d57334744aa3885ad809ca1cf96dd739d354063f3aa3b7ad0a7a7a8a8a4613 SHA512 245e241cf49e8f30c4d0f8af8c2470c2de799caa43cd2fc00d7ade65a24e3196ecc91f096e3d58a40b008e57d1f9e94ba09977ce0169fa0ac49cc40d1f417a17
diff --git a/media-gfx/ipe-tools/ipe-tools-7.3.1.2.ebuild b/media-gfx/ipe-tools/ipe-tools-7.3.1.2.ebuild
new file mode 100644 (file)
index 0000000..2f696df
--- /dev/null
@@ -0,0 +1,63 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{12..15} )
+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
+       EGIT_REPO_URI="https://github.com/${GITHUBUSER}/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/${GITHUBUSER}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+annotate +svgtoipe +figtoipe +ipe5toxml +pdftoipe"
+REQUIRED_USE="annotate? ( ${PYTHON_REQUIRED_USE} )
+               svgtoipe? ( ${PYTHON_REQUIRED_USE} )"
+
+DEPEND="annotate? ( ${PYTHON_DEPS} dev-python/pypdf )
+               svgtoipe? ( ${PYTHON_DEPS} )
+               figtoipe? ( virtual/zlib )
+               pdftoipe? ( app-text/poppler )"
+RDEPEND="${DEPEND}"
+
+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
+}
index e59c3350f67b85172251558818b2f2d0a676e2b7..a112d2ba9a751024cc52580f525588dbe8f1afd9 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{12..14} )
+PYTHON_COMPAT=( python3_{12..15} )
 inherit python-single-r1
 
 DESCRIPTION="Tools to use with the Ipe drawing editor"
@@ -14,12 +14,11 @@ if [[ ${PV} == *9999 ]]; then
        EGIT_REPO_URI="https://github.com/${GITHUBUSER}/${PN}.git"
        inherit git-r3
 else
-       SRC_URI="https://github.com/${GITHUBUSER}/${PN}/archive/v${PV}.tar.gz"
+       SRC_URI="https://github.com/${GITHUBUSER}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 fi
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 IUSE="+annotate +svgtoipe +figtoipe +ipe5toxml +pdftoipe"
 REQUIRED_USE="annotate? ( ${PYTHON_REQUIRED_USE} )
                svgtoipe? ( ${PYTHON_REQUIRED_USE} )"