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 |
---|
2 | # $Id: Portfile 152144 2016-08-30 04:01:58Z devans@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup perl5 1.0 |
---|
6 | |
---|
7 | name dpkg |
---|
8 | version 1.18.10 |
---|
9 | platforms darwin |
---|
10 | categories sysutils archivers |
---|
11 | license GPL-2+ |
---|
12 | maintainers gwmail.gwu.edu:egall gmail.com:xeron.oskom openmaintainer |
---|
13 | description Debian package maintenance system |
---|
14 | long_description ${name} is the basis of the ${description}. |
---|
15 | |
---|
16 | homepage http://wiki.debian.org/Teams/Dpkg |
---|
17 | master_sites debian:d/${name}/ |
---|
18 | distname ${name}_${version} |
---|
19 | worksrcdir ${name}-${version} |
---|
20 | |
---|
21 | use_xz yes |
---|
22 | extract.asroot yes |
---|
23 | |
---|
24 | checksums rmd160 807a8d4bc3ec547dff82b9495618220208870196 \ |
---|
25 | sha256 025524da41ba18b183ff11e388eb8686f7cc58ee835ed7d48bd159c46a8b6dc5 |
---|
26 | |
---|
27 | perl5.branches 5.24 |
---|
28 | |
---|
29 | depends_build-append \ |
---|
30 | port:pkgconfig \ |
---|
31 | port:flex |
---|
32 | |
---|
33 | # Use MacPorts versions explicitly |
---|
34 | depends_lib-append port:bzip2 \ |
---|
35 | port:coreutils \ |
---|
36 | port:gettext \ |
---|
37 | port:gnutar \ |
---|
38 | port:gzip \ |
---|
39 | port:libiconv \ |
---|
40 | port:ncurses \ |
---|
41 | port:perl${perl5.major} \ |
---|
42 | port:xz \ |
---|
43 | port:zlib |
---|
44 | |
---|
45 | depends_run-append port:debianutils |
---|
46 | |
---|
47 | configure.perl ${perl5.bin} |
---|
48 | configure.pkg_config \ |
---|
49 | ${prefix}/bin/pkg-config |
---|
50 | configure.env-append \ |
---|
51 | TAR=${prefix}/bin/gnutar |
---|
52 | configure.args-append \ |
---|
53 | --with-libintl-prefix=${prefix} \ |
---|
54 | --with-libiconv-prefix=${prefix} \ |
---|
55 | --with-admindir=${prefix}/var/db/${name} \ |
---|
56 | --with-logdir=${prefix}/var/log \ |
---|
57 | --mandir=${prefix}/share/man \ |
---|
58 | --with-liblzma \ |
---|
59 | --disable-linker-optimisations \ |
---|
60 | --disable-silent-rules \ |
---|
61 | --disable-start-stop-daemon |
---|
62 | |
---|
63 | compiler.blacklist-append cc gcc-3.3 gcc-4.0 apple-gcc-4.0 |
---|
64 | |
---|
65 | build.type gnu |
---|
66 | |
---|
67 | set vardpkg ${destroot}${prefix}/var/db/${name} |
---|
68 | destroot.keepdirs-append \ |
---|
69 | ${vardpkg} \ |
---|
70 | ${vardpkg}/updates \ |
---|
71 | ${vardpkg}/info \ |
---|
72 | ${destroot}${prefix}/var/log \ |
---|
73 | ${destroot}${prefix}/etc/${name} |
---|
74 | |
---|
75 | patchfiles-append patch-scripts_Dpkg_Source_Archive.pm.diff |
---|
76 | |
---|
77 | use_autoreconf yes |
---|
78 | autoreconf.args -fvi --warnings=all |
---|
79 | |
---|
80 | pre-destroot { |
---|
81 | file mkdir ${destroot}${prefix}/share/doc/${name} |
---|
82 | } |
---|
83 | |
---|
84 | post-destroot { |
---|
85 | file mkdir ${vardpkg} |
---|
86 | file mkdir ${vardpkg}/updates |
---|
87 | file mkdir ${vardpkg}/info |
---|
88 | system "touch ${vardpkg}/available ${vardpkg}/status" |
---|
89 | } |
---|
90 | |
---|
91 | # This variant sometimes hangs while building... |
---|
92 | variant docs description "Build documentation (warning: building documentation takes a long time)" { |
---|
93 | depends_build-append port:doxygen \ |
---|
94 | path:bin/dot:graphviz \ |
---|
95 | port:fontconfig \ |
---|
96 | port:freefont-ttf |
---|
97 | |
---|
98 | set docdir ${prefix}/share/doc/${name} |
---|
99 | configure.args-append --docdir=${docdir} \ |
---|
100 | --htmldir=${docdir}/html \ |
---|
101 | --dvidir=${docdir}/dvi \ |
---|
102 | --pdfdir=${docdir}/pdf \ |
---|
103 | --psdir=${docdir}/ps |
---|
104 | |
---|
105 | build.target-append doc |
---|
106 | |
---|
107 | pre-build { |
---|
108 | elevateToRoot "doxygen" |
---|
109 | system -W ${worksrcpath}/doc "${prefix}/bin/doxygen -u" |
---|
110 | } |
---|
111 | |
---|
112 | post-build { |
---|
113 | system -W ${worksrcpath}/doc "${prefix}/bin/doxygen" |
---|
114 | dropPrivileges |
---|
115 | set destroot_docdir ${destroot}${prefix}/share/doc/${name} |
---|
116 | xinstall -d ${destroot_docdir} |
---|
117 | copy ${worksrcpath}/doc/doc ${destroot_docdir} |
---|
118 | copy ${worksrcpath}/doc/html ${destroot_docdir} |
---|
119 | foreach docfile {coding-style.txt triggers.txt README.feature-removal-schedule frontend.txt README.api} { |
---|
120 | xinstall -m 644 ${worksrcpath}/doc/${docfile} ${destroot_docdir} |
---|
121 | } |
---|
122 | } |
---|
123 | } |
---|
124 | |
---|
125 | # Tests currently fail, this needs to be fixed eventually: |
---|
126 | test.run yes |
---|
127 | test.target check |
---|
128 | |
---|
129 | #pre-test { |
---|
130 | # elevateToRoot "test" |
---|
131 | #} |
---|
132 | #post-test { |
---|
133 | # dropPrivileges |
---|
134 | #} |
---|
135 | |
---|
136 | livecheck.type regex |
---|
137 | livecheck.url http://ftp.debian.org/debian/pool/main/d/${name}/ |
---|
138 | livecheck.regex "${name}_(\\d+\\.\\d+(\\.\\d+)*)" |
---|