kmx/pdl-finance-talib — pull request #1 by vikasnkumar (2014-08-25 20:39:59+00:00)
Title: Using Alien::TALib to find ta-lib installed or install it if is required

Hi KMX

I have updated Alien::TALib to revision 0.05 on CPAN. It has been tested on Windows with Strawberry Perl, Linux and Mac OSX. Now Alien::TALib checks if ta-lib-config is present and uses that, or checks if TALIB_CFLAGS/TALIB_LIBS is present during the build and uses that or if nothing is present and it cannot find the library it will then download the appropriate version (msvc.zip for MSWin32) and src.tar.gz for the others and build it and install it into the appropriate location. This installable location can be set by the user in 3 ways:
- $PREFIX environment
- --prefix commandline to ./Build.PL
- Module::Build's default prefix for bin installs which most likely will be /usr/local/ unless the user has changed it
and if none then a custom local lib directory using File::HomeDir->my_dist_data() call.
This way, the installed ta-lib-config will always be found regardless of where it has been installed if using Alien::TALib to find it.

Let me know if you like it.

Thanks
Vikas