New embedded tools

This commit is contained in:
layman
2020-02-13 21:55:56 +01:00
parent 486f6c6eaf
commit 4f9689ee8c
4 changed files with 76 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
EBUILD xc3sprog-9999.ebuild 906 BLAKE2B 9724e44d038605e3db97343299c70195cf8becd1a44d804bbc5a6ffffa2869935797bb22a27c1786b5b62048debeabd40fa7c514b9721cf9179a8432e4bd338e SHA512 e8c218fba5bcdea224cced84b883b07ec4588e057045f84bd3c72400996a15ac2b6a5ec436e35af1fb34ff14db4e117fd3dc57b61a767ffeafdf9e9bcf6ffd7a
@@ -0,0 +1,39 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
ESVN_REPO_URI="svn://svn.code.sf.net/p/xc3sprog/code/trunk"
inherit subversion cmake-utils
DESCRIPTION="A suite of utilities for programming Xilinx FPGAs, CPLDs, and EEPROMs"
HOMEPAGE="http://xc3sprog.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="-ftd2xx"
DEPEND="!ftd2xx? ( dev-embedded/libftdi )
ftd2xx? ( dev-embedded/libftd2xx )
virtual/libusb:0"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e '/if(EXISTS/a set(VERSION_STRING "Gentoo")' \
-e '/if(EXISTS/,/endif(EXISTS/d' CMakeLists.txt || die
sed -i -e 's#usr/lib#opt/lib64#' FindlibFTD2XX.cmake || die
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_use ftd2xx)
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
insinto /usr/share/${PF}/
doins -r bscan_spi
}