2011-05-11 02:03:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xmp < Formula
|
|
|
|
homepage 'http://xmp.sourceforge.net'
|
2013-05-22 15:03:09 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/xmp/xmp/4.0.6/xmp-4.0.6.tar.gz'
|
|
|
|
sha1 '61a7d68e4c37e7407bd35c783821bfbc2b639c87'
|
2013-04-25 15:57:08 +00:00
|
|
|
head 'git://git.code.sf.net/p/xmp/xmp-cli'
|
2013-02-16 07:45:50 +00:00
|
|
|
|
2013-05-22 15:03:09 +00:00
|
|
|
depends_on 'autoconf' if build.head?
|
|
|
|
depends_on 'automake' if build.head?
|
|
|
|
depends_on 'libtool' if build.head?
|
2013-05-18 21:58:55 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-16 07:45:50 +00:00
|
|
|
depends_on 'libxmp'
|
2011-05-11 02:03:42 +00:00
|
|
|
|
|
|
|
def install
|
2013-05-22 15:03:09 +00:00
|
|
|
if build.head?
|
|
|
|
system "glibtoolize"
|
|
|
|
system "aclocal"
|
|
|
|
system "autoconf"
|
|
|
|
system "automake", "--add-missing"
|
|
|
|
end
|
|
|
|
|
2011-05-11 02:03:42 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
2012-01-27 19:03:56 +00:00
|
|
|
|
|
|
|
# install the included demo song
|
2013-04-25 16:07:37 +00:00
|
|
|
share.install "ub-name.it" unless build.head?
|
2012-01-27 19:03:56 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2013-04-25 16:07:37 +00:00
|
|
|
system "#{bin}/xmp", "--load-only", share/"ub-name.it"
|
2011-05-11 02:03:42 +00:00
|
|
|
end
|
|
|
|
end
|