29 lines
758 B
Bash
29 lines
758 B
Bash
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-uinput/python-uinput-0.9.ebuild,v 1.1 2013/03/18 17:43:50 chutzpah Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
PYTHON_COMPAT=(python{2_{6,7},3_{1,2,3}})
|
||
|
inherit eutils distutils-r1
|
||
|
|
||
|
DESCRIPTION="Pythonic API to the Linux uinput kernel module. "
|
||
|
HOMEPAGE="http://tjjr.fi/sw/python-uinput/"
|
||
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND=""
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
src_install() {
|
||
|
fix_missing_newlines() {
|
||
|
sed -r -i 's/\)([A-Z]+)/\)\n\1/g' "${BUILD_DIR}"/lib/uinput/ev.py || die "sed failed"
|
||
|
}
|
||
|
python_foreach_impl fix_missing_newlines
|
||
|
distutils-r1_src_install
|
||
|
}
|