Ignore:
Timestamp:
Nov 19, 2004, 12:31:08 AM (15 years ago)
Author:
jkh
Message:

Adapt to new destroot.keepdir semantics. There are still a lot of ports
creating their own .turd files which need to adapt to destroot.keepdirs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/rpm/Portfile

    r9177 r9340  
    1 # $Id: Portfile,v 1.12 2004/11/07 00:00:30 jkh Exp $
     1# $Id: Portfile,v 1.13 2004/11/19 00:31:07 jkh Exp $
    22
    33PortSystem 1.0
     
    5151                        CC="gcc -flat_namespace" CPPFLAGS=""
    5252
    53         proc mkdir-and-keep {dir} {
    54                 system "mkdir -p '${dir}'"
    55                 destroot.keepdirs-append "${dir}"
    56         }
    57 
    5853        post-destroot {
    5954                # where the RPM database to lives
    60                 mkdir-and-keep "${destroot}${prefix}/var/lib/rpm"
    61                 mkdir-and-keep "${destroot}${prefix}/src/apple/BUILD"
    62                 mkdir-and-keep "${destroot}${prefix}/src/apple/RPMS"
    63                 mkdir-and-keep "${destroot}${prefix}/src/apple/SOURCES"
    64                 mkdir-and-keep "${destroot}${prefix}/src/apple/SPECS"
    65                 mkdir-and-keep "${destroot}${prefix}/src/apple/SRPMS"
     55                destroot.keepdirs "${destroot}${prefix}/var/lib/rpm"
     56                destroot.keepdirs-append "${destroot}${prefix}/src/apple/BUILD"
     57                destroot.keepdirs-append "${destroot}${prefix}/src/apple/RPMS"
     58                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SOURCES"
     59                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SPECS"
     60                destroot.keepdirs-append "${destroot}${prefix}/src/apple/SRPMS"
    6661        }
    6762}
Note: See TracChangeset for help on using the changeset viewer.