PageRenderTime 60ms CodeModel.GetById 35ms RepoModel.GetById 0ms app.codeStats 0ms

/Formula/gibbslda.rb

https://repo.or.cz/Homebrew/homebrew-core.git
Ruby | 43 lines | 43 code | 0 blank | 0 comment | 0 complexity | 5315c20ad7e5822587a51cd26e0cd2af MD5 | raw file
  1. class Gibbslda < Formula
  2. desc "Library wrapping imlib2's context API"
  3. homepage "https://gibbslda.sourceforge.io/"
  4. url "https://downloads.sourceforge.net/project/gibbslda/GibbsLDA%2B%2B/0.2/GibbsLDA%2B%2B-0.2.tar.gz"
  5. sha256 "4ca7b51bd2f098534f2fdf82c3f861f5d8bf92e29a6b7fbdc50c3c2baeb070ae"
  6. bottle do
  7. cellar :any_skip_relocation
  8. sha256 "1531c6a6f324f3639ad798d9ae63b461812aecf0a0f3e5a4ad3ea786997c1e5d" => :catalina
  9. sha256 "2d8cab4cd368d2c12c301dae37449d9b5ce6e625b39bfa7f96d542e6390c6848" => :mojave
  10. sha256 "a92cdb534bb1061948417a9840addb3bda01fcbdca63ca290b34e818bd4e695c" => :high_sierra
  11. sha256 "9244041821944e45946fcf6a491ee1579293b4c154c7b9921b38fd6159567552" => :sierra
  12. sha256 "c8a95c74f3c9e967506fb386a1343459ecae8362cbf91362a7955ba017bea5fc" => :el_capitan
  13. sha256 "091c214c2589c2a2a0b0dcb90f45cf993ffeeb7d7260f505ef84f1fd773b326c" => :yosemite
  14. sha256 "bd4c35f5f73ae1aa5fdee00bd89c7b9c455c30061effe1660fbfbd203cb82cd3" => :mavericks
  15. end
  16. # Build fails without including stdlib - https://trac.macports.org/ticket/41915
  17. # https://sourceforge.net/p/gibbslda/bugs/4/
  18. patch :DATA
  19. def install
  20. system "make", "clean"
  21. system "make", "all"
  22. bin.install "src/lda"
  23. share.install "docs/GibbsLDA++Manual.pdf"
  24. end
  25. end
  26. __END__
  27. diff --git a/src/utils.cpp b/src/utils.cpp
  28. index e2f538b..1df5fb3 100644
  29. --- a/src/utils.cpp
  30. +++ b/src/utils.cpp
  31. @@ -22,6 +22,7 @@
  32. */
  33. #include <stdio.h>
  34. +#include <stdlib.h>
  35. #include <string>
  36. #include <map>
  37. #include "strtokenizer.h"