* [gentoo-dev] bash-completion-r1: a quick migration guide
@ 2011-09-08 16:38 Michał Górny
2011-09-08 16:46 ` Ulrich Mueller
0 siblings, 1 reply; 3+ messages in thread
From: Michał Górny @ 2011-09-08 16:38 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]
Hello,
As new bash-completion-r1 eclass is in the tree now, a quick migration
guide follows.
The new eclass is simpler and more consistent. It doesn't enforce
USE=bash-completion or put any bash-completion-specific deps on
packages. If any package _really_ needs that, it should put out
the necessary IUSE and deps explicitly.
pkg_postinst() was removed as well. Users are expected to know how to
use 'eselect bashcomp list', like packages don't list what they've
installed in */bin.
Usually, migrating packages means replacing:
1) inherit bash-completion
-> inherit bash-completion-r1
2) bash-completion_pkg_postinst
-> :
3) dobashcompletion foo
-> dobashcomp foo || die
4) dobashcompletion foo bar
-> newbashcomp foo bar || die
5) BASHCOMPLETION_NAME=bar dobashcompletion foo
-> newbashcomp foo bar || die
6) BASHCOMPFILES='foo bar baz' dobashcompletion
-> dobashcomp foo bar baz || die
I'm listing '|| die' explicitly to ensure one doesn't forget about it.
It's necessary only in EAPI<4, like for doins/newins.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] bash-completion-r1: a quick migration guide
2011-09-08 16:38 [gentoo-dev] bash-completion-r1: a quick migration guide Michał Górny
@ 2011-09-08 16:46 ` Ulrich Mueller
2011-09-08 16:52 ` Michał Górny
0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2011-09-08 16:46 UTC (permalink / raw
To: gentoo-dev
>>>>> On Thu, 8 Sep 2011, Michał Górny wrote:
> 3) dobashcompletion foo
-> dobashcomp foo || die
Isn't that rather:
newbashcomp foo ${PN} || die
Ulrich
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] bash-completion-r1: a quick migration guide
2011-09-08 16:46 ` Ulrich Mueller
@ 2011-09-08 16:52 ` Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2011-09-08 16:52 UTC (permalink / raw
To: gentoo-dev; +Cc: ulm
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
On Thu, 8 Sep 2011 18:46:01 +0200
Ulrich Mueller <ulm@gentoo.org> wrote:
> >>>>> On Thu, 8 Sep 2011, Michał Górny wrote:
>
> > 3) dobashcompletion foo
> -> dobashcomp foo || die
>
> Isn't that rather:
> newbashcomp foo ${PN} || die
Ah, sorry, you're right.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-08 16:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 16:38 [gentoo-dev] bash-completion-r1: a quick migration guide Michał Górny
2011-09-08 16:46 ` Ulrich Mueller
2011-09-08 16:52 ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox