summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-12 03:17:35 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-12 03:17:35 +0000
commit60452d6e49bbe291612b370377cbeba243d327d4 (patch)
tree808b1b9fc5dfcfef2e70a95ed3c05ec5e3195afd /dev-embedded/urjtag
parentVersion bump per bug# 400743, as earlier versions needed python2. (diff)
downloadgentoo-2-60452d6e49bbe291612b370377cbeba243d327d4.tar.gz
gentoo-2-60452d6e49bbe291612b370377cbeba243d327d4.tar.bz2
gentoo-2-60452d6e49bbe291612b370377cbeba243d327d4.zip
Add a live git ebuild.
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded/urjtag')
-rw-r--r--dev-embedded/urjtag/ChangeLog9
-rw-r--r--dev-embedded/urjtag/urjtag-9999.ebuild54
2 files changed, 61 insertions, 2 deletions
diff --git a/dev-embedded/urjtag/ChangeLog b/dev-embedded/urjtag/ChangeLog
index 3ec879a4c3d1..6fd80986cc96 100644
--- a/dev-embedded/urjtag/ChangeLog
+++ b/dev-embedded/urjtag/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-embedded/urjtag
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/urjtag/ChangeLog,v 1.12 2011/12/10 18:41:38 vapier Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/urjtag/ChangeLog,v 1.13 2012/03/12 03:17:35 vapier Exp $
+
+*urjtag-9999 (12 Mar 2012)
+
+ 12 Mar 2012; Mike Frysinger <vapier@gentoo.org> +urjtag-9999.ebuild:
+ Add a live git ebuild.
10 Dec 2011; Mike Frysinger <vapier@gentoo.org> urjtag-0.10.ebuild:
Stabilize for all #393949 by Paweł Hajdan.
diff --git a/dev-embedded/urjtag/urjtag-9999.ebuild b/dev-embedded/urjtag/urjtag-9999.ebuild
new file mode 100644
index 000000000000..195c14f49008
--- /dev/null
+++ b/dev-embedded/urjtag/urjtag-9999.ebuild
@@ -0,0 +1,54 @@
+# 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
+}