| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.3.12 | 8 | ~amd64 ~arm64 | 0 |
# 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}]
')
)
"
pkg_setup() {
if use python || use test; then
python-single-r1_pkg_setup
fi
}
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
}
virtual/zlib
virtual/zlib
python? (
${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}]
')
)
test? (
python? (
${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}]
')
)
$(python_gen_cond_dep '
dev-python/pytest[${PYTHON_USEDEP}]
')
)
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | open-vmdk-0.3.12.tar.gz | 72452 bytes | https://github.com/vmware/open-vmdk/archive/refs/tags/v0.3.12.tar.gz |