Gentoo Archives: gentoo-commits

From: Samuel Bauer <samuel.bauer@×××××.fr>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-util/joycond/
Date: Tue, 04 May 2021 14:42:53
Message-Id: 1620139339.c72a2e6fe477385a3c0f961fc95068f0fe491d2c.samuel.bauer@gentoo
1 commit: c72a2e6fe477385a3c0f961fc95068f0fe491d2c
2 Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
3 AuthorDate: Tue May 4 14:42:19 2021 +0000
4 Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
5 CommitDate: Tue May 4 14:42:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c72a2e6f
7
8 games-util/joycond: new ebuild
9
10 Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
11
12 games-util/joycond/joycond-9999.ebuild | 34 ++++++++++++++++++++++++++++++++++
13 games-util/joycond/metadata.xml | 8 ++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/games-util/joycond/joycond-9999.ebuild b/games-util/joycond/joycond-9999.ebuild
17 new file mode 100644
18 index 000000000..5c84fdc91
19 --- /dev/null
20 +++ b/games-util/joycond/joycond-9999.ebuild
21 @@ -0,0 +1,34 @@
22 +# Copyright 2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit cmake git-r3
28 +
29 +DESCRIPTION="Combine joy-cons using hid-nintendo"
30 +HOMEPAGE="https://github.com/DanielOgorchock/joycond"
31 +EGIT_REPO_URI="https://github.com/DanielOgorchock/joycond"
32 +
33 +LICENSE="GPL-3"
34 +SLOT="0"
35 +KEYWORDS=""
36 +
37 +DEPEND="
38 + dev-libs/libevdev
39 + virtual/udev
40 +"
41 +RDEPEND="${DEPEND}
42 + games-util/hid-nintendo"
43 +BDEPEND=""
44 +IUSE="systemd"
45 +
46 +src_install() {
47 + cmake_src_install
48 + if ! use systemd; then
49 + rm -rf "${D}"/etc/modules-load.d
50 + mkdir "${D}"/etc/init.d/
51 + echo -e "#!/sbin/openrc-run\ncommand=/usr/bin/${PN}" \
52 + > "${D}"/etc/init.d/${PN}
53 + chmod +x "${D}"/etc/init.d/${PN}
54 + fi
55 +}
56
57 diff --git a/games-util/joycond/metadata.xml b/games-util/joycond/metadata.xml
58 new file mode 100644
59 index 000000000..c04f7b664
60 --- /dev/null
61 +++ b/games-util/joycond/metadata.xml
62 @@ -0,0 +1,8 @@
63 +<?xml version="1.0" encoding="UTF-8"?>
64 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
65 +<pkgmetadata>
66 +<maintainer type="person">
67 + <name>Samuel Bauer</name>
68 + <email>samuel.bauer@×××××.fr</email>
69 +</maintainer>
70 +</pkgmetadata>