Ignore:
Timestamp:
Jan 9, 2015, 2:12:52 AM (9 years ago)
Author:
larryv@…
Message:

perl5.{8,10,12,14,16,18,20}: Rearrange and reformat

Mainly aesthetic changes, quoting improvements, use of a ternary
expression where appropriate, and use of ne for string inequality
testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/perl5.14/Portfile

    r119428 r131310  
    88set branch          [join [lrange [split ${version} .] 0 1] .]
    99categories          lang
     10platforms           darwin freebsd linux
    1011license             {Artistic-1 GPL}
    11 platforms           darwin freebsd linux
    1212maintainers         nomaintainer
     13
    1314description         Perl 5.14.x - Practical Extraction and Report Language
     15long_description    Perl is a general-purpose programming language \
     16                    originally developed for text manipulation and now \
     17                    used for a wide range of tasks including system \
     18                    administration, web development, network \
     19                    programming, GUI development, and more.
     20homepage            http://www.perl.org/
    1421
    15 long_description    Perl is a general-purpose programming language originally developed \
    16                     for text manipulation and now used for a wide range of tasks including \
    17                     system administration, web development, network programming, GUI \
    18                     development, and more.
     22depends_lib-append  port:gdbm
    1923
     24master_sites        http://www.cpan.org/src/5.0/
    2025distname            perl-${version}
    2126use_bzip2           yes
    22 homepage            http://www.perl.org/
    23 master_sites        http://www.cpan.org/src/5.0/
    2427
    2528checksums           rmd160  b06a822864f2c8e4e77a1ebef74d37c00cba54d6 \
    2629                    sha256  eece8c2b0d491bf6f746bd1f4f1bb7ce26f6b98e91c54690c617d7af38964745
    27 
    28 depends_lib-append  port:gdbm
    2930
    3031patchfiles          patch-Configure.diff \
     
    5556                    -Dprefix='${prefix}' \
    5657                    -Dscriptdir='${prefix}/bin' \
    57                     -Dcppflags="\${CPPFLAGS}" \
    58                     -Dccflags="\${CFLAGS}" \
    59                     -Dldflags="\${LDFLAGS}" \
     58                   {-Dcppflags="$CPPFLAGS"} \
     59                   {-Dccflags="$CFLAGS"} \
     60                   {-Dldflags="$LDFLAGS"} \
    6061                    -Dvendorprefix='${prefix}' \
    6162                    -Dusemultiplicity=y \
    6263                    -Dusethreads \
    6364                    -Duseshrplib \
    64                     -D cc=\${CC} \
    65                     -D ld=\${CC} \
    66                     -D man1ext='1pm' \
    67                     -D man3ext='3pm' \
    68                     -D man1dir='${prefix}/share/man/man1p' \
    69                     -D man3dir='${prefix}/share/man/man3p' \
    70                     -D sitebin='${prefix}/libexec/perl${branch}/sitebin' \
    71                     -D siteman1dir='${prefix}/share/perl${branch}/siteman/man1' \
    72                     -D siteman3dir='${prefix}/share/perl${branch}/siteman/man3' \
    73                     -D vendorbin='${prefix}/libexec/perl${branch}' \
    74                     -D vendorman1dir='${prefix}/share/perl${branch}/man/man1' \
    75                     -D vendorman3dir='${prefix}/share/perl${branch}/man/man3' \
    76                     -D pager="/usr/bin/less -sR" \
    77                     -D perlpath="${prefix}/bin/perl${branch}" \
    78                     -D startperl="#!${prefix}/bin/perl${branch}"
     65                   {-Dcc="$CC"} \
     66                   {-Dld="$CC"} \
     67                    -Dman1ext=1pm \
     68                    -Dman3ext=3pm \
     69                    -Dman1dir='${prefix}/share/man/man1p' \
     70                    -Dman3dir='${prefix}/share/man/man3p' \
     71                    -Dsitebin='${prefix}/libexec/perl${branch}/sitebin' \
     72                    -Dsiteman1dir='${prefix}/share/perl${branch}/siteman/man1' \
     73                    -Dsiteman3dir='${prefix}/share/perl${branch}/siteman/man3' \
     74                    -Dvendorbin='${prefix}/libexec/perl${branch}' \
     75                    -Dvendorman1dir='${prefix}/share/perl${branch}/man/man1' \
     76                    -Dvendorman3dir='${prefix}/share/perl${branch}/man/man3' \
     77                    -Dpager='/usr/bin/less -sR' \
     78                    -Dperlpath="${prefix}/bin/perl${branch}" \
     79                    -Dstartperl="#!${prefix}/bin/perl${branch}"
    7980
    8081# Allow perl to find p5-* ports installed by previous (minor) versions
    81 set platsuffix ""
    82 if {${os.platform} eq "darwin"} {
    83     set platsuffix "-2level"
    84 }
    85 configure.args-append "-D inc_version_list=\"5.14.2/${os.platform}-thread-multi${platsuffix} 5.14.2 5.14.1/${os.platform}-thread-multi${platsuffix} 5.14.1 5.14.0/${os.platform}-thread-multi${platsuffix} 5.14.0\""
     82set platsuffix [expr {${os.platform} eq "darwin" ? "-2level" : ""}]
     83configure.args-append -Dinc_version_list='5.14.2/${os.platform}-thread-multi${platsuffix} 5.14.2 5.14.1/${os.platform}-thread-multi${platsuffix} 5.14.1 5.14.0/${os.platform}-thread-multi${platsuffix} 5.14.0'
    8684
    8785
     
    9391
    9492post-build {
    95     reinplace -E {s|-arch [a-z0-9_]+||g} \
     93    reinplace -E {s/-arch [a-z0-9_]+//g} \
    9694        ${worksrcpath}/lib/Config_heavy.pl
    9795}
     
    108106    delete ${destroot}${prefix}/bin/perl
    109107    foreach binFile [glob -directory "${destroot}${prefix}/bin" *] {
    110         if {$binFile != "${destroot}${prefix}/bin/perl${version}"} {
     108        if {$binFile ne "${destroot}${prefix}/bin/perl${version}"} {
    111109            move ${binFile} ${binFile}-${branch}
    112110        }
Note: See TracChangeset for help on using the changeset viewer.