Last active
September 27, 2017 00:54
-
-
Save mrkn/5e50ed82f45e950a68ab568a5e456e22 to your computer and use it in GitHub Desktop.
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
mrkn-mbp15-late2016:homebrew-red-data-tools mrkn$ brew install apache-arrow-glib.rb | |
==> Downloading https://www.apache.org/dyn/closer.cgi?path=arrow/arrow-0.7.0/apache-arrow-0.7.0.tar.gz | |
Already downloaded: /Users/mrkn/Library/Caches/Homebrew/apache-arrow-glib-0.7.0.tar.gz | |
"/opt/brew/lib/pkgconfig:/opt/brew/opt/jemalloc/lib/pkgconfig:/opt/brew/opt/apache-arrow/lib/pkgconfig:/opt/brew/opt/glib/lib/pkgconfig:/opt/brew/opt/gobject-introspection/lib/pkgconfig" | |
==> ./configure --prefix=/opt/brew/Cellar/apache-arrow-glib/0.7.0 CC=clang | |
Last 15 lines from /Users/mrkn/Library/Logs/Homebrew/apache-arrow-glib/01.configure: | |
checking for ld used by clang++... /Applications/Xcode_8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld | |
checking if the linker (/Applications/Xcode_8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no | |
checking whether the clang++ linker (/Applications/Xcode_8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes | |
checking for clang++ option to produce PIC... -fno-common -DPIC | |
checking if clang++ PIC flag -fno-common -DPIC works... yes | |
checking if clang++ static flag -static works... no | |
checking if clang++ supports -c -o file.o... yes | |
checking if clang++ supports -c -o file.o... (cached) yes | |
checking whether the clang++ linker (/Applications/Xcode_8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes | |
checking dynamic linker characteristics... darwin16.7.0 dyld | |
checking how to hardcode library paths into programs... immediate | |
checking for pkg-config... /opt/brew/opt/pkg-config/bin/pkg-config | |
checking pkg-config is at least version 0.16... yes | |
checking for GLIB - version >= 2.32.4... yes (version 2.54.0) | |
checking for gobject-introspection... configure: error: gobject-introspection-1.0 is not installed | |
Do not report this issue to Homebrew/brew or Homebrew/core! | |
mrkn-mbp15-late2016:homebrew-red-data-tools mrkn$ ls /opt/brew/opt/gobject-introspection/lib/pkgconfig | |
gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc |
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
class ApacheArrowGlib < Formula | |
desc "GObject Introspection files of Apache Arrow" | |
homepage "https://arrow.apache.org/" | |
head "https://github.com/apache/arrow.git" | |
stable do | |
url "https://www.apache.org/dyn/closer.cgi?path=arrow/arrow-0.7.0/apache-arrow-0.7.0.tar.gz" | |
sha256 "5d8e976e0c8a5f39087e3cd4c39efd45ad8960ffc5207ed02e999d36dc5b0e79" | |
end | |
depends_on "apache-arrow" | |
depends_on "pkg-config" => :build | |
depends_on "glib" => :build | |
depends_on "gobject-introspection" => :build | |
def install | |
ENV.prepend_path "PKG_CONFIG_PATH", HOMEBREW_PREFIX/"lib/pkgconfig" | |
p ENV['PKG_CONFIG_PATH'] | |
cd "c_glib" do | |
args = %W[ | |
--prefix=#{prefix} | |
CC=#{ENV.cc} | |
] | |
system "./configure", *args | |
system "make" | |
system "make", "install" | |
end | |
end | |
test do | |
# TODO | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment