Commit 8b58364e authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Update elixir from 1.9.1 to 1.9.1-1 (#3525)

parent 7a98ecd8
......@@ -3,7 +3,7 @@ require 'package'
class Elixir < Package
description 'Elixir is a dynamic, functional language designed for building scalable and maintainable applications.'
homepage 'https://elixir-lang.org/'
version '1.9.1'
version '1.9.1-1'
source_url 'https://github.com/elixir-lang/elixir/releases/download/v1.9.1/Precompiled.zip'
source_sha256 '17e43cb1627a0fa5625bc370cec0964ad6471ef242f1549e316db73c0d94fcc6'
......@@ -16,10 +16,18 @@ class Elixir < Package
depends_on 'unzip' => :build
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
# Remove unused files
FileUtils.rm 'man/common'
FileUtils.rm 'bin/mix.ps1'
FileUtils.rm 'bin/.DS_Store'
FileUtils.rm Dir.glob('bin/*.bat')
FileUtils.rm Dir.glob('man/*.1.in')
# Prepare destination directories
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}"
system "cp -r bin/ #{CREW_DEST_PREFIX}"
system "cp -r lib/* #{CREW_DEST_LIB_PREFIX}"
system "cp -r man/ #{CREW_DEST_PREFIX}/share"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/man/man1"
# Add relevant files
FileUtils.cp_r 'bin/', "#{CREW_DEST_PREFIX}"
FileUtils.cp_r Dir.glob('lib/mix/lib/*'), "#{CREW_DEST_LIB_PREFIX}"
FileUtils.cp_r Dir.glob('man/*'), "#{CREW_DEST_PREFIX}/share/man/man1"
end
end
......@@ -12,7 +12,7 @@ exclusions+=' qt.rb sl.rb spark.rb stack.rb sublime_merge.rb sublime_text.rb the
exclusions+=' neofetch.rb perl_gcstring_linebreak.rb perl_io_socket_ssl.rb perl_locale_gettext.rb perl_locale_messages.rb perl_module_build.rb'
exclusions+=' perl_read_key.rb perl_sgmls.rb perl_term_ansicolor.rb perl_text_charwidth.rb perl_text_unidecode.rb perl_text_wrapi18n.rb'
exclusions+=' perl_time_hires.rb perl_unicode_eastasianwidth.rb perl_xml_parser.rb perl_xml_sax_parserfactory.rb perl_xml_simple.rb'
exclusions+=' leiningen.rb tkdiff.rb v2ray.rb'
exclusions+=' elixir.rb leiningen.rb tkdiff.rb v2ray.rb'
if [[ "${arch}" == 'aarch64' || "${arch}" == 'armv7l' ]]; then
exclusions+=' az.rb cf.rb clisp.rb dropbox.rb freebasic.rb miniconda3.rb misctools.rb oci.rb wkhtmltox.rb xorg_intel_driver.rb xorg_vmmouse_driver.rb'
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment