[149475] trunk/dports/devel

sean at macports.org sean at macports.org
Wed Jun 22 15:56:19 PDT 2016


Revision: 149475
          https://trac.macports.org/changeset/149475
Author:   sean at macports.org
Date:     2016-06-22 15:56:19 -0700 (Wed, 22 Jun 2016)
Log Message:
-----------
carthage: add port for cocoa dependencies

Added Paths:
-----------
    trunk/dports/devel/carthage/
    trunk/dports/devel/carthage/Portfile

Added: trunk/dports/devel/carthage/Portfile
===================================================================
--- 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"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160622/1cf288ab/attachment.html>


More information about the macports-changes mailing list