summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@gentoo.org>2011-01-07 14:44:44 +0000
committerFabio Erculiani <lxnay@gentoo.org>2011-01-07 14:44:44 +0000
commitd031c00896429205549fe5e159861c0181b1fb71 (patch)
tree600915318e24d6281c0b2a6ee0cd92959906b493 /app-misc/cwiid
parentMarking ipython-0.10.1 ppc for bug 345495 (diff)
downloadgentoo-2-d031c00896429205549fe5e159861c0181b1fb71.tar.gz
gentoo-2-d031c00896429205549fe5e159861c0181b1fb71.tar.bz2
gentoo-2-d031c00896429205549fe5e159861c0181b1fb71.zip
new ebuild, see bug #347630 thanks to Marco Clocchiatti
(Portage version: 2.1.9.28/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/cwiid')
-rw-r--r--app-misc/cwiid/ChangeLog10
-rw-r--r--app-misc/cwiid/cwiid-20110107.ebuild66
-rw-r--r--app-misc/cwiid/metadata.xml13
3 files changed, 89 insertions, 0 deletions
diff --git a/app-misc/cwiid/ChangeLog b/app-misc/cwiid/ChangeLog
new file mode 100644
index 000000000000..8bf795342787
--- /dev/null
+++ b/app-misc/cwiid/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for x11-drivers/cwiid
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/cwiid/ChangeLog,v 1.1 2011/01/07 14:44:44 lxnay Exp $
+
+*cwiid-20110107 (07 Jan 2011)
+
+ 07 Jan 2011; Fabio Erculiani <lxnay@gentoo.org> +cwiid-20110107.ebuild,
+ +metadata.xml:
+ new ebuild, see bug #347630 thanks to Marco Clocchiatti
+
diff --git a/app-misc/cwiid/cwiid-20110107.ebuild b/app-misc/cwiid/cwiid-20110107.ebuild
new file mode 100644
index 000000000000..0509ea8d118d
--- /dev/null
+++ b/app-misc/cwiid/cwiid-20110107.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/cwiid/cwiid-20110107.ebuild,v 1.1 2011/01/07 14:44:44 lxnay Exp $
+
+EAPI="3"
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://github.com/abstrakraft/cwiid.git"
+ SRC_URI=""
+ KEYWORDS=""
+ inherit git
+else
+ # git archive --prefix=cwiid-$(date +%Y%m%d)/ \
+ # --format=tar HEAD | bzip2 > cwiid-$(date +%Y%m%d).tar.bz2
+ SRC_URI="http://dev.gentoo.org/~lxnay/cwiid/cwiid-${PV}.tar.bz2"
+ KEYWORDS="~x86 ~amd64"
+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 bluetooth"
+
+DEPEND="sys-apps/gawk
+ sys-apps/sed
+ sys-devel/bison
+ >=sys-devel/flex-2.5.35"
+
+RDEPEND="bluetooth? ( net-wireless/bluez )
+ python? ( >=dev-lang/python-2.4 )
+ x11-libs/gtk+:2"
+
+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() {
+ # Fix broken build system
+ sed -i "s:--disable-ldconfig:--without-ldconfig:g" "${S}"/configure.ac || die
+ sed -i "s:enable_ldconfig:with_ldconfig:g" "${S}"/configure.ac || die
+ eautoreconf
+}
+src_configure() {
+ econf $(use_with python) --without-ldconfig || die "configure failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/app-misc/cwiid/metadata.xml b/app-misc/cwiid/metadata.xml
new file mode 100644
index 000000000000..9b930e61522f
--- /dev/null
+++ b/app-misc/cwiid/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>lxnay@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>ziapannocchia@gmail.com</email>
+ <name>Marco Clocchiatti</name>
+ <description>Proxied co-maintainer</description>
+ </maintainer>
+</pkgmetadata>