# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup Carthage Carthage 0.18 categories devel platforms darwin universal_variant no license MIT maintainers sean openmaintainer description A simple, decentralized dependency manager for Cocoa long_description ${description} # Fetch from git instead of distfile because it needs submodules fetch.type git use_configure no # everything is built during the prefix_install target build {} destroot { system -W ${worksrcpath} "${build.cmd} prefix_install PREFIX=${destroot}${prefix} TEMPORARY_FOLDER=${destroot} XCODEFLAGS=\"-workspace 'Carthage.xcworkspace' -scheme 'carthage' DSTROOT=${destroot} -IDECustomDerivedDataLocation=${worksrcpath}/custombuild CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO\"" } post-destroot { delete ${destroot}/usr delete ${destroot}/Library xinstall -d ${destroot}${prefix}/Library move ${destroot}${prefix}/Frameworks ${destroot}${prefix}/Library/ system -W ${destroot}${prefix}/bin "install_name_tool -add_rpath @executable_path/../Library/Frameworks carthage" system -W ${destroot}${prefix}/bin "install_name_tool -add_rpath @executable_path/../Library/Frameworks/CarthageKit.framework/Versions/A/Frameworks/ carthage" }