Alberto Simões | 26 Jan 2011 23:13
Picon
Favicon
Gravatar

Action executed during configure

Hello

Is there any action that I can subclass in mybuilder that is run during 
"perl Build.PL" ?

TY
ambs
--

-- 
Alberto Simões

David Golden | 26 Jan 2011 23:21
Picon
Gravatar

Re: Action executed during configure

2011/1/26 Alberto Simões <albie <at> alfarrabio.di.uminho.pt>:
> Hello
>
> Is there any action that I can subclass in mybuilder that is run during
> "perl Build.PL" ?

Not really.  You can subclass "new" or any of the methods that it
calls, of course.

What are you trying to accomplish?

-- David

Alberto Simões | 26 Jan 2011 23:25
Picon
Favicon
Gravatar

Re: Action executed during configure


On 26/01/2011 22:21, David Golden wrote:
> 2011/1/26 Alberto Simões<albie <at> alfarrabio.di.uminho.pt>:
>> Hello
>>
>> Is there any action that I can subclass in mybuilder that is run during
>> "perl Build.PL" ?
>
> Not really.  You can subclass "new" or any of the methods that it
> calls, of course.
>
> What are you trying to accomplish?

I need to detect some libraries paths, and was wondering if I could make 
the code cleaner, moving it to MyBuider.

By the way, is there any standard way to "exit" or "die" from Build.PL 
if a dependency (not a CPAN one, of course) is not met?

Thank you
ambs
--

-- 
Alberto Simões

David Golden | 26 Jan 2011 23:27
Picon
Gravatar

Re: Action executed during configure

2011/1/26 Alberto Simões <albie <at> alfarrabio.di.uminho.pt>:
> By the way, is there any standard way to "exit" or "die" from Build.PL if a
> dependency (not a CPAN one, of course) is not met?

Generally, just "exit 0 unless condition_satisfied".  C.f. Devel::CheckLib

-- David

Alberto Simões | 26 Jan 2011 23:29
Picon
Favicon
Gravatar

Re: Action executed during configure


On 26/01/2011 22:27, David Golden wrote:
> 2011/1/26 Alberto Simões<albie <at> alfarrabio.di.uminho.pt>:
>> By the way, is there any standard way to "exit" or "die" from Build.PL if a
>> dependency (not a CPAN one, of course) is not met?
>
> Generally, just "exit 0 unless condition_satisfied".  C.f. Devel::CheckLib

Thank you :)
--

-- 
Alberto Simões


Gmane