Skip to content

Commit

Permalink
premake 4.4-beta5, 5.0.0-alpha6 (devel)
Browse files Browse the repository at this point in the history
Closes #864.

Signed-off-by: Mike McQuaid <[email protected]>
  • Loading branch information
apjanke authored and MikeMcQuaid committed May 5, 2016
1 parent 087514c commit 6e81842
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions Formula/premake.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
class Premake < Formula
desc "Powerfully simple build configuration"
homepage "http://industriousone.com/premake"
url "https://downloads.sourceforge.net/project/premake/Premake/4.3/premake-4.3-src.zip"
sha256 "36536490f8928d8ecde135da80cd8b751ea5bebe50cabba5c0de49cd41cb2780"
desc "Write once, build anywhere Lua-based build system"
homepage "https://premake.github.io/"

bottle do
cellar :any_skip_relocation
revision 1
sha256 "02f55d278bd04f5e1ebf779e9a45921ea476fdb48e56ac52f0a71cbef541bc39" => :el_capitan
sha256 "71c9f710b6c595054a2bc27c484b2ec684a9a14ffe5771112891e2a5226b4cbf" => :yosemite
sha256 "b67d28d0978c30da8d3988b289772e2f0f6dd0b5ea21bd8bce4049cfca095b46" => :mavericks
stable do
url "https://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip"
sha256 "0fa1ed02c5229d931e87995123cdb11d44fcc8bd99bba8e8bb1bbc0aaa798161"
end

devel do
url "https://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip"
sha256 "0fa1ed02c5229d931e87995123cdb11d44fcc8bd99bba8e8bb1bbc0aaa798161"
url "https://github.com/premake/premake-core/releases/download/v5.0.0-alpha6/premake-5.0.0-alpha6-src.zip"
sha256 "9c13372699d25824cba1c16a0483507a6a28903e2556ffb148b288c189403aee"
end

head do
url "https://github.com/premake/premake-core.git"
end

def install
unless build.devel?
# Linking against stdc++-static causes a library not found error on 10.7
inreplace "build/gmake.macosx/Premake4.make", "-lstdc++-static ", ""
if build.head?
system "make", "-f", "Bootstrap.mak", "osx"
system "./premake5", "gmake"
end

system "make", "-C", "build/gmake.macosx"
bin.install "bin/release/premake5" if build.devel? or build.head?
bin.install "bin/release/premake4" if build.stable?
end

# Premake has no install target, but its just a single file that is needed
bin.install "bin/release/premake4"
test do
system "premake5", "--version" if build.devel? or build.head?
system "premake4", "--version" if build.stable?
end
end

0 comments on commit 6e81842

Please sign in to comment.