Skip to content

Commit

Permalink
s/repo/source/, make source-type optional
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Apr 2, 2011
1 parent 080f198 commit acee9be
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions spec.pod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ and is likely to be ignored by the package managers. The C<META.info>
file MUST be a valid L<http://json.org/|JSON>.

The JSON content of the file MUST be a hash object, with the following
obligatory fields:
fields:

=head2 Mandatory fields

=over 4

Expand Down Expand Up @@ -42,20 +44,30 @@ An array of the modules the module depends on. The modules with their
C<name> equal to the one mentioned in C<depends> will be installed
before the one depending on them. If a module has no dependencies, C<depends> should be an empty array.

=item repo-type
=item source-url

An url of the from which the module is obtained.

The type of repository a project uses. The only one known to be
supported so far is C<git>.
The schema determines the type of the resource: C<ftp://> and C<http://>
are assumed to point to archives containing the full module, C<git://>
points to a git source code repository (at the time of writing, this is the
only type that is known to be a supported by an installer).

=item repo-url
=back

An url of the repository to fetch the module from.
=head2 Optional fields

The module author can also add any number of optional fields he or she
wants.
=item source-type

The type of source the module should be installed from.
The only one known to be supported so far is C<git>. If this field is
missing, it is inferred from the C<source-url> field.

=back

The module author can also add any number of other fields he or she
wants.

=head1 The directory structure

The project directory can contain any of the following subdirectories:
Expand Down

0 comments on commit acee9be

Please sign in to comment.