Skip to content

Commit

Permalink
llvm3[345]: omit point release from version suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Jun 3, 2014
1 parent 4d8a0bd commit 0092422
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions llvm33.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class Llvm33 < Formula
homepage 'http://llvm.org/'
revision 1

stable do
url 'http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz'
Expand Down Expand Up @@ -223,13 +224,13 @@ def install
# Link executables to bin and add suffix to avoid conflicts
Dir.glob(install_prefix/'bin/*') do |exec_path|
basename = File.basename(exec_path)
bin.install_symlink exec_path => "#{basename}-#{version}"
bin.install_symlink exec_path => "#{basename}-#{ver}"
end

# Also link man pages
Dir.glob(install_prefix/'share/man/man1/*') do |manpage|
basename = File.basename(manpage, ".1")
man1.install_symlink manpage => "#{basename}-#{version}.1"
man1.install_symlink manpage => "#{basename}-#{ver}.1"
end
end

Expand Down
5 changes: 3 additions & 2 deletions llvm34.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class Llvm34 < Formula
homepage 'http://llvm.org/'
revision 1

stable do
url 'http://llvm.org/releases/3.4.1/llvm-3.4.1.src.tar.gz'
Expand Down Expand Up @@ -209,13 +210,13 @@ def install
# Link executables to bin and add suffix to avoid conflicts
Dir.glob(install_prefix/'bin/*') do |exec_path|
basename = File.basename(exec_path)
bin.install_symlink exec_path => "#{basename}-#{version}"
bin.install_symlink exec_path => "#{basename}-#{ver}"
end

# Also link man pages
Dir.glob(install_prefix/'share/man/man1/*') do |manpage|
basename = File.basename(manpage, ".1")
man1.install_symlink manpage => "#{basename}-#{version}.1"
man1.install_symlink manpage => "#{basename}-#{ver}.1"
end
end

Expand Down
4 changes: 2 additions & 2 deletions llvm35.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ def install
# Link executables to bin and add suffix to avoid conflicts
Dir.glob(install_prefix/'bin/*') do |exec_path|
basename = File.basename(exec_path)
bin.install_symlink exec_path => "#{basename}-#{version}"
bin.install_symlink exec_path => "#{basename}-#{ver}"
end

# Also link man pages
Dir.glob(install_prefix/'share/man/man1/*') do |manpage|
basename = File.basename(manpage, ".1")
man1.install_symlink manpage => "#{basename}-#{version}.1"
man1.install_symlink manpage => "#{basename}-#{ver}.1"
end
end

Expand Down

0 comments on commit 0092422

Please sign in to comment.