Revision: 149477 https://trac.macports.org/changeset/149477 Author: sean@macports.org Date: 2016-06-22 15:56:27 -0700 (Wed, 22 Jun 2016) Log Message: ----------- sourcekittendaemon: add new port that autocompletes swift Added Paths: ----------- trunk/dports/devel/sourcekittendaemon/ trunk/dports/devel/sourcekittendaemon/Portfile trunk/dports/devel/sourcekittendaemon/files/ trunk/dports/devel/sourcekittendaemon/files/patch-Makefile.diff Added: trunk/dports/devel/sourcekittendaemon/Portfile =================================================================== --- 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 =================================================================== --- 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=$@ +