Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395171 - New ebuild for sys-apps/roccat-tools
Summary: New ebuild for sys-apps/roccat-tools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 2 votes (vote)
Assignee: Dmitry Pisklov
URL:
Whiteboard:
Keywords: EBUILD, REVIEWED
Depends on:
Blocks:
 
Reported: 2011-12-18 16:52 UTC by Dominique Michel
Modified: 2013-11-28 18:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for libroccat and shared files (roccat-0.9.0.ebuild,504 bytes, text/plain)
2011-12-18 16:53 UTC, Dominique Michel
Details
Ebuild for Arvo keyboard software (arvo-0.5.0.ebuild,783 bytes, text/plain)
2011-12-18 16:55 UTC, Dominique Michel
Details
Ebuild for ISKU software (isku-0.1.0.ebuild,783 bytes, text/plain)
2011-12-18 16:57 UTC, Dominique Michel
Details
Ebuild for Kone mouse software (kone-0.11.0.ebuild,783 bytes, text/plain)
2011-12-18 16:58 UTC, Dominique Michel
Details
Ebuild for Kone[+] mouse software (koneplus-0.4.0.ebuild,783 bytes, text/plain)
2011-12-18 16:59 UTC, Dominique Michel
Details
Ebuild for Kowa[+] software (kovaplus-0.4.0.ebuild,783 bytes, text/plain)
2011-12-18 17:00 UTC, Dominique Michel
Details
Ebuild for Pyra software (pyra-0.7.0.ebuild,955 bytes, text/plain)
2011-12-18 17:01 UTC, Dominique Michel
Details
Fix the Description (arvo-0.5.0.ebuild,783 bytes, text/plain)
2011-12-18 17:12 UTC, Dominique Michel
Details
ISKU: Fix the description (isku-0.1.0.ebuild,783 bytes, text/plain)
2011-12-18 17:14 UTC, Dominique Michel
Details
Kone: fix the description (kone-0.11.0.ebuild,780 bytes, text/plain)
2011-12-18 17:16 UTC, Dominique Michel
Details
Kova[+]: Fixed the description (kovaplus-0.4.0.ebuild,786 bytes, text/plain)
2011-12-18 17:20 UTC, Dominique Michel
Details
Pyra: Fixed the description (pyra-0.7.0.ebuild,955 bytes, text/plain)
2011-12-18 17:22 UTC, Dominique Michel
Details
ebuild for roccat-tools-0.12.2 (roccat-tools-0.12.2.ebuild,1.30 KB, text/plain)
2012-05-28 13:52 UTC, Dominique Michel
Details
roccat-tools-0.12.2.ebuild with ROCCAT_DEVICES (roccat-tools-0.12.2.ebuild,1.06 KB, text/plain)
2012-06-22 15:13 UTC, Simone Scanzoni
Details
roccat-tools-0.12.2.ebuild with INPUT_DEVICES (roccat-tools-0.12.2.ebuild,1.09 KB, text/plain)
2012-06-29 14:35 UTC, Simone Scanzoni
Details
roccat-tools-udev.patch (roccat-tools-udev.patch,444 bytes, patch)
2012-06-29 14:36 UTC, Simone Scanzoni
Details | Diff
roccat-tools-0.13.0.ebuild (roccat-tools-0.13.0.ebuild,1.07 KB, text/plain)
2012-10-02 15:14 UTC, Simone Scanzoni
Details
roccat-tools-0.13.0.ebuild (roccat-tools-0.13.0.ebuild,1.07 KB, text/plain)
2012-10-04 18:10 UTC, Simone Scanzoni
Details
roccat-tools-0.14.1.ebuild (roccat-tools-0.14.1.ebuild,1.18 KB, text/plain)
2012-12-11 22:14 UTC, Simone Scanzoni
Details
roccat-tools-0.14.1.ebuild (roccat-tools-0.14.1.ebuild,1.26 KB, text/plain)
2012-12-12 00:33 UTC, Simone Scanzoni
Details
ebuild for roccat-tools-0.20.0 (roccat-tools-0.20.0.ebuild,1.34 KB, patch)
2013-08-03 17:11 UTC, Dmitry Pisklov
Details | Diff
alternative roccat-tools-0.20.0.ebuild (roccat-tools-0.20.0.ebuild,1.47 KB, text/plain)
2013-08-06 17:03 UTC, poncho
Details
updated ebuild for roccat-tools-0.20.0, EAPI=5 (roccat-tools.tar,10.00 KB, patch)
2013-08-15 19:37 UTC, Dmitry Pisklov
Details | Diff
better tarball for updated ebuild for roccat-tools-0.20.0, EAPI=5 (roccat-tools.tar,10.00 KB, application/octet-stream)
2013-08-16 20:27 UTC, Dmitry Pisklov
Details
tarball for updated roccat-tools-0.20.0 ebuild with dependencies (roccat-tools.tar,10.00 KB, application/octet-stream)
2013-08-17 09:49 UTC, Dmitry Pisklov
Details
input_devices.desc patch to include new input devices (input_devices.patch,1.65 KB, patch)
2013-08-17 09:50 UTC, Dmitry Pisklov
Details | Diff
README.gentoo with upstream message added (README.gentoo,738 bytes, text/plain)
2013-08-17 11:17 UTC, Dmitry Pisklov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2011-12-18 16:52:44 UTC
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.
Comment 1 Dominique Michel 2011-12-18 16:53:47 UTC
Created attachment 296265 [details]
ebuild for libroccat and shared files
Comment 2 Dominique Michel 2011-12-18 16:55:14 UTC
Created attachment 296267 [details]
Ebuild for Arvo keyboard software
Comment 3 Dominique Michel 2011-12-18 16:57:14 UTC
Created attachment 296269 [details]
Ebuild for ISKU software
Comment 4 Dominique Michel 2011-12-18 16:58:28 UTC
Created attachment 296271 [details]
Ebuild for Kone mouse software
Comment 5 Dominique Michel 2011-12-18 16:59:33 UTC
Created attachment 296273 [details]
Ebuild for Kone[+] mouse software
Comment 6 Dominique Michel 2011-12-18 17:00:32 UTC
Created attachment 296275 [details]
Ebuild for Kowa[+] software
Comment 7 Dominique Michel 2011-12-18 17:01:48 UTC
Created attachment 296277 [details]
Ebuild for Pyra software
Comment 8 Dominique Michel 2011-12-18 17:12:17 UTC
Created attachment 296283 [details]
Fix the Description
Comment 9 Dominique Michel 2011-12-18 17:14:54 UTC
Created attachment 296285 [details]
ISKU: Fix the description
Comment 10 Dominique Michel 2011-12-18 17:16:30 UTC
Created attachment 296287 [details]
Kone: fix the description
Comment 11 Dominique Michel 2011-12-18 17:20:23 UTC
Created attachment 296289 [details]
Kova[+]: Fixed the description
Comment 12 Dominique Michel 2011-12-18 17:22:36 UTC
Created attachment 296291 [details]
Pyra: Fixed the description
Comment 13 Dominique Michel 2011-12-18 17:30:02 UTC
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
Comment 14 Christoph Koke 2012-01-06 14:09:48 UTC
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.
Comment 15 Dominique Michel 2012-05-28 13:52:30 UTC
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.
Comment 16 Simone Scanzoni 2012-06-22 15:13:45 UTC
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 ).
Comment 17 Simone Scanzoni 2012-06-22 15:27:28 UTC
(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.
Comment 18 Dominique Michel 2012-06-23 05:27:28 UTC
(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.
Comment 19 Simone Scanzoni 2012-06-29 14:35:36 UTC
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).
Comment 20 Simone Scanzoni 2012-06-29 14:36:04 UTC
Created attachment 316613 [details, diff]
roccat-tools-udev.patch
Comment 21 Dominique Michel 2012-09-30 21:30:43 UTC
(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.
Comment 22 Simone Scanzoni 2012-10-02 15:14:49 UTC
Created attachment 325542 [details]
roccat-tools-0.13.0.ebuild

Version bump (adds Savu support).
Comment 23 poncho 2012-10-03 18:37:29 UTC
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
Comment 24 Simone Scanzoni 2012-10-04 18:10:12 UTC
Created attachment 325672 [details]
roccat-tools-0.13.0.ebuild

Updated dependency to virtual/libusb:1 , thanks poncho!
Comment 25 Simone Scanzoni 2012-12-11 22:14:20 UTC
Created attachment 332080 [details]
roccat-tools-0.14.1.ebuild

Version bump (adds support for Lua and Kone XTD).
Comment 26 Simone Scanzoni 2012-12-12 00:33:36 UTC
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 .
Comment 27 Dmitry Pisklov 2013-07-30 21:33:13 UTC
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...
Comment 28 Dmitry Pisklov 2013-08-03 17:11:20 UTC
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).
Comment 29 poncho 2013-08-06 17:03:55 UTC
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// /;} \
Comment 30 Dmitry Pisklov 2013-08-15 19:37:25 UTC
Created attachment 356114 [details, diff]
updated ebuild for roccat-tools-0.20.0, EAPI=5

Fixed ebuild accroding to review comments from Michael Weber
Comment 31 Markos Chandras (RETIRED) gentoo-dev 2013-08-16 17:56:21 UTC
The attachment looks a bit horrible. Could you attach a proper ebuild please?
Comment 32 Dmitry Pisklov 2013-08-16 20:26:54 UTC
(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.
Comment 33 Dmitry Pisklov 2013-08-16 20:27:53 UTC
Created attachment 356246 [details]
better tarball for updated ebuild for roccat-tools-0.20.0, EAPI=5
Comment 34 Markos Chandras (RETIRED) gentoo-dev 2013-08-16 20:29:29 UTC
(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.
Comment 35 Dmitry Pisklov 2013-08-16 20:31:24 UTC
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...
Comment 36 Markos Chandras (RETIRED) gentoo-dev 2013-08-16 22:47:40 UTC
What would the proper category for the ebuild be? sys-apps?
Comment 37 Dmitry Pisklov 2013-08-16 22:50:33 UTC
yeah sys-apps should be good
Comment 38 Markos Chandras (RETIRED) gentoo-dev 2013-08-16 23:03:51 UTC
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
Comment 39 Markos Chandras (RETIRED) gentoo-dev 2013-08-16 23:10:28 UTC
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?
Comment 40 Dmitry Pisklov 2013-08-17 09:25:06 UTC
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?..
Comment 41 Markos Chandras (RETIRED) gentoo-dev 2013-08-17 09:31:08 UTC
(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)
Comment 42 Dmitry Pisklov 2013-08-17 09:34:36 UTC
yeah found similar examples in other ebuilds... Playing now, bear with me :)
Comment 43 Dmitry Pisklov 2013-08-17 09:49:30 UTC
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.
Comment 44 Dmitry Pisklov 2013-08-17 09:50:00 UTC
Created attachment 356270 [details, diff]
input_devices.desc patch to include new input devices
Comment 45 poncho 2013-08-17 10:29:24 UTC
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
Comment 46 poncho 2013-08-17 10:47:24 UTC
and this is the upstream bug report concerning the "/etc/xdg/autostart" sed line

https://sourceforge.net/p/roccat/patches/2/
Comment 47 Dmitry Pisklov 2013-08-17 11:17:13 UTC
Created attachment 356288 [details]
README.gentoo with upstream message added

Added upstream message
Comment 48 Markos Chandras (RETIRED) gentoo-dev 2013-09-08 16:26:21 UTC
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
Comment 49 Dmitry Pisklov 2013-09-08 17:06:39 UTC
Great thanks Markos!
Comment 50 Andi H. 2013-11-28 18:23:51 UTC
There are some updates up to the recent 1.1.0 version, could you update the ebuild please? thanks
Comment 51 poncho 2013-11-28 18:41:58 UTC
(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