diff options
| author | Eduardo Kasa | 2012-05-03 20:52:36 -0300 |
|---|---|---|
| committer | Jack Nagel | 2012-06-07 17:17:11 -0500 |
| commit | 7499e9bd4893650aa283a77c5837073f58c6fee8 (patch) | |
| tree | d518c2a161acec8e57340cbaf2b216437c7a7653 /Library/Formula | |
| parent | e88782cc6cfe6a126393c0c0d071653726c335dd (diff) | |
| download | homebrew-7499e9bd4893650aa283a77c5837073f58c6fee8.tar.bz2 | |
mit-scheme: fix build with Xcode 4.3+
Fixes #11475.
Closes #12046.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mit-scheme.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Library/Formula/mit-scheme.rb b/Library/Formula/mit-scheme.rb index d3c5da95f..36ec2e1c9 100644 --- a/Library/Formula/mit-scheme.rb +++ b/Library/Formula/mit-scheme.rb @@ -9,6 +9,12 @@ class MitScheme < Formula # Do not strip the binaries, this will cause missing symbol errors on launch skip_clean :all + def patches + # fix installation issue with OS X 10.7 and Xcode in /Applications + # http://savannah.gnu.org/patch/?7775 + DATA + end + def install # The build breaks __HORRIBLY__ with parallel make -- one target will erase something # before another target gets it, so it's easier to change the environment than to @@ -34,3 +40,36 @@ class MitScheme < Formula system "make install" end end + +__END__ +diff --git a/src/configure b/src/configure +index 23187c9..4485b64 100755 +--- a/src/configure ++++ b/src/configure +@@ -6257,7 +6257,10 @@ echo "$as_me: error: Unable to determine MacOSX version" >&2;} + else + SDK=MacOSX${MACOSX} + fi ++ MACOSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/${SDK}.sdk ++ if test ! -d "${MACOSX_SYSROOT}"; then + MACOSX_SYSROOT=/Developer/SDKs/${SDK}.sdk ++ fi + if test ! -d "${MACOSX_SYSROOT}"; then + { { echo "$as_me:$LINENO: error: No MacOSX SDK for version: ${MACOSX}" >&5 + echo "$as_me: error: No MacOSX SDK for version: ${MACOSX}" >&2;} + +diff --git a/src/lib/include/configure b/src/lib/include/configure +index d4c7717..49be0a2 100755 +--- a/src/lib/include/configure ++++ b/src/lib/include/configure +@@ -5311,7 +5311,10 @@ echo "$as_me: error: Unable to determine MacOSX version" >&2;} + else + SDK=MacOSX${MACOSX} + fi ++ MACOSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/${SDK}.sdk ++ if test ! -d "${MACOSX_SYSROOT}"; then + MACOSX_SYSROOT=/Developer/SDKs/${SDK}.sdk ++ fi + if test ! -d "${MACOSX_SYSROOT}"; then + { { echo "$as_me:$LINENO: error: No MacOSX SDK for version: ${MACOSX}" >&5 + echo "$as_me: error: No MacOSX SDK for version: ${MACOSX}" >&2;} |
