abstrakraft / cwiid

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

gentoo ebuild: bluez-libs dependency should be updated #7

Open cloc3 opened 14 years ago

cloc3 commented 14 years ago

app-misc/cwiid-0.6.00 ebuild needs net-wireless/bluez-libs and net-wireless/bluez-utils packages, which are hard-masked.

dependencies should be updated to net-wireless/bluez package.

this is a proposed ebuild, working for both cwiid-9999.ebuild (fetching sources from git) and cwiid-0.6.00.ebuild (working with USE="old-bluez-libs"). both tested for an x86 envinroment.

s939 cwiid # cat cwiid-9999.ebuild 
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

if [[ ${PV} == "9999" ]]; then
    EGIT_REPO_URI="git://github.com/abstrakraft/cwiid.git"
    SRC_URI=""
    KEYWORDS=""
    inherit git
else
    SRC_URI="http://abstrakraft.org/cwiid/downloads/${P}.tgz"
    KEYWORDS="~x86"
fi

inherit eutils linux-mod autotools

DESCRIPTION="Library, input driver, and utilities for the Nintendo Wiimote"
HOMEPAGE="http://abstrakraft.org/cwiid"

LICENSE="GPL-2"
SLOT="0"
IUSE="python -old-bluez-libs"

DEPEND="sys-devel/bison
    >=sys-devel/flex-2.5.35
    sys-apps/gawk"

RDEPEND="=x11-libs/gtk+-2*
    >=sys-kernel/linux-headers-2.6
    old-bluez-libs? (
        net-wireless/bluez-libs
        net-wireless/bluez-utils
        )
    !old-bluez-libs? ( net-wireless/bluez )
    python? ( >=dev-lang/python-2.4 )"

pkg_setup() {
    CONFIG_CHECK="BT_L2CAP INPUT_UINPUT"
    linux-mod_pkg_setup
}

src_unpack() {
    if [[ ${PV} == "9999" ]]; then
        git_src_unpack
    else
        unpack ${A}
    fi
}

src_prepare() {
    eautoreconf
}

src_configure() {
    econf $(use_with python) --disable-ldconfig || die "died running econf"
}

src_compile() {
    emake || die "died running emake"
}

src_install() {
    make DESTDIR="${D}" install || die "make install failed"
}
s939 cwiid # cat metadata.xml 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd></herd>
<longdescription lang="en">
</longdescription>
<use>
    <flag name="old-bluez-libs">Flag to build against hard masked bluez-libs.
        Needed for cwiid-0.6.00
    </flag>
</use>
</pkgmetadata>
cloc3 commented 13 years ago

up.

I'm working around a cwiid gentoo ebuild: https://bugs.gentoo.org/show_bug.cgi?id=347630

but I need some answer around a stable version of cwiid. cwiid-0.6.00 seems completly obsolete and does not work anymore in gentoo.