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