commit:     c72a2e6fe477385a3c0f961fc95068f0fe491d2c
Author:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Tue May  4 14:42:19 2021 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Tue May  4 14:42:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c72a2e6f

games-util/joycond: new ebuild

Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>

 games-util/joycond/joycond-9999.ebuild | 34 ++++++++++++++++++++++++++++++++++
 games-util/joycond/metadata.xml        |  8 ++++++++
 2 files changed, 42 insertions(+)

diff --git a/games-util/joycond/joycond-9999.ebuild 
b/games-util/joycond/joycond-9999.ebuild
new file mode 100644
index 000000000..5c84fdc91
--- /dev/null
+++ b/games-util/joycond/joycond-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake git-r3
+
+DESCRIPTION="Combine joy-cons using hid-nintendo"
+HOMEPAGE="https://github.com/DanielOgorchock/joycond";
+EGIT_REPO_URI="https://github.com/DanielOgorchock/joycond";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+DEPEND="
+       dev-libs/libevdev
+       virtual/udev
+"
+RDEPEND="${DEPEND}
+       games-util/hid-nintendo"
+BDEPEND=""
+IUSE="systemd"
+
+src_install() {
+       cmake_src_install
+       if ! use systemd; then
+               rm -rf "${D}"/etc/modules-load.d
+               mkdir "${D}"/etc/init.d/
+               echo -e "#!/sbin/openrc-run\ncommand=/usr/bin/${PN}" \
+                       > "${D}"/etc/init.d/${PN}
+               chmod +x "${D}"/etc/init.d/${PN}
+       fi
+}

diff --git a/games-util/joycond/metadata.xml b/games-util/joycond/metadata.xml
new file mode 100644
index 000000000..c04f7b664
--- /dev/null
+++ b/games-util/joycond/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="person">
+       <name>Samuel Bauer</name>
+       <email>samuel.ba...@yahoo.fr</email>
+</maintainer>
+</pkgmetadata>

Reply via email to