Guest User

Untitled

a guest
Sep 7th, 2012
272
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. libiconv.rb
  2.  
  3. require 'formula'
  4.  
  5. class Libiconv < Formula
  6. url 'http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz'
  7. homepage ''
  8. md5 'e34509b1623cec449dfeb73d7ce9c6c6'
  9.  
  10. keg_only :provided_by_osx, <<-EOS.undent
  11. A few software packages require this newer version of libiconv.
  12. Please use this dependency very sparingly.
  13. EOS
  14.  
  15. def patches
  16. { :p1 => [
  17. 'http://svn.macports.org/repository/macports/trunk/dports/textproc/libiconv/files/patch-Makefile.devel',
  18. 'http://svn.macports.org/repository/macports/trunk/dports/textproc/libiconv/files/patch-utf8mac.diff',
  19. DATA
  20. ]}
  21. end
  22.  
  23. def install
  24. ENV.j1
  25. system "./configure", "--disable-debug", "--disable-dependency-tracking",
  26. "--prefix=#{prefix}",
  27. "--enable-extra-encodings"
  28. system "make -f Makefile.devel"
  29. system "make install"
  30. end
  31.  
  32.  
  33. end
  34.  
  35.  
  36. Atomic:Formula justin$ brew install libiconv
  37. ==> Downloading http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
  38. File already downloaded in /Users/justin/Library/Caches/Homebrew
  39. Error: uninitialized constant Libiconv::DATA
  40. Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
  41. /usr/local/Library/Formula/libiconv.rb:17:in `patches'
  42. /usr/local/Library/Homebrew/formula.rb:574:in `patch'
  43. /usr/local/Library/Homebrew/formula.rb:258:in `brew'
  44. /usr/local/Library/Homebrew/formula.rb:563:in `stage'
  45. /usr/local/Library/Homebrew/formula.rb:515:in `mktemp'
  46. /usr/local/Library/Homebrew/formula.rb:561:in `stage'
  47. /usr/local/Library/Homebrew/formula.rb:256:in `brew'
  48. /usr/local/Library/Homebrew/install.rb:70:in `install'
  49. /usr/local/Library/Homebrew/install.rb:34
  50. /usr/local/Library/Formula/libiconv.rb:21
RAW Paste Data