Commit graph

15 commits

Author SHA1 Message Date
seb
c3f1e700ad Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1.

The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=..."), minus the packages updated after
the perl package update.

sno@ was right after all, obache@ kindly asked and he@ led the
way. Thanks!
2010-08-21 16:32:42 +00:00
sno
1b6ac1b07c pkgsrc changes:
- Updating Perl-Tidy from 20071205 to 20090616
  - Setting license to gnu-gpl-v2

Upstream changes:
  2009 06 16
     - Allow configuration file to be 'perltidy.ini' for Windows systems.
       i.e. C:\Documents and Settings\User\perltidy.ini
       and added documentation for setting configuation file under Windows in man
       page.  Thanks to Stuart Clark.

     - Corrected problem of unwanted semicolons in hash ref within given/when code.
      Thanks to Nelo Onyiah.

     - added new flag -cscb or --closing-side-comments-balanced
      When using closing-side-comments, and the closing-side-comment-maximum-text
      limit is exceeded, then the comment text must be truncated.  Previous
      versions of perltidy terminate with three dots, and this can still be
      achieved with -ncscb:

   perltidy -csc -ncscb

       } ## end foreach my $foo (sort { $b cmp $a ...

  However this causes a problem with older editors which cannot recognize
      comments or are not configured to doso because they cannot "bounce" around in
      the text correctly.  The B<-cscb> flag tries to help them by
      appending appropriate terminal balancing structure:

   perltidy -csc -cscb

       } ## end foreach my $foo (sort { $b cmp $a ... })

  Since there is much to be gained and little to be lost by doing this,
      the default is B<-cscb>.  Use B<-ncscb> if you do not want this.

      Thanks to Daniel Becker for suggesting this option.

     - After an isolated closing eval block the continuation indentation will be
       removed so that the braces line up more like other blocks.  Thanks to Yves Orton.

     OLD:
        eval {
            #STUFF;
            1;    # return true
          }
          or do {
            #handle error
          };

     NEW:
        eval {
            #STUFF;
            1;    # return true
        } or do {
            #handle error
        };

     -A new flag -asbl (or --opening-anonymous-sub-brace-on-new-line) has
      been added to put the opening brace of anonymous sub's on a new line,
      as in the following snippet:

        my $code = sub
        {
            my $arg = shift;
            return $arg->(@_);
        };

      This was not possible before because the -sbl flag only applies to named
      subs. Thanks to Benjamin Krupp.

     -Fix tokenization bug with the following snippet
       print 'hi' if { x => 1, }->{x};
      which resulted in a semicolon being added after the comma.  The workaround
      was to use -nasc, but this is no longer necessary.  Thanks to Brian Duggan.

     -Fixed problem in which an incorrect error message could be triggered
     by the (unusual) combination of parameters  -lp -i=0 -l=2 -ci=0 for
     example.  Thanks to Richard Jelinek.

     -A new flag --keep-old-blank-lines=n has been added to
     give more control over the treatment of old blank lines in
     a script.  The manual has been revised to discuss the new
     flag and clarify the treatment of old blank lines.  Thanks
     to Oliver Schaefer.
2009-07-07 20:05:26 +00:00
he
2e3058ee35 Update from version 20070508nb1 to 20071205.
Fixes PR#39557.

Pkgsrc changes:
 o Add a commented-out HOMEPAGE using search.cpan.org

Upstream changes:

  2007 12 05
     -Improved support for perl 5.10: New quote modifier 'p', new
     block type UNITCHECK, new keyword break, improved formatting
     kof given/when.

     -Corrected tokenization bug of something like $var{-q}.

     -Numerous minor formatting improvements.

     -Corrected list of operators controlled by -baao -bbao to include
       . : ? && || and or err xor

     -Corrected very minor error in log file involving incorrect comment
     regarding need for upper case of labels.

     -Fixed problem where perltidy could run for a very long time
     when given certain non-perl text files.

     -Line breaks in un-parenthesized lists now try to follow
     line breaks in the input file rather than trying to fill
     lines.  This usually works better, but if this causes
     trouble you can use -iob to ignore any old line breaks.
     Example for the following input snippet:

        print
        "conformability (Not the same dimension)\n",
        "\t", $have, " is ", text_unit($hu), "\n",
        "\t", $want, " is ", text_unit($wu), "\n",
        ;

      OLD:
        print "conformability (Not the same dimension)\n", "\t", $have, " is ",
          text_unit($hu), "\n", "\t", $want, " is ", text_unit($wu), "\n",;

      NEW:
        print "conformability (Not the same dimension)\n",
          "\t", $have, " is ", text_unit($hu), "\n",
          "\t", $want, " is ", text_unit($wu), "\n",
          ;

  2007 08 01
     -Added -fpsc option (--fixed-position-side-comment). Thanks
     to Ueli Hugenschmidt.  For example -fpsc=40 tells perltidy to
     put side comments in column 40 if possible.

     -Added -bbao and -baao options (--break-before-all-operators
     and --break-after-all-operators) to simplify command lines
     and configuration files.  These define an initial preference
     for breaking at operators which can be modified with -wba and
     -wbb flags.  For example to break before all operators except
     an = one could use --bbao -wba='=' rather than listing every
     single perl operator (except =) on a -wbb flag.

     -Added -kis option (--keep-interior-semicolons).  Use the B<-kis> flag
     to prevent breaking at a semicolon if there was no break there in the
     input file.  To illustrate, consider the following input lines:

        dbmclose(%verb_delim); undef %verb_delim;
        dbmclose(%expanded); undef %expanded;
        dbmclose(%global); undef %global;

     Normally these would be broken into six lines, but
     perltidy -kis gives:

        dbmclose(%verb_delim); undef %verb_delim;
        dbmclose(%expanded);   undef %expanded;
        dbmclose(%global);     undef %global;

     -Improved formatting of complex ternary statements, with indentation
     of nested statements.
      OLD:
        return defined( $cw->{Selected} )
          ? (wantarray)
          ? @{ $cw->{Selected} }
          : $cw->{Selected}[0]
          : undef;

      NEW:
        return defined( $cw->{Selected} )
          ? (wantarray)
              ? @{ $cw->{Selected} }
              : $cw->{Selected}[0]
          : undef;

     -Text following un-parenthesized if/unless/while/until statements get a
     full level of indentation.  Suggested by Jeff Armstorng and others.
     OLD:
        return $ship->chargeWeapons("phaser-canon")
          if $encounter->description eq 'klingon'
          and $ship->firepower >= $encounter->firepower
          and $location->status ne 'neutral';
     NEW:
        return $ship->chargeWeapons("phaser-canon")
          if $encounter->description eq 'klingon'
              and $ship->firepower >= $encounter->firepower
              and $location->status ne 'neutral';
2008-12-18 23:22:21 +00:00
he
b021813da0 Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.

The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
2008-10-19 19:17:40 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
jlam
56ba4d2690 Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
obache
08625fbe53 Update p5-Perl-Tidy to 20070508.
Patch provided by Mark E. Perkins in PR 36465.

Perltidy Change Log
  2007 05 08
     -Fixed bug where #line directives were being indented.  Thanks to
     Philippe Bruhat.

  2007 05 04
     -Fixed problem where an extra blank line was added after an =cut when either
     (a) the =cut started (not stopped) a POD section, or (b) -mbl > 1.
     Thanks to J. Robert Ray and Bill Moseley.
2007-06-10 08:42:10 +00:00
abs
999705e972 perltidy was already imported as p5-Perl-Tidy. Update that to
20070424 and remove misimported perltidy. Thanks to the eagle eye
of Stoned for picking this up.
2007-05-01 11:27:50 +00:00
jlam
7fbb8d9527 Bump the PKGREVISIONs of all (638) packages that hardcode the locations
of Perl files to deal with the perl-5.8.7 update that moved all
pkgsrc-installed Perl files into the "vendor" directories.
2005-08-06 06:19:03 +00:00
jlam
7a6521287b Turn PERL5_PACKLIST into a relative path instead of an absolute path.
These paths are now relative to PERL5_PACKLIST_DIR, which currently
defaults to ${PERL5_SITEARCH}.  There is no change to the binary
packages.
2005-07-13 18:01:18 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
wiz
62ec1e7fde Update to 20031021:
2003 10 21
     -The default has been changed to not do syntax checking with perl.
       Use -syn if you want it.  Perltidy is very robust now, and the -syn
       flag now causes more problems than it's worth because of BEGIN blocks
       (which get executed with perl -c).  For example, perltidy will never
       return when trying to beautify this code if -syn is used:

            BEGIN { 1 while { }; }

      Although this is an obvious error, perltidy is often run on untested
      code which is more likely to have this sort of problem.  A more subtle
      example is:

            BEGIN { use FindBin; }

      which may hang on some systems using -syn if a shared file system is
      unavailable.

     -Changed style -gnu to use -cti=1 instead of -cti=2 (see next item).
      In most cases it looks better.  To recover the previous format, use
      '-gnu -cti=2'

     -Added flags B<-cti=n> for finer control of closing token indentation.
       -cti = 0 no extra indentation (default; same as -nicp)
       -cti = 1 enough indentation so that the closing token
            aligns with its opening token.
       -cti = 2 one extra indentation level if the line has the form
              C<);>, C<];>, or <};> (same as -icp).

       The new option -cti=1 works well with -lp:

       EXAMPLES:

        # perltidy -lp -cti=1
        @month_of_year = (
                           'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                           'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
                         );

        # perltidy -lp -cti=2
        @month_of_year = (
                           'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                           'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
                           );
      This is backwards compatible with -icp. See revised manual for
      details.  Suggested by Mike Pennington.

     -Added flag '--preserve-line-endings' or '-ple' to cause the output
      line ending to be the same as in the input file, for unix, dos,
      or mac line endings.  Only works under unix. Suggested by
      Rainer Hochschild.

     -Added flag '--output-line-ending=s' or '-ole=s' where s=dos or win,
      unix, or mac.  Only works under unix.

     -Files with Mac line endings should now be handled properly under unix
      and dos without being passed through a converter.

     -You may now include 'and', 'or', and 'xor' in the list following
      '--want-break-after' to get line breaks after those keywords rather than
      before them.  Suggested by Rainer Hochschild.

     -Corrected problem with command line option for -vtc=n and -vt=n. The
      equals sign was being eaten up by the Windows shell so perltidy didn't
      see it.

  2003 07 26
     -Corrected cause of warning message with recent versions of Perl:
        "Possible precedence problem on bitwise & operator at ..."
      Thanks to Jim Files.

     -fixed bug with -html with '=for pod2html' sections, in which code/pod
     output order was incorrect.  Thanks to Tassilo von Parseval.

     -fixed bug when the -html flag is used, in which the following error
     message, plus others, appear:
         did not see <body> in pod2html output
     This was caused by a change in the format of html output by pod2html
     VERSION 1.04 (included with perl 5.8).  Thanks to Tassilo von Parseval.

     -Fixed bug where an __END__ statement would be mistaken for a label
     if it is immediately followed by a line with a leading colon. Thanks
     to John Bayes.

     -Implemented guessing logic for brace types when it is ambiguous.  This
     has been on the TODO list a long time.  Thanks to Boris Zentner for
     an example.

     -Long options may now be negated either as '--nolong-option'
     or '--no-long-option'.  Thanks to Philip Newton for the suggestion.

     -added flag --html-entities or -hent which controls the use of
     Html::Entities for html formatting.  Use --nohtml-entities or -nhent to
     prevent the use of Html::Entities to encode special symbols.  The
     default is -hent.  Html::Entities when formatting perl text to escape
     special symbols.  This may or may not be the right thing to do,
     depending on browser/language combinations.  Thanks to Gurak Bursoy for
     this suggestion.

     -Bareword strings with leading '-', like, '-foo' now count as 1 token
     for horizontal tightness.  This way $a{'-foo'}, $a{foo}, and $a{-foo}
     are now all treated similarly.  Thus, by default, OLD: $a{ -foo } will
     now be NEW: $a{-foo}.  Suggested by Mark Olesen.

     -added 2 new flags to control spaces between keywords and opening parens:
       -sak=s  or --space-after-keyword=s,  and
       -nsak=s or --nospace-after-keyword=s, where 's' is a list of keywords.

     The new default list of keywords which get a space is:

       "my local our and or eq ne if else elsif until unless while for foreach
         return switch case given when"

     Use -sak=s and -nsak=s to add and remove keywords from this list,
        respectively.

     Explanation: Stephen Hildrey noted that perltidy was being inconsistent
     in placing spaces between keywords and opening parens, and sent a patch
     to give user control over this.  The above list was selected as being
     a reasonable default keyword list.  Previously, perltidy
     had a hardwired list which also included these keywords:

            push pop shift unshift join split die

     but did not have 'our'.  Example: if you prefer to make perltidy behave
     exactly as before, you can include the following two lines in your
     .perltidyrc file:

       -sak="push pop local shift unshift join split die"
       -nsak="our"

     -Corrected html error in .toc file when -frm -html is used (extra ");
      browsers were tolerant of it.

     -Improved alignment of chains of binary and ?/: operators. Example:
      OLD:
        $leapyear =
          $year % 4     ? 0
          : $year % 100 ? 1
          : $year % 400 ? 0
          : 1;
      NEW:
        $leapyear =
            $year % 4   ? 0
          : $year % 100 ? 1
          : $year % 400 ? 0
          : 1;

     -improved breakpoint choices involving '->'

     -Corrected tokenization of things like ${#} or ${©}. For example,
      ${©} is valid, but ${© } is a syntax error.

     -Corrected minor tokenization errors with indirect object notation.
      For example, 'new A::()' works now.

     -Minor tokenization improvements; all perl code distributed with perl 5.8
      seems to be parsed correctly except for one instance (lextest.t)
      of the known bug.
2005-02-04 14:35:19 +00:00
grant
908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00
minskim
8cf74ab84b Import p5-Perl-Tidy from pkgsrc-wip. Packaged by Adam Migus and
slightly modified by me.

Perl-Tidy is a tool to indent and reformat Perl scripts.  It can also
write scripts in HTML format.
2004-02-22 01:58:09 +00:00