commit 9b70422a9290e9d6046439d48ac52f97b1531946 parent 568d454dffaa28b7cb0e1df36251d3f28bc33b58 Author: Plat <plat@stellar-nexus.ru> Date: Tue, 27 Aug 2024 13:47:20 +0000 Added x11-misc/xbmouse Diffstat:
A | x11-misc/xbmouse/Manifest | | | 1 | + |
A | x11-misc/xbmouse/metadata.xml | | | 11 | +++++++++++ |
A | x11-misc/xbmouse/xbmouse-0.1.ebuild | | | 38 | ++++++++++++++++++++++++++++++++++++++ |
3 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/x11-misc/xbmouse/Manifest b/x11-misc/xbmouse/Manifest @@ -0,0 +1 @@ +DIST xbmouse-0.1.tar.gz 3710 BLAKE2B c7f66085a9f54ffc5040181ce9fd7c647ab0e6fee396d28c0caf780dbc1d6a9d629be8ae7eba8dd77c5319139a81410ce64844f9eb09f6adc5c2e329f0b5899b SHA512 39ab893223bbb50ca9831cc96cf3fbdddf0255ca3f6ad63030958ee9eddfab9947a718bb4dd75a2d7062039b0f29b35b5dfcc7d06779e9aa7664eaed8035979c diff --git a/x11-misc/xbmouse/metadata.xml b/x11-misc/xbmouse/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<upstream> +<remote-id type="github">vlaadbrain/xbmouse</remote-id> +</upstream> +<maintainer type="person"> +<email>plat@stellar-nexus.ru</email> +<name>Plat</name> +</maintainer> +</pkgmetadata> diff --git a/x11-misc/xbmouse/xbmouse-0.1.ebuild b/x11-misc/xbmouse/xbmouse-0.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="simply bind a mouse button to a command" +HOMEPAGE="https://github.com/vlaadbrain/xbmouse" +SRC_URI="https://github.com/vlaadbrain/xbmouse/archive/refs/heads/master.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/${PN}-master" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="x11-libs/libX11" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -i \ + -e "s/ -O0 / /" \ + -e "/^\(LDFLAGS\|CFLAGS\|CPPFLAGS\)/{s| = | += |g;s|-s ||g}" \ + -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + -e "/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}" \ + config.mk || die +} + +src_compile() { + emake CC="$(tc-getCC)" xbmouse +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +}