From 7a86906b67693cc65671d3e1476835d3a7e13092 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 Jun 2019 11:40:06 +0100 Subject: gentoo resync : 22.06.2019 --- app-emulation/buildah/buildah-1.8.4.ebuild | 57 ++++++++++++++ app-emulation/buildah/buildah-1.9.0.ebuild | 57 ++++++++++++++ .../diskimage-builder-2.24.0.ebuild | 42 +++++++++++ .../winetricks/winetricks-20190615.ebuild | 86 ++++++++++++++++++++++ 4 files changed, 242 insertions(+) create mode 100644 app-emulation/buildah/buildah-1.8.4.ebuild create mode 100644 app-emulation/buildah/buildah-1.9.0.ebuild create mode 100644 app-emulation/diskimage-builder/diskimage-builder-2.24.0.ebuild create mode 100644 app-emulation/winetricks/winetricks-20190615.ebuild (limited to 'app-emulation') diff --git a/app-emulation/buildah/buildah-1.8.4.ebuild b/app-emulation/buildah/buildah-1.8.4.ebuild new file mode 100644 index 000000000000..1f2ce722cc45 --- /dev/null +++ b/app-emulation/buildah/buildah-1.8.4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit bash-completion-r1 golang-vcs-snapshot + +KEYWORDS="~amd64" +DESCRIPTION="A tool that facilitates building OCI images" +HOMEPAGE="https://github.com/containers/buildah" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="ostree selinux" +EGO_PN="${HOMEPAGE#*//}" +EGIT_COMMIT="v${PV}" +GIT_COMMIT="af8fd4a" +SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +RDEPEND="app-crypt/gpgme:= + app-emulation/skopeo + dev-libs/libgpg-error:= + dev-libs/libassuan:= + sys-fs/lvm2:= + sys-libs/libseccomp:= + selinux? ( sys-libs/libselinux:= )" +DEPEND="${RDEPEND}" +RESTRICT="test" +REQUIRED_USE="!selinux? ( !ostree )" +S="${WORKDIR}/${P}/src/${EGO_PN}" + +src_prepare() { + default + sed -e 's|^\(GIT_COMMIT ?= \).*|\1'${GIT_COMMIT}'|' -i Makefile || die + + [[ -f ostree_tag.sh ]] || die + use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \ + ostree_tag.sh || die; } + + [[ -f selinux_tag.sh ]] || die + use selinux || { echo -e "#!/bin/sh\ntrue" > \ + selinux_tag.sh || die; } +} + +src_compile() { + export -n GOCACHE XDG_CACHE_HOME + GOPATH="${WORKDIR}/${P}" emake all +} + +src_install() { + dodoc CHANGELOG.md CONTRIBUTING.md README.md install.md troubleshooting.md + doman docs/*.1 + dodoc -r docs/tutorials + dobin ${PN} imgtype + dobashcomp contrib/completions/bash/buildah +} + +src_test() { + GOPATH="${WORKDIR}/${P}" emake test-unit +} diff --git a/app-emulation/buildah/buildah-1.9.0.ebuild b/app-emulation/buildah/buildah-1.9.0.ebuild new file mode 100644 index 000000000000..16d2c1c2eb62 --- /dev/null +++ b/app-emulation/buildah/buildah-1.9.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit bash-completion-r1 golang-vcs-snapshot + +KEYWORDS="~amd64" +DESCRIPTION="A tool that facilitates building OCI images" +HOMEPAGE="https://github.com/containers/buildah" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="ostree selinux" +EGO_PN="${HOMEPAGE#*//}" +EGIT_COMMIT="v${PV}" +GIT_COMMIT="00eb895" +SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +RDEPEND="app-crypt/gpgme:= + app-emulation/skopeo + dev-libs/libgpg-error:= + dev-libs/libassuan:= + sys-fs/lvm2:= + sys-libs/libseccomp:= + selinux? ( sys-libs/libselinux:= )" +DEPEND="${RDEPEND}" +RESTRICT="test" +REQUIRED_USE="!selinux? ( !ostree )" +S="${WORKDIR}/${P}/src/${EGO_PN}" + +src_prepare() { + default + sed -e 's|^\(GIT_COMMIT ?= \).*|\1'${GIT_COMMIT}'|' -i Makefile || die + + [[ -f ostree_tag.sh ]] || die + use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \ + ostree_tag.sh || die; } + + [[ -f selinux_tag.sh ]] || die + use selinux || { echo -e "#!/bin/sh\ntrue" > \ + selinux_tag.sh || die; } +} + +src_compile() { + export -n GOCACHE XDG_CACHE_HOME + GOPATH="${WORKDIR}/${P}" emake all +} + +src_install() { + dodoc CHANGELOG.md CONTRIBUTING.md README.md install.md troubleshooting.md + doman docs/*.1 + dodoc -r docs/tutorials + dobin ${PN} imgtype + dobashcomp contrib/completions/bash/buildah +} + +src_test() { + GOPATH="${WORKDIR}/${P}" emake test-unit +} diff --git a/app-emulation/diskimage-builder/diskimage-builder-2.24.0.ebuild b/app-emulation/diskimage-builder/diskimage-builder-2.24.0.ebuild new file mode 100644 index 000000000000..86d3bb124b34 --- /dev/null +++ b/app-emulation/diskimage-builder/diskimage-builder-2.24.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_6 python3_7 ) + +inherit distutils-r1 + +DESCRIPTION="Golden Disk Image builder." +HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/" +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://opendev.org/openstack/diskimage-builder.git" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${CDEPEND} + >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] + !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] + >=dev-python/networkx-1.10[${PYTHON_USEDEP}] + =dev-python/pyyaml-3.12[${PYTHON_USEDEP}] + >=dev-python/flake8-2.5.4[${PYTHON_USEDEP}] + =dev-python/six-1.10.0[${PYTHON_USEDEP}] + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] + app-emulation/qemu + sys-block/parted + sys-fs/multipath-tools + sys-fs/dosfstools + sys-apps/gptfdisk + !dev-python/dib-utils[${PYTHON_USEDEP}]" diff --git a/app-emulation/winetricks/winetricks-20190615.ebuild b/app-emulation/winetricks/winetricks-20190615.ebuild new file mode 100644 index 000000000000..900a5b539221 --- /dev/null +++ b/app-emulation/winetricks/winetricks-20190615.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop xdg + +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="https://github.com/Winetricks/${PN}.git" + inherit git-r3 + SRC_URI="" +else + SRC_URI="https://github.com/Winetricks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +wtg="winetricks-gentoo-2012.11.24" + +SRC_URI="${SRC_URI} + gtk? ( https://dev.gentoo.org/~chiitoo/distfiles/${wtg}.tar.bz2 ) + kde? ( https://dev.gentoo.org/~chiitoo/distfiles/${wtg}.tar.bz2 ) +" + +DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine" +HOMEPAGE="https://github.com/Winetricks/winetricks https://wiki.winehq.org/Winetricks" + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE="gtk kde rar test" + +BDEPEND=" + test? ( + dev-python/bashate + dev-util/checkbashisms + dev-util/shellcheck + ) +" +DEPEND="" +RDEPEND="${DEPEND} + app-arch/cabextract + app-arch/p7zip + app-arch/unzip + net-misc/wget + virtual/wine + x11-misc/xdg-utils + gtk? ( gnome-extra/zenity ) + kde? ( kde-apps/kdialog ) + rar? ( app-arch/unrar ) +" + +# Test targets include syntax checks only, not the "heavy duty" tests +# that would require a lot of disk space, as well as network access. + +# This uses a non-standard "Wine" category, which is provided by +# '/etc/xdg/menus/applications-merged/wine.menu' from the +# 'app-emulation/wine-desktop-common' package. +# https://bugs.gentoo.org/451552 +QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop" + +src_unpack() { + if [[ ${PV} == "99999999" ]]; then + git-r3_src_unpack + + if use gtk || use kde; then + unpack ${wtg}.tar.bz2 + fi + + else + default + fi +} + +src_test() { + ./tests/shell-checks || die "Test(s) failed." +} + +src_install() { + default + + if use gtk || use kde; then + cd "${WORKDIR}/${wtg}" || die + domenu winetricks.desktop + insinto /usr/share/icons/hicolor/scalable/apps + doins wine-winetricks.svg + fi +} -- cgit v1.2.3