diff options
author | Azat Bahawi <azahi@teknik.io> | 2020-08-17 19:36:10 +0300 |
---|---|---|
committer | Azat Bahawi <azahi@teknik.io> | 2020-08-17 19:36:10 +0300 |
commit | b2442f2196d4ecff57300b7f7acef85a05e11ae4 (patch) | |
tree | 534950184e91a1890179ae9d570b019a654e6f2b | |
parent | x11-wm/wmutils: Update (diff) |
x11-wm/wmutils-contrib: Modify USE, build
Add new USE flags for scripts that require special dependencies Add missing dependencies Modify DESCRIPTION Strip optimization flags
-rw-r--r-- | x11-wm/wmutils-contrib/metadata.xml | 17 | ||||
-rw-r--r-- | x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild | 72 |
2 files changed, 64 insertions, 25 deletions
diff --git a/x11-wm/wmutils-contrib/metadata.xml b/x11-wm/wmutils-contrib/metadata.xml index 7869e07..666e647 100644 --- a/x11-wm/wmutils-contrib/metadata.xml +++ b/x11-wm/wmutils-contrib/metadata.xml @@ -5,4 +5,21 @@ <email>azahi@teknik.io</email> <name>azahi</name> </maintainer> + <use> + <flag name="deletelock"> + Install deletelock.sh + </flag> + <flag name="focus_watcher"> + Install focus_watcher.sh + </flag> + <flag name="killwa"> + Install killwa + </flag> + <flag name="switch_grid"> + Install switch_grid.sh + </flag> + </use> + <upstream> + <remote-id type="github">wmutils/contrib</remote-id> + </upstream> </pkgmetadata> diff --git a/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild b/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild index 0da5218..2a83a92 100644 --- a/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild +++ b/x11-wm/wmutils-contrib/wmutils-contrib-9999.ebuild @@ -3,42 +3,64 @@ EAPI=7 -inherit eutils git-r3 +inherit git-r3 -DESCRIPTION="Useful bits and pieces" +DESCRIPTION="Useful bits and pieces for wmutils" HOMEPAGE="https://github.com/wmutils/contrib" -EGIT_REPO_URI="https://github.com/wmutils/contrib" +EGIT_REPO_URI="https://github.com/wmutils/contrib.git" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="" +IUSE="+deletelock +focus_watcher +killwa +switch_grid" -DEPEND="x11-libs/libxcb" -RDEPEND="${DEPEND}" +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() { - local S="${S}/killwa" - emake -C "${S}" + if use killwa; then + local S="${S}/killwa" + emake -C "${S}" + fi } src_install() { - exeinto /usr/bin - doexe closest.sh - doexe deletelock.sh - doexe focus.sh - doexe focus_watcher.sh - doexe fullscreen.sh - doexe groups.sh - doexe rainbow.sh - doexe snap.sh - doexe switch_grid.sh - doexe tile.sh - doexe underneath.sh - doexe wmenu.sh - doexe workspace.sh - - local S="${S}/killwa" - emake -C "${S}" DESTDIR="${D}" 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 } |