commit:     4e663a55bdff194e5259c2d64cabcd03ee444d43
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 23 11:41:33 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Dec 23 11:43:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e663a55

app-emulation/open-vmdk: New package at version 0.3.12

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 app-emulation/open-vmdk/Manifest                |  1 +
 app-emulation/open-vmdk/metadata.xml            | 14 ++++++
 app-emulation/open-vmdk/open-vmdk-0.3.12.ebuild | 67 +++++++++++++++++++++++++
 3 files changed, 82 insertions(+)

diff --git a/app-emulation/open-vmdk/Manifest b/app-emulation/open-vmdk/Manifest
new file mode 100644
index 000000000000..b9dd2990b29e
--- /dev/null
+++ b/app-emulation/open-vmdk/Manifest
@@ -0,0 +1 @@
+DIST open-vmdk-0.3.12.tar.gz 72452 BLAKE2B 
36600b454c45b8ac1c5fda3f4fde982baf02f4883f454d817eb0a5f7e388df7daefce148bd4d5baee1a6b97c90b29d70ef09c4de1db06342ad92c2583ae2df7f
 SHA512 
4a038c899a9e3c013b830dab6514260e72d6905d6e5c2da864bdcc71f125639dc2aba68e9a4a27e96037a0200bd04d0ca2cc17306e8eaf2bf2913f9eaa0afb41

diff --git a/app-emulation/open-vmdk/metadata.xml 
b/app-emulation/open-vmdk/metadata.xml
new file mode 100644
index 000000000000..8f2f214cac35
--- /dev/null
+++ b/app-emulation/open-vmdk/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>James Le Cuirot</name>
+       </maintainer>
+       <use>
+               <flag name="python">Install Python-based tools</flag>
+       </use>
+       <upstream>
+               <remote-id type="github">vmware/open-vmdk</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/app-emulation/open-vmdk/open-vmdk-0.3.12.ebuild 
b/app-emulation/open-vmdk/open-vmdk-0.3.12.ebuild
new file mode 100644
index 000000000000..f22e65a7aeed
--- /dev/null
+++ b/app-emulation/open-vmdk/open-vmdk-0.3.12.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="Tools for creating and converting OVA virtual appliance files"
+HOMEPAGE="https://github.com/vmware/open-vmdk";
+SRC_URI="https://github.com/vmware/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="+python test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+       python? ( ${PYTHON_REQUIRED_USE} )
+       test? ( ${PYTHON_REQUIRED_USE} )
+"
+
+PYDEPEND="
+       ${PYTHON_DEPS}
+       $(python_gen_cond_dep '
+               dev-libs/libxml2[python,${PYTHON_USEDEP}]
+               dev-python/lxml[${PYTHON_USEDEP}]
+               dev-python/pyyaml[${PYTHON_USEDEP}]
+               dev-python/xmltodict[${PYTHON_USEDEP}]
+       ')
+"
+DEPEND="
+       virtual/zlib
+"
+RDEPEND="
+       ${DEPEND}
+       python? ( ${PYDEPEND} )
+"
+BDEPEND="
+       test? (
+               python? ( ${PYDEPEND} )
+               $(python_gen_cond_dep '
+                       dev-python/pytest[${PYTHON_USEDEP}]
+               ')
+       )
+"
+
+my_emake() {
+       emake \
+               "$(use python || echo DIRS='vmdk ova templates')" \
+               PREFIX="${EPREFIX}/usr" \
+               "${@}"
+}
+
+src_compile() {
+       my_emake CC="$(tc-getCC)"
+}
+
+src_test() {
+       epytest $(use python || echo pytest/test_{info_options,vmdk}.py)
+}
+
+src_install() {
+       my_emake install DESTDIR="${D}"
+       use python && python_fix_shebang "${ED}"/usr/bin
+}

Reply via email to