perl-App-local-lib-helper - Make it easy to run code against a local-lib

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-App-local-lib-helper
Package version: 0.07
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 32.63 KB
Download size: 32.63 KB
Official Mirror:
This is an object which provide the functionality to create a the local::lib manpage 'helper' script in either the currently loaded the local::lib manpage environment or in a target directory of choice. By default the script is called `localenv' and can be used to invoke a command under the the local::lib manpage which it was built against. For example, assume you build a the local::lib manpage like so: cpanm --local-lib ~/mylib App::local::lib::helper Note what is happening. First, you are telling cpanminus to install everything to a local::lib directory called `~/mylib' (cpanminus behind the scenes uses the local::lib manpage to do this for you) then you are telling cpanminus to install the distribution the App::local::lib::helper manpage into that created the local::lib manpage directory. When the `Makefile.PL' script for the App::local::lib::helper manpage runs, it notices the fact that it is being asked to install into a locally lib managed directory and will additionally generate a helper script into `~/mylib/bin' called `localenv'. Now, if you want to invoke a perl application and use libs installed into `~/mylib', you can do so like: ~/mylib/bin/localenv perl [SOME COMMAND] The command `localenv' will make sure the same the local::lib manpage that was active when the App::local::lib::helper manpage was originally installed is again installed into the environment before executing the commands passed in `@ARGV'. Upon completing the command, the `%ENV' is restored so that you can use this to fire off an application against a specific the local::lib manpage without needing to deal with the details of how to activate the the local::lib manpage or how to make sure your `%ENV' stays clean. The arguments given to `localenv' don't need to be a perl application. For example, I often like to open a sub shell under a particular the local::lib manpage managed directory. ~/mylib/bin/localenv bash Now, if I do: perl -V I'll see that i`~/mylib' has been added to `@INC'. Additionally, `~/mylib/bin' will have been added to `$PATH', so that any command line perl applications installed into the the local::lib manpage (such as `ack' or `cpanm') can be accessed easily. Another example usage would be when you want to install an application from CPAN, install it and all its dependencies to a single directory root and then run it without a lot of effort. For example: cpanm --local-lib ~/gitalyst-libs Gitalist App::local::lib::helper ~/gitalyst-libs/bin/localenv And presto! Your cpan installed application is running, fully self-contained to one root directory all under regular user privileges. the local::lib manpage does all the real work, but I find this to be the easiest way to run given code against a the local::lib manpage root.




  • perl(App/local/lib/ = 0.070
  • perl-App-local-lib-helper = 0.07-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] noarch autoimports
      rpm [Sisyphus] noarch autoimports
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-App-local-lib-helper rpm package:
      # sudo apt-get install perl-App-local-lib-helper


    • /usr/share/doc/perl-App-local-lib-helper-0.07/Changes
    • /usr/share/doc/perl-App-local-lib-helper-0.07/README.mkdn
    • /usr/share/perl5/App/
    • /usr/share/perl5/App/local/
    • /usr/share/perl5/App/local/lib/
    • /usr/share/perl5/App/local/lib/helper/rationale.pod