summaryrefslogtreecommitdiff
blob: edc3596cbc40b76611d0adf977637daf499c8a82 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit git-2 eutils

DESCRIPTION="xvcd - The Xilinx Virtual Cable Daemon"
HOMEPAGE="https://github.com/tmbinc/xvcd"
EGIT_REPO_URI="git://github.com/tmbinc/xvcd.git"
if use ftdi; then
	EGIT_BRANCH="ftdi"
fi

LICENSE=""
SLOT="0"
KEYWORDS=""
IUSE="ftdi"

DEPEND="ftdi? ( dev-embedded/libftdi )"
RDEPEND="${DEPEND}"

src_prepare() {
	if use ftdi; then
		epatch "${FILESDIR}/xvcd-remove-ftdi-async-mode.patch"
	fi
}


src_compile() {
	cd "src/"
	emake || die "emake failed"
}

src_install() {
	dobin src/${PN}
	dodoc README
}