From 6008aef4d64ce49a8a7977fcb72ede2f670ac8ca Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Thu, 27 Jul 2017 01:21:05 +0300 Subject: dev-embedded/stlink: Add stlink utility Package-Manager: Portage-2.3.6, Repoman-2.3.3 --- dev-embedded/stlink/Manifest | 1 + dev-embedded/stlink/metadata.xml | 8 ++++++++ dev-embedded/stlink/stlink-1.4.0.ebuild | 35 +++++++++++++++++++++++++++++++++ dev-embedded/stlink/stlink-9999.ebuild | 35 +++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 dev-embedded/stlink/Manifest create mode 100644 dev-embedded/stlink/metadata.xml create mode 100644 dev-embedded/stlink/stlink-1.4.0.ebuild create mode 100644 dev-embedded/stlink/stlink-9999.ebuild (limited to 'dev-embedded') diff --git a/dev-embedded/stlink/Manifest b/dev-embedded/stlink/Manifest new file mode 100644 index 000000000000..78facb08a310 --- /dev/null +++ b/dev-embedded/stlink/Manifest @@ -0,0 +1 @@ +DIST stlink-1.4.0.tar.gz 138765 SHA256 d99b8385cce8071d5e58de21b6c8866058af20a8dd46ecf01e1c1dc3aa038cc9 SHA512 cb7617068a6dcaf7e8d0ccfb8b918f0373f6120398dab40a8b8d6567705871226684fd19aad92e4bab623310a5da13ea9fd70153b619f58d3534f0a4ff3a9886 WHIRLPOOL 1b431c2766edbc0e4aa97022a3d9ca4852d993c15964f34e5dd4603e80691a15c20f0d771f4012f2d88802c1e26fdb53bf5a5bb8694df710e283662bc4d0f78c diff --git a/dev-embedded/stlink/metadata.xml b/dev-embedded/stlink/metadata.xml new file mode 100644 index 000000000000..086586c08a88 --- /dev/null +++ b/dev-embedded/stlink/metadata.xml @@ -0,0 +1,8 @@ + + + + + alexxy@gentoo.org + Alexey Shvetsov + + diff --git a/dev-embedded/stlink/stlink-1.4.0.ebuild b/dev-embedded/stlink/stlink-1.4.0.ebuild new file mode 100644 index 000000000000..6711837c176a --- /dev/null +++ b/dev-embedded/stlink/stlink-1.4.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit cmake-utils udev + +DESCRIPTION="stm32 discovery line linux programmer" +HOMEPAGE="https://github.com/texane/stlink" +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://github.com/texane/stlink.git" + inherit git-r3 +else + SRC_URI="https://github.com/texane/stlink/archive/${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="" + +RDEPEND="virtual/libusb:1 + >=dev-libs/glib-2.32.0:2 + x11-libs/gtk+:3" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DSTLINK_UDEV_RULES_DIR="$(get_udevdir)"/rules.d + -DSTLINK_MODPROBED_DIR="${EPREFIX}/etc/modprobe.d" + ) + + cmake-utils_src_configure +} diff --git a/dev-embedded/stlink/stlink-9999.ebuild b/dev-embedded/stlink/stlink-9999.ebuild new file mode 100644 index 000000000000..6711837c176a --- /dev/null +++ b/dev-embedded/stlink/stlink-9999.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit cmake-utils udev + +DESCRIPTION="stm32 discovery line linux programmer" +HOMEPAGE="https://github.com/texane/stlink" +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://github.com/texane/stlink.git" + inherit git-r3 +else + SRC_URI="https://github.com/texane/stlink/archive/${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="" + +RDEPEND="virtual/libusb:1 + >=dev-libs/glib-2.32.0:2 + x11-libs/gtk+:3" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DSTLINK_UDEV_RULES_DIR="$(get_udevdir)"/rules.d + -DSTLINK_MODPROBED_DIR="${EPREFIX}/etc/modprobe.d" + ) + + cmake-utils_src_configure +} -- cgit v1.2.3-65-gdbad