Conversation
end | ||
|
||
test do | ||
system bin/"tidy5", "--version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to write a test that tests the actual functionality?
|
https://github.com/Homebrew/homebrew-dupes/blob/master/tidy.rb should be addressed if this is merged. |
Could you also add a PR to remove https://github.com/Homebrew/homebrew-dupes/blob/master/tidy.rb? Thanks! |
A bunch of strict audit things need fixed too: http://bot.brew.sh/job/Homebrew%20Pull%20Requests/24824/version=yosemite/testReport/junit/brew-test-bot/yosemite/audit_tidy_html5___strict/ |
Updated it... unfortunately i have no idea how to deal with the man page! Also, squashed and rebased against the latest head. |
Still failing audit rules: http://bot.brew.sh/job/Homebrew%20Pull%20Requests/24855/version=yosemite/testReport/junit/brew-test-bot/yosemite/audit_tidy_html5___strict/ You can see these locally with |
absolutely—i've no clue how to fix them though, so I'd appreciate some help. |
depends_on "cmake" => :build | ||
|
||
def install | ||
ENV.deparallelize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please submit this as an issue to the upstream developers of this project and add a link to the upstream patch submission and explanation of why the patch is needed in a comment in the formula file. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added this defensively not really knowing if it's necessary... it seems it'll do fine with parallel builds.
eea48e5
to
ce92d8e
Compare
Updated. This should fix all outstanding issues.
|
|
||
def install | ||
cd "build/cmake" | ||
puts std_cmake_args |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove this debug print?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. done
depends_on "cmake" => :build | ||
|
||
def install | ||
cd "build/cmake" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to change directory here? What happens if just run in the root of the repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it is, according to tidy's docs. Can confirm: removing that line will cause a build failure.
def install
- cd "build/cmake"
- system "cmake", "../..", *std_cmake_args
+ system "cmake", *std_cmake_args
system "make"
system "make", "install"
end
==> Downloading https://github.com/htacg/tidy-html5/archive/4.9.26.tar.gz
Already downloaded: /Library/Caches/Homebrew/tidy-html5-4.9.26.tar.gz
==> cmake -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/tidy-html5/4.9.26 -DCMAKE_BUILD_T
==> make
warning: failed to load external entity "../documentation/tidy1.xsl"
cannot parse ../documentation/tidy1.xsl
make[2]: *** [man] Error 4
make[1]: *** [CMakeFiles/man.dir/all] Error 2
make: *** [all] Error 2
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
READ THIS: https://git.io/brew-troubleshooting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, thanks.
Thanks for your contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock! |
Mostly derived from PR #23, with a few edits
As noted by @sadeqzadeh, confirmed by Homebrew/legacy-homebrew#39010
https://github.com/htacg/tidy-html5
http://www.html-tidy.org/
Relevant: #14965