require 'formula' class Gmtl < Formula homepage 'http://ggt.sourceforge.net/' url 'http://downloads.sourceforge.net/project/ggt/Generic%20Math%20Template%20Library/0.6.1/gmtl-0.6.1.tar.gz' sha1 '473a454d17956d3ce3babafdb57f73c0685579fd' head 'https://ggt.svn.sourceforge.net/svnroot/ggt/trunk/' depends_on 'scons' => :build # Build assumes that Python is a framework, which isn't always true. See: # https://sourceforge.net/tracker/?func=detail&aid=3172856&group_id=43735&atid=437247 # The SConstruct from gmtl's HEAD doesn't need to be patched def patches DATA unless build.head? end def install system "scons", "install", "prefix=#{prefix}" end end __END__ diff --git a/SConstruct b/SConstruct index 8326a89..2eb7ff0 100644 --- a/SConstruct +++ b/SConstruct @@ -126,7 +126,9 @@ def BuildDarwinEnvironment(): exp = re.compile('^(.*)\/Python\.framework.*$') m = exp.search(distutils.sysconfig.get_config_var('prefix')) - framework_opt = '-F' + m.group(1) + framework_opt = None + if m: + framework_opt = '-F' + m.group(1) CXX = os.environ.get("CXX", WhereIs('g++')) @@ -138,7 +140,10 @@ def BuildDarwinEnvironment(): LINK = CXX CXXFLAGS = ['-ftemplate-depth-256', '-DBOOST_PYTHON_DYNAMIC_LIB', - '-Wall', framework_opt, '-pipe'] + '-Wall', '-pipe'] + + if framework_opt is not None: + CXXFLAGS.append(framework_opt) compiler_ver = match_obj.group(1) compiler_major_ver = int(match_obj.group(2)) @@ -152,7 +157,10 @@ def BuildDarwinEnvironment(): CXXFLAGS += ['-Wno-long-double', '-no-cpp-precomp'] SHLIBSUFFIX = distutils.sysconfig.get_config_var('SO') - SHLINKFLAGS = ['-bundle', framework_opt, '-framework', 'Python'] + SHLINKFLAGS = ['-bundle'] + + if framework_opt is not None: + SHLINKFLAGS.extend([framework_opt, '-framework', 'Python']) LINKFLAGS = [] # Enable profiling? >
path: root/Library/Formula/cabal-install.rb
AgeCommit message (Collapse)Author
2012-04-26cabal-install 0.14.0Zach Moazeni
Closes #11875. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-10cabal-install: style fixupJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-25cabal-install: Add bash completionLibor Wagner
The bash completion shipped with cabal-install package is now installed to bash_completion.d directory. Closes #8261. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-08-13cabal-install 0.10.2Miëtek Bak
The cabal-install package provides the cabal command-line tool which simplifies the process of managing Haskell software by automating the fetching, configuration, compilation and installation of Haskell libraries and programs. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30cabal-install duplicates cabal in ghc, so removeAdam Vandenberg
2010-10-26Add formula for cabal-installFrank J. Cameron
Cabal is a system for building and packaging Haskell libraries and programs. It defines a common interface for package authors and distributors to easily build their applications in a portable way. cabal-install is the command line interface to Cabal and hackage. This is the package that provides the 'cabal' command line program. To make the process easier the cabal-install tarball contains a bootstrap.sh script which downloads and installs all three dependencies. http://www.haskell.org/cabal/ Signed-off-by: Adam Vandenberg <flangy@gmail.com>