Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fabric/mstflint/
Date: Wed, 19 Aug 2020 02:41:49
Message-Id: 1597803996.0aae82dd79585c8ce79a52b09ffebaff21166023.zmedico@gentoo
1 commit: 0aae82dd79585c8ce79a52b09ffebaff21166023
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 19 02:24:35 2020 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 19 02:26:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aae82dd
7
8 sys-fabric/mstflint: Bump to version 4.14.0_p3
9
10 Package-Manager: Portage-3.0.3, Repoman-3.0.0
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 sys-fabric/mstflint/Manifest | 1 +
14 sys-fabric/mstflint/metadata.xml | 1 +
15 sys-fabric/mstflint/mstflint-4.14.0_p3.ebuild | 46 +++++++++++++++++++++++++++
16 3 files changed, 48 insertions(+)
17
18 diff --git a/sys-fabric/mstflint/Manifest b/sys-fabric/mstflint/Manifest
19 index 9585fabb6e5..525d0558b8f 100644
20 --- a/sys-fabric/mstflint/Manifest
21 +++ b/sys-fabric/mstflint/Manifest
22 @@ -1,3 +1,4 @@
23 DIST mstflint-4.10.0_p3.tar.gz 3208065 BLAKE2B 9d27bc41f3af4af2d430814a892bc26b302f4a57b2287cca4d5a64a37d7dd1b47e3f167b671be9ef1fadaf5dc51dff6094db811951ef1b5c6ad3ce746eb78546 SHA512 72077557f032bfa9c2c0b94f485b58c2d9efa955281997fed605e6351b1cfe73c46d8e4f293f93b58ebc4315d47b3dc3a4e8d72c8938647d34d291a2db89198f
24 DIST mstflint-4.11.0_p5.tar.gz 3622665 BLAKE2B 119d1ca04eaf3ebc2e4b8175525fdc87079b27742013f210f8c38d2ac0e83b46c555e4b8b49d7f1562180473c0873456932939e942b1050e9c952a2e3172185a SHA512 c98f24acda519e62fd8db8e170c39c8ffe69b980bc2c9a167f20cfcb2575038648e463de0c7dfad3ddebe098b8a466640b7a125901c033f193a42ef1bfef00d8
25 DIST mstflint-4.13.3_p2.tar.gz 3809937 BLAKE2B bfe0d5a531a26547779f2e9377c4c6f393c28623d56c87a1f0210a0fbb767a43f5186c481609722ef2e5066bcdf0110009468b047ca0a8b25c096f4802b43229 SHA512 bd7e937eaed30c4b4479c3bc184d9bd8edff9aba23824fdd6a82f0e62d319854aa74954c783eb483074e322eec94f9a0cd5bd6a0ff4de2422f9b011680324706
26 +DIST mstflint-4.14.0_p3.tar.gz 4012564 BLAKE2B 4203c398665cbc7a0e9f86158e58270c903f546372aecf697c09b75f7fc44944304a4c5f1524362d442ed8e16f5dd9f35fe08ec638c5c556ed182cbac9f1c27b SHA512 c27872e34443df24fb152f2837d2fa31a7a459eff859654d00c815fc942182dc48d18991e83b79cc99bbd5fafe5b721b69e9bee9c927e2d54581eb78d7a5548e
27
28 diff --git a/sys-fabric/mstflint/metadata.xml b/sys-fabric/mstflint/metadata.xml
29 index 3a04694a94c..0f7655bbf7b 100644
30 --- a/sys-fabric/mstflint/metadata.xml
31 +++ b/sys-fabric/mstflint/metadata.xml
32 @@ -5,6 +5,7 @@
33 <remote-id type="github">Mellanox/mstflint</remote-id>
34 </upstream>
35 <use>
36 + <flag name="adb-generic-tools">Enable compiling the following tools: mstreg and mstlink</flag>
37 <flag name="inband">Enable firmware updates for Mellanox SwitchX and ConnectIB devices</flag>
38 </use>
39 <maintainer type="person">
40
41 diff --git a/sys-fabric/mstflint/mstflint-4.14.0_p3.ebuild b/sys-fabric/mstflint/mstflint-4.14.0_p3.ebuild
42 new file mode 100644
43 index 00000000000..0beaafa4fa0
44 --- /dev/null
45 +++ b/sys-fabric/mstflint/mstflint-4.14.0_p3.ebuild
46 @@ -0,0 +1,46 @@
47 +# Copyright 1999-2020 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit autotools
53 +
54 +DESCRIPTION="Mstflint - an open source version of MFT (Mellanox Firmware Tools)"
55 +HOMEPAGE="https://github.com/Mellanox/mstflint"
56 +LICENSE="|| ( GPL-2 BSD-2 )"
57 +KEYWORDS="~amd64 ~x86"
58 +EGIT_COMMIT="f8056f78a64debbdbb2522db7181848b9203e428"
59 +MY_PV=${PV/_p/-}
60 +MY_P=""
61 +SRC_URI="https://github.com/Mellanox/mstflint/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
62 +IUSE="adb-generic-tools inband ssl"
63 +SLOT="0"
64 +RDEPEND="dev-db/sqlite:3=
65 + sys-libs/zlib:=
66 + inband? ( sys-fabric/libibmad )
67 + adb-generic-tools? (
68 + dev-libs/boost:=
69 + dev-libs/expat:=
70 + )
71 + ssl? ( dev-libs/openssl:= )"
72 +DEPEND="${RDEPEND}"
73 +S="${WORKDIR}/${PN}-${MY_PV}"
74 +
75 +src_prepare() {
76 + default
77 + echo '#define TOOLS_GIT_SHA "'${EGIT_COMMIT}'"' > ./common/gitversion.h || die
78 +}
79 +
80 +src_configure() {
81 + eautoreconf
82 + econf $(use_enable inband) $(use_enable ssl openssl) $(use adb-generic-tools && printf -- '--enable-adb-generic-tools')
83 +}
84 +
85 +src_compile() {
86 + if use adb-generic-tools; then
87 + pushd ext_libs/json >/dev/null || die
88 + emake
89 + popd >/dev/null || die
90 + fi
91 + default
92 +}