diff options
Diffstat (limited to 'dev-embedded/urjtag/urjtag-2019.12.ebuild')
-rw-r--r-- | dev-embedded/urjtag/urjtag-2019.12.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-embedded/urjtag/urjtag-2019.12.ebuild b/dev-embedded/urjtag/urjtag-2019.12.ebuild new file mode 100644 index 000000000000..2156d991a75d --- /dev/null +++ b/dev-embedded/urjtag/urjtag-2019.12.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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.xz" + 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" +# TODO: Figure out if anyone wants the Python bindings +IUSE="ftdi ftd2xx readline usb" + +DEPEND="ftdi? ( dev-embedded/libftdi:1= ) + ftd2xx? ( dev-embedded/libftd2xx ) + readline? ( sys-libs/readline:= ) + usb? ( virtual/libusb:1 )" +RDEPEND="${DEPEND} + !dev-embedded/jtag" + +src_prepare() { + default + + if [[ ${PV} == "9999" ]] ; then + mkdir -p m4 || die + eautopoint + eautoreconf + fi +} + +src_configure() { + econf \ + --disable-werror \ + --disable-python \ + --disable-static \ + $(use_with readline) \ + $(use_with ftdi libftdi) \ + $(use_with ftd2xx) \ + $(use_with usb libusb 1.0) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |