dev-embedded/stlink: Add stlink utility

Package-Manager: Portage-2.3.6, Repoman-2.3.3
This commit is contained in:
Alexey Shvetsov
2017-07-27 01:21:32 +03:00
parent b1c029b6c3
commit 6008aef4d6
4 changed files with 79 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST stlink-1.4.0.tar.gz 138765 SHA256 d99b8385cce8071d5e58de21b6c8866058af20a8dd46ecf01e1c1dc3aa038cc9 SHA512 cb7617068a6dcaf7e8d0ccfb8b918f0373f6120398dab40a8b8d6567705871226684fd19aad92e4bab623310a5da13ea9fd70153b619f58d3534f0a4ff3a9886 WHIRLPOOL 1b431c2766edbc0e4aa97022a3d9ca4852d993c15964f34e5dd4603e80691a15c20f0d771f4012f2d88802c1e26fdb53bf5a5bb8694df710e283662bc4d0f78c
+8
View File
@@ -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>
+35
View File
@@ -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
}
+35
View File
@@ -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
}