/[gentoo-x86]/dev-embedded/urjtag/urjtag-9999.ebuild
Gentoo

Contents of /dev-embedded/urjtag/urjtag-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Mar 28 17:30:31 2012 UTC (7 years, 11 months ago) by vapier
Branch: MAIN
Changes since 1.1: +4 -2 lines
Add USE=ftd2xx support by William Robinet.

(Portage version: 2.2.0_alpha95/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/urjtag/urjtag-9999.ebuild,v 1.1 2012/03/12 03:17:35 vapier Exp $
4
5 # TODO: figure out htf to make python.eclass work
6
7 EAPI="4"
8
9 inherit eutils
10 if [[ ${PV} == "9999" ]] ; then
11 EGIT_REPO_URI="git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag"
12 EGIT_SOURCEDIR=${WORKDIR}
13 inherit git-2 autotools
14 S=${WORKDIR}/${PN}
15 else
16 SRC_URI="mirror://sourceforge/urjtag/${P}.tar.bz2"
17 KEYWORDS="amd64 ppc sparc x86"
18 fi
19
20 DESCRIPTION="tool for communicating over JTAG with flash chips, CPUs, and many more (fork of openwince jtag)"
21 HOMEPAGE="http://urjtag.sourceforge.net/"
22
23 LICENSE="GPL-2"
24 SLOT="0"
25 IUSE="ftd2xx ftdi readline static-libs usb"
26
27 DEPEND="ftdi? ( dev-embedded/libftdi )
28 ftd2xx? ( dev-embedded/libftd2xx )
29 readline? ( sys-libs/readline )
30 usb? ( virtual/libusb:1 )"
31 RDEPEND="${DEPEND}
32 !dev-embedded/jtag"
33
34 src_prepare() {
35 if [[ ${PV} == "9999" ]] ; then
36 mkdir -p m4
37 eautopoint
38 eautoreconf
39 fi
40 }
41
42 src_configure() {
43 econf \
44 --disable-werror \
45 --disable-python \
46 $(use_with readline) \
47 $(use_with ftdi libftdi) \
48 $(use_with ftd2xx) \
49 $(use_enable static-libs static) \
50 $(use_with usb libusb 1.0)
51 }
52
53 src_install() {
54 default
55 use static-libs || find "${ED}" -name '*.la' -delete
56 }

  ViewVC Help
Powered by ViewVC 1.1.20