summaryrefslogtreecommitdiff
blob: 145b3eb43ba9358390d1a83686070033658f19f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit linux-info

if [[ ${PV} == "9999" ]] ; then
	EGIT_REPO_URI="git://github.com/rfc2822/GfxTablet.git"
	inherit git-2
	SRC_URI=""
else
	SRC_URI="https://github.com/rfc2822/GfxTablet/archive/android-app-${PV}.tar.gz"
	KEYWORDS="~amd64 ~x86"
	S=${WORKDIR}/"GfxTablet-android-app-${PV}"
fi

DESCRIPTION="GfxTablet shall make it possible to use your Android device (especially tablets) like a graphics tablet."
HOMEPAGE="http://rfc2822.github.io/GfxTablet"

EGIT_REPO_URI="git://github.com/rfc2822/GfxTablet.git"

LICENSE="MIT"
SLOT="0"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"


CONFIG_CHECK="~INPUT_UINPUT"

src_compile() {
	cd driver-uinput && emake || die "emake failed"
}

src_install() {
	dobin driver-uinput/networktablet
}

pkg_postinst() {
    einfo "You need to run networktablet as root or"
    einfo "change the the permissions of /dev/uinput."
}