Ticket #33689: Portfile

File Portfile, 2.0 KB (added by florian@…, 12 years ago)

fakeroot Portfile

Line 
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$
3
4PortSystem          1.0
5
6name                fakeroot
7version             1.18.3
8categories          sysutils
9platforms           darwin
10maintainers         eprofs.de:florian openmaintainer
11license             GPL-3
12
13description         tool for simulating superuser privileges
14
15long_description    fakeroot provides a fake \"root environment\" by \
16means of LD_PRELOAD and SysV IPC (or TCP) trickery. It puts wrappers around \
17getuid(), chown(), stat(), and other file-manipulation functions, so that \
18unprivileged users can (for instance) populate tgz archives with root-owned \
19files. \
20On OS X, only binaries that do NOT rely on Mach-based \[e\]uid/\[e\]gid/mode \
21APIs will correctly use fakeroot altered ownership/permissions.
22
23homepage            http://packages.debian.org/testing/fakeroot
24master_sites        debian:f/${name}
25distname            ${name}_${version}.orig
26worksrcdir          ${name}-${version}
27use_bzip2           yes
28
29checksums           md5     99c6ba2eb0005086144ee9f1f6fd63f4 \
30                    sha1    6a97df73afa3ffae11f078f13ce93cefcf31e160 \
31                    rmd160  95df721c2f849fc49b7f0667e77c8db61958f9f1
32
33depends_build       port:autoconf \
34                    port:automake
35
36pre-configure       { system -W ${worksrcpath} ./bootstrap }
37
38configure.args      --disable-static
39
40test.run            yes
41test.target         check
42
43# Note, that it is necessary to have a fat binary library
44# for fakeroot to work properly for all executables.
45# Hence, we force a universal build:
46variant_set         universal
47default_variants    +universal
48
49# os.major > 9:
50configure.universal_archs          x86_64 i386
51
52platform darwin 9 {
53  configure.universal_archs-append ppc64 ppc
54  configure.ldflags-append         -Wl,-force_cpusubtype_ALL
55}
56
57platform darwin 8 {
58  configure.universal_archs-append ppc64 ppc
59}
60
61livecheck.type      regex
62livecheck.url       ${homepage}
63livecheck.regex     {Package: fakeroot [(]([0-9.]+)}