From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1269772-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3E34113835B for <garchives@archives.gentoo.org>; Sun, 11 Apr 2021 15:03:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77649E08FB; Sun, 11 Apr 2021 15:03:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E058E08FB for <gentoo-commits@lists.gentoo.org>; Sun, 11 Apr 2021 15:03:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F9D7340B53 for <gentoo-commits@lists.gentoo.org>; Sun, 11 Apr 2021 15:03:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 113EE4E9 for <gentoo-commits@lists.gentoo.org>; Sun, 11 Apr 2021 15:03:24 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1618153365.15e69ded7cdadb256a0d3e54c4284af4b79f0bba.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/xpadneo/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/xpadneo/Manifest games-util/xpadneo/xpadneo-0.9.1.ebuild X-VCS-Directories: games-util/xpadneo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 15e69ded7cdadb256a0d3e54c4284af4b79f0bba X-VCS-Branch: master Date: Sun, 11 Apr 2021 15:03:24 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d6df366c-6d92-4818-9c72-78f89a2d9d6e X-Archives-Hash: 7a26420e3cc87a50f49d6707af74a3d5 commit: 15e69ded7cdadb256a0d3e54c4284af4b79f0bba Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com> AuthorDate: Sat Apr 3 16:23:03 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 11 15:02:45 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15e69ded games-util/xpadneo: add 0.9.1 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> games-util/xpadneo/Manifest | 1 + games-util/xpadneo/xpadneo-0.9.1.ebuild | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/games-util/xpadneo/Manifest b/games-util/xpadneo/Manifest index 4cb0f0f85a8..49e09598d88 100644 --- a/games-util/xpadneo/Manifest +++ b/games-util/xpadneo/Manifest @@ -1 +1,2 @@ +DIST xpadneo-0.9.1.tar.gz 1353080 BLAKE2B fc2207e005cae629da50048330cbaa7d27183b0bbb083d35c3c144e91470273b8c7006c4b62d10b947dbe4fd003ca39623630923e477aa4eff3c243405d876bd SHA512 51063d104f165018b8430e26d2ab5a622c214efaaba3f7706cc99892b2054f57667b419672de5c2696189d389401b07024658c36a88343d980de9802789bcb10 DIST xpadneo-0.9.tar.gz 1351003 BLAKE2B dd41e687a44415c9c44d70ae4df9c858a7218eca301e61421cee4b9e80d912f9336dad15636dc38cb79128a635e33bb2b795fadebe2f53ebe42d192212364cb0 SHA512 0819af24bfa556dd330abeb1180b0a46105428b6b2c8529bb357cd5b578fe6f21e057f3f457994b21b6d5d6b207d46bdf0ff80a6415f833396595ba5e7309389 diff --git a/games-util/xpadneo/xpadneo-0.9.1.ebuild b/games-util/xpadneo/xpadneo-0.9.1.ebuild new file mode 100644 index 00000000000..75edf29d395 --- /dev/null +++ b/games-util/xpadneo/xpadneo-0.9.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-mod toolchain-funcs udev + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/atar-axis/xpadneo.git" + EGIT_MIN_CLONE_TYPE="single" +else + SRC_URI="https://github.com/atar-axis/xpadneo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Advanced Linux Driver for Xbox One Wireless Controller" +HOMEPAGE="https://atar-axis.github.io/xpadneo/" + +LICENSE="GPL-3" +SLOT="0" + +S+="/hid-${PN}" +MODULE_NAMES="hid-${PN}(kernel/drivers/hid::src)" +BUILD_PARAMS='V=1 LD="$(tc-getLD)" KERNEL_SOURCE_DIR="${KV_OUT_DIR}"' +BUILD_TARGETS="modules" + +CONFIG_CHECK="INPUT_FF_MEMLESS" + +src_install() { + linux-mod_src_install + + insinto /etc/modprobe.d + doins etc-modprobe.d/${PN}.conf + + udev_dorules etc-udev-rules.d/60-${PN}.rules + + dodoc -r ../docs/{[^i]*.md,descriptors,reports} ../NEWS.md +} + +pkg_postinst() { + linux-mod_pkg_postinst + udev_reload + + local ertm=/sys/module/bluetooth/parameters/disable_ertm + if ! [[ ${REPLACING_VERSIONS} && $(<${ertm}) == Y ]]; then + elog "To pair the gamepad and view module options, see documentation in:" + elog " ${EROOT}/usr/share/doc/${PF}" + elog + elog "Be warned that bluetooth's ERTM (Enhanced ReTransmission Mode) can" + elog "cause the gamepad to enter a re-connection loop." + elog "- To disable immediately:" + elog " echo Y > ${ertm}" + elog "- To disable for next and subsequent boot:" + elog " echo 'options bluetooth disable_ertm=y' > ${EROOT}/etc/modprobe.d/no-ertm.conf" + elog "- Or, if bluetooth isn't a module, add to the kernel's command line:" + elog " bluetooth.disable_ertm=y" + fi +} + +pkg_postrm() { + linux-mod_pkg_postrm + udev_reload +}