commit:     935d106f83a863c3d525e7b33219106961042066
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 13 10:13:33 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 13 10:14:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=935d106f

gui-apps/waypipe: add 0.9.2

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 gui-apps/waypipe/Manifest             |  1 +
 gui-apps/waypipe/waypipe-0.9.2.ebuild | 71 +++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/gui-apps/waypipe/Manifest b/gui-apps/waypipe/Manifest
index 85a41ab5ac81..d001b4af17d9 100644
--- a/gui-apps/waypipe/Manifest
+++ b/gui-apps/waypipe/Manifest
@@ -1,2 +1,3 @@
 DIST waypipe-v0.9.0.tar.bz2 193493 BLAKE2B 
891b1015951459faf15c181c35499558458fd69c63695f4b6be67e686c8ba7806f0193ed0fc4500b370345b570536b6fdbb3c01f2fe861e87e00b1d4db7c05d7
 SHA512 
c37b630f4659ccc52d2a85a749971d552d5d535fc33e30aea1c2d22b057aaf3cf2756d6347cc89e3068ce59a14e871e7ffae9016608803549d0e7b1b6a0bd1cf
 DIST waypipe-v0.9.1.tar.bz2 193469 BLAKE2B 
adffa29092eae327e6e07f5b20c136121018f3da6de01fcef8cde49a4bca3da8c5785db4e3e9e825bee49779fe9274fb357ac25b93fc632ce5ede53ebe74f9db
 SHA512 
bd9899e2e8adba453861022c1e95ad41a5979d72cbbd1a346949450fb8da5450aa240bdd555a5774ed9e360f07bbf52bc10bb5e46ff579535033fe2ccc600511
+DIST waypipe-v0.9.2.tar.bz2 196024 BLAKE2B 
6a8e14a2eaee5f9936b97ce7742d0c0c45c8f1dc4784b83dcd673c4c5c9f2378764179e632cd9cb07d9d31157157c822febdea2d5cc7822e517fb7ee147c1799
 SHA512 
0ffdb49cb5dbee717798721505e4661710fcd234a55bbfe2452888024d4a8b99a0e0e99cdce23ba0b92ee456aeb9f14324baba1c7c5724cb8cca7bb6e9c276bb

diff --git a/gui-apps/waypipe/waypipe-0.9.2.ebuild 
b/gui-apps/waypipe/waypipe-0.9.2.ebuild
new file mode 100644
index 000000000000..dfab69171f2c
--- /dev/null
+++ b/gui-apps/waypipe/waypipe-0.9.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit meson python-any-r1
+
+DESCRIPTION="Transparent network proxy for Wayland compositors"
+HOMEPAGE="https://gitlab.freedesktop.org/mstoeckl/waypipe";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gitlab.freedesktop.org/mstoeckl/waypipe";
+else
+       
SRC_URI="https://gitlab.freedesktop.org/mstoeckl/waypipe/-/archive/v${PV}/${PN}-v${PV}.tar.bz2";
+       S="${WORKDIR}"/${PN}-v${PV}
+       KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+WAYPIPE_FLAG_MAP_X86=( avx2:with_avx2 avx512f:with_avx512f sse3:with_sse3 )
+WAYPIPE_FLAG_MAP_ARM=( neon:with_neon_opts )
+WAYPIPE_FLAG_MAP=(
+       "${WAYPIPE_FLAG_MAP_X86[@]/#/cpu_flags_x86_}"
+       "${WAYPIPE_FLAG_MAP_ARM[@]/#/cpu_flags_arm_}"
+)
+
+IUSE="dmabuf ffmpeg lz4 systemtap test vaapi zstd ${WAYPIPE_FLAG_MAP[@]%:*}"
+REQUIRED_USE="vaapi? ( ffmpeg )"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       dmabuf? (
+               media-libs/mesa[gbm(+),vaapi?,wayland]
+               x11-libs/libdrm
+       )
+       lz4? ( app-arch/lz4 )
+       systemtap? ( dev-debug/systemtap )
+       vaapi? ( media-libs/libva[drm(+),wayland] )
+       ffmpeg? (
+               media-video/ffmpeg[x264,vaapi?]
+       )
+       zstd? ( app-arch/zstd )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       ${PYTHON_DEPS}
+       app-text/scdoc
+       virtual/pkgconfig
+       test? ( 
dev-libs/weston[examples,headless,remoting,screen-sharing,wayland-compositor] )
+"
+
+src_configure() {
+       local emesonargs=(
+               -Dman-pages=enabled
+               $(meson_use systemtap with_systemtap)
+               $(meson_feature dmabuf with_dmabuf)
+               $(meson_feature ffmpeg with_video)
+               $(meson_feature lz4 with_lz4)
+               $(meson_feature vaapi with_vaapi)
+               $(meson_feature zstd with_zstd)
+       )
+       local fl
+       for fl in "${WAYPIPE_FLAG_MAP[@]}"; do
+               emesonargs+=( $(meson_use "${fl%:*}" "${fl#*:}") )
+       done
+       meson_src_configure
+}

Reply via email to