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: Fri, 19 Aug 2022 11:57:47
Message-Id: 1660910244.ce952d0b8e0c5ff4df4e939f51ca85d1daf1649d.ionen@gentoo
1 commit: ce952d0b8e0c5ff4df4e939f51ca85d1daf1649d
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 19 11:48:02 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 19 11:57:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce952d0b
7
8 app-portage/iwdevtools: add 0.11.7, straight-to-stable
9
10 qa-sed could mangle installed files when using sed labels and not
11 passing them within the same `-e` they're used in (fortunately, only
12 known case is sys-apps/shadow and only resulted in harmless duplicate
13 login.defs comments -- labels isn't a widespread practice)
14
15 Even if minor here, potential mangling cases is something been trying
16 to avoid as much as possible, so doing straight-to-stable
17
18 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
19
20 app-portage/iwdevtools/Manifest | 1 +
21 app-portage/iwdevtools/iwdevtools-0.11.7.ebuild | 64 +++++++++++++++++++++++++
22 2 files changed, 65 insertions(+)
23
24 diff --git a/app-portage/iwdevtools/Manifest b/app-portage/iwdevtools/Manifest
25 index 9dd8555ce4d7..9fca2b41b2eb 100644
26 --- a/app-portage/iwdevtools/Manifest
27 +++ b/app-portage/iwdevtools/Manifest
28 @@ -1 +1,2 @@
29 DIST iwdevtools-0.11.6.tar.gz 85945 BLAKE2B 61c18ae0ed1c0f7e90d41af485f18f891cdd9ffbaff5437cb9f9ca88622efa0f5acd89ac8596e7d41c25a083a970143f3b226284f4566b0b8ee3718071cd6cbb SHA512 21ffda72945947658bf6867bf83d9b9ad4f6b930d4c2cee3dea551581030668ab286a4c4a07edeae937fd91f4aba08fe8e7c6506459808c4ada38502226b5b26
30 +DIST iwdevtools-0.11.7.tar.gz 86578 BLAKE2B 1945f99ab5d516bdef7081e13ecb0921728497f84e5e5248b2ddea78b306f185a0952a664165b4bae6c2089ddd1a4423d26524f42631a53b75fd2749a6994721 SHA512 fe18a88d166f239581bdddb0c719bf1d7789f671df151d87844b1836d134754d731114250ae2a9ef5b1a37a403615c15bbd6174eeeec3fe275e93c32ce6fae5c
31
32 diff --git a/app-portage/iwdevtools/iwdevtools-0.11.7.ebuild b/app-portage/iwdevtools/iwdevtools-0.11.7.ebuild
33 new file mode 100644
34 index 000000000000..4c53d2af1ea3
35 --- /dev/null
36 +++ b/app-portage/iwdevtools/iwdevtools-0.11.7.ebuild
37 @@ -0,0 +1,64 @@
38 +# Copyright 2021-2022 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +inherit meson optfeature
44 +
45 +DESCRIPTION="Small tools to aid with Gentoo development, primarily intended for QA"
46 +HOMEPAGE="https://github.com/ionenwks/iwdevtools"
47 +SRC_URI="https://github.com/ionenwks/iwdevtools/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="BSD-2"
50 +SLOT="0"
51 +KEYWORDS="amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv sparc x86 ~x64-macos"
52 +IUSE="test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="
56 + app-misc/pax-utils
57 + app-portage/portage-utils
58 + >=app-shells/bash-5.1
59 + dev-libs/libxml2:2
60 + sys-apps/diffutils
61 + sys-apps/file
62 + sys-apps/portage
63 + || ( sys-apps/util-linux app-misc/getopt )"
64 +BDEPEND="
65 + sys-apps/help2man
66 + || ( sys-apps/util-linux app-misc/getopt )
67 + test? ( ${RDEPEND} )"
68 +
69 +src_configure() {
70 + local emesonargs=(
71 + -Ddocdir=${PF}
72 + -Deprefix="${EPREFIX}"
73 + -Dshellcheck=false
74 + $(meson_use test)
75 + )
76 +
77 + has_version sys-apps/util-linux || emesonargs+=( -Dgetopt=getopt-long )
78 +
79 + meson_src_configure
80 +}
81 +
82 +pkg_postinst() {
83 + optfeature "detecting potential ABI issues using abidiff" dev-util/libabigail
84 +
85 + if [[ ! ${REPLACING_VERSIONS} ]]; then
86 + elog "Optional portage integration relies on using /etc/portage/bashrc."
87 + elog "The example bashrc can be used as-is if not already using one:"
88 + elog
89 + elog " ln -s ../../usr/share/${PN}/bashrc ${EROOT}/etc/portage/bashrc"
90 + elog
91 + elog "Otherwise, inspect the tools' --help output and the example to integrate"
92 + elog "(if not defining the same phase functions, the example can be sourced)."
93 + elog
94 + elog "Note that \`eqawarn\` is used for portage output by default. QA messages"
95 + elog "aren't logged / shown post-emerge unless e.g. in /etc/portage/make.conf:"
96 + elog
97 + elog ' PORTAGE_ELOG_CLASSES="${PORTAGE_ELOG_CLASSES} qa"'
98 + elog
99 + elog "See ${EROOT}/usr/share/doc/${PF}/README.rst* for information on tools."
100 + fi
101 +}