# -*- 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
# $Id: Portfile 99440 2012-11-05 08:55:41Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               github 1.0
PortGroup               xcode 1.0

epoch                   1
github.setup            signed0 itunes-match-helper 18ce34d7c4861b0c60a988c913f4545c4d9bb9fb
version                 0.1a
name                    iTunesMatchHelper
platforms               darwin
maintainers             phw openmaintainer

description             Fixes missing metadata for songs that iTunes has matched

long_description        ${description}

checksums               rmd160  551514c3800c559993b703df9a9b54c4dd0bd320 \
                        sha256  f30d06b0c08ebb29a76586af93ce4759e968907aaabfb101d75049b02615a19c

# error: -fobjc-arc is not supported with fragile abi
supported_archs         x86_64
universal_variant       no

destroot {
    copy ${worksrcpath}/build/Release/iTunesMatchHelper.app ${destroot}${applications_dir}
}

if {${os.platform} == "darwin" && ${os.major} < 11} {
    pre-fetch {
        ui_error "${name} ${version} requires OS X 10.7 or greater."
        return -code error "incompatible OS X version"
    }
}
