From defb3f3eef950befe7cd4e70704a19a115feeee2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20P=C3=A9teut?= Date: Fri, 26 Aug 2016 11:23:18 +0200 Subject: [PATCH] fix vhdl-2008 support Issue #294 --- tools/build-2008-support.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/build-2008-support.rb b/tools/build-2008-support.rb index 371a5764..22159619 100755 --- a/tools/build-2008-support.rb +++ b/tools/build-2008-support.rb @@ -9,7 +9,9 @@ require 'fileutils' require 'tmpdir' Zip = "vhdl2008c.zip" -Url = "http://www.eda.org/fphdl/#{Zip}" +Project, Branch = "vhdl2008c", "master" +ZipFolder = "#{Project}-#{Branch}" +Url = "https://github.com/peteut/#{Project}/archive/master.zip" Lib = "#{File.expand_path '~'}/.nvc/lib/ieee_proposed" def run_nvc(file) @@ -27,7 +29,7 @@ Dir.mktmpdir do |dir| puts "Downloading #{Url}" exit 1 unless system "curl -sSL -o #{Zip} \"#{Url}\"" - exit 1 unless system "unzip #{Zip}" + exit 1 unless system "unzip -j #{Zip}" run_nvc "standard_additions_c.vhdl" run_nvc "standard_textio_additions_c.vhdl" @@ -36,6 +38,7 @@ Dir.mktmpdir do |dir| run_nvc "numeric_std_additions.vhdl" run_nvc "numeric_std_unsigned_c.vhdl" run_nvc "fixed_float_types_c.vhdl" + run_nvc "math_utility_pkg.vhdl" run_nvc "fixed_pkg_c.vhdl" end -- 2.39.2