From: Vincent Pit Date: Thu, 16 Dec 2010 01:12:47 +0000 (+0100) Subject: Document options X-Git-Tag: v0.11~3 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=490a3ebfbbcc96fa3635b9a83408f26d9bedd4f8;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git Document options --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index c86573c..3d2e243 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -34,24 +34,110 @@ our $VERSION = '0.10'; =head1 SYNOPSIS + # Using default values from your F + cpan2dist --format=CPANPLUS::Dist::Gentoo --buildprereq Some::Module + + # Specifying your own options cpan2dist --format=CPANPLUS::Dist::Gentoo \ --dist-opts overlay=/usr/local/portage \ --dist-opts distdir=/usr/portage/distfiles \ --dist-opts manifest=yes \ --dist-opts keywords=x86 \ - --dist-opts header="# Copyright 1999-2008 Gentoo Foundation" \ + --dist-opts header="# Begin" \ --dist-opts footer="# End" \ Any::Module You::Like =head1 DESCRPITON This module is a CPANPLUS backend that recursively generates Gentoo ebuilds for a given package in the specified overlay (defaults to F), updates the manifest, and even emerges it (together with its dependencies) if the user requires it. -You need write permissions on the directory where Gentoo fetches its source files (usually F). -The valid C for the generated ebuilds are by default those given in C, but you can specify your own with the C dist-option. The generated ebuilds are placed into the C category. They favour depending on a C, on C, C or C (in that order) rather than C. +=head1 OPTIONS + +You can pass specific options to L by using the C<--dist-opts> command-line argument followed by a C pair, where C is the option name and C is what it is set to. +C<--dist-opts> can be used several times. + +The valid option Cs are : + +=over 4 + +=item * + +C + +A boolean that indicates whether the F file should be generated by running C onto the generated ebuilds. + +Defaults to C. + +=item * + +C + +A string formatted as a space-delimited sequence of paths, that lists the different overlays in which existent ebuilds will be looked for. + +Defaults to the value of C as returned by C (usually F). + +=item * + +C + +The directory where C expects to find the source tarballs. +You need write permissions on this directory. + +Defaults to the value of C as returned by C (usually F). + +=item * + +C + +The valid C for the generated ebuilds. + +Defaults to the value of C as returned by C. + +=item * + +C
+ +A chunk of text that is prepended to every ebuild. + +Defaults to the generic Gentoo Foundation header. + +=item * + +C