# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # 0.1.4: a Cube turn no longer focuses the topmost window, so follow-focus gives focus to the window under a stationary pointer (tag v0.1.4 of https://git.hedronfire.com/wayfire-3d-windows). # 0.1.3: a held Cube follows dim, lighting and deformation; a cancelled Cube resets its deformation; the switcher undims every background it dimmed (tag v0.1.3 of https://git.hedronfire.com/wayfire-3d-windows). # 0.1.2: Cube faces seen from behind keep the top window on top (tag v0.1.2 of https://git.hedronfire.com/wayfire-3d-windows). EAPI=8 inherit toolchain-funcs DESCRIPTION="Physical window depth with Cube and Expo rendering handoff" HOMEPAGE="https://github.com/okcomput3/wayfire-v-kube" SRC_URI="https://www.hedronfire.com/distfiles/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" RESTRICT="mirror" DEPEND=">=gui-wm/wayfire-0.11.0-r64:0= gui-libs/wf-config:= gui-libs/wlroots:0.20= media-libs/glm dev-libs/json-c:=" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" src_compile() { emake CXX="$(tc-getCXX)" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" } src_install() { emake CXX="$(tc-getCXX)" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install dodoc README.md UPSTREAM LICENSE.upstream } pkg_postinst() { elog "WCM → Effects → 3D Windows controls depth modes, shell surfaces and Float cushion." elog "The packaged companion Cube uses the existing Cube settings and the live-wallpaper interface." elog "Load 3d-windows by bare name. Wayfire's own cube and switcher are" elog "replaced via 3d-windows/libcube.so and 3d-windows/libswitcher.so." elog "Monitor power loss and restitching skip outputs still under construction." elog "Child dialogs and nested popups retain native stacking above their parents." elog "Raised and overlapping windows settle continuously after Cube animation." elog "Super+T keeps raised windows captured in native stacking order." elog "Faces seen from behind keep native stacking: the top window stays on top." elog "A held Cube follows changes to dim, lighting and deformation at once." }