Ignore:
Timestamp:
Jun 7, 2005, 6:48:52 PM (14 years ago)
Author:
waqar
Message:

Bug: #3035
Submitted by: james@…
Approved by: waqar@…

Location:
trunk/dports/sysutils/osxutils
Files:
1 added
1 deleted
1 edited

Legend:

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

    r8149 r12563  
    1 # $Id: Portfile,v 1.12 2004/09/01 22:56:38 matt Exp $
     1# $Id: Portfile,v 1.13 2005/06/07 18:48:49 waqar Exp $
    22
    33PortSystem 1.0
    44name            osxutils
    5 version         1.4
     5version         1.6
    66categories      sysutils
    77maintainers     waqar@opendarwin.org
    88description     Command line utilities for Finder commands
    99long_description        \
    10         osxutils is a package of potentially useful Mac-oriented command \
    11         line utilities for MacOS X version 10.0 or later. These tools \
    12         represent an effort in bringing command line control over certain \
    13         aspects of the MacOS, in particular file meta-data such as Finder \
    14         flags, heritage file Type and Creator codes, comments and \
    15         suffixes/file extensions.
    16 homepage        http://sourceforge.net/projects/osxutils/
     10        osxutils is a package of potentially useful Mac-oriented        \
     11        command line utilities for MacOS X version 10.0 or later.       \
     12        These tools represent an effort in bringing command line        \
     13        control over certain aspects of the MacOS, in particular        \
     14        file meta-data such as Finder flags, heritage file Type and     \
     15        Creator codes, comments and suffixes/file extensions.
     16homepage        http://sourceforge.net/projects/osxutils
    1717platforms       macosx
    1818master_sites    sourceforge
    19 extract.suffix  .tgz
    20 distname        ${name}-${version}-src
    21 checksums       md5 d4592eb8d9d6d5e216bfd58f4c49d488
    22 use_configure   no
     19use_bzip2       yes
     20distname        ${name}-${version}.src
     21worksrcdir      ${name}-${version}
     22checksums       md5 07ecfb4141dd0dabd7b79cdc3312f5ee                    \
     23                sha1 e8eeed83d84a6471f84bf053c2ed9fe5b2007494
     24configure       {
     25        reinplace "s|/usr/local|${prefix}/bin|g" ${worksrcpath}/Makefile \
     26                ${worksrcpath}/man/Makefile
     27        reinplace "s|destdir=|destdir=${destroot}|g" ${worksrcpath}/Makefile
     28}
    2329build.type      pbx
    24 build.target
    25 set b_progs     "fileinfo geticon lsmac mkalias setfcomment setfctypes setfflags seticon setlabel setsuffix"
    26 set i_progs     "cpath google trash"
    27 patchfiles      patch-project.pbxproj.diff
    28 
    29 configure       {
    30         reinplace "s|main.c|setfcomment.c|g"    \
    31                 ${worksrcpath}/setfcomment/setfcomment.pbproj/project.pbxproj
    32         reinplace "s|main.c|setlabel.c|g"       \
    33                 ${worksrcpath}/setlabel/setlabel.xcode/project.pbxproj
    34 
    35         foreach man1File [glob ${worksrcpath}/*/*1] {
    36                 reinplace "s|/usr/local|${prefix}|g" \
    37                 ${man1File}
    38         }
    39 
    40         foreach projectfile [glob ${worksrcpath}/*/*/*.pbxproj] {
    41                 reinplace "s|/usr/share/man|${prefix}/share/man|g" \
    42                 ${projectfile}
    43         }
     30build.target    -target ${name}
     31build.args      build
     32destroot        {
     33        cd ${worksrcpath}
     34        system "${build.cmd} DSTROOT=${destroot} INSTALL_PATH=${prefix}/bin \
     35                ${build.target} -buildstyle Deployment install"
     36        system "cp build/*.1 ${destroot}${prefix}/share/man/man1"
    4437}
    45 build           {
    46         foreach prog ${b_progs} {
    47                 cd ${worksrcpath}/${prog}
    48                 system "${build.cmd} build"
    49         }
    50 }       
    51 
    52 destroot.destdir
    53 
    54 destroot        {
    55         foreach prog ${i_progs} {
    56                 system "cd ${worksrcpath}/${prog} && install -m 755 \
    57                         ${prog} ${destroot}${prefix}/bin/"
    58                 system "cd ${worksrcpath}/${prog} && install -m 644 \
    59                         ${prog}.1 ${destroot}/${prefix}/share/man/man1/"
    60         }
    61         foreach prog ${b_progs} {
    62                 system "cd ${worksrcpath}/${prog} && ${build.cmd} install \
    63                         INSTALL_PATH=${prefix}/bin DSTROOT=${destroot}"
    64         }
     38platform darwin 8 {
     39        patchfiles      patch-fileinfo.c
    6540}
    66 
Note: See TracChangeset for help on using the changeset viewer.