From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97D8A1581E7 for ; Mon, 22 Apr 2024 16:52:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0F90E29FD; Mon, 22 Apr 2024 16:52:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DB91CE29FD for ; Mon, 22 Apr 2024 16:52:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A57E734335E for ; Mon, 22 Apr 2024 16:52:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C41CB1728 for ; Mon, 22 Apr 2024 16:52:42 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1713804707.36603c9c6485d071666b1ece441a027336a6a7c4.ceamac@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/xboxdrv/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r3.ebuild X-VCS-Directories: games-util/xboxdrv/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 36603c9c6485d071666b1ece441a027336a6a7c4 X-VCS-Branch: master Date: Mon, 22 Apr 2024 16:52:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5da741fd-bd8d-44c9-be6e-343637e0acec X-Archives-Hash: f663b6cb87347c9254d9452f47698951 commit: 36603c9c6485d071666b1ece441a027336a6a7c4 Author: Viorel Munteanu gentoo org> AuthorDate: Mon Apr 22 16:35:34 2024 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Mon Apr 22 16:51:47 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36603c9c games-util/xboxdrv: update EAPI 7 -> 8 Bump EAPI 7 -> 8 Enable Python 3.12. It is used only at build. Closes: https://bugs.gentoo.org/929600 Signed-off-by: Viorel Munteanu gentoo.org> .../xboxdrv/xboxdrv-0.8.8_p20190118-r3.ebuild | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r3.ebuild b/games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r3.ebuild new file mode 100644 index 000000000000..45fe2ace917b --- /dev/null +++ b/games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r3.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit linux-info python-any-r1 scons-utils toolchain-funcs systemd udev + +MY_P="${PN}-v$(ver_cut 1-3)" +DESCRIPTION="Userspace Xbox 360 Controller driver" +HOMEPAGE="https://xboxdrv.gitlab.io" +SRC_URI="https://gitlab.com/xboxdrv/${PN}/-/archive/v$(ver_cut 1-3)/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-libs/boost:= + dev-libs/dbus-glib + dev-libs/glib:2 + sys-apps/dbus + virtual/libudev:= + virtual/libusb:1 + x11-libs/libX11 +" + +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + dev-util/glib-utils + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/"xboxdrv-0.8.8-some-boost-fix.patch + "${FILESDIR}/"xboxdrv-0.8.8-Update-SConstruct-to-python3.patch + "${FILESDIR}/"xboxdrv-0.8.8-Updating-python-code-to-python3.patch +) + +CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD" + +pkg_setup() { + linux-info_pkg_setup + python-any-r1_pkg_setup +} + +src_compile() { + escons \ + BUILD=custom \ + CXX="$(tc-getCXX)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" \ + CXXFLAGS="-Wall ${CXXFLAGS}" \ + LINKFLAGS="${LDFLAGS}" +} + +src_install() { + dobin xboxdrv + doman doc/xboxdrv.1 + dodoc AUTHORS NEWS PROTOCOL README.md TODO + + newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv + newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv + + insinto /etc/dbus-1/system.d + doins "${FILESDIR}"/org.seul.Xboxdrv.conf + + udev_newrules "${FILESDIR}"/xboxdrv.udev-rules 99-xbox-controller.rules + systemd_dounit "${FILESDIR}"/xboxdrv.service +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}