Gentoo ebuild + fix input-create.

This commit is contained in:
Merlijn Wajer 2013-05-23 23:44:42 +02:00
parent ba0187e661
commit 784fc3e5ce
2 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,42 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
PYTHON_DEPEND="2:2.5"
inherit eutils git-2 python
DESCRIPTION="uinput-mapper, create and modify input devices"
HOMEPAGE="http://hetgrotebos.org/wiki/uinput-mapper"
SRC_URI=""
EGIT_REPO_URI="git://github.com/MerlijnWajer/uinput-mapper"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
src_unpack() {
git-2_src_unpack
}
src_compile() {
emake
}
src_install() {
insinto "$(python_get_sitedir)"/uinputmapper
doins uinputmapper/*.py
exeinto /usr/bin
doexe input-read
doexe input-create
}

View File

@ -3,8 +3,8 @@ import ctypes, fcntl, os, sys
import uinputmapper
import uinputmapper.linux_uinput
from uinputmappercinput import *
from uinputmappermapper import KeyMapper, parse_conf, pretty_conf_print, \
from uinputmapper.cinput import *
from uinputmapper.mapper import KeyMapper, parse_conf, pretty_conf_print, \
get_exported_device_count
from uinputmapper.linux_input import timeval, input_event