diff options
| author | Mike McQuaid | 2014-07-03 21:43:19 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-03 22:33:21 +0100 |
| commit | fb93ea17ba7a9d7b9a2b2748affa83b454b64151 (patch) | |
| tree | be4741ad2c302ca885b79920cb17d04d26df9cec /Library/Formula | |
| parent | 5dfb9d9f4e3700626cdc15c1753c45685721be25 (diff) | |
| download | homebrew-fb93ea17ba7a9d7b9a2b2748affa83b454b64151.tar.bz2 | |
hllib: migrate to homebrew/boneyard.
Closes #30631.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hllib.rb | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Library/Formula/hllib.rb b/Library/Formula/hllib.rb deleted file mode 100644 index 3ce6d0cf8..000000000 --- a/Library/Formula/hllib.rb +++ /dev/null @@ -1,42 +0,0 @@ -require 'formula' - -class Hllib < Formula - homepage 'http://nemesis.thewavelength.net/index.php?p=35' - url 'http://nemesis.thewavelength.net/files/files/hllib242.zip' - sha1 '2b2b9900e7cc412c6d36224d469c9a6b0477011f' - version '2.4.2' - - def install - # Library - cd 'HLLib' do - # Set perms so we can replace the strings - chmod 0777, 'Makefile' - inreplace 'Makefile' do |s| - # Set prefix correctly - s.gsub! '/usr/local', prefix - # Remove -soname directive - s.gsub! '-shared -Wl,-soname,libhl.so.2', '-shared -Wl' - # Ownership isn't needed here - s.gsub! %r{ -[og] root}, '' - # .dylib is the OS X equivalent of .so - s.gsub! 'libhl.so.$(HLLIB_VERS)', 'libhl.$(HLLIB_VERS).dylib' - s.gsub! '$(PREFIX)/lib/libhl.so.2', '$(PREFIX)/lib/libhl.2.dylib' - s.gsub! '$(PREFIX)/lib/libhl.so', '$(PREFIX)/lib/libhl.dylib' - end - # Install - system "make install" - end - # Extract tool - cd 'HLExtract' do - # Set prefix correctly - chmod 0777, 'Main.c' - # Fix limits header for OS X - inreplace 'Main.c', 'linux/limits.h', 'limits.h' - # OS X friendly binary name - inreplace 'Main.c', 'HLExtract.exe', 'hlextract' - # Make the binary build path and build - bin.mkpath - system ENV.cc, 'Main.c', "-I#{include}", "-L#{lib}", '-lhl', '-o', bin+'hlextract' - end - end -end |
