summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-07-18 11:35:39 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-07-18 11:35:39 -0700
commite6f78bdd57bdd59267ebe12d9d11c311a1b79b78 (patch)
tree78d8b03fcea450282f1978ade9953392fb89d681 /sci-electronics/xc3sprog/xc3sprog-1.1.ebuild
parentCopy the wiringPi ebuild from the hacking-gentoo overlay (diff)
downloadpalmer-e6f78bdd57bdd59267ebe12d9d11c311a1b79b78.tar.gz
palmer-e6f78bdd57bdd59267ebe12d9d11c311a1b79b78.tar.bz2
palmer-e6f78bdd57bdd59267ebe12d9d11c311a1b79b78.zip
Add an xc3sprog ebuild
Diffstat (limited to 'sci-electronics/xc3sprog/xc3sprog-1.1.ebuild')
-rw-r--r--sci-electronics/xc3sprog/xc3sprog-1.1.ebuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/sci-electronics/xc3sprog/xc3sprog-1.1.ebuild b/sci-electronics/xc3sprog/xc3sprog-1.1.ebuild
new file mode 100644
index 0000000..4404f4d
--- /dev/null
+++ b/sci-electronics/xc3sprog/xc3sprog-1.1.ebuild
@@ -0,0 +1,27 @@
+EAPI="5"
+inherit cmake-utils eutils
+
+DESCRIPTION="Xilinx FPGA Programmer"
+HOMEPAGE="https://github.com/matrix-io/xc3sprog/releases"
+SRC_URI="https://github.com/matrix-io/${PN}/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-embedded/libftdi
+ dev-embedded/libftd2xx
+ dev-libs/libusb-compat
+ dev-libs/wiringPi"
+S="${WORKDIR}/${PN}-${P}"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ "-DLIBFTDI_INCLUDE_DIR=$(pkg-config libftdi1 --cflags-only-I | cut -d' ' -f1 | sed 's/-I//')"
+ "-DLIBFTDI_LIBRARIES=${EPREFIX}/usr/lib/libftdi1.so"
+ )
+
+ cmake-utils_src_configure
+}