1 |
commit: 27dc861550a706df120c87f91d3d0a93338d3f69 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 07:06:16 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 07:36:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27dc8615 |
7 |
|
8 |
app-portage/flaggie: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-portage/flaggie/flaggie-0.2.1-r2.ebuild | 38 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 38 insertions(+) |
14 |
|
15 |
diff --git a/app-portage/flaggie/flaggie-0.2.1-r2.ebuild b/app-portage/flaggie/flaggie-0.2.1-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..5ced01008064 |
18 |
--- /dev/null |
19 |
+++ b/app-portage/flaggie/flaggie-0.2.1-r2.ebuild |
20 |
@@ -0,0 +1,38 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..9} ) |
28 |
+ |
29 |
+inherit bash-completion-r1 distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="A smart CLI mangler for package.* files" |
32 |
+HOMEPAGE="https://github.com/mgorny/flaggie/" |
33 |
+SRC_URI="https://github.com/mgorny/flaggie/releases/download/${P}/${P}.tar.bz2" |
34 |
+ |
35 |
+LICENSE="BSD" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ sys-apps/portage[${PYTHON_USEDEP}] |
41 |
+" |
42 |
+ |
43 |
+python_install_all() { |
44 |
+ newbashcomp contrib/bash-completion/${PN}.bash-completion ${PN} |
45 |
+ distutils-r1_python_install_all |
46 |
+} |
47 |
+ |
48 |
+pkg_postinst() { |
49 |
+ ewarn "Please note that flaggie creates backups of your package.* files" |
50 |
+ ewarn "before performing each change through appending a single '~'." |
51 |
+ ewarn "If you'd like to keep your own backup of them, please use another" |
52 |
+ ewarn "naming scheme (or even better some VCS)." |
53 |
+ if ! has_version app-shells/gentoo-bashcomp; then |
54 |
+ elog |
55 |
+ elog "If you want to use bash-completion, you need to install:" |
56 |
+ elog " app-shells/gentoo-bashcomp" |
57 |
+ fi |
58 |
+} |