x11-misc/xbanish: add new package

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Nickolas Raymond Kaczynski <nrk@disroot.org>
This commit is contained in:
Nickolas Raymond Kaczynski
2021-07-30 21:52:02 +06:00
parent a2f1453844
commit 2814d0e7a4
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST v1.7.tar.gz 6379 BLAKE2B b5c2da9890676be642d963147b38585089160bbeb8609e66e586ce69b886e39e4b02e60e1c4554fb27454ae3bc89c7169f5b1ece3e511e327ee0bfbef25035c3 SHA512 f790ea888812bb6b7793f0a60a900724fc407ec4485672e37d464387ffacfa4bf2dc891862f3fed06948cda31024745816b3adb58074c4578edc6a9848f2bd08

View File

@@ -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>nrk@disroot.org</email>
</maintainer>
<upstream>
<remote-id type="github">jcs/xbanish</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -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
}