# -*- 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 # $Id: Portfile 105815 2013-05-06 14:52:20Z landonf@macports.org $ PortSystem 1.0 name dpkg version 1.16.10 revision 0 platforms darwin freebsd categories sysutils archivers license GPL-2+ maintainers gwmail.gwu.edu:egall openmaintainer description Debian package maintenance system long_description ${name} is the basis of the ${description}. Installing this \ port allows the usage of the `port dpkg` command. homepage http://wiki.debian.org/Teams/Dpkg master_sites debian:d/${name}/ checksums md5 a20a06a5272717274a8b009368f237da \ sha1 bd67ce10236a674a2349d13feaa096b41fea4c9c \ rmd160 e04b3834056cd97c1cb955007f02e1358a8e8fa0 \ sha256 aeaacf0884039940d9463901102194f9a42eb5702157b9e7a23f43e0d9f65cf2 use_xz yes depends_build-append \ port:pkgconfig # Use MacPorts versions explicitly depends_lib-append port:gettext \ port:libiconv \ port:perl5 \ port:coreutils \ port:bzip2 \ port:zlib \ port:ncurses \ lib:liblzma:xz depends_run-append bin:gnutar:gnutar \ bin:lzma:xz \ port:debianutils distname ${name}_${version} worksrcdir ${name}-${version} configure.env-append \ PERL=${prefix}/bin/perl5 \ PKG_CONFIG=${prefix}/bin/pkg-config configure.args-append \ --with-libintl-prefix=${prefix} \ --with-libiconv-prefix=${prefix} \ --with-admindir=${prefix}/var/db/${name} \ --with-logdir=${prefix}/var/log \ --mandir=${prefix}/share/man \ --with-zlib --with-bz2 --with-liblzma \ --disable-linker-optimisations \ --disable-silent-rules \ --disable-start-stop-daemon build.type gnu set vardpkg ${destroot}${prefix}/var/db/${name} destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info ${prefix}/var/log post-patch { set scripts ${worksrcpath}/scripts reinplace s|/etc/${name}/|${prefix}/etc/${name}/| \ ${scripts}/${name}-shlibdeps.pl \ ${scripts}/${name}-source.pl } pre-destroot { file mkdir ${destroot}${prefix}/share/doc/${name} } post-destroot { file mkdir ${vardpkg} file mkdir ${vardpkg}/updates file mkdir ${vardpkg}/info system "touch ${vardpkg}/available ${vardpkg}/status" } platform darwin { depends_build-append bin:gnumake:gmake } platform freebsd { depends_build-append bin:gmake:gmake } # This variant currently hangs while building and fails to actually install the documentation, # not entirely sure why... variant docs description {Build documentation} { depends_build-append port:doxygen path:bin/dot:graphviz set docdir ${prefix}/share/doc/${name} configure.args-append --docdir=${docdir} \ --htmldir=${docdir}/html \ --dvidir=${docdir}/dvi \ --pdfdir=${docdir}/pdf \ --psdir=${docdir}/ps build.target-append doc } # Tests currently fail, this needs to be fixed test.run yes test.target check livecheck.type regex livecheck.url http://ftp.debian.org/debian/pool/main/d/${name}/ livecheck.regex "${name}_(\\d+\\.\\d+(\\.\\d+)*)"