forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes Homebrew#7460. This is the last known stable version of Io. However it is very old. If you can find a newer stable version, please add it! Signed-off-by: Max Howell <max@methylblue.com>
- Loading branch information
Showing
1 changed file
with
7 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,26 @@ | ||
require 'formula' | ||
|
||
class Io < Formula | ||
head 'https://github.com/stevedekorte/io.git' | ||
url 'https://github.com/stevedekorte/io/tarball/2010.06.06' | ||
homepage 'http://iolanguage.com/' | ||
md5 '7968fbe5367aad7a630fc7094be1775b' | ||
head 'https://github.com/stevedekorte/io.git' | ||
|
||
depends_on 'cmake' => :build | ||
depends_on 'libsgml' | ||
depends_on 'ossp-uuid' | ||
depends_on 'libevent' | ||
|
||
# Either CMake doesn't detect OS X's png include path correctly, | ||
# or there's an issue with io's build system; force the path in | ||
# so we can build. | ||
def patches | ||
DATA | ||
end | ||
|
||
def install | ||
opoo "IO fails to build often!" | ||
puts "There is no stable revision: https://github.com/mxcl/homebrew/issues/7399" | ||
|
||
ENV.j1 | ||
mkdir 'io-build' | ||
|
||
Dir.chdir 'io-build' do | ||
system "cmake .. #{std_cmake_parameters}" | ||
system "make install" | ||
end | ||
system "make vm" | ||
system "make install" | ||
system "make port" | ||
system "make install" | ||
|
||
rm_f Dir['docs/*.pdf'] | ||
doc.install Dir['docs/*'] | ||
|
||
prefix.install 'license/bsd_license.txt' => 'LICENSE' | ||
end | ||
end | ||
|
||
__END__ | ||
diff --git a/addons/Image/CMakeLists.txt b/addons/Image/CMakeLists.txt | ||
index a65693d..2166f1b 100644 | ||
--- a/addons/Image/CMakeLists.txt | ||
+++ b/addons/Image/CMakeLists.txt | ||
@@ -22,7 +22,7 @@ if(PNG_FOUND AND TIFF_FOUND AND JPEG_FOUND) | ||
add_definitions(-DBUILDING_IMAGE_ADDON) | ||
|
||
# Additional include directories | ||
- include_directories(${PNG_INCLUDE_DIR} ${TIFF_INCLUDE_DIR} ${JPEG_INCLUDE_DIR}) | ||
+ include_directories("/usr/X11/include" ${PNG_INCLUDE_DIR} ${TIFF_INCLUDE_DIR} ${JPEG_INCLUDE_DIR}) | ||
|
||
# Generate the IoImageInit.c file. | ||
# Argument SHOULD ALWAYS be the exact name of the addon, case is |