diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2017-07-27 01:21:05 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2017-07-27 01:21:32 +0300 |
commit | 6008aef4d64ce49a8a7977fcb72ede2f670ac8ca (patch) | |
tree | c65a59dfab742ea85ff4abde57a02a1f61ff9a32 /dev-embedded | |
parent | dev-db/mongodb: patch 3.4.4 for bug 625148 (diff) | |
download | gentoo-6008aef4d64ce49a8a7977fcb72ede2f670ac8ca.tar.gz gentoo-6008aef4d64ce49a8a7977fcb72ede2f670ac8ca.tar.bz2 gentoo-6008aef4d64ce49a8a7977fcb72ede2f670ac8ca.zip |
dev-embedded/stlink: Add stlink utility
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/stlink/Manifest | 1 | ||||
-rw-r--r-- | dev-embedded/stlink/metadata.xml | 8 | ||||
-rw-r--r-- | dev-embedded/stlink/stlink-1.4.0.ebuild | 35 | ||||
-rw-r--r-- | dev-embedded/stlink/stlink-9999.ebuild | 35 |
4 files changed, 79 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>alexxy@gentoo.org</email> + <name>Alexey Shvetsov</name> + </maintainer> +</pkgmetadata> 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 +} |