source: trunk/dports/sysutils/dpkg/Portfile @ 60675

Last change on this file since 60675 was 60675, checked in by landonf@…, 10 years ago

Disable parallel building

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 60675 2009-11-19 21:09:01Z landonf@macports.org $
2
3PortSystem 1.0
4name                    dpkg
5version                 1.10.28
6revision                1
7platforms               darwin freebsd
8categories              sysutils archivers
9maintainers             landonf openmaintainer
10description             Debian package maintenance system
11homepage                http://www.debian.org/
12
13master_sites            http://ftp.debian.org/debian/pool/main/d/dpkg/
14checksums               md5 912ece8f3c39192503ff2bcb4c74182e
15
16# Use MacPorts versions explicitly
17depends_lib             port:gettext \
18                        port:libiconv \
19                        bin:perl:perl5
20
21
22distname                ${name}_${version}
23worksrcdir              ${name}-${version}
24
25patchfiles              patch-config.h.in \
26                        patch-configure \
27                        patch-configure.in \
28                        patch-lib_utils.c \
29                        patch-lib_tarfn.c \
30                        patch-main_remove.c \
31                        patch-utils_Makefile.in \
32                        patch-main_archives.c \
33                        patch-archtable \
34                        patch-include_parsedump.h
35
36configure.args          --without-sgml-doc --with-libintl-prefix=${prefix} \
37                        --with-libiconv-prefix=${prefix} --with-admindir=${prefix}/var/db/dpkg \
38                        --mandir=${prefix}/share/man
39
40build.type              gnu
41
42# Does not work as of dpkg 1.10.28
43use_parallel_build no
44
45set vardpkg ${destroot}${prefix}/var/db/dpkg
46destroot.keepdirs ${vardpkg} ${vardpkg}/updates ${vardpkg}/info
47
48post-patch {
49        set scripts ${worksrcpath}/scripts
50        reinplace s|/etc/dpkg/|${prefix}/etc/dpkg/| \
51                        ${scripts}/dpkg-shlibdeps.pl \
52                        ${scripts}/dpkg-source.1
53
54        reinplace s|/etc/|${prefix}/etc/| \
55                        ${scripts}/update-alternatives.8
56
57        reinplace s|/etc/alternatives|${prefix}/etc/alternatives|g \
58                        ${scripts}/update-alternatives.pl
59}
60
61pre-destroot {
62        file mkdir ${destroot}${prefix}/share/doc/dpkg
63}
64
65post-destroot {
66        file mkdir ${vardpkg}
67        file mkdir ${vardpkg}/updates
68        file mkdir ${vardpkg}/info
69        system "touch ${vardpkg}/available ${vardpkg}/status"
70}
71
72platform darwin {
73        depends_build-append    bin:gnumake:gmake
74        patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
75}
76
77platform freebsd {
78        depends_build-append    bin:gmake:gmake
79        patchfiles-append patch-utils_start-stop-daemon.c bsd/patch-main_help.c
80}
81
82livecheck.type          regex
83livecheck.url           http://ftp.debian.org/debian/pool/main/d/dpkg/
84livecheck.regex         "${name}_(\\d+\\.\\d+(\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.