Ticket #50676: Portfile-nspr-whitespace.diff

File Portfile-nspr-whitespace.diff, 3.7 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22# $Id: Portfile 142771 2015-11-23 00:50:40Z ryandesign@macports.org $
    33
    4 PortSystem      1.0
     4PortSystem  1.0
    55PortGroup       muniversal 1.0
    66
    7 name            nspr
    8 version             4.11
    9 categories      devel
    10 maintainers     nomaintainer
    11 license             {MPL-1.1 GPL-2+ LGPL-2.1+}
    12 platforms       darwin
    13 description     A platform-neutral API for system level and libc like functions.
     7name            nspr
     8version         4.11
     9categories      devel
     10maintainers     nomaintainer
     11license         {MPL-1.1 GPL-2+ LGPL-2.1+}
     12platforms       darwin
     13description     A platform-neutral API for system level and libc like functions.
    1414
    1515long_description ${description}
    1616
    17 homepage        http://www.mozilla.org/projects/nspr
    18 master_sites    http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/ \
    19                 ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/
     17homepage        http://www.mozilla.org/projects/nspr
     18master_sites    http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/ \
     19                ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/
    2020
    21 checksums           rmd160  a2a9614a335c8c118589e0017687915269a50806 \
    22                     sha256  cb320a9eee7028275ac0fce7adc39dee36f14f02fd8432fce1b7e1aa5e3685c2
     21checksums       rmd160  a2a9614a335c8c118589e0017687915269a50806 \
     22                sha256  cb320a9eee7028275ac0fce7adc39dee36f14f02fd8432fce1b7e1aa5e3685c2
    2323
    24 worksrcdir      ${worksrcdir}/nspr
     24worksrcdir  ${worksrcdir}/nspr
    2525
    2626post-patch {
    2727    reinplace "s:@LDFLAGS@:${configure.ldflags}:" \
     
    3131}
    3232
    3333configure.args \
    34         --disable-debug \
    35         --enable-optimize='${configure.optflags}' \
    36         --libdir=${prefix}/lib/nspr
     34    --disable-debug \
     35    --enable-optimize='${configure.optflags}' \
     36    --libdir=${prefix}/lib/nspr
    3737
    3838set merger_configure_args(ppc64)  "--enable-64bit"
    3939set merger_configure_args(x86_64) "--enable-64bit"
     
    4949}
    5050
    5151post-destroot {
    52         file mkdir ${destroot}${prefix}/lib/pkgconfig
    53         copy ${filespath}/nspr.pc ${destroot}${prefix}/lib/pkgconfig
    54         reinplace "s|@@prefix@@|${prefix}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
    55         set mylibs [exec ${destroot}${prefix}/bin/nspr-config --libs]
    56         set mycflags [exec ${destroot}${prefix}/bin/nspr-config --cflags]
    57         set myversion [exec ${destroot}${prefix}/bin/nspr-config --version]
    58         reinplace "s|@@FULL_NSPR_LIBS@@|${mylibs}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
    59         reinplace "s|@@FULL_NSPR_CFLAGS@@|${mycflags}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
    60         reinplace "s|@@NSPR_VERSION@@|${myversion}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
     52    file mkdir ${destroot}${prefix}/lib/pkgconfig
     53    copy ${filespath}/nspr.pc ${destroot}${prefix}/lib/pkgconfig
     54    reinplace "s|@@prefix@@|${prefix}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
     55    set mylibs [exec ${destroot}${prefix}/bin/nspr-config --libs]
     56    set mycflags [exec ${destroot}${prefix}/bin/nspr-config --cflags]
     57    set myversion [exec ${destroot}${prefix}/bin/nspr-config --version]
     58    reinplace "s|@@FULL_NSPR_LIBS@@|${mylibs}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
     59    reinplace "s|@@FULL_NSPR_CFLAGS@@|${mycflags}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
     60    reinplace "s|@@NSPR_VERSION@@|${myversion}|" ${destroot}${prefix}/lib/pkgconfig/nspr.pc
    6161}
    6262
    6363livecheck.type  regex
    6464#livecheck.url   [lindex ${master_sites} 0]
    65 livecheck.url   http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
     65livecheck.url   http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
    6666livecheck.regex "v(\\d+(?:\\.\\d+)*)"