app-shells/bash-completion: rm mount, umount, #579766, simplify mpv rm
authorMichał Górny <mgorny@gentoo.org>
Wed, 13 Apr 2016 04:18:25 +0000 (06:18 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 13 Apr 2016 04:19:57 +0000 (06:19 +0200)
Remove mount & umount completions that are now installed by util-linux.
Simplify mpv symlink removal to use our STRIP_COMPLETIONS mechanism
rather than a Makefile patch.

Bug: https://bugs.gentoo.org/579766

app-shells/bash-completion/bash-completion-2.3-r2.ebuild [moved from app-shells/bash-completion/bash-completion-2.3-r1.ebuild with 95% similarity]
app-shells/bash-completion/files/bash-completion-2.3-remove-mpv-symlink.patch [deleted file]

similarity index 95%
rename from app-shells/bash-completion/bash-completion-2.3-r1.ebuild
rename to app-shells/bash-completion/bash-completion-2.3-r2.ebuild
index 9242caf39263db1f47ce7e86c59b7157de6fe826..9a1aecbb7e2c448609ebdc70a809a0729eabb3c0 100644 (file)
@@ -37,15 +37,18 @@ STRIP_COMPLETIONS=(
 
        # Now-dead symlinks to deprecated completions
        hd ncal
+
+       # Installed by sys-apps/util-linux-2.28
+       mount umount mount.linux umount.linux
+
+       # Dumb symlink to mplayer, removed upstream in git
+       mpv
 )
 
 src_prepare() {
        eapply "${WORKDIR}/${BASHCOMP_P}/${PN}"-2.1_p*.patch
        # Bug 543100
        eapply "${FILESDIR}/${PN}-2.1-escape-characters.patch"
-       # backport from
-       # https://github.com/scop/bash-completion/commit/0382773bbfc21dc1fb5467c1c0426ea3c984b6ec
-       eapply "${FILESDIR}/${P}-remove-mpv-symlink.patch"
        eapply_user
 }
 
diff --git a/app-shells/bash-completion/files/bash-completion-2.3-remove-mpv-symlink.patch b/app-shells/bash-completion/files/bash-completion-2.3-remove-mpv-symlink.patch
deleted file mode 100644 (file)
index 62cddf7..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/completions/Makefile.in b/completions/Makefile.in
-index 940e873..f9aaaa7 100644
---- a/completions/Makefile.in
-+++ b/completions/Makefile.in
-@@ -1237,7 +1237,7 @@ symlinks: $(targetdir) $(DATA)
-               rm -f $(targetdir)/$$file && \
-                       $(LN_S) mcrypt $(targetdir)/$$file ; \
-       done
--      for file in mplayer2 mencoder gmplayer kplayer mpv ; do \
-+      for file in mplayer2 mencoder gmplayer kplayer ; do \
-               rm -f $(targetdir)/$$file && \
-                       $(LN_S) mplayer $(targetdir)/$$file ; \
-       done