media-gfx/ipe-tools: Add ipe-tools-7.2.13.1
authorStefan Huber <shuber@sthu.org>
Tue, 12 May 2020 07:12:34 +0000 (09:12 +0200)
committerStefan Huber <shuber@sthu.org>
Tue, 12 May 2020 07:12:34 +0000 (09:12 +0200)
Add an ebuild for the entire ipe-tools rather than split ebuilds for its
various tools.

media-gfx/figtoipe/Manifest
media-gfx/figtoipe/figtoipe-9999.ebuild
media-gfx/ipe-tools/Manifest [new file with mode: 0644]
media-gfx/ipe-tools/ipe-tools-7.2.13.1.ebuild [new file with mode: 0644]
media-gfx/ipe5toxml/Manifest
media-gfx/ipe5toxml/ipe5toxml-9999.ebuild
media-gfx/pdftoipe/Manifest
media-gfx/pdftoipe/pdftoipe-9999.ebuild
media-gfx/svgtoipe/Manifest
media-gfx/svgtoipe/svgtoipe-9999.ebuild

index 07b6d39..96abe89 100644 (file)
@@ -1 +1 @@
-EBUILD figtoipe-9999.ebuild 565 BLAKE2B c6d2e4c1d86b105382a394bd83dd49fc3f958f73a1032ffe2fd5eade3e2bf951744b5fb80cdf45cf252fa9f46ec1152b5902c04860a4c96c7c9d95a28973d1f2 SHA512 37b14ed6918c7663c36809c0998b79043d3cebedf7ccedc9e632773ac218b48d3218537b7c85414420ff45ab66fa60a70450d08767b0475d85fc7e1d71918f89
+EBUILD figtoipe-9999.ebuild 588 BLAKE2B 876f40200f4a23bdf3a127557e05a1d76c7302ab69cbb50792d2bc0a2c68a5a8a4f1b47976f63cf746abafc971ff0e6aacb48c2d4af6ce1a9a64c3044b8cbf8c SHA512 6a6b46a0320149cd6a4978132c94105101e5b81ec33ded663f708bd20a315ffe0fd882beffed0a260aecebfe5e461410cb10ffb33fa7c3b33fa8394d4a8daba8
index aa55b7f..08a2d69 100644 (file)
@@ -15,7 +15,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND="sys-libs/zlib"
+DEPEND="sys-libs/zlib
+               !media-gfx/ipe-tools"
 RDEPEND="${DEPEND}"
 
 BASEDIR="${WORKDIR}/${P}/${PN}"
diff --git a/media-gfx/ipe-tools/Manifest b/media-gfx/ipe-tools/Manifest
new file mode 100644 (file)
index 0000000..9fce7d8
--- /dev/null
@@ -0,0 +1,2 @@
+DIST v7.2.13.1.tar.gz 238265 BLAKE2B 155892772eccad7992d9754a7893fbaaaf5a10437ff3f00b19895409461de4362caa202c630a5435392a083c43af7e01b65d416c49a1a0cf04789f2eb528a9ba SHA512 edcd8af4194cb9ab8f73837cc2c73e9c67de07f513bdf5be67474a9d77b2afbca83c0f7746b0126688cb3ba853527b99668dcd5baeabed2bff7a8ddea8288678
+EBUILD ipe-tools-7.2.13.1.ebuild 1183 BLAKE2B aa55b0bc339d300d9e67efdd3cc835562c18699dbcb982c3751539d62fffeb4d068621571665944da1fec9c8658b534684986a1538ab738ac1e615676796eca1 SHA512 32941ae88659e9763e8c1f783e19c34fc7cbf24705db5923f66a4d084c46d98a87daa51fa1a73e830e3f28727b30b8477ee9d40eccc00c0eb0ad112bdcdcaf60
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 (file)
index 0000000..3991a1a
--- /dev/null
@@ -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
+}
index 0b2bf8f..90745f7 100644 (file)
@@ -1 +1 @@
-EBUILD ipe5toxml-9999.ebuild 545 BLAKE2B 6e9ed8b2d27f491e5cc2940720d94ce8d98f076221f8cffa2fe4b5871e959bcc59a77b351ce31c7a96c408dc20312a516fef8d7b30a8c4515ce3490eb04d85bf SHA512 d1783b9d90eb36fe05b77d5b4709d57b9db38173071002be84c75ade003eb7919424d0b003c87d83e2f0e06d7c45f7d453ed33ed7effc95675db0b3b6ca6eb4c
+EBUILD ipe5toxml-9999.ebuild 565 BLAKE2B 989a9446da04f4cfee9a600f3af546021a6b4ea253331b52f08a8a0ea277f6be2ea60207969615662e21234dab6f423e751906b6af218739674c363e36c169fb SHA512 760fffbb1269db6f7813db0a6c3b1446381fb0190614f119f005b6fbfd06942419af002be44fb83c90ce721753113713cd6f2e4a14be4a7457e0af91e9413f66
index 6907a84..ce1807c 100644 (file)
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND=""
+DEPEND="!media-gfx/ipe-tools"
 RDEPEND="${DEPEND}"
 
 BASEDIR="${WORKDIR}/${P}/${PN}"
index 6a45d54..7bd58a3 100644 (file)
@@ -1,4 +1,4 @@
 AUX missingpage.patch 4029 BLAKE2B 95fb9f10d108cc8436ec80e452feede106407f1ce62ecfe2a61d94c2ee5a6b09e983626b84fd7cb420ceedbe7ae8e8a9aa2d9d502226e9372228de7c438d6065 SHA512 9fbd49d2b13a35b3cc01c041dfbdd47df27a10fccc31d33b9ec4e7bd4746bff31d07094a15fbdacd1d453075e5f34423e23ac3168405d1f09e029942534ec935
 AUX poppler-0.18.patch 308 BLAKE2B 8f77635d560657ff95bfb3df15568b76489c3f596a14c2dc14afe2a4e65853aeaa68e2c85ab741f4737cb4187e6383524c48d24a5c62a09953118d865a32b4cb SHA512 c96e224f01378c9a849a30a7dcc0cb46d5f041fda6588c56b9512f1ea0c79821b1c75b2c6df56b0aa8bc1f897047b046e2337876f80f4a01fb261093bd83dd7a
 AUX poppler-0.20.patch 281 BLAKE2B 773dcc44cd6a091b241a1ae8add2f1fef93747ee9aa42be5a4ade92938c0852356d2bbca3d121c4795fac4b10909c0a174deeeeeeaaad351d4515e3e2ae94da0 SHA512 68149b180855bd47700dc24ff4858e1c7be874370bb84efeae9a44e49c6c7f59303544e9aa84bb6c1f8a634badd9ff5a4152e16c8eeb4f8fb7135b2bc2cfd0f9
-EBUILD pdftoipe-9999.ebuild 560 BLAKE2B d1cdb1d596e5d0d41c37b01aedb2d44017f560efef2f5f4b1b89c4d6c743bd436ec264011ff3ed96124f3eecfb7a47ff8853cc1c6ca48aa0e4e1fc91ee383e2c SHA512 41ee5f75b2a5ba0d8269f5904045d903606d09d84ce9bfffc2691db86da363e6910aee0263e47e5264d66a9e383c824c081ad3dc5f014d1baa3afe7a882c4a71
+EBUILD pdftoipe-9999.ebuild 583 BLAKE2B c32eb0ec71845884672ff17d6aa68af343c285976cf8659c0ca8b45a2fe7120c24d8823ac029729bfd6f590bbaf2924ed241bb99531819b9f74e86d1f3d0f30f SHA512 f0aba3e9f329918865a4547547dc67db9f75a547008165cf4eac547b5582c39af7d83305ccd8f90dfaeab683b83984c73ce9c65e7af408f9792f3489e4a85a79
index 7817d1c..1fc91c2 100644 (file)
@@ -16,7 +16,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND="app-text/poppler"
+DEPEND="app-text/poppler
+               !media-gfx/ipe-tools"
 RDEPEND="${DEPEND}"
 
 BASEDIR="${WORKDIR}/${P}/${PN}"
index 6e9bc69..254e035 100644 (file)
@@ -1 +1 @@
-EBUILD svgtoipe-9999.ebuild 618 BLAKE2B f1a3fc006c8bdc9ab80ce91b49bff1b8ab7fb348d7bd456a6d8c7eb35aeaf8503f7d3550fcceca4c208413bab6e13ff942cab7dfe333fbe95f69073aff908089 SHA512 c352bd0b8b9503b36dec104239633d58fb959d6742345fb88b785166e11d9f28a1f2a793fcd8b86668ca7ae7538741d8fd34cb9eba02c07ba895b6db70c36402
+EBUILD svgtoipe-9999.ebuild 630 BLAKE2B d4aeb8f2651270955ede1bdfe08d736f1fb3fb85c08a7eae8884f9ce50921299515d2c69ade806ce4f5e188cb16c6e0e06e301107be177597d8dbc39e99d12b5 SHA512 2e4522456a057fc7d1ce871382bae31e00cc9c6df10f4473e67cd84b37ce883705389949e12e777067d0ed2a4930dafa7c760097d187b520e651be4a02ebc84f
index e3d96ae..ad129ad 100644 (file)
@@ -16,7 +16,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND="|| ( dev-lang/python:3.6[xml] )"
+DEPEND="dev-lang/python[xml]
+               !media-gfx/ipe-tools"
 RDEPEND="${DEPEND}"
 
 BASEDIR="${WORKDIR}/${P}/${PN}"