1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils udev
8 DESCRIPTION="stm32 discovery line linux programmer"
9 HOMEPAGE="https://github.com/texane/stlink"
10 if [[ ${PV} == "9999" ]]; then
11 EGIT_REPO_URI="https://github.com/texane/stlink.git"
14 SRC_URI="https://github.com/texane/stlink/archive/${PV}/${P}.tar.gz"
22 RDEPEND="virtual/libusb:1
23 >=dev-libs/glib-2.32.0:2
30 -DSTLINK_UDEV_RULES_DIR="$(get_udevdir)"/rules.d
31 -DSTLINK_MODPROBED_DIR="${EPREFIX}/etc/modprobe.d"
32 -DLIB_INSTALL_DIR:PATH="$(get_libdir)"
35 cmake-utils_src_configure