Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-perl
Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-perl@g.o
From: Christian Hartmann <ian@g.o>
Subject: Re: g-cpan patch
Date: Mon, 11 Sep 2006 11:34:23 +0200
> - recoded the small options verification

Looks good.

> - implemented a Fake CPAN::Frontend, to catch the output of the CPAN search

Eek! That's an awful hack. That's not how code looks like I want to maintain. 
E.g. the 'package Gentoo::CPAN::FakeFrontend' part.

> - added a small spin animation to the cpan search

I think I don't like spinners but I'm actually not really sure about that one. 
Spinners just cause the process to take longer than it would take anyways 
without a spinner. (I'm pretty much against everything these days so don't 
take me too seroius on this one. ;)) Nevertheless I put that in a module 
called Gentoo::Portage::UI::Spinner so it can be reused this way e.g.:

my $spinner=Gentoo::Portage::UI::Spinner->new();
for (my $i=0;$i<5;$i++)
{
	$spinner->spin();
	sleep(1);
}
$spinner->reset();

Yeah.. overhead.. but reusable and more easy to read.

Anyways. The whole Gentoo::Portage stuff needs to be ripped out (of g-cpan, 
up2date-ng, mgtool, demerge, perl-info and some of my other endless and 
nameless tools/hacks) and put together nicely in a neat and slick module. I'm 
currently working on it. - Ok, ok.. I'm short of time but anyways.. - If it's 
all set and done I'll commit it to our gentoo-perl svn, so that we can work 
on it together. One thing I'd like to see established until then is one 
documented and persistent coding style. Furthermore all functions/code should  
be documented and a complete api-documentation about Gentoo::Portage should 
be available. We need a todo-list, a feature-list and a roadmap. - Big 
words.. ;)

I'm pretty serious about it. The reason I'm writing this is that I don't want 
to have it turning into another big and ugly hack. I want a clean and well 
documented api to access and manipulate portage using perl that all our 
little tools can use.

For now I'm asking you not to commit anything until I've got that 
Gentoo::Portage thing ready. - BUT please don't stop hacking on it and coming 
up with ideas and stuff. :)

I just want to ensure that all our efforts go in the same direction.

-- 
Christian Hartmann
http://www.gentoo.org/~ian/

PGP Key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2154E5EE692A4865
Key fingerprint = 4544 EC0C BAE4 216F 5981  7F95 2154 E5EE 692A 4865

-- 
gentoo-perl@g.o mailing list


Replies:
Re: g-cpan patch
-- dams
References:
g-cpan patch
-- dams
Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
g-cpan patch
Next by thread:
Re: g-cpan patch
Previous by date:
Re: Perl ebuilds needing updates
Next by date:
Re: g-cpan patch


Updated Jun 17, 2009

Summary: Archive of the gentoo-perl mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.