1 |
commit: ebecf48c22d9c5e85fd87024c19230e4b2938c59 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 25 19:54:16 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 25 19:57:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebecf48c |
7 |
|
8 |
app-shells/bash-completion: Use bashcomp2 git repo in -9999 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../bash-completion/bash-completion-9999.ebuild | 20 +++++++++++--------- |
13 |
1 file changed, 11 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild |
16 |
index bd5e53f21aa..5c0bff2495f 100644 |
17 |
--- a/app-shells/bash-completion/bash-completion-9999.ebuild |
18 |
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild |
19 |
@@ -3,14 +3,12 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-BASHCOMP_P=bashcomp-2.0.2 |
24 |
PYTHON_COMPAT=( python3_{5,6,7} ) |
25 |
inherit autotools git-r3 python-any-r1 |
26 |
|
27 |
DESCRIPTION="Programmable Completion for bash" |
28 |
HOMEPAGE="https://github.com/scop/bash-completion" |
29 |
EGIT_REPO_URI="https://github.com/scop/bash-completion" |
30 |
-SRC_URI="https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz" |
31 |
|
32 |
LICENSE="GPL-2+" |
33 |
SLOT="0" |
34 |
@@ -23,7 +21,7 @@ RDEPEND=">=app-shells/bash-4.3_p30-r1:0 |
35 |
sys-apps/miscfiles |
36 |
!app-eselect/eselect-bashcomp |
37 |
!!net-fs/mc" |
38 |
-DEPEND="app-arch/xz-utils |
39 |
+DEPEND=" |
40 |
test? ( |
41 |
${RDEPEND} |
42 |
app-misc/dtach |
43 |
@@ -79,13 +77,19 @@ pkg_setup() { |
44 |
} |
45 |
|
46 |
src_unpack() { |
47 |
- git-r3_src_unpack |
48 |
- default |
49 |
+ git-r3_fetch https://github.com/mgorny/bashcomp2 |
50 |
+ git-r3_fetch |
51 |
+ |
52 |
+ git-r3_checkout https://github.com/mgorny/bashcomp2 \ |
53 |
+ "${WORKDIR}"/bashcomp2 |
54 |
+ git-r3_checkout |
55 |
} |
56 |
|
57 |
src_prepare() { |
58 |
- eapply "${WORKDIR}/${BASHCOMP_P}/${PN}"-2.1_p*.patch |
59 |
eapply_user |
60 |
+ # generate and apply patch |
61 |
+ emake -C "${WORKDIR}"/bashcomp2 bash-completion-blacklist-support.patch |
62 |
+ eapply "${WORKDIR}"/bashcomp2/bash-completion-blacklist-support.patch |
63 |
|
64 |
eautoreconf |
65 |
} |
66 |
@@ -124,9 +128,7 @@ src_install() { |
67 |
dodoc AUTHORS CHANGES CONTRIBUTING.md README.md |
68 |
|
69 |
# install the eselect module |
70 |
- insinto /usr/share/eselect/modules |
71 |
- doins "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect" |
72 |
- doman "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect.5" |
73 |
+ emake -C "${WORKDIR}"/bashcomp2 DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install |
74 |
} |
75 |
|
76 |
pkg_postinst() { |