Changeset 28191 for trunk/dports


Ignore:
Timestamp:
Aug 24, 2007, 12:39:12 PM (17 years ago)
Author:
nox@…
Message:

sloth:

  • Updated to 1.3.1.
  • Ported to xcode portgroup.
  • Added universal support.
  • Added sha1 and rmd160 checksums and livecheck.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/sloth/Portfile

    r28158 r28191  
    11# $Id$
    2 PortSystem 1.0
     2
     3PortSystem              1.0
     4PortGroup               xcode 1.0
    35
    46name                    sloth
    5 version                 1.3
     7version                 1.3.1
    68categories              aqua sysutils
    7 maintainers             nomaintainer@macports.org
     9maintainers             nomaintainer
    810description             Program that displays a list of open files by applications
     11
    912long_description        Sloth is a program that displays a list of all open \
    1013                                        files in use by all the applications your user \
     
    1417                                        names of applications using the file and their \
    1518                                        process IDs.
     19
    1620homepage                http://www.sveinbjorn.org/sloth
    17 master_sites    http://www.sveinbjorn.org/files/software/sloth
    18 distname                ${name}-${version}.src
    19 extract.suffix  .tgz
    20 checksums               md5 d8450a1902d58688877c477c5af4fb4b
    21 platforms               darwin
     21master_sites    macports
     22use_bzip2               yes
    2223
    23 set appName             Sloth
    24 worksrcdir              ${appName} Project
     24checksums               md5 bab3b31aba2a480b97d82be43e32e74a \
     25                                sha1 8710c9c37fddf609fee4f64bad62a90c8270cde8 \
     26                                rmd160 6623de19a79ce98e53f17030d0532eedb644b242
    2527
    26 use_configure   no
     28# Dummy configure to enable universal variant
     29use_configure   yes
     30configure               {}
    2731
    28 build.type              pbx
    29 build.target
    30 build.args       -configuration Deployment -target ${appName}
     32if {! [variant_isset universal]} {
     33        set arch ${os.arch}
     34        if {! [string compare ${arch} powerpc]} {
     35                set arch ppc
     36        }
    3137
    32 destroot {
    33         set appPath ${destroot}/Applications/MacPorts
    34         cd ${worksrcpath}/build/Deployment
    35         xinstall -d -m 0755 ${appPath}
    36         system "ditto -v ${appName}.app ${appPath}/${appName}.app"
     38        xcode.build.settings-append             ARCHS=${arch}
     39        xcode.destroot.settings-append  ARCHS=${arch}
    3740}
    3841
     42xcode.configuration Release
     43
     44livecheck.check regex
     45livecheck.url   ${homepage}
     46livecheck.regex "Sloth (\\d+(?:\\.\\d+)*)"
     47
Note: See TracChangeset for help on using the changeset viewer.