Re: [gentoo-dev] Einput eclass

2006-07-24 Thread John Jawed
Alright, now it's the latest. Regards, John "Open source, you don't pay back, you pay forward." On 7/24/06, Alex Tarkovsky <[EMAIL PROTECTED]> wrote: On 7/24/06, John Jawed <[EMAIL PROTECTED]> wrote: > Updated version is up at http://jawed.name/dev/gentoo/einput.eclass now. The version you hav

Re: [gentoo-dev] Einput eclass

2006-07-24 Thread Alex Tarkovsky
On 7/24/06, John Jawed <[EMAIL PROTECTED]> wrote: Updated version is up at http://jawed.name/dev/gentoo/einput.eclass now. The version you have up there isn't the latest actually, see the attachment in the post you just replied to. :) -- gentoo-dev@gentoo.org mailing list

Re: [gentoo-dev] Einput eclass

2006-07-24 Thread John Jawed
Updated version is up at http://jawed.name/dev/gentoo/einput.eclass now. Regards, John "Open source, you don't pay back, you pay forward." On 7/24/06, Alex Tarkovsky <[EMAIL PROTECTED]> wrote: To ensure the global vars play nicely in the Portage environment I've renamed a few, and moved a coupl

Re: [gentoo-dev] Einput eclass

2006-07-24 Thread Alex Tarkovsky
To ensure the global vars play nicely in the Portage environment I've renamed a few, and moved a couple more to functions as locals and literal strings. Also improved on the inline documentation and renamed a couple of functions to something more intuitive. einput.eclass Description: Binary data

Re: [gentoo-dev] Einput eclass

2006-07-24 Thread Alex Tarkovsky
Updated version. I had forgotten to remove the case-insensitive stuff from einput_list(). Input is now case-sensitive, as ebuild devs may want, for example, "r" and "R" to represent two different (but related) choices. Also did a little tidying. einput.eclass Description: Binary data

Re: [gentoo-dev] Einput eclass

2006-07-24 Thread Alex Tarkovsky
On 7/23/06, John Jawed <[EMAIL PROTECTED]> wrote: Nice work on this, it's looking good now. Is there a reason the leading asterisk was dropped? Having it there might be good for readability as well as keeping in line with the "look here" (einfo, eerror, ewarn, etc) motif in portage. I was indee

Re: [gentoo-dev] Einput eclass

2006-07-23 Thread John Jawed
Alex, Nice work on this, it's looking good now. Is there a reason the leading asterisk was dropped? Having it there might be good for readability as well as keeping in line with the "look here" (einfo, eerror, ewarn, etc) motif in portage. I will be testing and reporting back my results, encoura

Re: [gentoo-dev] Einput eclass

2006-07-23 Thread Alex Tarkovsky
Attached is an overhaul of John's code. Aside from some bugfixes and readability improvements, the most significant changes are: - Renamed functions to follow de facto and emerging Portage API naming conventions. - Validation of input for the list prompt and confirmation prompt functions. - Add

Re: [gentoo-dev] Einput eclass

2006-07-21 Thread John Jawed
Brian, I was looking through /usr/bin/emerge and lines 3477-3481 seemed to best fit what displayConfirmPrompt is trying to supplement. The check on line 3477 is against a "No" returned from userPrompt(), and then a system exit code is issued by caller (line 3481). Was unable to find any other in

Re: [gentoo-dev] Einput eclass

2006-07-20 Thread Doug Goldstein
John Jawed wrote: > Below is a link to an "enhanced input" eclass as well as a screenshot. > This eclass was made to simplify interacting with the user at > pkg_config(). > > http://jawed.name/dev/gentoo/einput.eclass > http://jawed.name/dev/gentoo/einput.png (code used to create this > output is

Re: [gentoo-dev] Einput eclass

2006-07-20 Thread John Jawed
There are two ebuilds which use this currently: http://jawed.name/dev/gentoo/openfts-0.39.ebuild http://jawed.name/dev/gentoo/dev-db/pgfouine/pgfouine-0.6.ebuild The code used to generate the screenshot got lost in the initial posting, here it is: pkg_config() { displayListPrompt "1" "L

Re: [gentoo-dev] Einput eclass

2006-07-20 Thread Brian Harring
On Thu, Jul 20, 2006 at 09:39:14PM +0200, Luca Longinotti wrote: > John Jawed wrote: > > Below is a link to an "enhanced input" eclass as well as a screenshot. > > This eclass was made to simplify interacting with the user at > > pkg_config(). > > This is a good idea imo, it could really simplify

Re: [gentoo-dev] Einput eclass

2006-07-20 Thread Luca Longinotti
John Jawed wrote: > Below is a link to an "enhanced input" eclass as well as a screenshot. > This eclass was made to simplify interacting with the user at > pkg_config(). This is a good idea imo, it could really simplify and help with pkg_config stuff, think of dev-db/mysql or others who need to a

[gentoo-dev] Einput eclass

2006-07-19 Thread John Jawed
Below is a link to an "enhanced input" eclass as well as a screenshot. This eclass was made to simplify interacting with the user at pkg_config(). http://jawed.name/dev/gentoo/einput.eclass http://jawed.name/dev/gentoo/einput.png (code used to create this output is below) This eclass started off