From dbc7ddc809ad2d43dbacb9ba96624fe1b1713b4e Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Sun, 27 May 2018 23:03:19 -0500 Subject: [PATCH] urjtag from portage --- dev-embedded/urjtag/urjtag-0.10-r1.ebuild | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 dev-embedded/urjtag/urjtag-0.10-r1.ebuild diff --git a/dev-embedded/urjtag/urjtag-0.10-r1.ebuild b/dev-embedded/urjtag/urjtag-0.10-r1.ebuild new file mode 100644 index 0000000..bd2122f --- /dev/null +++ b/dev-embedded/urjtag/urjtag-0.10-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# TODO: figure out htf to make python.eclass work + +EAPI="5" + +inherit eutils multilib +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://git.code.sf.net/p/urjtag/git" + inherit git-r3 autotools + S=${WORKDIR}/${P}/${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" +HOMEPAGE="http://urjtag.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="ftdi readline usb" + +DEPEND="ftdi? ( dev-embedded/libftdi:0 ) + readline? ( sys-libs/readline:= ) + usb? ( virtual/libusb:0 )" +RDEPEND="${DEPEND} + !dev-embedded/jtag" + +src_prepare() { + if [[ ${PV} == "9999" ]] ; then + mkdir -p m4 + eautopoint + eautoreconf + fi +} + +src_configure() { + use readline || export vl_cv_lib_readline=no + + econf \ + --disable-werror \ + --disable-python \ + $(use_with ftdi libftdi) \ + $(use_with usb libusb) +} + +src_install() { + default + prune_libtool_files +}