Created
December 14, 2013 03:16
-
-
Save kyoma-/7955288 to your computer and use it in GitHub Desktop.
Homebrew formula for GDCM (http://gdcm.sourceforge.net), building the applications including gdcmconv.
Do brew install (URL for the raw of the file).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Gdcm < Formula | |
homepage 'http://gdcm.sourceforge.net' | |
url 'http://downloads.sourceforge.net/project/gdcm/gdcm%202.x/GDCM%202.4.1/gdcm-2.4.1.tar.bz2' | |
sha1 '1ba1b46455b962d78f0ad4863872ab06019f3c23' | |
depends_on 'cmake' => :build | |
def install | |
# See http://librelist.com/browser//homebrew/2013/5/27/separating-source-and-binary-trees-during-build/#d95fad118a1e3b6d29a474bf66e92802 | |
mkdir '../build' do | |
system 'cmake', buildpath, | |
'-DGDCM_BUILD_APPLICATIONS:BOOL=ON', *std_cmake_args | |
system "make", "install" | |
end | |
end | |
test do | |
system "#{bin}/gdcmconv", '--version' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment