Added: trunk/dports/devel/sourcekittendaemon/Portfile (0 => 149477)
--- trunk/dports/devel/sourcekittendaemon/Portfile (rev 0)
+++ trunk/dports/devel/sourcekittendaemon/Portfile 2016-06-22 22:56:27 UTC (rev 149477)
@@ -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 terhechte SourceKittenDaemon 0.1.5
+categories devel
+platforms darwin
+
+universal_variant no
+license MIT
+maintainers sean openmaintainer
+
+description Swift Auto Completions for any Text Editor
+long_description ${description}
+
+depends_build bin:carthage:carthage
+
+# Fetch from git instead of distfile because it needs submodules
+fetch.type git
+
+patchfiles patch-Makefile.diff
+
+use_configure no
+
+# everything is built during the prefix_install target
+build {}
+
+destroot {
+ system -W ${worksrcpath} "${build.cmd} install PREFIX=${destroot}${prefix} FRAMEWORKS_FOLDER=/Library/Frameworks/SourceKittenDaemon DSTROOT=${destroot} DERIVED_PATH=${worksrcpath}/custombuild"
+}
+
+post-destroot {
+ delete ${destroot}/Applications
+}
Added: trunk/dports/devel/sourcekittendaemon/files/patch-Makefile.diff (0 => 149477)
--- trunk/dports/devel/sourcekittendaemon/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/sourcekittendaemon/files/patch-Makefile.diff 2016-06-22 22:56:27 UTC (rev 149477)
@@ -0,0 +1,14 @@
+--- Makefile.old 2016-04-18 15:46:13.000000000 -0700
++++ Makefile 2016-04-18 15:46:33.000000000 -0700
+@@ -43,9 +43,10 @@
+ $(BUILD):
+ mkdir -p $@
+ git submodule update --init --recursive
+- carthage build --platform Mac
++ carthage build --platform Mac --derived-data $(BUILD)
+ xcodebuild -project SourceKittenDaemon.xcodeproj \
+ -scheme SourceKittenDaemon \
++ -IDECustomDerivedDataLocation=$(BUILD) \
+ install \
+ DSTROOT=$@
+