source: trunk/dports/sysutils/rpm/Portfile @ 3173

Last change on this file since 3173 was 3173, checked in by jkh, 17 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 2.3 KB
RevLine 
[3173]1# $Id: Portfile,v 1.6 2003/08/05 09:29:33 jkh Exp $
[2138]2
[2137]3PortSystem 1.0
4name                    rpm
5version                 4.0.4
6platforms               darwin
[2713]7revision                2
[2137]8categories              sysutils archivers
9maintainers             ssen@opendarwin.org
10description             RedHat Package Manager
11
12master_sites            ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/
13checksums               md5 b0c3093d2f0d850760e59ac1db9bf152
14
[2713]15depends_lib             lib:libbz2.1.0:bzip2 lib:libiconv.2:libiconv \
16                        bin:python:python
[2137]17
[2581]18configure.args          --disable-nls --with-included-gettext \
19                        --with-glob --with-libiconv-prefix=${prefix}
[2137]20
21variant darwin {
22        patchfiles-append \
23                patch-db3-configure.diff        patch-rpmheader.diff \
24                patch-dump.diff                 patch-rpmioc.diff \
25                patch-dumpdb.diff               patch-rpmioh.diff \
26                patch-lib-signature.diff        patch-rpmlead.diff \
27                patch-macros-in.diff            patch-rpmqv.diff \
28                patch-rpm2cpio.diff             patch-rpmsignature.diff \
29                patch-rpmarchive.diff           patch-systemh.diff \
[2713]30                patch-rpmrc.diff                patch-rpmrc-in.diff \
31                patch-autodeps-darwin-prov.diff patch-autodeps-darwin-req.diff \
32                patch-python-rpmmodule.diff     patch-python-makefile-in.diff
[2137]33
[2713]34        pre-configure {
35                system "mkdir -p ${workpath}/librt"
36                system "ln -sf /usr/lib/libSystem.B.dylib \
37                                ${workpath}/librt/librt.dylib"
38        }
39
[2137]40        configure.args-append --disable-optimized --disable-aio \
[2713]41                              --with-python=auto --without-javaglue \
[2581]42                              --enable-broken-chown
[2137]43
[2581]44        configure.env   LDFLAGS="-L${prefix}/lib -L${workpath}/librt" \
45                        CFLAGS="-I${prefix}/include -no-cpp-precomp" \
[2713]46                        CC="gcc -flat_namespace" CPPFLAGS=""
[2137]47
[3173]48        post-destroot {
[2713]49                # where the RPM database to lives
50                system "mkdir -p '${destroot}${prefix}/var/lib/rpm'"
51                system "touch '${destroot}${prefix}/var/lib/rpm/.turd'"
[2732]52                system "mkdir -p '${destroot}${prefix}/src/apple/BUILD'"
53                system "touch '${destroot}${prefix}/src/apple/BUILD/.turd'"
54                system "mkdir -p '${destroot}${prefix}/src/apple/RPMS'"
55                system "touch '${destroot}${prefix}/src/apple/RPMS/.turd'"
56                system "mkdir -p '${destroot}${prefix}/src/apple/SOURCES'"
57                system "touch '${destroot}${prefix}/src/apple/SOURCES/.turd'"
58                system "mkdir -p '${destroot}${prefix}/src/apple/SPECS'"
59                system "touch '${destroot}${prefix}/src/apple/SPECS/.turd'"
60                system "mkdir -p '${destroot}${prefix}/src/apple/SRPMS'"
61                system "touch '${destroot}${prefix}/src/apple/SRPMS/.turd'"
[2137]62        }
63}
Note: See TracBrowser for help on using the repository browser.