Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

apous v0.2.1 #41473

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Library/Formula/apous.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Apous < Formula
desc "Apous is a simple tool that allows for easier authoring of Swift scripts."
homepage "https://github.com/owensd/apous"
url "https://github.com/owensd/apous/archive/v0.2.1.tar.gz"
sha256 "d2a283bd328c7dae117de6078448e87a3f3b960876608dd238f5b87f698a10bc"

depends_on :xcode => ["7.0", :build]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to double check: You can remove xcode from your system after installing this and it'll continue to work as expected?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Xcode is required for building only.

Sent from my iPhone

On Jul 7, 2015, at 6:13 PM, Dominyk Tiller notifications@github.com wrote:

In Library/Formula/apous.rb:

@@ -0,0 +1,23 @@
+class Apous < Formula

  • depends_on :xcode => ["7.0", :build]
    Just to double check: You can remove xcode from your system after installing this and it'll continue to work as expected?


Reply to this email directly or view it on GitHub.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, to be clear. You still need the xcodebuild command line utilities for it to work.

Sent from my iPhone

On Jul 7, 2015, at 6:13 PM, Dominyk Tiller notifications@github.com wrote:

In Library/Formula/apous.rb:

@@ -0,0 +1,23 @@
+class Apous < Formula

  • depends_on :xcode => ["7.0", :build]
    Just to double check: You can remove xcode from your system after installing this and it'll continue to work as expected?


Reply to this email directly or view it on GitHub.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user is running Homebrew it's safe to assume they'll always have either Xcode or the CLT installed, so as long as it can run with the CLT installed it's fine for the dep to be :build.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a stable version of Xcode on a stable version of OS X?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, well spotted. 7.0 is still beta. You can run it on 10.10 though, if you super want to.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will probably need to hold off on this until 7.0 is stable.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks. I can resubmit when public.

On Jul 8, 2015, at 9:14 AM, Mike McQuaid notifications@github.com wrote:

In Library/Formula/apous.rb #41473 (comment):

@@ -0,0 +1,23 @@
+class Apous < Formula

  • depends_on :xcode => ["7.0", :build]
    Will probably need to hold off on this until 7.0 is stable.


Reply to this email directly or view it on GitHub https://github.com/Homebrew/homebrew/pull/41473/files#r34166812.


def install
system "make", "install", "PREFIX=#{prefix}"
end

test do
(testpath/"test.swift").write <<-EOS.undent
println("Hello World")
EOS

require "open3"
Open3.popen3("#{bin}/apous", "test.swift") do |_, stdout, _|
assert_equal "Hello World", stdout.read.strip
end
end
end