Ticket #39018: dpkg_Portfile_whitespace.diff

File dpkg_Portfile_whitespace.diff, 5.0 KB (added by cooljeanius (Eric Gallager), 11 years ago)

whitespace patch for dpkg

  • /opt/local/var/macports/sources/LocalPorts/sysutils/dpkg/

    old new  
     1# -*- 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
    12# $Id: Portfile 105815 2013-05-06 14:52:20Z landonf@macports.org $
    23
    3 PortSystem 1.0
     4PortSystem          1.0
    45
    5 name                    dpkg
    6 version                 1.14.29
    7 revision                4
    8 platforms               darwin freebsd
    9 categories              sysutils archivers
    10 license                 GPL-2+
    11 maintainers             nomaintainer
    12 description             Debian package maintenance system
    13 long_description ${description}
    14 homepage                http://wiki.debian.org/Teams/Dpkg
    15 
    16 master_sites    debian:d/dpkg/
    17 checksums               md5 4326172a959b5b6484b4bc126e9f628d \
    18                         sha1 15a35dd96dac6a99f24844b2eff85f8fad37ab06
     6name                dpkg
     7version             1.14.29
     8revision            4
     9platforms           darwin freebsd
     10categories          sysutils archivers
     11license             GPL-2+
     12maintainers         nomaintainer
     13description         Debian package maintenance system
     14long_description    ${description}
     15homepage            http://wiki.debian.org/Teams/Dpkg
     16
     17master_sites        debian:d/dpkg/
     18checksums           md5 4326172a959b5b6484b4bc126e9f628d \
     19                    sha1 15a35dd96dac6a99f24844b2eff85f8fad37ab06
    1920
    2021# Use MacPorts versions explicitly
    21 depends_lib             port:gettext \
    22                         port:libiconv \
    23                         port:perl5 \
    24                         port:coreutils \
    25                         port:bzip2 \
    26                         port:zlib
    27 
    28 depends_run             bin:gnutar:gnutar \
    29                         bin:lzma:xz
    30 
    31 
    32 distname                ${name}_${version}
    33 worksrcdir              ${name}-${version}
    34 
    35 patchfiles              patch-lib_tarfn.c \
    36                         patch-main_remove.c \
    37                         patch-main_archives.c \
    38                         patch-scripts-Makefile \
    39                         patch-lib_dpkg.h \
    40                         ncurses.diff
    41 
    42 configure.env           PERL=${prefix}/bin/perl5
    43 configure.args          --without-sgml-doc --with-libintl-prefix=${prefix} \
    44                         --with-libiconv-prefix=${prefix} --with-admindir=${prefix}/var/db/dpkg \
    45                         --mandir=${prefix}/share/man \
    46                         --with-zlib --with-bz2 \
    47                         --disable-linker-optimisations
     22depends_lib         port:gettext \
     23                    port:libiconv \
     24                    port:perl5 \
     25                    port:coreutils \
     26                    port:bzip2 \
     27                    port:zlib
     28
     29depends_run         bin:gnutar:gnutar \
     30                    bin:lzma:xz
     31
     32
     33distname            ${name}_${version}
     34worksrcdir          ${name}-${version}
     35
     36patchfiles          patch-lib_tarfn.c \
     37                    patch-main_remove.c \
     38                    patch-main_archives.c \
     39                    patch-scripts-Makefile \
     40                    patch-lib_dpkg.h \
     41                    ncurses.diff
     42
     43configure.env       PERL=${prefix}/bin/perl5
     44configure.args      --without-sgml-doc --with-libintl-prefix=${prefix} \
     45                    --with-libiconv-prefix=${prefix} --with-admindir=${prefix}/var/db/dpkg \
     46                    --mandir=${prefix}/share/man \
     47                    --with-zlib --with-bz2 \
     48                    --disable-linker-optimisations
    4849
    49 build.type              gnu
     50build.type          gnu
    5051
    5152set vardpkg ${destroot}${prefix}/var/db/dpkg
    5253destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info
    5354
    5455post-patch {
    55         set scripts ${worksrcpath}/scripts
    56         reinplace s|/etc/dpkg/|${prefix}/etc/dpkg/| \
    57                         ${scripts}/dpkg-shlibdeps.pl \
    58                         ${scripts}/dpkg-source.pl
     56    set scripts ${worksrcpath}/scripts
     57    reinplace s|/etc/dpkg/|${prefix}/etc/dpkg/| \
     58            ${scripts}/dpkg-shlibdeps.pl \
     59            ${scripts}/dpkg-source.pl
    5960
    60         reinplace s|/etc/alternatives|${prefix}/etc/alternatives|g \
    61                         ${scripts}/update-alternatives.pl
     61    reinplace s|/etc/alternatives|${prefix}/etc/alternatives|g \
     62            ${scripts}/update-alternatives.pl
    6263}
    6364
    6465pre-destroot {
    65         file mkdir ${destroot}${prefix}/share/doc/dpkg
     66    file mkdir ${destroot}${prefix}/share/doc/dpkg
    6667}
    6768
    6869post-destroot {
    69         file mkdir ${vardpkg}
    70         file mkdir ${vardpkg}/updates
    71         file mkdir ${vardpkg}/info
    72         system "touch ${vardpkg}/available ${vardpkg}/status"
     70    file mkdir ${vardpkg}
     71    file mkdir ${vardpkg}/updates
     72    file mkdir ${vardpkg}/info
     73    system "touch ${vardpkg}/available ${vardpkg}/status"
    7374}
    7475
    7576platform darwin {
    76         depends_build-append    bin:gnumake:gmake
    77         patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
     77    depends_build-append    bin:gnumake:gmake
     78    patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
    7879}
    7980
    8081platform freebsd {
    81         depends_build-append    bin:gmake:gmake
    82         patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
     82    depends_build-append    bin:gmake:gmake
     83    patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
    8384}
    8485
    85 livecheck.type          regex
    86 livecheck.url           http://ftp.debian.org/debian/pool/main/d/dpkg/
    87 livecheck.regex         "${name}_(\\d+\\.\\d+(\\.\\d+)*)"
     86livecheck.type      regex
     87livecheck.url       http://ftp.debian.org/debian/pool/main/d/dpkg/
     88livecheck.regex     "${name}_(\\d+\\.\\d+(\\.\\d+)*)"