# -*- 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

PortSystem 1.0
PortGroup select 1.0

name                    qt4_select
version                 0.3
revision                3
categories              sysutils
platforms               {darwin any}
license                 BSD
maintainers             {michaelld @michaelld}
supported_archs         noarch
description             Switch the default qt4 interpreter
long_description        qt4_select lets you switch the current qt4 installation. \
                        qt4_select symlinks the qt4 installation in the \
                        MacPorts prefix to the selected version.

homepage                http://svn.macports.org/repository/macports/contrib/select/
master_sites            ${homepage}
distname                select-${version}
checksums               md5     b24cecd12fc5567e544b25c5df34a255 \
                        sha1    4aa312d7e0b9ede1ef015fcd941ff53a0329127a \
                        rmd160  f121d366cdecc7d5331040abfd153334399d80d5

patchfiles              patch-select.sh.diff

configure.args          --mandir=${prefix}/share/man --name=qt4

destroot.keepdirs       ${destroot}${applications_dir}/Qt

# install all files
post-destroot {
    select::install qt4 ${filespath}/base
    select::install qt4 ${filespath}/none
}

livecheck.type          none

# Documentation for qt4 ports:
#   PortGroup select 1.0
#   set select_group    qt4
#   set select_branch   ??? one of [mac, x11, mac-devel, x11-devel]
#   set select_port     ${select_group}_select
#   set select_name     ${select_group}-${select_branch}
#   select.group        ${select_group}
#   select.file         ${filespath}/${select_name}
#   name                ${select_name}