diff options
author | Markus Rathgeb <maggu2810@gmail.com> | 2013-04-06 17:32:54 +0200 |
---|---|---|
committer | Markus Rathgeb <maggu2810@gmail.com> | 2013-04-06 17:32:54 +0200 |
commit | bf4878141034b1b9e5b089a12bcd67071e1d9200 (patch) | |
tree | f785541e77037ada5c2895e165eddda63e6618ec /games-util | |
parent | Automatic update to categories (diff) | |
download | sunrise-bf4878141034b1b9e5b089a12bcd67071e1d9200.tar.gz sunrise-bf4878141034b1b9e5b089a12bcd67071e1d9200.tar.bz2 sunrise-bf4878141034b1b9e5b089a12bcd67071e1d9200.zip |
Start a new try for the QtSixA package.
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/qtsixa/Manifest | 5 | ||||
-rw-r--r-- | games-util/qtsixa/files/97-sixpair.rules | 1 | ||||
-rw-r--r-- | games-util/qtsixa/files/qtsixa-1.5.1-fix-missing-includes.patch | 70 | ||||
-rw-r--r-- | games-util/qtsixa/files/sixad.service | 14 | ||||
-rw-r--r-- | games-util/qtsixa/metadata.xml | 10 | ||||
-rw-r--r-- | games-util/qtsixa/qtsixa-1.5.1.ebuild | 79 |
6 files changed, 179 insertions, 0 deletions
diff --git a/games-util/qtsixa/Manifest b/games-util/qtsixa/Manifest new file mode 100644 index 000000000..546fdc1d8 --- /dev/null +++ b/games-util/qtsixa/Manifest @@ -0,0 +1,5 @@ +AUX 97-sixpair.rules 91 SHA256 a85575f71d98c872173f5e1e44f26f2511c8cb684ea5046637579892a54de125 SHA512 47e8248855567e74ed07f6350e366051a74e7b65d5c3ea9583d9d685d19087ba7b378eb0625df260e4f0719a38dfab8355e9363ca148340cedac30152ffba44b WHIRLPOOL 9128abc7db3bc9420b525942a355d6769e7b78826f09456a74220a90e53fb620711ca3020b3425876a9452d3c03811e96d9adee42f816f9b1de29ac26aeac6bc +AUX qtsixa-1.5.1-fix-missing-includes.patch 2381 SHA256 3b1efe3a418e77aa0a8c2c6076ced5c6ac35b32f018b19e8f351ebba4d1a4fdb SHA512 0aacbb78c64a394d41a645bc6524be838103544717c416d651211bf6ada23e2ba5a35b73f151cf4be95cc1f27a3b020348e1e44b3c5af0c605a7d0b3bdd07547 WHIRLPOOL 80969db4446e0c352f575e5a88bcc9c704948231a0bbd25a7f359390f3e2907e07835e2ef88bc15d4f9f6232d7877394f1888efd8d3dcf5ef4050a21a8e4aa48 +AUX sixad.service 310 SHA256 3731d19468f1f9f6a2d6809a6ab6d6b844e0749fa886bf7aa4214dbb07e263e3 SHA512 a706789955608624d334552e153c21ef4da4a6874111231dd50a726c07e7664c0271b517037d56defa2f8810e4f043d88ee0a78076c120d5432f31bf76f74438 WHIRLPOOL f0738fd2419b3278d52e3a396d534ccf227d20222e77b01c148d8c82fab90db07eee9732c630d31f7e6012cdedd1052f2da6f943396e45e257fb9f8a5b2581d9 +DIST QtSixA-1.5.1-src.tar.gz 930296 SHA256 4111a4f9b4fa38246594d74bd03d75d43cf8b079251de0436094b5b0101336ff SHA512 53e8988f3eac730fc116347d32ed45c975bb176b4a4e9b13b3854db735d64c5de32be9fd845ee84d860f025aa60c01776a7ad1f2eca74c6a8a137e132c9239fe WHIRLPOOL 3fda14fa823ac4b84233d51e3d201a8500b4e588da07af0b5ad9080e5dce276119f3e4e6b8361bc070654980a0b0fa1e15fe0cc7aaaa71198c3b099c6958af16 +EBUILD qtsixa-1.5.1.ebuild 1993 SHA256 d3a1cb862d35011fbe42841da8e540d76edd959d3a58044e715718a056a373ff SHA512 9c6675b8a0e806d173f29f6adc2604c938bbf4e1f0279d26ae190e335fc25d3e640a41b422263f65554ab539d4974454e284c91d7a374ec5f2aae4a1f2b07322 WHIRLPOOL 697ca14116d93d4a554c3aae2ada156b1c7fe41d59709f9df288765493264ecac49113518702316a56d6a8770152e59c30be1d2dd2210206d925ffd66df0cee8 diff --git a/games-util/qtsixa/files/97-sixpair.rules b/games-util/qtsixa/files/97-sixpair.rules new file mode 100644 index 000000000..60c6308f8 --- /dev/null +++ b/games-util/qtsixa/files/97-sixpair.rules @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", ENV{idProduct}="0268", RUN+="/usr/sbin/sixpair" diff --git a/games-util/qtsixa/files/qtsixa-1.5.1-fix-missing-includes.patch b/games-util/qtsixa/files/qtsixa-1.5.1-fix-missing-includes.patch new file mode 100644 index 000000000..dc535a207 --- /dev/null +++ b/games-util/qtsixa/files/qtsixa-1.5.1-fix-missing-includes.patch @@ -0,0 +1,70 @@ +Fix missing includes. + +Signed-off-by: Markus Rathgeb <maggu2810@gmail.com> + +diff -Naur QtSixA-1.5.1.org/sixad/bluetooth.cpp QtSixA-1.5.1/sixad/bluetooth.cpp +--- QtSixA-1.5.1.org/sixad/bluetooth.cpp 2011-10-12 18:03:39.000000000 +0200 ++++ QtSixA-1.5.1/sixad/bluetooth.cpp 2013-03-29 10:23:10.828073530 +0100 +@@ -24,6 +24,7 @@ + #include <poll.h> + #include <signal.h> + #include <syslog.h> ++#include <unistd.h> + #include <sys/ioctl.h> + + #include <bluetooth/hidp.h> +diff -Naur QtSixA-1.5.1.org/sixad/sixad-bin.cpp QtSixA-1.5.1/sixad/sixad-bin.cpp +--- QtSixA-1.5.1.org/sixad/sixad-bin.cpp 2011-10-12 02:21:37.000000000 +0200 ++++ QtSixA-1.5.1/sixad/sixad-bin.cpp 2013-03-29 10:11:37.603040474 +0100 +@@ -22,6 +22,7 @@ + #include <signal.h> + #include <stdlib.h> + #include <syslog.h> ++#include <unistd.h> + + #if 0 + #include <sys/ioctl.h> +diff -Naur QtSixA-1.5.1.org/sixad/sixad-sixaxis.cpp QtSixA-1.5.1/sixad/sixad-sixaxis.cpp +--- QtSixA-1.5.1.org/sixad/sixad-sixaxis.cpp 2011-10-12 02:58:37.000000000 +0200 ++++ QtSixA-1.5.1/sixad/sixad-sixaxis.cpp 2013-03-29 10:15:07.475050482 +0100 +@@ -26,6 +26,7 @@ + #include <string.h> + #include <syslog.h> + #include <time.h> ++#include <unistd.h> + #include <sys/socket.h> + + int csk = 0; +diff -Naur QtSixA-1.5.1.org/sixad/sixad-remote.cpp QtSixA-1.5.1/sixad/sixad-remote.cpp +--- QtSixA-1.5.1.org/sixad/sixad-remote.cpp 2011-10-12 15:22:19.000000000 +0200 ++++ QtSixA-1.5.1/sixad/sixad-remote.cpp 2013-03-29 10:16:20.131053946 +0100 +@@ -26,6 +26,7 @@ + #include <string.h> + #include <syslog.h> + #include <time.h> ++#include <unistd.h> + #include <sys/socket.h> + + int csk = 0; +diff -Naur QtSixA-1.5.1.org/sixad/sixad-raw.cpp QtSixA-1.5.1/sixad/sixad-raw.cpp +--- QtSixA-1.5.1.org/sixad/sixad-raw.cpp 2011-10-11 22:00:41.000000000 +0200 ++++ QtSixA-1.5.1/sixad/sixad-raw.cpp 2013-03-29 10:16:59.107055805 +0100 +@@ -22,6 +22,7 @@ + #include <iostream> + #include <fcntl.h> + #include <syslog.h> ++#include <unistd.h> + + int main(int argc, char **argv) + { +diff -Naur QtSixA-1.5.1.org/sixad/sixad-3in1.cpp QtSixA-1.5.1/sixad/sixad-3in1.cpp +--- QtSixA-1.5.1.org/sixad/sixad-3in1.cpp 2011-10-12 17:53:04.000000000 +0200 ++++ QtSixA-1.5.1/sixad/sixad-3in1.cpp 2013-03-29 10:18:59.579061549 +0100 +@@ -25,6 +25,7 @@ + #include <errno.h> + #include <fcntl.h> + #include <syslog.h> ++#include <unistd.h> + + #define KEYMOTE_KEY_SELECT 1 << 0 + #define KEYMOTE_KEY_START 1 << 1 diff --git a/games-util/qtsixa/files/sixad.service b/games-util/qtsixa/files/sixad.service new file mode 100644 index 000000000..d60ff6f49 --- /dev/null +++ b/games-util/qtsixa/files/sixad.service @@ -0,0 +1,14 @@ +[Unit] +Description=sixad - Sixaxis Daemon +# It does not conflict, if the input plugin is disabled. +#Conflicts=bluetooth.service +After=bluetooth.service +Requires=bluetooth.service + +[Service] +ExecStart=/usr/sbin/sixad-bin 0 0 0 +Restart=on-failure + +[Install] +WantedBy=bluetooth.target +#WantedBy=multi-user.target diff --git a/games-util/qtsixa/metadata.xml b/games-util/qtsixa/metadata.xml new file mode 100644 index 000000000..30ee0e45d --- /dev/null +++ b/games-util/qtsixa/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-wanted@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + </longdescription> +</pkgmetadata> + diff --git a/games-util/qtsixa/qtsixa-1.5.1.ebuild b/games-util/qtsixa/qtsixa-1.5.1.ebuild new file mode 100644 index 000000000..87619ae8c --- /dev/null +++ b/games-util/qtsixa/qtsixa-1.5.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 systemd udev + +MY_P="QtSixA-${PV}" +DESCRIPTION="Sixaxis Joystick Manager" +HOMEPAGE="http://qtsixa.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P/-/%20}/${MY_P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc jack qt4" + +DEPEND="net-wireless/bluez + virtual/libusb:1 + jack? ( media-sound/jack-audio-connection-kit ) + qt4? ( dev-python/PyQt4 )" + +RDEPEND="${DEPEND} + dev-python/dbus-python + qt4? ( + net-wireless/bluez-hcidump + x11-libs/libnotify + x11-misc/xdg-utils + )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/qtsixa-1.5.1-fix-missing-includes.patch + + sed -i -e s/exec\ python/exec\ "${EPYTHON}"/g qtsixa/qtsixa +} + +src_compile() { + use qt4 && emake -C qtsixa + emake -C utils WANT_JACK=$(use jack && echo true) + emake -C sixad +} + +src_install() { + use qt4 && emake -C qtsixa install DESTDIR="${D}" + emake -C utils install DESTDIR="${D}" WANT_JACK=$(use jack && echo true) + emake -C sixad install DESTDIR="${D}" + + use doc && dodoc INSTALL manual.pdf README TODO + + if use qt4; then + python_fix_shebang "${D}"/usr/bin/sixad-lq + python_fix_shebang "${D}"/usr/bin/sixad-notify + python_fix_shebang "${D}"/usr/share/qtsixa/gui + python_optimize "${D}"/usr/share/qtsixa/gui + fi + + rm "${D}etc/init.d/sixad" || die # TODO: Write a Gentoo version. + + systemd_dounit "${FILESDIR}"/sixad.service + + udev_dorules "${FILESDIR}"/97-sixpair.rules +} + +pkg_postinst() { + udevadm control --reload-rules + + einfo "Requirements:" + einfo "Ensure that the uinput module is loaded." + + einfo "Solve conflicts:" + einfo "Do not forget to disable the input plugin of your bluetooth daemon." + einfo "You could disable the plugin by adding the following line to the" + einfo "configuration file of the bluetooth daemon (/etc/bluetooth/main.conf):" + einfo "DisablePlugins = input" +} |