Ticket #39018: Portfile.diff
File Portfile.diff, 5.3 KB (added by cooljeanius (Eric Gallager), 12 years ago) |
---|
-
/opt/local/var/macports/sources/LocalPorts/sysutils/dpkg/
old new 4 4 PortSystem 1.0 5 5 6 6 name dpkg 7 version 1.1 4.298 revision 47 version 1.16.10 8 revision 0 9 9 platforms darwin freebsd 10 10 categories sysutils archivers 11 11 license GPL-2+ 12 maintainers nomaintainer12 maintainers gwmail.gwu.edu:egall openmaintainer 13 13 description Debian package maintenance system 14 long_description ${description} 14 long_description ${name} is the basis of the ${description}. Installing this \ 15 port allows the usage of the `port dpkg` command. 15 16 homepage http://wiki.debian.org/Teams/Dpkg 16 17 17 master_sites debian:d/dpkg/ 18 checksums md5 4326172a959b5b6484b4bc126e9f628d \ 19 sha1 15a35dd96dac6a99f24844b2eff85f8fad37ab06 18 master_sites debian:d/${name}/ 19 checksums md5 a20a06a5272717274a8b009368f237da \ 20 sha1 bd67ce10236a674a2349d13feaa096b41fea4c9c \ 21 rmd160 e04b3834056cd97c1cb955007f02e1358a8e8fa0 \ 22 sha256 aeaacf0884039940d9463901102194f9a42eb5702157b9e7a23f43e0d9f65cf2 23 24 use_xz yes 25 26 depends_build-append \ 27 port:pkgconfig 20 28 21 29 # Use MacPorts versions explicitly 22 depends_lib 30 depends_lib-append port:gettext \ 23 31 port:libiconv \ 24 32 port:perl5 \ 25 33 port:coreutils \ 26 34 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 39 depends_run-append bin:gnutar:gnutar \ 40 bin:lzma:xz \ 41 port:debianutils 31 42 32 43 33 44 distname ${name}_${version} 34 45 worksrcdir ${name}-${version} 35 46 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 \ 47 configure.env-append \ 48 PERL=${prefix}/bin/perl5 \ 49 PKG_CONFIG=${prefix}/bin/pkg-config 50 configure.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 \ 46 55 --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 49 60 50 61 build.type gnu 51 62 52 set vardpkg ${destroot}${prefix}/var/db/ dpkg53 destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info 63 set vardpkg ${destroot}${prefix}/var/db/${name} 64 destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info ${prefix}/var/log 54 65 55 66 post-patch { 56 67 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 63 71 } 64 72 65 73 pre-destroot { 66 file mkdir ${destroot}${prefix}/share/doc/ dpkg74 file mkdir ${destroot}${prefix}/share/doc/${name} 67 75 } 68 76 69 77 post-destroot { … … 75 83 76 84 platform darwin { 77 85 depends_build-append bin:gnumake:gmake 78 patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c79 86 } 80 87 81 88 platform freebsd { 82 89 depends_build-append bin:gmake:gmake 83 patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c84 90 } 85 91 92 # This variant currently hangs while building and fails to actually install the documentation, 93 # not entirely sure why... 94 variant 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 106 test.run yes 107 test.target check 108 86 109 livecheck.type regex 87 livecheck.url http://ftp.debian.org/debian/pool/main/d/ dpkg/110 livecheck.url http://ftp.debian.org/debian/pool/main/d/${name}/ 88 111 livecheck.regex "${name}_(\\d+\\.\\d+(\\.\\d+)*)"