public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/xboxdrv/
Date: Thu, 17 Jan 2019 22:27:20 +0000 (UTC)	[thread overview]
Message-ID: <1547764027.c97ef8a7de6863914dd0b477de51f4a048397ad0.chewi@gentoo> (raw)

commit:     c97ef8a7de6863914dd0b477de51f4a048397ad0
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 17 22:16:21 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Jan 17 22:27:07 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c97ef8a7

games-util/xboxdrv: Repoint package to my own patched fork

I've been sitting on a pile of patches for some years and I've finally
got around to putting them all together for use here. Meanwhile
upstream has been largely dormant. The situation there is unclear.

The patches are a mixture of stability fixes, bug fixes, build fixes,
and support for more devices, authored by me and others. They don't
include my Steam Controller patch as this does not work very well. I
am aware that the daemon does occasionally still crash but it's a lot
better than it was.

Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-util/xboxdrv/Manifest                       |  1 +
 games-util/xboxdrv/metadata.xml                   |  4 ++
 games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild | 74 +++++++++++++++++++++++
 3 files changed, 79 insertions(+)

diff --git a/games-util/xboxdrv/Manifest b/games-util/xboxdrv/Manifest
index 77d64590223..a08c7116294 100644
--- a/games-util/xboxdrv/Manifest
+++ b/games-util/xboxdrv/Manifest
@@ -1 +1,2 @@
+DIST xboxdrv-0.8.8_p20190116.tar.gz 322469 BLAKE2B 8827cafb98235f7ad9d83204c808eb6bc25fdfd48321050ab79b561fc6a1a3b628e4bd667f7f1be511420514ef7906efc803db4f50130c393d7fa3cb498fed26 SHA512 3f9f8346a5a8486fb9f1af3e27a947e37c73ceab8f433639adf890144844f4fb6d005da3c4c6c1abf0a1550b71aba8b89001f58965d67fdc21e5f41e50a21436
 DIST xboxdrv-linux-0.8.8.tar.bz2 267919 BLAKE2B b6f09fc929ba561f0c18a777ca94f6972f366d29709d5fdcb168988311ca53eb813761df0f87d148795aa14d2d89b200e8123502c0b255ebe20e5f9caa18f8f1 SHA512 2978b33d23636431ee0cc393ea32d3d26ebe9f2b914f0bf8bc0e096f98202726768142e653bc5765ac55084b105ff3a6214bdf6e745fdd8aa167260c54c10494

diff --git a/games-util/xboxdrv/metadata.xml b/games-util/xboxdrv/metadata.xml
index 9a8e14a39d4..fe838d30a8f 100644
--- a/games-util/xboxdrv/metadata.xml
+++ b/games-util/xboxdrv/metadata.xml
@@ -9,4 +9,8 @@
 		<email>games@gentoo.org</email>
 		<name>Gentoo Games Project</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">chewi/xboxdrv</remote-id>
+		<remote-id type="gitlab">xboxdrv/xboxdrv</remote-id>
+	</upstream>
 </pkgmetadata>

diff --git a/games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild b/games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild
new file mode 100644
index 00000000000..228c7cc3506
--- /dev/null
+++ b/games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_6 )
+
+inherit linux-info python-any-r1 scons-utils toolchain-funcs systemd udev
+
+COMMIT="0c0143b59b0fd9718af4968992c96b6b6b2a2557"
+DESCRIPTION="Userspace Xbox 360 Controller driver"
+HOMEPAGE="https://xboxdrv.gitlab.io"
+SRC_URI="https://github.com/chewi/xboxdrv/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+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="
+	virtual/pkgconfig
+"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"
+
+src_prepare() {
+	default
+
+	# Make it clearer that this is a patched fork.
+	echo -n "${PV%_*}.${PV#*_p}-gentoo" > VERSION || die
+}
+
+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
+}


             reply	other threads:[~2019-01-17 22:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17 22:27 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-16 17:26 [gentoo-commits] repo/gentoo:master commit in: games-util/xboxdrv/ Viorel Munteanu
2024-04-22 16:52 Viorel Munteanu
2024-04-22 16:52 Viorel Munteanu
2024-04-22 16:52 Viorel Munteanu
2022-10-30  2:14 John Helmert III
2021-08-12  6:45 Joonas Niilola
2021-08-12  6:45 Joonas Niilola
2021-02-26  6:29 Joonas Niilola
2021-01-15  7:07 Joonas Niilola
2021-01-15  7:07 Joonas Niilola
2020-01-02 20:39 James Le Cuirot
2019-01-18 21:59 James Le Cuirot
2019-01-17 22:27 James Le Cuirot
2019-01-17 22:27 James Le Cuirot
2018-05-11 20:39 James Le Cuirot
2017-09-30  4:26 Michael Palimaka
2016-08-19 13:21 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1547764027.c97ef8a7de6863914dd0b477de51f4a048397ad0.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox