gentoo-overlay/dev-embedded/urjtag/urjtag-2017.10-r1.ebuild

56 lines
1.1 KiB
Bash
Raw Normal View History

2018-05-27 23:03:19 -05:00
# 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
2023-09-03 05:00:28 -05:00
EAPI="8"
2018-05-27 23:03:19 -05:00
2023-09-03 05:00:28 -05:00
inherit multilib
2018-05-27 23:03:19 -05:00
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.code.sf.net/p/urjtag/git"
inherit git-r3 autotools
S=${WORKDIR}/${P}/${PN}
else
2018-05-27 23:53:19 -05:00
SRC_URI="mirror://sourceforge/urjtag/${P}.tar.xz"
2018-05-27 23:03:19 -05:00
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"
2018-05-27 23:53:19 -05:00
IUSE="ftd2xx ftdi readline usb"
2018-05-27 23:03:19 -05:00
2018-05-27 23:53:19 -05:00
DEPEND="ftdi? ( dev-embedded/libftdi )
ftd2xx? ( dev-embedded/libftd2xx )
2018-05-27 23:03:19 -05:00
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
2022-07-23 21:31:57 -05:00
default
2018-05-27 23:03:19 -05:00
}
src_configure() {
use readline || export vl_cv_lib_readline=no
econf \
--disable-werror \
--disable-python \
2018-05-27 23:53:19 -05:00
$(use_with ftd2xx ftd2xx) \
2018-05-27 23:03:19 -05:00
$(use_with ftdi libftdi) \
$(use_with usb libusb)
}
src_install() {
default
prune_libtool_files
}