Added: trunk/dports/devel/carthage/Portfile (0 => 149475)
--- trunk/dports/devel/carthage/Portfile (rev 0)
+++ trunk/dports/devel/carthage/Portfile 2016-06-22 22:56:19 UTC (rev 149475)
@@ -0,0 +1,36 @@
+# -*- 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.17
+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\""
+}
+
+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"
+}