uade: use patch DSL

master
Jack Nagel 2014-03-20 14:05:22 -05:00
parent ee6dbfbfe1
commit 34292fea4d
1 changed files with 8 additions and 7 deletions

View File

@ -2,19 +2,20 @@ require 'formula'
class Uade < Formula class Uade < Formula
homepage 'http://zakalwe.fi/uade/' homepage 'http://zakalwe.fi/uade/'
url 'http://zakalwe.fi/uade/uade2/uade-2.13.tar.bz2'
sha1 '61c5ce9dfecc37addf233de06be196c9b15a91d8' stable do
url "http://zakalwe.fi/uade/uade2/uade-2.13.tar.bz2"
sha1 "61c5ce9dfecc37addf233de06be196c9b15a91d8"
# Upstream patch to fix compiler detection under superenv
patch :DATA
end
head 'git://zakalwe.fi/uade' head 'git://zakalwe.fi/uade'
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'libao' depends_on 'libao'
# Upstream patch to fix compiler detection under superenv
def patches
DATA unless build.head?
end
def install def install
system "./configure", "--prefix=#{prefix}" system "./configure", "--prefix=#{prefix}"
system "make install" system "make install"