Updated gdcm to v2.4.4 and added options to generate Python bindings wit...

Updated gdcm to v2.4.4 and added options to generate Python bindings with SWIG. Supports :python and :python3.
I made the python block a conditional, but I'm not wasting more time on
this recipe. Any further reformatting is up to you.

-E

On Sat, Oct 18, 2014 at 4:15 PM, Ian Lancaster <notifications@github.com>
wrote:

> In gdcm.rb:
>
> >
> >    def install
> > -    sourcedir = "#{pwd}/source_files"
> > -    builddir = "#{pwd}/build_files"
> > +    Language::Python.each_python(build) do |python, version|
> > +        py_site_packages = "#{lib}/python#{version}/site-packages"
>
> The use of the each_python iterator there means the formula won't do
> anything without a python option, and will run make/make install twice if
> given both with-python and with-python3. If building with only one Python
> is supported (as seems to be implied by the cmake args), one should be
> given priority and each_python should not be used at all.
>
> if build.with? "python"
>   args << python2_cmake_args
> elsif build.with? "python3"
>   args << python3_cmake_args
> end
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Homebrew/homebrew-science/pull/1252/files#r19056384>.
>



-- 
-Evan Bollig
bollig@gmail.com
bollig@scs.fsu.edu