It is no ebuild for the Roccat devices. They are really nice and well supported mouse and keyboard devices. The homepage of the linux sogzware for those device is http://sourceforge.net/projects/roccat/ and http://roccat.sourceforge.net/ Reproducible: Always Steps to Reproduce: 1. impossible to install with portage because of lack of ebuilds 2. 3.
Created attachment 296265 [details] ebuild for libroccat and shared files
Created attachment 296267 [details] Ebuild for Arvo keyboard software
Created attachment 296269 [details] Ebuild for ISKU software
Created attachment 296271 [details] Ebuild for Kone mouse software
Created attachment 296273 [details] Ebuild for Kone[+] mouse software
Created attachment 296275 [details] Ebuild for Kowa[+] software
Created attachment 296277 [details] Ebuild for Pyra software
Created attachment 296283 [details] Fix the Description
Created attachment 296285 [details] ISKU: Fix the description
Created attachment 296287 [details] Kone: fix the description
Created attachment 296289 [details] Kova[+]: Fixed the description
Created attachment 296291 [details] Pyra: Fixed the description
I put the roccat ebuild into sys-libs/roccat, and the other ebuilds into sys-apps/${PN}. I am not sure if it is the right location. I also renamed the udev rules files because some devices need to unplug and replug the device in order to get the correct permissions on the files. See https://sourceforge.net/projects/roccat/forums/forum/989581/topic/4882420
Thanks for the ebuilds. I tried the koneplus for my new Kone[+] mouse. They work fine for me on amd64, using roccat-0.4.0 and koneplus-0.9.0.
Created attachment 313385 [details] ebuild for roccat-tools-0.12.2 A lot changed from december. All have been included into one package. The udev rules have been fixed. The devices you want to build roccatgui for are controlled by USE flags.
Created attachment 315981 [details] roccat-tools-0.12.2.ebuild with ROCCAT_DEVICES I didn't think about checking here before so I wrote my own ebuild. It uses a ROCCAT_DEVICES variable instead of standard USE. So it needs to add ROCCAT_DEVICES to USE_EXPAND ( add USE_EXPAND="${USE_EXPAND} ROCCAT_DEVICES" to /etc/make.conf ).
(In reply to comment #15) > Created attachment 313385 [details] > ebuild for roccat-tools-0.12.2 > > A lot changed from december. All have been included into one package. The > udev rules have been fixed. > > The devices you want to build roccatgui for are controlled by USE flags. Your ebuild works fine on my amd64 system. I think you should set virtual/libusb:0 and x11-libs/gtk+:2 in DEPEND. Why did you set RESTRICT="mirror"? I think the source could be mirrored. In my ebuild I used elog instead of einfo because the latter isn't logged by default.
(In reply to comment #17) > (In reply to comment #15) > > Created attachment 313385 [details] > > ebuild for roccat-tools-0.12.2 > > > > A lot changed from december. All have been included into one package. The > > udev rules have been fixed. > > > > The devices you want to build roccatgui for are controlled by USE flags. > > Your ebuild works fine on my amd64 system. > I think you should set virtual/libusb:0 and x11-libs/gtk+:2 in DEPEND. > Why did you set RESTRICT="mirror"? I think the source could be mirrored. > In my ebuild I used elog instead of einfo because the latter isn't logged by > default. Your ebuild work fine here too, and it is clever than mine. You are right for the depend. I added the restrict because it is not mirrored at that time, and that spare the bandwoitch of the server.
Created attachment 316611 [details] roccat-tools-0.12.2.ebuild with INPUT_DEVICES I didn't think that all Roccat devices are input devices, so I could use INPUT_DEVICES without requiring a new USE_EXPAND. This new ebuild uses INPUT_DEVICES and fix a QA about udev rules' path with a little patch (next attachment).
Created attachment 316613 [details, diff] roccat-tools-udev.patch
(In reply to comment #20) > Created attachment 316613 [details, diff] [details, diff] > roccat-tools-udev.patch I try your ebuild with the 0.13.0 version. It work fine, but this patch is not needed anymore.
Created attachment 325542 [details] roccat-tools-0.13.0.ebuild Version bump (adds Savu support).
I think you should bump the libusb dependency to virtual/libusb:1 http://sourceforge.net/p/roccat/news/2012/09/roccat-tools-0130/ As libusb 1.0 is around for some years now I ditched deprecated version 0.1, so please mind the updated dependencies
Created attachment 325672 [details] roccat-tools-0.13.0.ebuild Updated dependency to virtual/libusb:1 , thanks poncho!
Created attachment 332080 [details] roccat-tools-0.14.1.ebuild Version bump (adds support for Lua and Kone XTD).
Created attachment 332092 [details] roccat-tools-0.14.1.ebuild Fixes bug with udev versions not reading rules in /usr/lib/udev/rules.d like eudev-1_beta1 .
Why is it still not in main portage?.. What do we need to do for that? I also have roccat mouse and it's not very nice that I have to take ebuild from bugtracker...
Created attachment 355038 [details, diff] ebuild for roccat-tools-0.20.0 Updated version to latest 0.20.0 available from sourceforge, and changed sourceforge URL (old one didn't work for me with new version).
Created attachment 355254 [details] alternative roccat-tools-0.20.0.ebuild this is the ebuild from my local overlay. the diff against the ebuild posted by Dmitry Pisklov: -inherit cmake-utils gnome2-utils udev +inherit cmake-utils gnome2-utils udev user DESCRIPTION="Utility for advanced configuration of Roccat devices" HOMEPAGE="http://roccat.sourceforge.net/" -#SRC_URI="mirror://sourceforge/roccat/${P}.tar.bz2" -SRC_URI="http://downloads.sourceforge.net/project/roccat/roccat-tools/${P}.tar.bz2" +SRC_URI="mirror://sourceforge/roccat/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE_INPUT_DEVICES=" input_devices_arvo input_devices_isku + input_devices_iskufx input_devices_kone input_devices_koneplus + input_devices_konepure input_devices_konextd input_devices_kovaplus input_devices_lua @@ -34,13 +35,18 @@ x11-libs/libnotify media-libs/libcanberra virtual/libusb:1 - <dev-libs/libunique-3 dev-libs/dbus-glib virtual/udev[gudev] " DEPEND="${RDEPEND}" +src_prepare() { + # only notification daemon, move it to autostart... + sed -i 's|share/applications|/etc/xdg/autostart|g' roccateventhandler/CMakeLists.txt || \ + die "sed failed" +} + src_configure() { local UDEVDIR="$(udev_get_udevdir)"/rules.d mycmakeargs=( -DDEVICES=${INPUT_DEVICES// /;} \
Created attachment 356114 [details, diff] updated ebuild for roccat-tools-0.20.0, EAPI=5 Fixed ebuild accroding to review comments from Michael Weber
The attachment looks a bit horrible. Could you attach a proper ebuild please?
(In reply to Markos Chandras from comment #31) > The attachment looks a bit horrible. Could you attach a proper ebuild please? It's actually a tarball, I'm not sure how to mark it as a tarball though. It's not just ebuild, it also needs README.gentoo file in files/ folder, that's why I packaged it as a tarball.
Created attachment 356246 [details] better tarball for updated ebuild for roccat-tools-0.20.0, EAPI=5
(In reply to Dmitry Pisklov from comment #33) > Created attachment 356246 [details] > better tarball for updated ebuild for roccat-tools-0.20.0, EAPI=5 Thanks much better now.
Bugzilla really feels like something from late 90's :) So really hard to get stuff right. I wonder why gentoo doesn't use Jira? It is free for opensource projects...
What would the proper category for the ebuild be? sys-apps?
yeah sys-apps should be good
repoman full returns the following problems IUSE.invalid 11 sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_arvo sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_isku sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_iskufx sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_kone sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_koneplus sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_konepure sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_konextd sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_kovaplus sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_lua sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_pyra sys-apps/roccat-tools/roccat-tools-0.20.0.ebuild: input_devices_savu
I presume because these definitions are missing from the profiles/desc/input_devices.desc Could you please provide a patch for that file as well?
Apparently, the latest attached ebuild doesn't work. Somehow, just adding readme.gentoo to inherit list stops ANY files from being installed, and install phase only installs readme file itself... Any ideas?..
(In reply to Dmitry Pisklov from comment #40) > Apparently, the latest attached ebuild doesn't work. > Somehow, just adding readme.gentoo to inherit list stops ANY files from > being installed, and install phase only installs readme file itself... > > Any ideas?.. readme.gentoo eclass is the last one from the inherit line. Therefore the src_install function that will be called is from that eclass. So what you need to do is this src_install() { cmake-utils_src_install readme.gentoo_src_install } to make sure that the cmake-utils will do the actuall installation followed by the readme installation (of course if more installation phases are necessary from other eclasses, do it in a similar way)
yeah found similar examples in other ebuilds... Playing now, bear with me :)
Created attachment 356268 [details] tarball for updated roccat-tools-0.20.0 ebuild with dependencies Finally, fixed ebuild that actually installs binaries, together with readme. I renamed input devices to start from roccat, so that input_devices.desc looks pretty.
Created attachment 356270 [details, diff] input_devices.desc patch to include new input devices
thanks for your efforts. much appreciated. you might consider adding the following to the README.gentoo: from the INSTALL file in the roccat-tools-0.20.0 tarball: * Some devices (Arvo, Kone) need uinput for some features. To use it as normal user you can either create an extra group like uinput-users and add yourself to this group (as described above) or reuse group roccat. Create a file like /etc/udev/rules.d/90-uinput.rules containing the line KERNEL=="uinput", GROUP="uinput-users", MODE="0660" and replace the group name with your choice. in addition, you need to enable CONFIG_INPUT_UINPUT in your kernel
and this is the upstream bug report concerning the "/etc/xdg/autostart" sed line https://sourceforge.net/p/roccat/patches/2/
Created attachment 356288 [details] README.gentoo with upstream message added Added upstream message
Committed. Thanks +# ChangeLog for sys-apps/roccat-tools +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*roccat-tools-0.20.0 (08 Sep 2013) + + 08 Sep 2013; Markos Chandras <hwoarang@gentoo.org> +files/README.gentoo, + +metadata.xml, +roccat-tools-0.20.0.ebuild: + Initial commit. Ebuild by Dmitry Pisklov <dpisklov@gmail.com>. He will also be + the maintainer of the package. Bug #395171
Great thanks Markos!
There are some updates up to the recent 1.1.0 version, could you update the ebuild please? thanks
(In reply to Andi H. from comment #50) > There are some updates up to the recent 1.1.0 version, could you update the > ebuild please? thanks I've just posted a version bump request with patch here: https://bugs.gentoo.org/show_bug.cgi?id=492810