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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup Carthage Carthage 0.18 |
---|
8 | categories devel |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | universal_variant no |
---|
12 | license MIT |
---|
13 | maintainers sean openmaintainer |
---|
14 | |
---|
15 | description A simple, decentralized dependency manager for Cocoa |
---|
16 | long_description ${description} |
---|
17 | |
---|
18 | # Fetch from git instead of distfile because it needs submodules |
---|
19 | fetch.type git |
---|
20 | |
---|
21 | use_configure no |
---|
22 | # everything is built during the prefix_install target |
---|
23 | build {} |
---|
24 | |
---|
25 | destroot { |
---|
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 | |
---|
29 | post-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 | } |
---|