You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/urjtag/urjtag-9999.ebuild,v 1.1 2012/03/12 03:17:35 vapier Exp $
|
||
|
|
||
|
# TODO: figure out htf to make python.eclass work
|
||
|
|
||
|
EAPI="4"
|
||
|
|
||
|
inherit eutils
|
||
|
if [[ ${PV} == "9999" ]] ; then
|
||
|
EGIT_REPO_URI="git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag"
|
||
|
EGIT_SOURCEDIR=${WORKDIR}
|
||
|
inherit git-2 autotools
|
||
|
S=${WORKDIR}/${PN}
|
||
|
else
|
||
|
SRC_URI="mirror://sourceforge/urjtag/${P}.tar.bz2"
|
||
|
KEYWORDS="amd64 ppc sparc x86"
|
||
|
fi
|
||
|
|
||
|
DESCRIPTION="tool for communicating over JTAG with flash chips, CPUs, and many more (fork of openwince jtag)"
|
||
|
HOMEPAGE="http://urjtag.sourceforge.net/"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
IUSE="ftdi readline static-libs usb"
|
||
|
|
||
|
DEPEND="ftdi? ( dev-embedded/libftdi )
|
||
|
readline? ( sys-libs/readline )
|
||
|
usb? ( virtual/libusb:1 )"
|
||
|
RDEPEND="${DEPEND}
|
||
|
!dev-embedded/jtag"
|
||
|
|
||
|
src_prepare() {
|
||
|
if [[ ${PV} == "9999" ]] ; then
|
||
|
mkdir -p m4
|
||
|
eautopoint
|
||
|
eautoreconf
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-werror \
|
||
|
--disable-python \
|
||
|
$(use_with readline) \
|
||
|
$(use_with ftdi libftdi) \
|
||
|
$(use_enable static-libs static) \
|
||
|
$(use_with usb libusb 1.0)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
use static-libs || find "${ED}" -name '*.la' -delete
|
||
|
}
|