freeswitch: remove options.

See https://github.com/Homebrew/homebrew-core/issues/31510.

Closes #36266.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Mike McQuaid 2019-01-22 09:19:28 +00:00 committed by FX Coudert
parent 2c58e38102
commit 2d4952edde

View file

@ -13,11 +13,6 @@ class Freeswitch < Formula
sha256 "f2d73136027050dc82f3ce4d9e6f131f07a6cf15fba1d2b02c2012eacd1cb525" => :el_capitan
end
option "without-moh", "Do not install music-on-hold"
option "without-sounds-en", "Do not install English (Callie) sounds"
option "with-sounds-fr", "Install French (June) sounds"
option "with-sounds-ru", "Install Russian (Elena) sounds"
depends_on "apr-util" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
@ -90,56 +85,6 @@ class Freeswitch < Formula
sha256 "cfc50f1d9b5d43cb87a9a2c0ce136c37ee85ac3b0e5be930d8dc2c913c4495aa"
end
#-----------
# sounds-fr
#-----------
sounds_fr_version = "1.0.51" # from build/sounds_version.txt
resource "sounds-fr-ca-june-8000" do
url "#{sounds_url_base}/freeswitch-sounds-fr-ca-june-8000-#{sounds_fr_version}.tar.gz"
version sounds_fr_version
sha256 "eada67c61bd62ec420eb017df7524d10de286fba0c2da4800516b9f62c00e78c"
end
resource "sounds-fr-ca-june-16000" do
url "#{sounds_url_base}/freeswitch-sounds-fr-ca-june-16000-#{sounds_fr_version}.tar.gz"
version sounds_fr_version
sha256 "f942980ad359951ef3f69a324a3299ef86cdb4f8d2c62adaf73a1b95fb39fcc6"
end
resource "sounds-fr-ca-june-32000" do
url "#{sounds_url_base}/freeswitch-sounds-fr-ca-june-32000-#{sounds_fr_version}.tar.gz"
version sounds_fr_version
sha256 "8966a0c4daf666018cca6d8ba0f7708e251bed952b015d0ca6a0792341fe531b"
end
resource "sounds-fr-ca-june-48000" do
url "#{sounds_url_base}/freeswitch-sounds-fr-ca-june-48000-#{sounds_fr_version}.tar.gz"
version sounds_fr_version
sha256 "abaea558fb5485abdd01d0b1186e03cf508f96ac90492814cc7ed4475e99a1e0"
end
#-----------
# sounds-ru
#-----------
sounds_ru_version = "1.0.51" # from build/sounds_version.txt
resource "sounds-ru-RU-elena-8000" do
url "#{sounds_url_base}/freeswitch-sounds-ru-RU-elena-8000-#{sounds_ru_version}.tar.gz"
version sounds_ru_version
sha256 "d2679503eb1f4dc1716df5f8c4b5a7b721f087b17e96a02b1a92480311074c66"
end
resource "sounds-ru-RU-elena-16000" do
url "#{sounds_url_base}/freeswitch-sounds-ru-RU-elena-16000-#{sounds_ru_version}.tar.gz"
version sounds_ru_version
sha256 "e5a354cd10401208291f1d0e668a8cf8215d3cdcb93f2cbd4b83dd134425e60b"
end
resource "sounds-ru-RU-elena-32000" do
url "#{sounds_url_base}/freeswitch-sounds-ru-RU-elena-32000-#{sounds_ru_version}.tar.gz"
version sounds_ru_version
sha256 "a2b43f20246f376d55dd73d269eb238cbeb6a961a40716d2f79a5835344aabfc"
end
resource "sounds-ru-RU-elena-48000" do
url "#{sounds_url_base}/freeswitch-sounds-ru-RU-elena-48000-#{sounds_ru_version}.tar.gz"
version sounds_ru_version
sha256 "ffd7d34907f6b6ac861e7898d2237ad763f242a17cd23811da28fd7745d3350d"
end
#------------------------ End sound file resources --------------------------
def install
@ -163,43 +108,19 @@ class Freeswitch < Formula
system "make"
system "make", "install", "all"
if build.with?("moh")
# Should be equivalent to: system "make", "cd-moh-install"
mkdir_p prefix/"sounds/music"
[8, 16, 32, 48].each do |n|
resource("sounds-music-#{n}000").stage do
cp_r ".", prefix/"sounds/music"
end
# Should be equivalent to: system "make", "cd-moh-install"
mkdir_p prefix/"sounds/music"
[8, 16, 32, 48].each do |n|
resource("sounds-music-#{n}000").stage do
cp_r ".", prefix/"sounds/music"
end
end
if build.with?("sounds-en")
# Should be equivalent to: system "make", "cd-sounds-install"
mkdir_p prefix/"sounds/en"
[8, 16, 32, 48].each do |n|
resource("sounds-en-us-callie-#{n}000").stage do
cp_r ".", prefix/"sounds/en"
end
end
end
if build.with?("sounds-fr")
# Should be equivalent to: system "make", "cd-sounds-fr-install"
mkdir_p prefix/"sounds/fr"
[8, 16, 32, 48].each do |n|
resource("sounds-fr-ca-june-#{n}000").stage do
cp_r ".", prefix/"sounds/fr"
end
end
end
if build.with?("sounds-ru")
# Should be equivalent to: system "make", "cd-sounds-ru-install"
mkdir_p prefix/"sounds/ru"
[8, 16, 32, 48].each do |n|
resource("sounds-ru-RU-elena-#{n}000").stage do
cp_r ".", prefix/"sounds/ru"
end
# Should be equivalent to: system "make", "cd-sounds-install"
mkdir_p prefix/"sounds/en"
[8, 16, 32, 48].each do |n|
resource("sounds-en-us-callie-#{n}000").stage do
cp_r ".", prefix/"sounds/en"
end
end
end