blob: f4fe1543c3d9454a852264584e1828b931ee27ef [file] [log] [blame]
Ilja H. Friedele4cb8172015-03-10 20:40:56 -07001# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-python/python-uinput/python-uinput-0.10.2.ebuild,v 1.1 2014/07/28 07:05:21 jlec Exp $
4
5EAPI=5
6
7PYTHON_COMPAT=(python{2_7,3_4})
8
9inherit distutils-r1
10
11DESCRIPTION="Pythonic API to the Linux uinput kernel module"
12HOMEPAGE="http://tjjr.fi/sw/python-uinput/"
13SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
14
15LICENSE="GPL-3"
16SLOT="0"
17KEYWORDS="*"
18IUSE=""
19
20DEPEND="virtual/udev"
21RDEPEND="${DEPEND}"
Daniel Wang22734462017-03-13 15:57:42 -070022PATCHES=(
Daniel Wang22734462017-03-13 15:57:42 -070023 "${FILESDIR}/0002-Check-for-input-event-codes-h-at-build.patch"
24)
Ilja H. Friedele4cb8172015-03-10 20:40:56 -070025
26python_prepare_all() {
27 rm libsuinput/src/libudev.h || die
Nicolas Boichat8b3c51b2017-04-25 09:43:58 +080028 cp "${FILESDIR}/"*.py src/ || die
Ilja H. Friedele4cb8172015-03-10 20:40:56 -070029 distutils-r1_python_prepare_all
30}