diff options
author | Luciano Degni (Pungolo) <degni.public@gmail.com> | 2022-10-24 09:46:35 +0200 |
---|---|---|
committer | Luciano Degni (Pungolo) <degni.public@gmail.com> | 2022-10-24 09:49:25 +0200 |
commit | 402179736369c13ff362dbd6e19a4d0dba0616bd (patch) | |
tree | bade4edea29d797bf50963fefbea842c3c5a8e84 /x11-wm | |
parent | net-misc/xmrig-mo: add 6.18.1 (diff) | |
download | guru-402179736369c13ff362dbd6e19a4d0dba0616bd.tar.gz guru-402179736369c13ff362dbd6e19a4d0dba0616bd.tar.bz2 guru-402179736369c13ff362dbd6e19a4d0dba0616bd.zip |
x11-wm/dk: new package, add 9999
Signed-off-by: Luciano Degni (Pungolo) <degni.public@gmail.com>
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/dk/Manifest | 1 | ||||
-rw-r--r-- | x11-wm/dk/dk-9999.ebuild | 81 | ||||
-rw-r--r-- | x11-wm/dk/metadata.xml | 13 |
3 files changed, 95 insertions, 0 deletions
diff --git a/x11-wm/dk/Manifest b/x11-wm/dk/Manifest new file mode 100644 index 000000000..97118d2e8 --- /dev/null +++ b/x11-wm/dk/Manifest @@ -0,0 +1 @@ +EBUILD dk-9999.ebuild 1474 BLAKE2B 96ff6bcff9768d191cb4c13cf3261c79ff74ff23fc997e9ab11deb5f5abe9502de0aa77d977133a9de72cf34ad18e949bd1cf7b8e484d1ec8c5e306fef942408 SHA512 0f1b55ef07f9c9b498c61aa6e5fc19bbed4b2a5a80b12bd4d72bd2ac1fe45f4ff527208e44b8f6d174044f5c73468b6839ae59cb1a89888869a51be33581582b diff --git a/x11-wm/dk/dk-9999.ebuild b/x11-wm/dk/dk-9999.ebuild new file mode 100644 index 000000000..aa5d243a8 --- /dev/null +++ b/x11-wm/dk/dk-9999.ebuild @@ -0,0 +1,81 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A list based tiling window manager in the vein of dwm, bspwm, and xmonad." +HOMEPAGE="https://bitbucket.org/natemaia/dk/src/master/" +EGIT_REPO_URI="https://bitbucket.org/natemaia/dk.git" + +inherit toolchain-funcs flag-o-matic xdg-utils git-r3 desktop + +LICENSE="MIT" +SLOT="0" +IUSE="examples man" + +DEPEND=" + x11-base/xcb-proto + x11-libs/libxcb + x11-libs/xcb-util-cursor + x11-libs/xcb-util-keysyms + x11-libs/xcb-util + x11-libs/xcb-util-wm +" + +RDEPEND=" + ${DEPEND} + x11-misc/sxhkd +" + +QA_FLAGS_IGNORED="usr/bin/*" + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~ppc64 ~riscv ~x86" + +src_unpack() { + git-r3_src_unpack +} + +src_prepare() { + default + + sed -i \ + -e "s/ -Os / /" \ + -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \ + Makefile || die +} + +src_compile() { + # -Os not happy + replace-flags -Os -O2 + + emake CC="$(tc-getCC)" +} + +src_install() { + dodoc README.md + if use man; then + #sed "s/VERSION/${VERSION}/g" man/dk.1 || die + doman man/*.* + fi + #dobin dk dkcmd + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" DOC="/usr/share/doc/${PF}" MAN="/usr/share/man/man1/" install + #dobin ${D}/dk +# if use examples ; then +# insinto /etc/xdg/sxhkd +# doins doc/sxhkdrc doc/dkrc +# insinto /etc/xdg/dk +# doins doc/scripts +# fi +} + +src_test() { + emake test +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} diff --git a/x11-wm/dk/metadata.xml b/x11-wm/dk/metadata.xml new file mode 100644 index 000000000..60d803024 --- /dev/null +++ b/x11-wm/dk/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>degni.public@gmail.com</email> + <name>Luciano Degni</name> + </maintainer> + <upstream> + <doc>https://bitbucket.org/natemaia/dk/src/master/</doc> + <bugs-to>https://bitbucket.org/natemaia/dk/issue</bugs-to> + </upstream> +</pkgmetadata> + |