Ticket #52035: Portfile

File Portfile, 1.4 KB (added by nevil (Anders Hasselqvist), 8 years ago)

Portfile for Carthage 0.18 and fixes the reported issue by disabling code signing

Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        Carthage Carthage 0.18
8categories          devel
9platforms           darwin
10
11universal_variant   no
12license             MIT
13maintainers         sean openmaintainer
14
15description         A simple, decentralized dependency manager for Cocoa
16long_description    ${description}
17
18# Fetch from git instead of distfile because it needs submodules
19fetch.type          git
20
21use_configure       no
22# everything is built during the prefix_install target
23build               {}
24
25destroot {
26    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\""
27}
28
29post-destroot {
30    delete ${destroot}/usr
31    delete ${destroot}/Library
32    xinstall -d ${destroot}${prefix}/Library
33    move ${destroot}${prefix}/Frameworks ${destroot}${prefix}/Library/
34    system -W ${destroot}${prefix}/bin "install_name_tool -add_rpath @executable_path/../Library/Frameworks carthage"
35    system -W ${destroot}${prefix}/bin "install_name_tool -add_rpath @executable_path/../Library/Frameworks/CarthageKit.framework/Versions/A/Frameworks/ carthage"
36}