/[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.1 - (show annotations) (download)
Mon Mar 12 03:17:35 2012 UTC (7 years, 11 months ago) by vapier
Branch: MAIN
Add a live git ebuild.

(Portage version: 2.2.0_alpha90/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-0.10.ebuild,v 1.2 2011/12/10 18:41:38 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="ftdi readline static-libs usb"
26
27 DEPEND="ftdi? ( dev-embedded/libftdi )
28 readline? ( sys-libs/readline )
29 usb? ( virtual/libusb:1 )"
30 RDEPEND="${DEPEND}
31 !dev-embedded/jtag"
32
33 src_prepare() {
34 if [[ ${PV} == "9999" ]] ; then
35 mkdir -p m4
36 eautopoint
37 eautoreconf
38 fi
39 }
40
41 src_configure() {
42 econf \
43 --disable-werror \
44 --disable-python \
45 $(use_with readline) \
46 $(use_with ftdi libftdi) \
47 $(use_enable static-libs static) \
48 $(use_with usb libusb 1.0)
49 }
50
51 src_install() {
52 default
53 use static-libs || find "${ED}" -name '*.la' -delete
54 }

  ViewVC Help
Powered by ViewVC 1.1.20