Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/iwdevtools/
Date: Thu, 30 Sep 2021 16:05:46
Message-Id: 1633017684.1496388bbcd50a6b6c567fb15a0bd24756f0be26.ionen@gentoo
1 commit: 1496388bbcd50a6b6c567fb15a0bd24756f0be26
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 30 15:56:02 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 30 16:01:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1496388b
7
8 app-portage/iwdevtools: add 0.8.0
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 app-portage/iwdevtools/Manifest | 1 +
13 app-portage/iwdevtools/iwdevtools-0.8.0.ebuild | 64 ++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/app-portage/iwdevtools/Manifest b/app-portage/iwdevtools/Manifest
17 index 66f7098216c..cd89822bee7 100644
18 --- a/app-portage/iwdevtools/Manifest
19 +++ b/app-portage/iwdevtools/Manifest
20 @@ -1 +1,2 @@
21 DIST iwdevtools-0.7.0.tar.gz 56208 BLAKE2B 205bb9bc1e894b9cc6a9c3abb4f902c9c3f8337fff8618df162f4dc5d78416fe8e2852cb513d4153d8acf2a0d918e43352714502e1f40faffc777e19ad81ab55 SHA512 ec528901229066d333fcd8f53060601628b682a93c3e07a89826ff0fd2e406a4dffe76397883d4c50b459588cc6364873c43e5129bd172049c30aea039ae36d5
22 +DIST iwdevtools-0.8.0.tar.gz 57529 BLAKE2B b8068c7781b8b164b9b5d191f8a33a4a89854edb7c78c56d4f1312dd0d051d0b033f21611066303acb7efdf8403d6869458db98e7b1b2a293c779cca2bdcdd36 SHA512 df39fa02d7f4f72334286305bfa9c2db6d5db90bddc47194e3383a99492366796c7ae2e751bcf8af01d14cfa0bac88ea8d9c8678b7891f85aaa1b20e4a9e91cb
23
24 diff --git a/app-portage/iwdevtools/iwdevtools-0.8.0.ebuild b/app-portage/iwdevtools/iwdevtools-0.8.0.ebuild
25 new file mode 100644
26 index 00000000000..c1c495dcafb
27 --- /dev/null
28 +++ b/app-portage/iwdevtools/iwdevtools-0.8.0.ebuild
29 @@ -0,0 +1,64 @@
30 +# Copyright 2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit meson optfeature
36 +
37 +DESCRIPTION="Small tools to aid with Gentoo development, primarily intended for QA"
38 +HOMEPAGE="https://github.com/ionenwks/iwdevtools"
39 +SRC_URI="https://github.com/ionenwks/iwdevtools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="BSD-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
44 +IUSE="test"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="
48 + app-misc/pax-utils
49 + app-portage/portage-utils
50 + sys-apps/diffutils
51 + sys-apps/file
52 + sys-apps/portage
53 + sys-apps/util-linux"
54 +BDEPEND="
55 + sys-apps/help2man
56 + test? ( ${RDEPEND} )"
57 +
58 +src_configure() {
59 + local emesonargs=(
60 + -Ddocdir=${PF}
61 + -Deprefix="${EPREFIX}"
62 + -Dshellcheck=false
63 + $(meson_use test)
64 + )
65 +
66 + meson_src_configure
67 +}
68 +
69 +pkg_postinst() {
70 + optfeature "detecting potential ABI issues using abidiff" dev-util/libabigail
71 +
72 + if [[ ! ${REPLACING_VERSIONS} ]]; then
73 + elog "Optional portage integration relies on using /etc/portage/bashrc."
74 + elog "The example bashrc can be used as-is if not already using one:"
75 + elog
76 + elog " ln -s ../../usr/share/${PN}/bashrc ${EROOT}/etc/portage/bashrc"
77 + elog
78 + elog "Otherwise, inspect the tools' --help output and the example to integrate"
79 + elog "(if not defining the same phase functions, the example can be sourced)."
80 + elog
81 + elog "Note that \`eqawarn\` is used for portage output by default. QA messages"
82 + elog "aren't logged / shown post-emerge unless e.g. in /etc/portage/make.conf:"
83 + elog
84 + elog ' PORTAGE_ELOG_CLASSES="${PORTAGE_ELOG_CLASSES} qa"'
85 + elog
86 + elog "See ${EROOT}/usr/share/doc/${PF}/README.rst* for information on tools."
87 + fi
88 +
89 + if ver_test ${REPLACING_VERSIONS} -le 0.7.0; then
90 + elog "qa-* bashrcs now use \`eqawarn\` for portage output. If no longer"
91 + elog "seeing messages post-emerge, ensure 'qa' is in PORTAGE_ELOG_CLASSES."
92 + fi
93 +}