Changeset 96776


Ignore:
Timestamp:
Aug 19, 2012, 5:52:01 AM (7 years ago)
Author:
blair@…
Message:

group/*: trim trailing whitespace.

Location:
trunk/dports/_resources/port1.0/group
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/app-1.0.tcl

    r92701 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2011 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup helps create an application bundle the user can open from the
    3434# Finder or the Dock. This is useful for ports that install a program built
     
    164164                return -code error "app.name ${app.name} contains illegal characters"
    165165            }
    166            
     166
    167167            # Make the app bundle directories.
    168168            xinstall -d ${destroot}${applications_dir}/${app.name}.app/Contents/MacOS \
    169169                        ${destroot}${applications_dir}/${app.name}.app/Contents/Resources
    170            
     170
    171171            # Ensure app.identifier is valid.
    172172            if {[regexp -nocase {[^a-z0-9.-]} ${app.identifier}]} {
     
    176176                return -code error "app.identifier ${app.identifier} does not look like a valid CFBundleIdentifier"
    177177            }
    178            
     178
    179179            if {${app.icon} != ""} {
    180180                # Turn relative app.icon paths into absolute ones.
     
    183183                    set icon ${worksrcpath}/${icon}
    184184                }
    185                
     185
    186186                # Ensure app.icon exists.
    187187                if {![file exists ${icon}]} {
    188188                    return -code error "app.icon ${app.icon} does not exist"
    189189                }
    190                
     190
    191191                # If app.icon is an .icns file, copy it.
    192192                if {[file extension ${icon}] == ".icns"} {
    193193                    xinstall -m 644 ${icon} ${destroot}${applications_dir}/${app.name}.app/Contents/Resources/${app.name}.icns
    194                
     194
    195195                # If app.icon is another type of image file, convert it.
    196196                } else {
     
    200200                }
    201201            }
    202            
     202
    203203            # Turn relative app.executable paths into absolute ones.
    204204            set executable ${app.executable}
     
    206206                set executable ${prefix}/bin/${executable}
    207207            }
    208            
     208
    209209            # Check for a possible maintainer error.
    210210            if {[string first ${destroot} ${executable}] == 0} {
    211211                return -code error "app.executable ${app.executable} should not start with \${destroot}"
    212212            }
    213            
     213
    214214            # If app.executable is in the destroot, link to it.
    215215            if {[file exists ${destroot}[app._resolve_symlink ${executable} ${destroot}]]} {
     
    225225                return -code error "app.executable ${app.executable} does not exist"
    226226            }
    227            
     227
    228228            # Build the Info.plist.
    229229            set fp [open ${destroot}${applications_dir}/${app.name}.app/Contents/Info.plist w]
     
    257257</plist>"
    258258            close ${fp}
    259            
     259
    260260            # Build the PkgInfo file.
    261261            set fp [open ${destroot}${applications_dir}/${app.name}.app/Contents/PkgInfo w]
  • trunk/dports/_resources/port1.0/group/archcheck-1.0.tcl

    r89688 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2009 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup checks that the architecture(s) of the given files match
    3434# the architecture(s) we are trying to install this port as now. This is
    3535# a crutch to get us by until a proper solution is implemented in base.
    3636# See #20728.
    37 # 
     37#
    3838# Usage:
    39 # 
     39#
    4040#   PortGroup               archcheck 1.0
    4141#   archcheck.files         file1 file2 ...
     
    5858            set file [file join ${prefix} ${file}]
    5959        }
    60        
     60
    6161        # Make sure the file exists -- there have been cases where dylibs are
    6262        # inexplicably absent (e.g. #23057).
     
    7070            return -code error "missing required file"
    7171        }
    72        
     72
    7373        set file_archs [string trim [strsed [exec lipo -info ${file}] {s/.*://}]]
    7474        set file_archs [string map {ppc7400 ppc ppc7450 ppc} ${file_archs}]
    75        
     75
    7676        foreach file_arch ${file_archs} {
    7777            switch ${file_arch} {
     
    8989            }
    9090        }
    91        
     91
    9292        foreach requested_arch ${requested_archs} {
    9393            if {-1 == [string first " ${requested_arch} " " ${file_archs} "]} {
  • trunk/dports/_resources/port1.0/group/cmake-1.0.tcl

    r78652 r96776  
    1818#    contributors may be used to endorse or promote products derived from
    1919#    this software without specific prior written permission.
    20 # 
     20#
    2121# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2222# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/crossbinutils-1.0.tcl

    r91815 r96776  
    11# $Id$
    2 # 
     2#
    33# Copyright (c) 2010 The MacPorts Project
    44# All rights reserved.
    5 # 
     5#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
    88# met:
    9 # 
     9#
    1010# 1. Redistributions of source code must retain the above copyright
    1111#    notice, this list of conditions and the following disclaimer.
     
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2828# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2929# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30 # 
    31 # 
     30#
     31#
    3232# This PortGroup automatically sets all the fields of the various cross binutils
    3333# ports (e.g. spu-binutils).
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup               crossbinutils 1.0
    3838#   crossbinutils.setup     spu 2.20.51.0.5
  • trunk/dports/_resources/port1.0/group/crossgcc-1.0.tcl

    r90772 r96776  
    11# $Id$
    2 # 
     2#
    33# Copyright (c) 2011 The MacPorts Project
    44# All rights reserved.
    5 # 
     5#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
    88# met:
    9 # 
     9#
    1010# 1. Redistributions of source code must retain the above copyright
    1111#    notice, this list of conditions and the following disclaimer.
     
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2828# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2929# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30 # 
    31 # 
     30#
     31#
    3232# This PortGroup automatically sets all the fields of the various cross gcc
    3333# ports (e.g. arm-none-eabi-gcc).
    3434#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup           crossgcc 1.0
    3838#
  • trunk/dports/_resources/port1.0/group/github-1.0.tcl

    r91448 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2012 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup sets up default behaviors for projects hosted at github.
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup               github 1.0
    3838#   github.setup            author project version [tag_prefix]
     
    6363proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} {
    6464    global github.author github.project github.version github.tag_prefix github.homepage github.master_sites
    65    
     65
    6666    github.author           ${gh_author}
    6767    github.project          ${gh_project}
    6868    github.version          ${gh_version}
    6969    github.tag_prefix       ${gh_tag_prefix}
    70    
     70
    7171    name                    ${github.project}
    7272    version                 ${github.version}
     
    7676    distname                ${github.project}-${github.version}
    7777    fetch.ignore_sslcert    yes
    78    
     78
    7979    post-extract {
    8080        if {![file exists ${worksrcpath}] && "standard" == ${fetch.type} && \
     
    8383        }
    8484    }
    85    
     85
    8686    livecheck.type          regex
    8787    livecheck.url           ${github.homepage}/tags
  • trunk/dports/_resources/port1.0/group/gnustep-1.0.tcl

    r73714 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    4747# default depends_lib           port:gnustep-core
    4848#
    49 # array set gnustep.post_flags  Apple CC two-level namespaces requires all 
    50 #                               symbols to be resolved at link time, 
     49# array set gnustep.post_flags  Apple CC two-level namespaces requires all
     50#                               symbols to be resolved at link time,
    5151#                               so most of the patches are just that.
    5252#                               Setting the gnustep.post_flags array makes this
    5353#                               simple beyond common understanding !
    54 #                               ex: 
     54#                               ex:
    5555#                               platform darwin {
    5656#                                   array set gnustep.post_flags {
     
    6060#
    6161#
    62 # proc set_gnustep_make         Sets GNUSTEP_MAKEFILES 
    63 #                               according to the FilesystemLayout 
    64 #
    65 # proc set_gnustep_env          Sets DYLD_LIBRARY_PATH and PATH 
     62# proc set_gnustep_make         Sets GNUSTEP_MAKEFILES
     63#                               according to the FilesystemLayout
     64#
     65# proc set_gnustep_env          Sets DYLD_LIBRARY_PATH and PATH
    6666#                               for the gnustep FilesystemLayout
    6767#
     
    8989
    9090#
    91 # Adds SHARED_LD_POSTFLAGS for Darwin's linker 
    92 #
    93 # Sets GNUSTEP_INSTALLATION_DOMAIN for ports using the 
     91# Adds SHARED_LD_POSTFLAGS for Darwin's linker
     92#
     93# Sets GNUSTEP_INSTALLATION_DOMAIN for ports using the
    9494# deprecated GNUSTEP_SYSTEM_ROOT variable
    9595#
     
    117117proc gnustep_layout {} {
    118118    global prefix
    119    
     119
    120120    if {[file exists ${prefix}/GNUstep/System/Library/Makefiles]} {
    121121        return 1
     
    130130proc set_system_library {} {
    131131    global prefix
    132    
     132
    133133    if {[gnustep_layout]} {
    134134        return "${prefix}/GNUstep/System/Library"
     
    143143proc set_local_library {} {
    144144    global prefix
    145    
     145
    146146    if {[gnustep_layout]} {
    147147        return "${prefix}/GNUstep/Local/Library"
     
    156156proc set_gnustep_make {} {
    157157    global prefix
    158    
     158
    159159    if {[gnustep_layout]} {
    160160        return "GNUSTEP_MAKEFILES=${prefix}/GNUstep/System/Library/Makefiles"
     
    169169proc set_gnustep_env {} {
    170170    global env prefix
    171    
     171
    172172    if {[gnustep_layout]} {
    173173        return [list "DYLD_LIBRARY_PATH=${prefix}/GNUstep/Local/Library/Libraries:${prefix}/GNUstep/System/Library/Libraries" \
     
    231231
    232232    post-destroot {
    233        
     233
    234234        if {[file exists ${worksrcpath}/Documentation/GNUmakefile]} {
    235            
     235
    236236            ui_msg "$UI_PREFIX Making documentation for ${name}"
    237            
     237
    238238            _cd ${worksrcpath}/Documentation
    239239            system "${destroot.env} ${destroot.cmd} \
    240240                    ${destroot.pre_args} ${destroot.destdir}"
    241            
     241
    242242            set info_dir \
    243243                ${destroot}${prefix}/GNUstep/System/Library/Documentation/info
     
    248248            }
    249249        }
    250     }   
    251 }
    252 
    253                    
     250    }
     251}
     252
     253
  • trunk/dports/_resources/port1.0/group/haskell-1.0.tcl

    r82262 r96776  
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/hocbinding-1.0.tcl

    r72558 r96776  
    11# $Id$
    2 # 
     2#
    33# Copyright (c) 2010 The MacPorts Project
    44# All rights reserved.
    5 # 
     5#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
    88# met:
    9 # 
     9#
    1010# 1. Redistributions of source code must retain the above copyright
    1111#    notice, this list of conditions and the following disclaimer.
     
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2828# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2929# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30 # 
    31 # 
     30#
     31#
    3232# This PortGroup automatically sets all the fields of the various hs-HOC
    3333# bindings ports (e.g. hs-HOC-Foundation).
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup        hocbinding 1.0
    3838#   hocbinding.setup framework version source
    39 # 
     39#
    4040# where framework is the name of the bound framework (e.g. Foundation), version
    4141# is the version of the binding, and if the framework additional code is in HOC
    4242# source itself, source is "hoc"; otherwise don't use source.
    43 # 
     43#
    4444# Example:
    45 # 
     45#
    4646#   PortGroup        hocbinding 1.0
    4747#   hocbinding.setup Foundation 0.7-r413 hoc
  • trunk/dports/_resources/port1.0/group/hunspelldict-1.0.tcl

    r63890 r96776  
    11# $Id$
    2 # 
     2#
    33# Copyright (c) 2010 The MacPorts Project
    44# All rights reserved.
    5 # 
     5#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
    88# met:
    9 # 
     9#
    1010# 1. Redistributions of source code must retain the above copyright
    1111#    notice, this list of conditions and the following disclaimer.
     
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2828# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2929# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30 # 
    31 # 
     30#
     31#
    3232# This PortGroup automatically sets all the fields of the various hunspell
    3333# directories ports (e.g. hunspell-dict-en_US).
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup               unspelldict 1.0
    3838#   hunspelldict.setup      locale version lang source
    39 # 
     39#
    4040# If the dictionary is hosted on the OpenOffice.org website, set "source" to
    4141# "ooo", otherwise don't use it.
    42 # 
     42#
    4343# Example:
    44 # 
     44#
    4545#   PortGroup               unspelldict 1.0
    4646#   hunspelldict.setup      en_US 2006-02-07 {English (United States)} ooo
  • trunk/dports/_resources/port1.0/group/java-1.0.tcl

    r96321 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    4545        }
    4646    }
    47    
     47
    4848    # First, ask the system where java home is
    4949    if { ![file isdirectory $home_value] && ![catch {set val [exec "/usr/libexec/java_home"]}] } {
     
    5151        ui_debug "Discovered JAVA_HOME via /usr/libexec/java_home: $home_value"
    5252    }
    53    
     53
    5454    # Fall back to more conventional way to find java home
    5555    if { ![file isdirectory $home_value] } {
     
    6262        }
    6363    }
    64    
     64
    6565    # Warn user if we couldn't find a likely JAVA_HOME
    6666    if { ![file isdirectory $home_value]} {
    6767        ui_warn "No value for java JAVA_HOME was automatically discovered"
    6868    }
    69    
     69
    7070    return $home_value
    7171}
  • trunk/dports/_resources/port1.0/group/kde4-1.0.tcl

    r80382 r96776  
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    5757}
    5858
    59 # Automoc added as build dependency here as most, if not all kde programs 
    60 # currently need it. The automoc port, which includes this PortGroup 
     59# Automoc added as build dependency here as most, if not all kde programs
     60# currently need it. The automoc port, which includes this PortGroup
    6161# overrides depends_build, removing "port:automoc" to prevent a
    6262# cyclic dependency
  • trunk/dports/_resources/port1.0/group/kde4-1.1.tcl

    r95982 r96776  
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    3939
    4040# Make sure to not use any already installed headers and libraries;
    41 # these are set in CPATH and LIBRARY_PATH anyway. 
     41# these are set in CPATH and LIBRARY_PATH anyway.
    4242configure.ldflags-delete  -L${prefix}/lib
    4343configure.cppflags-delete -I${prefix}/include
  • trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

    r91556 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    354354        foreach arch ${universal_archs_to_use} {
    355355            ui_info "$UI_PREFIX [format [msgcat::mc "Building %1\$s for architecture %2\$s"] $name ${arch}]"
    356            
     356
    357357            if { [info exists merger_build_env(${arch})] } {
    358358                build.env-append  $merger_build_env(${arch})
     
    536536                                            # File created by diff is invalid
    537537                                            delete ${dir}/${fl}
    538                                            
     538
    539539                                            # nothing has worked so far.
    540540                                            switch -glob ${fl} {
  • trunk/dports/_resources/port1.0/group/obsolete-1.0.tcl

    r96276 r96776  
    1818#    contributors may be used to endorse or promote products derived from
    1919#    this software without specific prior written permission.
    20 # 
     20#
    2121# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2222# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/ocaml-1.0.tcl

    r93941 r96776  
    1818#    contributors may be used to endorse or promote products derived from
    1919#    this software without specific prior written permission.
    20 # 
     20#
    2121# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2222# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/octave-1.0.tcl

    r81075 r96776  
    11# $Id$
    2 # 
     2#
    33# Copyright (c) 2010 The MacPorts Project
    44# All rights reserved.
    5 # 
     5#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
    88# met:
    9 # 
     9#
    1010# 1. Redistributions of source code must retain the above copyright
    1111#    notice, this list of conditions and the following disclaimer.
     
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2828# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2929# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30 # 
    31 # 
     30#
     31#
    3232# This PortGroup automatically sets up the standard environment for building
    3333# an octave module.
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup               octave 1.0
    3838#   octave.setup            module version
    39 # 
     39#
    4040# where module is the name of the module (e.g. communications) and version is
    4141# its version.
     
    4646proc octave.setup {module version} {
    4747    global octave.module
    48    
     48
    4949    octave.module               ${module}
    5050    name                        octave-${module}
     
    5454    master_sites                sourceforge:octave
    5555    distname                    ${octave.module}-${version}
    56    
     56
    5757    depends_lib                 path:bin/octave:octave
    58    
     58
    5959    # octave is not universal
    6060    universal_variant           no
    61    
     61
    6262    livecheck.type              regex
    6363    livecheck.url               http://octave.sourceforge.net/packages.php
  • trunk/dports/_resources/port1.0/group/pear-1.0.tcl

    r96278 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2011-2012 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup automatically sets up the standard environment for installing
    3434# a PHP PEAR class.
    35 # 
     35#
    3636# Usage:
    37 # 
     37#
    3838#   PortGroup           pear 1.0
    3939#   pear.setup      package version channel
    40 # 
     40#
    4141# where package is the name of the PEAR package (e.g. AUTH), version is its
    4242# version, and channel is the channel hosting the package (default: pear.php.net).
    43 # 
     43#
    4444
    4545# Args placed before the php or pear commands.
     
    114114    global pear.env pear.cmd-pear pear.destroot pear.sourceroot
    115115    global pear.channel pear.package pear.packagexml
    116    
     116
    117117    # The pear name for the package.
    118118    pear.package        ${package_name}
    119119    # The pear channel for the package.
    120120    pear.channel        ${package_channel}
    121    
     121
    122122    name                    pear-${pear.package}
    123123    version                 ${package_version}
     
    131131    use_parallel_build      yes
    132132    depends_build           port:pear-install-phar
    133    
     133
    134134    # List of ports that pear-PEAR depends on.
    135135    # Add some pear-PEAR deps to make programmatic creation of pear Portfiles easier.
     
    149149                            port:pear-Structures_Graph \
    150150                            port:pear-XML_Util
    151                            
    152     }
    153    
     151
     152    }
     153
    154154    fetch.ignore_sslcert yes
    155    
     155
    156156    extract.post_args-append   -C '${pear.sourceroot}' --strip-components 1
    157157
     
    159159        xinstall -d "${pear.sourceroot}"
    160160    }
    161    
     161
    162162    post-extract {
    163163        # The "--strip-components 1" causes the loss of our package file so we will extract it now.
     
    166166        command_exec                extract
    167167    }
    168    
     168
    169169    post-patch {
    170170        # Some ports use a "." baseinstalldir which can cause issues creating pears packagingroot directory.
     
    172172          ${pear.sourceroot}/${pear.packagexml}
    173173    }
    174    
     174
    175175    configure.env           ${pear.env}
    176176    configure.dir           ${pear.sourceroot}
     
    207207        }
    208208    }
    209    
     209
    210210    build {
    211211        build.env           ${pear.env}
  • trunk/dports/_resources/port1.0/group/perl5-1.0.tcl

    r94915 r96776  
    2121#    contributors may be used to endorse or promote products derived from
    2222#    this software without specific prior written permission.
    23 # 
     23#
    2424# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2525# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/php-1.0.tcl

    r93217 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2009-2012 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup automatically sets up the standard environment for building
    3434# a PHP extension.
    35 # 
     35#
    3636# Usage:
    37 # 
     37#
    3838#   PortGroup                   php 1.0
    3939#   php.setup                   extension version source
    4040#   php.branches                5.3 5.4
    41 # 
     41#
    4242# where extension is the name of the extension (e.g. APC), version is its
    4343# version, and if the extension is hosted at PECL, source is "pecl"; otherwise
    4444# don't use source.
    45 # 
     45#
    4646# php.branches must be set to the list of PHP branches for which this extension
    4747# should be made available.
    48 # 
     48#
    4949# If this is a Zend extension, use
    50 # 
     50#
    5151#   php.type                    zend
    5252
     
    9999        return
    100100    }
    101    
     101
    102102    # Sort the values so we can use lindex 0 and end to get the min and max branches respectively.
    103103    option ${option} [lsort -command vercmp [option ${option}]]
    104    
     104
    105105    global php.default_branch php.rootname php._bundled name subport
    106106    if {[regexp {^php-} ${name}]} {
     
    111111            }
    112112        }
    113        
     113
    114114        # Create subport for each PHP branch.
    115115        foreach branch [option ${option}] {
    116116            subport php[php.suffix_from_branch ${branch}]-${php.rootname} {}
    117117        }
    118        
     118
    119119        # Set up stub port.
    120120        if {${name} == ${subport}} {
     
    138138proc php._set_pecl_livecheck_stable {option action args} {
    139139    global livecheck.regex
    140    
     140
    141141    if {"set" != ${action}} {
    142142        return
    143143    }
    144    
     144
    145145    if {${args}} {
    146146        livecheck.regex     {>([0-9a-zA-Z.]+)</a></th>\s*<[^>]+>stable<}
     
    153153    global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.homepage php.ini_dir php.rootname php._bundled
    154154    global destroot name subport
    155    
     155
    156156    # Use "set" to preserve the list structure.
    157157    set php.extensions          ${extensions}
    158    
     158
    159159    if {![info exists name]} {
    160160        name                    php-${php.rootname}
     
    162162    version                     ${version}
    163163    categories                  php
    164    
     164
    165165    if {${name} != ${subport}} {
    166166        # Set up distfiles for non-bundled extensions.
     
    168168            distname            ${php.rootname}-${version}
    169169        }
    170        
     170
    171171        depends_lib-append      port:${php}
    172        
     172
    173173        # These are set only for the convenience of subports that want to access
    174174        # these variables directly, e.g. the ${php}-openssl subport which wants
     
    177177        build.dir               [lindex ${php.build_dirs} 0]
    178178        destroot.dir            [lindex ${php.build_dirs} 0]
    179        
     179
    180180        configure.pre_args-append --with-php-config=${php.config}
    181        
     181
    182182        configure.universal_args-delete --disable-dependency-tracking
    183        
     183
    184184        variant debug description {Enable debug support (useful to analyze a PHP-related core dump)} {}
    185        
     185
    186186        pre-configure {
    187187            set php_debug_variant [regexp {/debug-[^/]+$} ${php.extension_dir}]
     
    198198            }
    199199        }
    200        
     200
    201201        configure {
    202202            foreach configure.dir ${php.build_dirs} {
     
    205205            }
    206206        }
    207        
     207
    208208        build {
    209209            foreach build.dir ${php.build_dirs} {
     
    212212            }
    213213        }
    214        
     214
    215215        destroot.destdir        INSTALL_ROOT=${destroot}
    216        
     216
    217217        destroot {
    218218            foreach destroot.dir ${php.build_dirs} {
     
    235235            close $fp
    236236        }
    237        
     237
    238238        post-install {
    239239            if {[file exists ${php.ini}]} {
     
    262262        }
    263263    }
    264    
     264
    265265    if {"pecl" == ${source}} {
    266266        global php.pecl_livecheck_stable
    267        
     267
    268268        set php.homepage        http://pecl.php.net/package/${php.rootname}
    269        
     269
    270270        homepage                ${php.homepage}
    271271        master_sites            http://pecl.php.net/get/
    272272        extract.suffix          .tgz
    273        
     273
    274274        livecheck.type          regexm
    275275        livecheck.url           ${php.homepage}
     
    304304proc php.branch_from_subport {} {
    305305    global php.default_branch subport
    306    
     306
    307307    # For the subports, get the branch from ${subport}.
    308308    regexp {^php(\d+)} ${subport} -> suffix
     
    310310        return [php.branch_from_suffix ${suffix}]
    311311    }
    312    
     312
    313313    # For the stub port, use the default branch.
    314314    return ${php.default_branch}
  • trunk/dports/_resources/port1.0/group/php-1.1.tcl

    r93682 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2009-2012 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup builds PHP extensions. Set name and version as for a normal
    3434# standalone port, then set php.branches and optionally any other php options,
     
    4141# built. For unified extension ports (name begins with "php-") setting
    4242# php.branches is mandatory; there is no default. Example:
    43 # 
     43#
    4444#   php.branches                5.3 5.4
    45 # 
     45#
    4646# For unified ports, setting php.branches will create the subports.
    47 # 
     47#
    4848# For single-branch extension ports (name begins with e.g. "php54-")
    4949# php.branches is set automatically based on the port name and should not be
     
    5757        return
    5858    }
    59    
     59
    6060    # Sort the values so we can use lindex 0 and end to get the min and max branches respectively.
    6161    option ${option} [lsort -command vercmp [option ${option}]]
    62    
     62
    6363    global php.default_branch php.rootname name subport
    64    
     64
    6565    if {[regexp {^php\d*-} ${name}]} {
    6666        # Legacy dist_subdir to match old php5- port layout.
     
    6868            dist_subdir php5-${php.rootname}
    6969        }
    70        
     70
    7171        if {[regexp {^php-} ${name}]} {
    7272            # Create subport for each PHP branch.
    7373            php.create_subports
    74            
     74
    7575            # Set up stub port.
    7676            if {${name} == ${subport}} {
    7777                supported_archs     noarch
    7878                depends_run         port:php[php.suffix_from_branch ${php.default_branch}]-${php.rootname}
    79                
     79
    8080                # Ensure the stub port does not do anything with distfiles—not
    8181                # if the port overrides distfiles, not if there's a post-extract
     
    9494                }
    9595                extract {}
    96                
     96
    9797                patch {}
    9898                use_configure       no
     
    120120        return
    121121    }
    122    
     122
    123123    if {[regexp {^php\d+-} ${args}]} {
    124124        php.branches            [php.branch_from_subport]
     
    139139        return
    140140    }
    141    
     141
    142142    global name subport php.rootname
    143    
     143
    144144    if {[regexp {^php-} ${name}] && ${name} == ${subport}} {
    145145        depends_run             port:php[php.suffix_from_branch [option ${option}]]-${php.rootname}
     
    166166
    167167# php.create_subports: creates subports for each PHP branch
    168 # 
     168#
    169169# For a normal extension port whose name starts with "php-" this will be called
    170170# automatically when you set php.branches so you shouldn't need to call it
     
    228228        return
    229229    }
    230    
     230
    231231    if {${args}} {
    232232        global php.rootname
    233        
     233
    234234        php.pecl.name           ${php.rootname}
    235235        master_sites            http://pecl.php.net/get/
    236236        extract.suffix          .tgz
    237        
     237
    238238        livecheck.type          regexm
    239239        php.pecl.prerelease     no
     
    254254        return
    255255    }
    256    
     256
    257257    global php.pecl
    258    
     258
    259259    if {${php.pecl}} {
    260260        set pecl_homepage       http://pecl.php.net/package/${args}
     
    279279        return
    280280    }
    281    
     281
    282282    global php.pecl
    283    
     283
    284284    if {${php.pecl}} {
    285285        if {${args}} {
     
    351351    global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.ini_dir php.rootname php._bundled
    352352    global destroot name subport version
    353    
     353
    354354    # Set up distfiles default for non-bundled extensions.
    355355    default distname        {${php.rootname}-${version}}
    356    
     356
    357357    depends_build-append    port:autoconf
    358    
     358
    359359    depends_lib-append      port:${php}
    360    
     360
    361361    configure.pre_args-append --with-php-config=${php.config}
    362    
     362
    363363    configure.universal_args-delete --disable-dependency-tracking
    364    
     364
    365365    variant debug description {Enable debug support (useful to analyze a PHP-related core dump)} {}
    366    
     366
    367367    pre-configure {
    368368        set php_debug_variant [regexp {/debug-[^/]+$} ${php.extension_dir}]
     
    379379        }
    380380    }
    381    
     381
    382382    configure {
    383383        foreach configure.dir ${php.build_dirs} {
     
    386386        }
    387387    }
    388    
     388
    389389    build {
    390390        foreach build.dir ${php.build_dirs} {
     
    393393        }
    394394    }
    395    
     395
    396396    destroot.destdir        INSTALL_ROOT=${destroot}
    397    
     397
    398398    destroot {
    399399        foreach destroot.dir ${php.build_dirs} {
     
    402402        }
    403403    }
    404    
     404
    405405    post-destroot {
    406406        # Get the list of extensions that got installed by the port.
     
    410410            lappend installed_extensions [file rootname ${installed_extension_file}]
    411411        }
    412        
     412
    413413        # If the portfile author didn't specify which extensions to load,
    414414        # load all of them.
     
    420420            }
    421421        }
    422        
     422
    423423        foreach extension [concat ${php.extensions} ${php.extensions.zend}] {
    424424            if {-1 == [lsearch -exact ${installed_extensions} ${extension}]} {
     
    427427            }
    428428        }
    429        
     429
    430430        if {0 < [llength ${php.extensions}] || 0 < [llength ${php.extensions.zend}]} {
    431431            xinstall -m 755 -d ${destroot}${php.ini_dir}
     
    443443        }
    444444    }
    445    
     445
    446446    post-install {
    447447        if {[file exists ${php.ini}]} {
     
    490490proc php.branch_from_subport {} {
    491491    global php.default_branch subport
    492    
     492
    493493    # For the subports, get the branch from ${subport}.
    494494    regexp {^php(\d+)} ${subport} -> suffix
     
    496496        return [php.branch_from_suffix ${suffix}]
    497497    }
    498    
     498
    499499    # For the stub port, use the default branch.
    500500    return ${php.default_branch}
  • trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl

    r93612 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2009 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup automatically sets up the standard environment for building
    3434# a PHP extension.
    35 # 
     35#
    3636# Usage:
    37 # 
     37#
    3838#   PortGroup               php5extension 1.0
    3939#   php5extension.setup     extension version source
    40 # 
     40#
    4141# where extension is the name of the extension (e.g. APC), version is its
    4242# version, and if the extension is hosted at PECL, source is "pecl"; otherwise
    4343# don't use source.
    44 # 
     44#
    4545# If this is a Zend extension, use
    46 # 
     46#
    4747#   php5extension.type      zend
    4848
     
    7272    global php5extension.build_dirs php5extension.extensions php5extension.ini php5extension.inidir php5extension.source
    7373    global destroot
    74    
     74
    7575    # Use "set" to preserve the list structure.
    7676    set php5extension.extensions ${extensions}
    77    
     77
    7878    php5extension.source        ${source}
    79    
     79
    8080    name                        php5-[lindex ${php5extension.extensions} 0]
    8181    version                     ${version}
    8282    categories                  php
    8383    distname                    [lindex ${php5extension.extensions} 0]-${version}
    84    
     84
    8585    depends_build               port:autoconf
    86    
     86
    8787    depends_lib                 path:bin/php:php5
    88    
     88
    8989    configure.universal_args-delete --disable-dependency-tracking
    90    
     90
    9191    variant debug description {Enable debug support (useful to analyze a PHP-related core dump)} {}
    92    
     92
    9393    pre-configure {
    9494        set php_debug_variant [regexp {/debug-[^/]+$} ${php5extension.extension_dir}]
     
    105105        }
    106106    }
    107    
     107
    108108    configure {
    109109        foreach configure.dir ${php5extension.build_dirs} {
     
    112112        }
    113113    }
    114    
     114
    115115    build {
    116116        foreach build.dir ${php5extension.build_dirs} {
     
    119119        }
    120120    }
    121    
     121
    122122    destroot.destdir            INSTALL_ROOT=${destroot}
    123    
     123
    124124    destroot {
    125125        foreach destroot.dir ${php5extension.build_dirs} {
     
    142142        close $fp
    143143    }
    144    
     144
    145145    post-install {
    146146        if {[file exists ${php5extension.php_ini}]} {
     
    168168        }
    169169    }
    170    
     170
    171171    if {"pecl" == ${source}} {
    172172        global php5extension.homepage
    173173        set php5extension.homepage  http://pecl.php.net/package/[lindex ${php5extension.extensions} 0]/
    174        
     174
    175175        homepage                    ${php5extension.homepage}
    176176        master_sites                http://pecl.php.net/get/
    177177        extract.suffix              .tgz
    178        
     178
    179179        livecheck.type              regexm
    180180        livecheck.url               ${php5extension.homepage}
     
    183183        homepage                    http://www.php.net/[lindex ${php5extension.extensions} 0]
    184184        master_sites                php
    185        
     185
    186186        dist_subdir                 php5
    187187        distname                    php-${version}
    188188        use_bzip2                   yes
    189        
     189
    190190        pre-extract {
    191191            foreach extension ${php5extension.extensions} {
     
    193193            }
    194194        }
    195        
     195
    196196        pre-configure {
    197197            set php_version [exec ${prefix}/bin/php-config --version 2>/dev/null]
     
    201201            }
    202202        }
    203        
     203
    204204        destroot.target             install-modules install-headers
    205        
     205
    206206        livecheck.type              none
    207207        livecheck.url               http://www.php.net/downloads.php
  • trunk/dports/_resources/port1.0/group/php5pear-1.0.tcl

    r89609 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2011 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup automatically sets up the standard environment for installing
    3434# a PHP PEAR class.
    35 # 
     35#
    3636# Usage:
    37 # 
     37#
    3838#   PortGroup           php5pear 1.0
    3939#   php5pear.setup      package version channel
    40 # 
     40#
    4141# where package is the name of the PEAR package (e.g. AUTH), version is its
    4242# version, and channel is the channel hosting the package (default: pear.php.net).
    43 # 
     43#
    4444
    4545# Args placed before the php or pear commands.
     
    114114    global php5pear.env php5pear.cmd-pear php5pear.destroot php5pear.sourceroot
    115115    global php5pear.channel php5pear.package php5pear.packagexml
    116    
     116
    117117    # The pear name for the package.
    118118    php5pear.package        ${package_name}
    119119    # The pear channel for the package.
    120120    php5pear.channel        ${package_channel}
    121    
     121
    122122    name                    pear-${php5pear.package}
    123123    version                 ${package_version}
     
    131131    use_parallel_build      yes
    132132    depends_lib             path:bin/phpize:php5 port:php5-pear
    133    
     133
    134134    # List of ports that pear-PEAR depends on.
    135135    # Add some pear-PEAR deps to make programmatic creation of pear Portfiles easier.
     
    149149                            port:pear-Structures_Graph \
    150150                            port:pear-XML_Util
    151                            
    152     }
    153    
     151
     152    }
     153
    154154    extract.post_args-append   -C '${php5pear.sourceroot}' --strip-components 1
    155155
     
    157157        xinstall -d "${php5pear.sourceroot}"
    158158    }
    159    
     159
    160160    post-extract {
    161161        # The "--strip-components 1" causes the loss of our package file so we will extract it now.
     
    164164        command_exec                extract
    165165    }
    166    
     166
    167167    post-patch {
    168168        # Some ports use a "." baseinstalldir which can cause issues creating pears packagingroot directory.
     
    170170          ${php5pear.sourceroot}/${php5pear.packagexml}
    171171    }
    172    
     172
    173173    configure.env           ${php5pear.env}
    174174    configure.dir           ${php5pear.sourceroot}
     
    205205        }
    206206    }
    207    
     207
    208208    build {
    209209        build.env           ${php5pear.env}
  • trunk/dports/_resources/port1.0/group/pure-1.0.tcl

    r89688 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2009 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup automatically sets up the standard environment for building
    3434# a module for the Pure language.
    35 # 
     35#
    3636# Usage:
    37 # 
     37#
    3838#   PortGroup               pure 1.0
    3939#   pure.setup              module version
    40 # 
     40#
    4141# where module is the name of the module (e.g. gsl) and version is its
    4242# version.
     
    4545proc pure.setup {module version} {
    4646    global name homepage
    47    
     47
    4848    name                        pure-${module}
    4949    version                     ${version}
    5050    homepage                    http://code.google.com/p/pure-lang/wiki/Addons#${name}
    5151    master_sites                googlecode:pure-lang
    52    
     52
    5353    depends_lib                 path:lib/libpure.dylib:pure
    54    
     54
    5555    use_configure               no
    56    
     56
    5757    use_parallel_build          yes
    5858    pre-build {
     
    6464                                LDFLAGS="${configure.ldflags} ${configure.ld_archflags}"
    6565    }
    66    
     66
    6767    post-destroot {
    6868        xinstall -d ${destroot}${prefix}/share/doc/${name}
     
    7777        }
    7878    }
    79    
     79
    8080    livecheck.type              regex
    8181    default livecheck.url       {http://code.google.com/p/pure-lang/downloads/list?q=${name}&sort=filename}
  • trunk/dports/_resources/port1.0/group/python-1.0.tcl

    r96718 r96776  
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    4343# python.default_version: which version will be installed if the user asks
    4444#   for py-foo rather than pyXY-foo
    45 # 
     45#
    4646# Note: setting these options requires name to be set beforehand
    4747
     
    211211            global build_arch frameworks_dir
    212212            set ret "${frameworks_dir}/Python.framework/Versions/${python.branch}"
    213             if {${python.version} == 25 || (${python.version} == 24 && 
     213            if {${python.version} == 25 || (${python.version} == 24 &&
    214214                ![file isfile ${ret}/include/python${python.branch}/Python.h] &&
    215215                ([file isfile ${prefix}/include/python${python.branch}/Python.h]
  • trunk/dports/_resources/port1.0/group/python24-1.0.tcl

    r96775 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/python25-1.0.tcl

    r96775 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/python26-1.0.tcl

    r96775 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/python27-1.0.tcl

    r96775 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/python31-1.0.tcl

    r96775 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/python32-1.0.tcl

    r96775 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/qt4-1.0.tcl

    r94241 r96776  
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/ruby-1.0.tcl

    r96656 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2004 Robert Shaw <rshaw@opendarwin.org>
    55# Copyright (c) 2002 Apple Computer, Inc.
     
    1818#    contributors may be used to endorse or promote products derived from
    1919#    this software without specific prior written permission.
    20 # 
     20#
    2121# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2222# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    6767    global ruby.module ruby.filename ruby.project ruby.docs ruby.srcdir
    6868    global ruby.prog_suffix
    69    
     69
    7070    if {${implementation} eq "ruby19"} {
    7171        set ruby.port_prefix rb19
     
    8383    set ruby.rdoc   ${prefix}/bin/rdoc${ruby.prog_suffix}
    8484    set ruby.gem    ${prefix}/bin/gem${ruby.prog_suffix}
    85    
     85
    8686    # define ruby global names and lists
    8787    # check if module is a list or string
     
    9999    }
    100100    set ruby.docs   ${docs}
    101    
     101
    102102    name            ${ruby.port_prefix}-[string tolower ${ruby.module}]
    103103    version         ${vers}
    104104    categories      ruby
    105    
     105
    106106    switch -glob ${source} {
    107107        rubyforge:*:* {
     
    156156        }
    157157    }
    158    
     158
    159159    distname        ${ruby.filename}-${vers}
    160160    dist_subdir     ruby
    161    
     161
    162162    depends_lib     port:${implementation}
    163    
     163
    164164    post-extract {
    165165        # Create the work directory for gem-based ruby ports.
     
    167167        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
    168168    }
    169    
     169
    170170    switch -glob ${type} {
    171171        basic_install.rb {
     
    188188                reinplace "s|site_ruby|vendor_ruby|" ${worksrcpath}/install.rb
    189189            }
    190            
     190
    191191            use_configure   no
    192            
     192
    193193            build           {}
    194            
     194
    195195            pre-destroot {
    196196                xinstall -d -m 0755 ${destroot}${ruby.lib}
     
    203203        copy_install:* {
    204204            set ruby.srcdir [lindex [split ${type} {:}] 1]
    205            
     205
    206206            use_configure   no
    207            
     207
    208208            build           {}
    209            
     209
    210210            destroot {
    211211                set root ${worksrcpath}/${ruby.srcdir}
     
    227227            configure.cmd       ${ruby.bin} -rvendor-specific install.rb
    228228            configure.pre_args  config
    229            
     229
    230230            build.cmd           ${ruby.bin} -rvendor-specific install.rb
    231231            build.target        setup
    232            
     232
    233233            pre-destroot {
    234234                if {[file isfile ${worksrcpath}/config.save]} {
     
    248248            configure.cmd       ${ruby.bin} -rvendor-specific setup.rb
    249249            configure.pre_args  config
    250            
     250
    251251            build.cmd           ${ruby.bin} -rvendor-specific setup.rb
    252252            build.target        setup
    253            
     253
    254254            pre-destroot {
    255255                if {[file isfile ${worksrcpath}/config.save]} {
     
    270270            configure.pre_args
    271271            configure.args      --prefix=${prefix}
    272            
     272
    273273            build.args          RUBY="${ruby.bin} -rvendor-specific"
    274            
     274
    275275            destroot.args       RUBY="${ruby.bin} -rvendor-specific"
    276276        }
    277277        gnu {
    278278            build.args          RUBY="${ruby.bin} -rvendor-specific"
    279            
     279
    280280            pre-destroot {
    281281                if {[file isfile ${worksrcpath}/config.save]} {
     
    293293            use_configure no
    294294            extract.suffix .gem
    295            
     295
    296296            if {${implementation} eq "ruby"} {
    297297                depends_lib-append  port:rb-rubygems
    298298            }
    299            
     299
    300300            extract {}
    301301            build {}
    302            
     302
    303303            pre-destroot {
    304304                xinstall -d -m 0755 ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version}
    305305            }
    306            
     306
    307307            destroot {
    308308                system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version} ${distpath}/${distname}"
    309                
     309
    310310                set binDir ${destroot}${prefix}/lib/ruby${ruby.prog_suffix}/gems/${ruby.version}/bin
    311311                if {[file isdirectory $binDir]} {
     
    325325        }
    326326    }
    327    
     327
    328328    if {$type != "gnu"} {
    329329        configure.universal_args-delete  --disable-dependency-tracking
    330330    }
    331    
     331
    332332    post-destroot {
    333333        # Install documentation files (if specified)
  • trunk/dports/_resources/port1.0/group/select-1.0.tcl

    r78606 r96776  
    2020#    contributors may be used to endorse or promote products derived from
    2121#    this software without specific prior written permission.
    22 # 
     22#
    2323# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2424# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

    r95340 r96776  
    11# $Id$
    2 # 
     2#
    33# Copyright (c) 2010 Dan R. K. Ports <dports@macports.org>
    44# All rights reserved.
    5 # 
     5#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
    88# met:
    9 # 
     9#
    1010# 1. Redistributions of source code must retain the above copyright
    1111#    notice, this list of conditions and the following disclaimer.
     
    2828# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2929# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    30 # 
     30#
    3131
    3232#
     
    160160    homepage        http://www.tug.org/texlive/
    161161    platforms       darwin
    162    
     162
    163163    supported_archs noarch
    164164    installs_libs   no
    165    
     165
    166166    master_sites    http://flute.csail.mit.edu/texlive/
    167167    use_xz          yes
     
    182182    # The latter two are only downloaded if the corresponding variant
    183183    # is enabled. Currently, each package must have all three distfiles
    184     # even if some are empty. 
     184    # even if some are empty.
    185185    distfiles       ${distname}-run${extract.suffix}
    186186
     
    197197        texlive.removedocdepends
    198198    }
    199    
     199
    200200    use_configure   no
    201201
     
    210210
    211211        # copy files listed in tlpkginfo/$indexname into destroot
    212         foreach indexname $indexlist {           
     212        foreach indexname $indexlist {
    213213            set filelist [open ${worksrcpath}/tlpkginfo/${indexname}]
    214214            while {[gets $filelist line] >= 0} {
     
    230230                    continue
    231231                }
    232                    
     232
    233233                set srcfile ${worksrcpath}/${indexname}/$line
    234234
     
    260260                    }
    261261                    set dstfile [join $splitline "/"]
    262                    
     262
    263263                    # create directory if necessary, and install file
    264264                    xinstall -d ${destroot}[file dirname $dstfile]
     
    322322                        set linksource ${prefix}/bin/$fmtengine
    323323                    }
    324                    
     324
    325325                    ln -s $linksource \
    326326                        ${destroot}${prefix}/bin/$fmtname
     
    334334                }
    335335            }
    336            
     336
    337337            close $fmtfile
    338338        }
     
    362362            set langdeffile [open $langdeffilename "w"]
    363363            set langluafile [open $langluafilename "w"]
    364            
     364
    365365            foreach x ${texlive.languages} {
    366366                set langname [lindex $x 0]
     
    401401                    puts $langluafile "\t\tpatterns = '$langspecial',"
    402402                }
    403                 puts $langluafile "\t},\n"               
    404             }
    405            
     403                puts $langluafile "\t},\n"
     404            }
     405
    406406            close $langdatfile
    407407            close $langdeffile
     
    425425            texlive.use_mktexlsr no
    426426        }
    427        
     427
    428428        if {${texlive.use_mktexlsr}} {
    429429            texlive.mktexlsr
    430430        }
    431        
     431
    432432        if {${texlive.forceupdatecnf}} {
    433433            # If force was specified, update all the config files, and
     
    499499            system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
    500500        }
    501        
     501
    502502        # Remove any generated format files
    503503        foreach x ${texlive.formats} {
     
    509509                "mpost"    {set fmtengine "metapost"}
    510510            }
    511            
     511
    512512            foreach filename [glob -nocomplain ${texlive_texmfsysvar}/web2c/$fmtengine/$fmtname.*] {
    513513                delete $filename
  • trunk/dports/_resources/port1.0/group/x11font-1.0.tcl

    r84342 r96776  
    1616#    contributors may be used to endorse or promote products derived from
    1717#    this software without specific prior written permission.
    18 # 
     18#
    1919# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2020# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/xcode-1.0.tcl

    r91305 r96776  
    1919#    contributors may be used to endorse or promote products derived from
    2020#    this software without specific prior written permission.
    21 # 
     21#
    2222# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2323# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl

    r91305 r96776  
    11# -*- 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
    22# $Id$
    3 # 
     3#
    44# Copyright (c) 2009 The MacPorts Project
    55# All rights reserved.
    6 # 
     6#
    77# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are
    99# met:
    10 # 
     10#
    1111# 1. Redistributions of source code must retain the above copyright
    1212#    notice, this list of conditions and the following disclaimer.
     
    1717#    contributors may be used to endorse or promote products derived from
    1818#    this software without specific prior written permission.
    19 # 
     19#
    2020# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2121# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     
    2929# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3030# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31 # 
    32 # 
     31#
     32#
    3333# This PortGroup lets a port check that the user's Xcode is sufficiently new.
    34 # 
     34#
    3535# Usage:
    36 # 
     36#
    3737#   PortGroup               xcodeversion 1.0
    3838#   minimum_xcodeversions   {darwin_major minimum_xcodeversion}
    39 # 
     39#
    4040# where darwin_major is the major version of the underlying Darwin OS (e.g. 9
    4141# for Mac OS X 10.5 Leopard) and minimum_xcodeversion is the minimum version
  • trunk/dports/_resources/port1.0/group/zope-1.0.tcl

    r85109 r96776  
    33#
    44# $Id$
    5 # 
     5#
    66# Group file for 'zope' group.
    77#
     
    2222#    contributors may be used to endorse or promote products derived from
    2323#    this software without specific prior written permission.
    24 # 
     24#
    2525# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    2626# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Note: See TracChangeset for help on using the changeset viewer.