[149476] trunk/dports/devel
sean at macports.org
sean at macports.org
Wed Jun 22 15:56:23 PDT 2016
Revision: 149476
https://trac.macports.org/changeset/149476
Author: sean at macports.org
Date: 2016-06-22 15:56:23 -0700 (Wed, 22 Jun 2016)
Log Message:
-----------
sourcekitten: add new port that interacts with SourceKit
Added Paths:
-----------
trunk/dports/devel/sourcekitten/
trunk/dports/devel/sourcekitten/Portfile
Added: trunk/dports/devel/sourcekitten/Portfile
===================================================================
--- trunk/dports/devel/sourcekitten/Portfile (rev 0)
+++ trunk/dports/devel/sourcekitten/Portfile 2016-06-22 22:56:23 UTC (rev 149476)
@@ -0,0 +1,37 @@
+# -*- 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 jpsim SourceKitten 0.13.0
+categories devel
+platforms darwin
+
+universal_variant no
+license MIT
+maintainers sean openmaintainer
+
+description An adorable little framework and command line tool for \
+ interacting with SourceKit.
+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 {
+ file mkdir ${destroot}${prefix}/Frameworks/
+ system -W ${worksrcpath} "${build.cmd} prefix_install PREFIX=${destroot}${prefix} TEMPORARY_FOLDER=${destroot} XCODEFLAGS=\"-workspace 'SourceKitten.xcworkspace' -scheme 'sourcekitten' DSTROOT=${destroot} -IDECustomDerivedDataLocation=${worksrcpath}/custombuild OTHER_LDFLAGS='-Wl,-headerpad_max_install_names'\""
+}
+
+post-destroot {
+ delete ${destroot}${prefix}/var
+ 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 sourcekitten"
+ system -W ${destroot}${prefix}/bin "install_name_tool -add_rpath @executable_path/../Library/Frameworks/SourceKittenFramework.framework/Versions/Current/Frameworks sourcekitten"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160622/025e8d5f/attachment.html>
More information about the macports-changes
mailing list