mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-08 09:12:08 +01:00
app-emulation/open-vmdk: Replace outdated git ebuild with new Gentoo one
It was pinned to an old commit. I will maintain the new Gentoo package. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
parent
19f4fb448a
commit
2e2a1f8e3c
@ -151,6 +151,7 @@ app-editors/nano
|
||||
app-editors/vim
|
||||
app-editors/vim-core
|
||||
|
||||
app-emulation/open-vmdk
|
||||
app-emulation/qemu
|
||||
app-emulation/qemu-guest-agent
|
||||
app-emulation/virt-firmware
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
</pkgmetadata>
|
||||
@ -1,29 +0,0 @@
|
||||
# Copyright 2014 VMware
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="Tool to convert vmdk to an ova file"
|
||||
HOMEPAGE="https://github.com/vmware/open-vmdk"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/vmware/open-vmdk"
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_COMMIT="8349c98ec8a617f5658b70d7de7d7d2830e18eaf"
|
||||
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
@ -32,8 +32,8 @@ app-crypt/azure-keyvault-pkcs11
|
||||
# The only available ebuild (from GURU) has ~amd64 and no keyword for arm64 yet.
|
||||
=app-crypt/clevis-19-r1 **
|
||||
|
||||
# Needed by arm64-native SDK.
|
||||
=app-emulation/open-vmdk-1.0 *
|
||||
# No stable keywords yet because it's new.
|
||||
=app-emulation/open-vmdk-0.3.12 ~amd64
|
||||
|
||||
# Keep versions on both arches in sync.
|
||||
=app-emulation/qemu-10.0.5 ~arm64
|
||||
|
||||
@ -197,3 +197,6 @@ sys-auth/pambase securetty -passwdqc
|
||||
|
||||
# We run the server in a container.
|
||||
dev-db/etcd -server
|
||||
|
||||
# We only need the non-Python-based tools.
|
||||
app-emulation/open-vmdk -python
|
||||
|
||||
1
sdk_container/src/third_party/portage-stable/app-emulation/open-vmdk/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-emulation/open-vmdk/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST open-vmdk-0.3.12.tar.gz 72452 BLAKE2B 36600b454c45b8ac1c5fda3f4fde982baf02f4883f454d817eb0a5f7e388df7daefce148bd4d5baee1a6b97c90b29d70ef09c4de1db06342ad92c2583ae2df7f SHA512 4a038c899a9e3c013b830dab6514260e72d6905d6e5c2da864bdcc71f125639dc2aba68e9a4a27e96037a0200bd04d0ca2cc17306e8eaf2bf2913f9eaa0afb41
|
||||
14
sdk_container/src/third_party/portage-stable/app-emulation/open-vmdk/metadata.xml
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/app-emulation/open-vmdk/metadata.xml
vendored
Normal file
@ -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>chewi@gentoo.org</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>
|
||||
73
sdk_container/src/third_party/portage-stable/app-emulation/open-vmdk/open-vmdk-0.3.12.ebuild
vendored
Normal file
73
sdk_container/src/third_party/portage-stable/app-emulation/open-vmdk/open-vmdk-0.3.12.ebuild
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
# 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user