# -*- 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               xcode 1.0
PortGroup               github 1.0

github.setup            mattt TransformerKit 1.1.1
github.tarball_from     archive
categories              devel
platforms               darwin
license                 MIT
maintainers             nomaintainer
description             A block-based API for NSValueTransformer, with a \
                        growing collection of useful examples.
long_description        NSValueTransformer, while perhaps obscure to most iOS \
                        programmers, remains a staple of OS X development. \
                        TransformerKit breathes new life into NSValueTransformer \
                        by making them dead-simple to define and register. \
                        TransformerKit also contains a growing number of convenient \
                        transformers that your apps will love and cherish: \
                        \n \
                        \n* String Transformers \
                        \n* Image Transformers \
                        \n* Date Transformers \
                        \n* JSON Data Transformers \
                        \n* Data Transformers \
                        \n* Cryptographic Transformers  \
homepage                https://github.com/mattt/${name}

xcode.scheme            {TransformerKit macOS}
xcode.target            {TransformerKit macOS}
xcode.configuration     Release
xcode.destroot.type     framework

xcode.destroot.settings CODE_SIGN_STYLE=Manual \
                        CODE_SIGN_IDENTITY=- \
                        ENABLE_HARDENED_RUNTIME=NO \
                        SKIP_INSTALL=NO \
                        INSTALL_DIR=${destroot}${frameworks_dir} \
                        LD_DYLIB_INSTALL_NAME=${prefix}/Library/Frameworks/${name}.framework/Versions/A/${name} \

# Building will be done in the destroot phase.
# See https://trac.macports.org/ticket/57137
build {}

# xcode PortGroup sets the DerivedData to /var/root/... which is not writeable. This fixes it.
destroot.pre_args-append -derivedDataPath ./DerivedData

checksums               rmd160  40164dc814ab37c08429b7d379f9d32689263921 \
                        sha256  7c6b6a1a41384b7e2165bbe51915d749dd200c65a31226b9bdbc0dea09cab2f5 \
                        size    20840
