adplug: test added
Closes Homebrew/homebrew#37105. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
ded19e4ec0
commit
9e092a0111
1 changed files with 20 additions and 9 deletions
|
@ -1,16 +1,27 @@
|
|||
require 'formula'
|
||||
|
||||
class Adplug < Formula
|
||||
homepage 'http://adplug.sf.net'
|
||||
url 'https://downloads.sourceforge.net/project/adplug/AdPlug%20core%20library/2.2.1/adplug-2.2.1.tar.bz2'
|
||||
sha1 '5023282ff44f183c9b6d7da9f57f51595742a5f7'
|
||||
homepage "http://adplug.sf.net"
|
||||
url "https://downloads.sourceforge.net/project/adplug/AdPlug%20core%20library/2.2.1/adplug-2.2.1.tar.bz2"
|
||||
sha1 "5023282ff44f183c9b6d7da9f57f51595742a5f7"
|
||||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'libbinio'
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libbinio"
|
||||
|
||||
resource "ksms" do
|
||||
url "http://advsys.net/ken/ksmsongs.zip"
|
||||
sha1 "7643cf95ae17233898b2b092ea9c8a69ec52532b"
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
resource("ksms").stage do
|
||||
mkdir "#{testpath}/.adplug"
|
||||
system "#{bin}/adplugdb", "-v", "add", "JAZZSONG.KSM"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue