aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hagen2014-05-27 17:11:46 +0200
committerAdam Vandenberg2014-05-27 21:31:13 -0700
commitafda72f59adcff714f85e41778b7a63a1e629070 (patch)
treed2bf5737393c4a9529bc5e6ffa0e89399f29bd91
parent10c93386dc73d4e3a2f06059db7d2e910df8b0fe (diff)
downloadhomebrew-afda72f59adcff714f85e41778b7a63a1e629070.tar.bz2
SeExpr 1.0.1 (new formula)
Closes #29617. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/seexpr.rb57
1 files changed, 57 insertions, 0 deletions
diff --git a/Library/Formula/seexpr.rb b/Library/Formula/seexpr.rb
new file mode 100644
index 000000000..3cb99c516
--- /dev/null
+++ b/Library/Formula/seexpr.rb
@@ -0,0 +1,57 @@
+require "formula"
+
+class Seexpr < Formula
+ homepage "http://www.disneyanimation.com/technology/seexpr.html"
+ url "https://github.com/wdas/SeExpr/archive/rel-1.0.1.tar.gz"
+ sha1 "80890cedd684a93b012b0964dc3b59910aaf5a10"
+
+ depends_on "cmake" => :build
+ depends_on "libpng"
+ depends_on "doxygen"
+
+ # fix for macosx
+ # already present in HEAD so it can be removed after version 1.0.1
+ patch :DATA
+
+ def install
+ mkdir "build" do
+ system "cmake", "..", *std_cmake_args
+ system "make", "doc"
+ system "make", "install"
+ end
+ end
+
+ test do
+ system bin/"asciigraph"
+ end
+end
+
+__END__
+diff --git a/src/SeExpr/SeExprFunc.cpp b/src/SeExpr/SeExprFunc.cpp
+index feb6b45..8269b39 100644
+--- a/src/SeExpr/SeExprFunc.cpp
++++ b/src/SeExpr/SeExprFunc.cpp
+@@ -208,7 +208,7 @@ SeExprFunc::getDocString(const char* functionName)
+
+ #ifndef SEEXPR_WIN32
+
+-#ifdef __APPLE__
++#if defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED <= __MAC_10_7
+ static int MatchPluginName(struct dirent* dir)
+ #else
+ static int MatchPluginName(const struct dirent* dir)
+diff --git a/src/SeExpr/SePlatform.h b/src/SeExpr/SePlatform.h
+index 32a6b96..82b0f44 100644
+--- a/src/SeExpr/SePlatform.h
++++ b/src/SeExpr/SePlatform.h
+@@ -40,6 +40,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ @brief Platform-specific classes, functions, and includes.
+ */
+
++#ifdef __APPLE__
++# include <Availability.h>
++#endif
++
+ // platform-specific includes
+ #if defined(_WIN32) || defined(_WINDOWS) || defined(_MSC_VER)
+ # ifndef WINDOWS