commit:     2814d0e7a412801d30163917156e322b5700132b
Author:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
AuthorDate: Fri Jul 30 15:52:02 2021 +0000
Commit:     Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
CommitDate: Fri Jul 30 15:52:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2814d0e7

x11-misc/xbanish: add new package

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>

 x11-misc/xbanish/Manifest           |  1 +
 x11-misc/xbanish/metadata.xml       | 10 +++++++++
 x11-misc/xbanish/xbanish-1.7.ebuild | 42 +++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/x11-misc/xbanish/Manifest b/x11-misc/xbanish/Manifest
new file mode 100644
index 000000000..3d9b16c82
--- /dev/null
+++ b/x11-misc/xbanish/Manifest
@@ -0,0 +1 @@
+DIST v1.7.tar.gz 6379 BLAKE2B 
b5c2da9890676be642d963147b38585089160bbeb8609e66e586ce69b886e39e4b02e60e1c4554fb27454ae3bc89c7169f5b1ece3e511e327ee0bfbef25035c3
 SHA512 
f790ea888812bb6b7793f0a60a900724fc407ec4485672e37d464387ffacfa4bf2dc891862f3fed06948cda31024745816b3adb58074c4578edc6a9848f2bd08

diff --git a/x11-misc/xbanish/metadata.xml b/x11-misc/xbanish/metadata.xml
new file mode 100644
index 000000000..2018f28ad
--- /dev/null
+++ b/x11-misc/xbanish/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">jcs/xbanish</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/x11-misc/xbanish/xbanish-1.7.ebuild 
b/x11-misc/xbanish/xbanish-1.7.ebuild
new file mode 100644
index 000000000..414181e9d
--- /dev/null
+++ b/x11-misc/xbanish/xbanish-1.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Banish the mouse cursor when typing, show it again when the mouse 
moves"
+HOMEPAGE="https://github.com/jcs/xbanish";
+
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz"
+
+KEYWORDS="~amd64"
+# NOTE: Upstream moved to ISC license on master.
+# So this needs to be changed on the next version (1.7+).
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+# NOTE: x11-libs/libXext might become a dep next version (1.7+)
+DEPEND="
+       x11-libs/libX11
+       x11-libs/libXfixes
+       x11-libs/libXi
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       # Makefile doesn't respect user's LDFLAGS
+       sed -i \
+               -e 's|\$(LIBS) |\$(LIBS) $(LDFLAGS) |g' \
+               Makefile || die "sed failed"
+}
+
+src_compile() {
+       emake CC=$(tc-getCC)
+}
+
+src_install() {
+       dobin xbanish
+       doman xbanish.1
+}

Reply via email to