$ brew create http://anongit.freedesktop.org/git/gstreamer/gst-python.git --set-name GstPython
Then edit formula. My formula is. $ brew edit GstPython
require "formula"
class Gstpython < Formula
homepage "http://gstreamer.freedesktop.org/releases/gst-python/1.3.90.html"
url "http://anongit.freedesktop.org/git/gstreamer/gst-python.git", :using => :git
sha1 ""
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "glib" => :build
depends_on "gstreamer" => :build
depends_on "pkg-config" => :build
depends_on "pygobject3" => :build
depends_on "libffi" => :build
def install
system "./autogen.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
system "make install"
end
end
But!!!
Remember i've not install any python yet. Yes we use python site-packages from /usr/local/lib/python2.7/site-packages/ . Homebrew can have their python environment. Then we have to install python first.
First we have to uninstall our previous python package first. Then install python by $ brew install --verbose python
Then you will have to install GStreamer again.
It's time to brewing get-python from now.
$ brew install --verbose GstPython
Then you can try the installation by
Python 2.7.8 (default, Sep 29 2014, 18:34:51)
Type "copyright", "credits" or "license" for more information.
IPython 2.2.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: from gi.repository import Gst, GObject
In [2]: Gst.version()
Out[2]: (1L, 4L, 1L, 0L)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น