Skip to content

Commit

Permalink
moc 2.5.1, 2.6-alpha2 (devel)
Browse files Browse the repository at this point in the history
moc 2.5.1

Also add devel version 2.6-alpha2, which additionally depends on popt.

Release announcement: https://moc.daper.net/node/1504.

Closes #567.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
zmwangx authored and DomT4 committed Apr 24, 2016
1 parent fdd9b23 commit f2c8089
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Formula/moc.rb
@@ -1,19 +1,11 @@
class Moc < Formula
desc "Terminal-based music player"
homepage "https://moc.daper.net"
revision 2
head "svn://daper.net/moc/trunk"

stable do
url "http://ftp.daper.net/pub/soft/moc/stable/moc-2.5.0.tar.bz2"
sha256 "d29ea52240af76c4aa56fa293553da9d66675823e689249cee5f8a60657a6091"

# Backport r2779: Adapt to FFmpeg/LibAV's audioconvert.h rename (commit 5980f5dd).
# Necessary for building against FFmpeg 3.0. See https://moc.daper.net/node/1496.
patch do
url "https://raw.githubusercontent.com/Homebrew/patches/1282e60/moc/moc-2.5.0.diff"
sha256 "1a7d2d7f967c8182db01dd95d5a05aac8f2acae2eac6fcda419baaed068bc8ef"
end
url "http://ftp.daper.net/pub/soft/moc/stable/moc-2.5.1.tar.bz2"
sha256 "1b419c75a92a85ff4ee7670c65d660c86fef32032c65e89e868b988f80fac4f2"
end

bottle do
Expand All @@ -22,6 +14,12 @@ class Moc < Formula
sha256 "39a6dc0a11c173a4e4556d7774061c12fdaf532a218ca1891ce367c453c75c31" => :mavericks
end

devel do
url "http://ftp.daper.net/pub/soft/moc/unstable/moc-2.6-alpha2.tar.xz"
version "2.6-alpha2"
sha256 "0a3a4fb11227ec58025f7177a3212aca9c9955226a2983939e8db662af13434b"
end

option "with-ncurses", "Build with wide character support."

depends_on "autoconf" => :build
Expand All @@ -43,6 +41,8 @@ class Moc < Formula
depends_on "libmagic" => :optional
depends_on "homebrew/dupes/ncurses" => :optional

depends_on "popt" if build.devel?

def install
system "autoreconf", "-fvi"
system "./configure", "--disable-debug", "--prefix=#{prefix}"
Expand Down

0 comments on commit f2c8089

Please sign in to comment.