Ticket #39018: Portfile.diff

File Portfile.diff, 5.3 KB (added by cooljeanius (Eric Gallager), 11 years ago)

diff to apply to dpkg portfile after applying the whitespace patch

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

    old new  
    44PortSystem          1.0
    55
    66name                dpkg
    7 version             1.14.29
    8 revision            4
     7version             1.16.10
     8revision            0
    99platforms           darwin freebsd
    1010categories          sysutils archivers
    1111license             GPL-2+
    12 maintainers         nomaintainer
     12maintainers         gwmail.gwu.edu:egall openmaintainer
    1313description         Debian package maintenance system
    14 long_description    ${description}
     14long_description    ${name} is the basis of the ${description}. Installing this \
     15                    port allows the usage of the `port dpkg` command.
    1516homepage            http://wiki.debian.org/Teams/Dpkg
    1617
    17 master_sites        debian:d/dpkg/
    18 checksums           md5 4326172a959b5b6484b4bc126e9f628d \
    19                     sha1 15a35dd96dac6a99f24844b2eff85f8fad37ab06
     18master_sites        debian:d/${name}/
     19checksums           md5     a20a06a5272717274a8b009368f237da \
     20                    sha1    bd67ce10236a674a2349d13feaa096b41fea4c9c \
     21                    rmd160  e04b3834056cd97c1cb955007f02e1358a8e8fa0 \
     22                    sha256  aeaacf0884039940d9463901102194f9a42eb5702157b9e7a23f43e0d9f65cf2
     23
     24use_xz              yes
     25
     26depends_build-append \
     27                    port:pkgconfig
    2028
    2129# Use MacPorts versions explicitly
    22 depends_lib         port:gettext \
     30depends_lib-append  port:gettext \
    2331                    port:libiconv \
    2432                    port:perl5 \
    2533                    port:coreutils \
    2634                    port:bzip2 \
    27                     port:zlib
    28 
    29 depends_run         bin:gnutar:gnutar \
    30                     bin:lzma:xz
     35                    port:zlib \
     36                    port:ncurses \
     37                    lib:liblzma:xz
     38
     39depends_run-append  bin:gnutar:gnutar \
     40                    bin:lzma:xz \
     41                    port:debianutils
    3142
    3243
    3344distname            ${name}_${version}
    3445worksrcdir          ${name}-${version}
    3546
    36 patchfiles          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 
    43 configure.env       PERL=${prefix}/bin/perl5
    44 configure.args      --without-sgml-doc --with-libintl-prefix=${prefix} \
    45                     --with-libiconv-prefix=${prefix} --with-admindir=${prefix}/var/db/dpkg \
     47configure.env-append \
     48                    PERL=${prefix}/bin/perl5 \
     49                    PKG_CONFIG=${prefix}/bin/pkg-config
     50configure.args-append \
     51                    --with-libintl-prefix=${prefix} \
     52                    --with-libiconv-prefix=${prefix} \
     53                    --with-admindir=${prefix}/var/db/${name} \
     54                    --with-logdir=${prefix}/var/log \
    4655                    --mandir=${prefix}/share/man \
    47                     --with-zlib --with-bz2 \
    48                     --disable-linker-optimisations
     56                    --with-zlib --with-bz2 --with-liblzma \
     57                    --disable-linker-optimisations \
     58                    --disable-silent-rules \
     59                    --disable-start-stop-daemon
    4960
    5061build.type          gnu
    5162
    52 set vardpkg ${destroot}${prefix}/var/db/dpkg
    53 destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info
     63set vardpkg ${destroot}${prefix}/var/db/${name}
     64destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info ${prefix}/var/log
    5465
    5566post-patch {
    5667    set scripts ${worksrcpath}/scripts
    57     reinplace s|/etc/dpkg/|${prefix}/etc/dpkg/| \
    58             ${scripts}/dpkg-shlibdeps.pl \
    59             ${scripts}/dpkg-source.pl
    60 
    61     reinplace s|/etc/alternatives|${prefix}/etc/alternatives|g \
    62             ${scripts}/update-alternatives.pl
     68    reinplace s|/etc/${name}/|${prefix}/etc/${name}/| \
     69            ${scripts}/${name}-shlibdeps.pl \
     70            ${scripts}/${name}-source.pl
    6371}
    6472
    6573pre-destroot {
    66     file mkdir ${destroot}${prefix}/share/doc/dpkg
     74    file mkdir ${destroot}${prefix}/share/doc/${name}
    6775}
    6876
    6977post-destroot {
     
    7583
    7684platform darwin {
    7785    depends_build-append    bin:gnumake:gmake
    78     patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
    7986}
    8087
    8188platform freebsd {
    8289    depends_build-append    bin:gmake:gmake
    83     patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
    8490}
    8591
     92# This variant currently hangs while building and fails to actually install the documentation,
     93# not entirely sure why...
     94variant docs description {Build documentation} {
     95    depends_build-append    port:doxygen path:bin/dot:graphviz
     96    set docdir ${prefix}/share/doc/${name}
     97    configure.args-append   --docdir=${docdir} \
     98                            --htmldir=${docdir}/html \
     99                            --dvidir=${docdir}/dvi \
     100                            --pdfdir=${docdir}/pdf \
     101                            --psdir=${docdir}/ps
     102    build.target-append     doc
     103}
     104
     105# Tests currently fail, this needs to be fixed
     106test.run            yes
     107test.target         check
     108
    86109livecheck.type      regex
    87 livecheck.url       http://ftp.debian.org/debian/pool/main/d/dpkg/
     110livecheck.url       http://ftp.debian.org/debian/pool/main/d/${name}/
    88111livecheck.regex     "${name}_(\\d+\\.\\d+(\\.\\d+)*)"