diff options
author | Azat Bahawi <azahi@teknik.io> | 2021-06-25 20:19:52 +0300 |
---|---|---|
committer | Azat Bahawi <azahi@teknik.io> | 2021-06-25 20:19:52 +0300 |
commit | 7528d3496154cd0a8daf8ada7891928798a57565 (patch) | |
tree | 62ea3674f48cb378364f6721f77f768ad8299297 /x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild | |
parent | ci: Update TravisCI runner (diff) |
meta: Refactor ebuilds and directory structure
- Drop "-rn" (revisions) fork 9999 (live) versions. - Versioned ebuilds are now symlinked to 9999 (live) versions. This should be followed for every package from now on. - Apply `shfmt` on all ebuilds. - Update metadata.
Diffstat (limited to 'x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild')
-rw-r--r-- | x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild b/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild new file mode 100644 index 0000000..196bb59 --- /dev/null +++ b/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 + +DESCRIPTION="Useful bits and pieces for wmutils" +HOMEPAGE="https://github.com/wmutils/contrib" +EGIT_REPO_URI="https://github.com/wmutils/contrib.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="+deletelock +focus-watcher +killwa +switch-grid" + +DEPEND=" + x11-wm/wmutils + killwa? ( + x11-libs/libxcb + x11-libs/xcb-util-wm + ) +" +RDEPEND="${DEPEND} + deletelock? ( x11-apps/xprop ) + focus-watcher? ( x11-wm/wmutils-opt ) + switch-grid? ( x11-wm/wmutils-opt ) +" +BDEPEND="" + +DOCS=(README.md) + +src_prepare() { + default + if use killwa; then + local S="${S}/killwa" + sed -e 's/-Os//g' -i "${S}/config.mk" || die + fi +} + +src_compile() { + if use killwa; then + local S="${S}/killwa" + emake -C "${S}" + fi +} + +src_install() { + dobin closest.sh + dobin focus.sh + dobin fullscreen.sh + dobin groups.sh + dobin rainbow.sh + dobin snap.sh + dobin tile.sh + dobin underneath.sh + dobin wmenu.sh + dobin workspace.sh + use focus-watcher && dobin focus_watcher.sh + use switch-grid && dobin switch_grid.sh + use deletelock && dobin deletelock.sh + if use killwa; then + local S="${S}/killwa" + emake -C "${S}" DESTDIR="${D}" install + fi +} |