abstrakraft / cwiid

Linux Nintendo Wiimote interface
cwiid.org
GNU General Public License v2.0
287 stars 100 forks source link

Gentoo ebuilds - checking for required kernel modules #1

Open Miwer opened 15 years ago

Miwer commented 15 years ago

Hi,

I've made a patch for the Gentoo ebuild in the layman overlay, that will check if the relevent kernel modules are enabled.

(I wonder how I can attach the patch to this issue?!)

Miwer commented 15 years ago

Oh well, I'll try to paste it here, then....

--- cwiid-0.6.00.ebuild.orig    2009-10-27 23:01:50.000000000 +0100
+++ cwiid-0.6.00.ebuild 2009-10-27 23:01:07.000000000 +0100
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $

-inherit eutils
+inherit eutils linux-mod

 DESCRIPTION="Library, input driver, and utilities for the Nintendo Wiimote"
 HOMEPAGE="http://abstrakraft.org/cwiid"
@@ -21,6 +21,11 @@
        net-wireless/bluez-libs
        python? ( >=dev-lang/python-2.4 )"

+pkg_setup() {
+       CONFIG_CHECK="BT_L2CAP INPUT_UINPUT"
+       linux-mod_pkg_setup
+}
+
 src_compile() {
        econf $(use_with python) --disable-ldconfig || die "died running econf"
        emake || die "died running emake"
cloc3 commented 13 years ago

your ebuild is similar with my previous, in issue 7: https://github.com/abstrakraft/cwiid/issues#issue/7

even if mine ebuild works for git cwiid version (-9999). may be useful to join our work to put both ebuilds in some public overlay.

infact, the previous version of cwiid-0.6.00, from here and from here: http://gpo.zugaina.org/app-misc/cwiid/Bugs

was deprecated.

I'm just a gentoo user, not a programmer. if you want to mantain this ebuild do it.

otherway help me to publish somewhere my wiidea overlay: http://bugs.gentoo.org/show_bug.cgi?id=334809

I proposed myself as a proxy-mantainer for this overlay, but I had no answer. the overlay contains a version of experimental cwiid ebuild.