Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] support for registering pre/post phase hooks?
Date: Wed, 05 Jul 2006 06:05:46
Message-Id: 44AB5657.8030500@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hi everyone,
5
6 Has anyone noticed that java-pkg-2.eclass makes it difficult to use pre/post phase hooks in /etc/portage/bashrc? Wouldn't it be wise to provide a function for registering these types of things, so that more than one can be registered without stomping out others that were registered before?
7
8 If we like, we can do all the registration through a single function, so as not to pollute the environment with a whole mess of new functions. For example, 'add_phase_hook pre src_compile my_pre_src_compile' could be used to add a hook that executes before src_compile, and 'add_phase_hook post src_install my_post_src_install' could be used to add a phase hook that executes after src_compile. Doesn't that make a lot more sense? Would anyone like to write a patch for that? :)
9
10 Zac
11 -----BEGIN PGP SIGNATURE-----
12 Version: GnuPG v1.4.4 (GNU/Linux)
13
14 iD8DBQFEq1ZV/ejvha5XGaMRAsftAKCACOC970lxY0aLYvihyDRouSkyTACeK1wO
15 JimK3s33fGn2qXVhl0nr+Xg=
16 =Vreq
17 -----END PGP SIGNATURE-----
18 --
19 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] support for registering pre/post phase hooks? Brian Harring <ferringb@×××××.com>