Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (43 sloc) 1.55 KB

distroprefs

Various of my and Andy Koenig's perl CPAN yml and patches. This belongs into ~/.cpan/

See perldoc CPAN


The distroprefs system of CPAN allows the user to specify extra informations and recipes in YAML files to either

  • patch broken distros

  • pass additional arguments to one of the four commands,

  • set environment variables

  • instantiate an Expect object that reads from the console, waits for some regular expressions and enters some answers

  • temporarily override assorted "CPAN.pm" configuration variables

  • specify dependencies the original maintainer forgot

  • disable the installation of an object altogether

See the YAML files that come with the CPAN distribution in the distroprefs/ directory for examples.

Install

cd ~
git clone https://github.com/rurban/distroprefs
mv distroprefs/* ~/.cpan/
mv distroprefs/.git* ~/.cpan/

Optionally:

cd ~/.cpan
ln -s sources/authors/id/R/RU/RURBAN/patches patches

Policy

  • Keep patches as subdir of authors. E.g. sources/authors/id/R/RU/RURBAN/patches
    • Keep them for older releases
  • yml name: <AUTHOR>.<DISTRO>.yml
    • Delete outdated ymls
  • No way yet to handle and merge distroprefs from multiple sources. git fork and merge?
  • Either the patch or the yml should keep the CPAN RT ticket number, e.g. [CPAN #nnnnnn]

Sources

Something went wrong with that request. Please try again.