From 4f7b2329aeddd3639701bc4e4dce8ad92f6aa3fa Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Thu, 27 Dec 2018 21:24:47 +0100 Subject: [PATCH] easy-tag: move to Python 3 --- Formula/easy-tag.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Formula/easy-tag.rb b/Formula/easy-tag.rb index 067089bfe0..f91336e427 100644 --- a/Formula/easy-tag.rb +++ b/Formula/easy-tag.rb @@ -15,6 +15,7 @@ class EasyTag < Formula depends_on "intltool" => :build depends_on "itstool" => :build depends_on "pkg-config" => :build + depends_on "python" => :build depends_on "adwaita-icon-theme" depends_on "flac" depends_on "gtk+3" @@ -31,7 +32,9 @@ class EasyTag < Formula patch :DATA def install - ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages" + xy = Language::Python.major_minor_version "python3" + ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python#{xy}/site-packages" + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-schemas-compile"