aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2015-03-22 18:09:34 -0700
committerTim D. Smith2015-03-23 08:08:25 -0700
commit15bb3fbdc02579663e54aeb9a62580779ba30d7a (patch)
tree18ed70c641098c215093a2979012be2a0502cb3f /Library
parentbd7971eeb5f505946409d88a17d9d790db5e88b4 (diff)
downloadhomebrew-15bb3fbdc02579663e54aeb9a62580779ba30d7a.tar.bz2
py3cairo 1.10.0
Restore py3cairo from homebrew/homebrew-x11 tap. Closes #37981. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/py3cairo.rb20
-rw-r--r--Library/Homebrew/tap_migrations.rb1
2 files changed, 20 insertions, 1 deletions
diff --git a/Library/Formula/py3cairo.rb b/Library/Formula/py3cairo.rb
new file mode 100644
index 000000000..f18e21609
--- /dev/null
+++ b/Library/Formula/py3cairo.rb
@@ -0,0 +1,20 @@
+class Py3cairo < Formula
+ homepage "http://cairographics.org/pycairo/"
+ url "http://cairographics.org/releases/pycairo-1.10.0.tar.bz2"
+ sha256 "9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be"
+
+ depends_on "pkg-config" => :build
+ depends_on "cairo"
+ depends_on :python3
+
+ def install
+ ENV["PYTHON"] = "python3"
+ system "./waf", "configure", "--prefix=#{prefix}"
+ system "./waf", "build"
+ system "./waf", "install"
+ end
+
+ test do
+ system "python3", "-c", "import cairo; print(cairo.version)"
+ end
+end
diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb
index ead9e2c1f..8a5b9216d 100644
--- a/Library/Homebrew/tap_migrations.rb
+++ b/Library/Homebrew/tap_migrations.rb
@@ -130,7 +130,6 @@ TAP_MIGRATIONS = {
"pocl" => "homebrew/science",
"prooftree" => "homebrew/x11",
"pulse" => "homebrew/boneyard",
- "py3cairo" => "homebrew/x11",
"pyenv-pip-rehash" => "homebrew/boneyard",
"pyxplot" => "homebrew/x11",
"qfits" => "homebrew/boneyard",